@import url("feature-plus.css");

/* =============================================================================
   Help Center — .hc-* helpers

   The page is built almost entirely from the shared .fp-* and .fx-* vocabulary:
   the hero is .fp-hero, the topic cards are a.fx-tool inside .fx-tool-grid, the
   questions are the .fx-faq accordion and the closing band is .fp-cta-section.
   Only three things are genuinely new and live here:

     1. the hero search field and its result status / empty state,
     2. the filter states the search puts on the topic grid,
     3. the "Still need help?" band with its three contact routes.

   Tokens follow the site: purple #6f42c1 / #9333ea, ink #0f172a, muted #6b7280,
   card white #fff, light section #f8faff, radius 20px, icon tile 56/14/26.

   Constraints inherited from feature-plus.css: no CSS nesting, no :has(),
   every motion wrapped in prefers-reduced-motion.
   ========================================================================== */


/* -----------------------------------------------------------------------------
   1. Hero — centred variant of .fp-hero
   -------------------------------------------------------------------------- */
.hc-hero .fp-hero-sub {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}


/* -----------------------------------------------------------------------------
   2. Search field
   The label is visible to assistive tech only — the placeholder and the hint
   below carry the same information visually, and a floating label on a hero
   search box reads as clutter.
   -------------------------------------------------------------------------- */
.hc-search {
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
}

.hc-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hc-search-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 7px 7px 50px;
    background: #fff;
    border: 1px solid rgba(111,66,193,.16);
    border-radius: 50px;
    box-shadow: 0 20px 50px rgba(111,66,193,.10);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.hc-search-field:focus-within {
    border-color: rgba(111,66,193,.45);
    box-shadow: 0 24px 56px rgba(111,66,193,.18);
}

.hc-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #6f42c1;
    pointer-events: none;
}

.hc-search-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 10px 4px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;               /* 16px stops iOS zooming the page on focus */
    line-height: 1.4;
    color: #0f172a;
    -webkit-appearance: none;
    appearance: none;
}
.hc-search-input::placeholder { color: #9aa1ad; }
.hc-search-input:focus { outline: none; }

/* Chrome/Safari draw their own clear button; keep it, just give it room. */
.hc-search-input::-webkit-search-cancel-button { margin-right: 4px; }

.hc-search-btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 12px 26px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient(90deg, #6f42c1, #9333ea);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}
.hc-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(111,66,193,.30);
}

.hc-search-hint {
    margin: 12px 2px 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #6b7280;
    text-align: center;
}


/* -----------------------------------------------------------------------------
   3. Topic grid + filter states
   .fx-tool-grid supplies the grid; these rules only add the hidden state, the
   lead width and the arrow affordance on each card.
   -------------------------------------------------------------------------- */
.hc-section-lead {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* .fx-tool-grid's 240px track lands 5 columns at 1440px, which is too tight for
   a two-line description. 260px lands 4 and lets each card breathe; the min()
   guard is inherited behaviour and still stops a fixed track forcing sideways
   scroll at 375px. */
.hc-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    margin-top: 4px;
}

/* A filtered-out card. Belt and braces: the UA sheet already does this for
   [hidden], but a stray `li { display: … }` in a global reset would beat it. */
.hc-grid > li[hidden] { display: none !important; }

.hc-topic { position: relative; height: 100%; }

/* The card is a link, so it earns a direction cue. Pure CSS chevron, so it can
   never render as a blank box if a glyph is missing from the icon subset. */
.hc-topic::after {
    content: '';
    position: absolute;
    top: 24px;
    right: 20px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #c9b8ea;
    border-top: 2px solid #c9b8ea;
    transform: rotate(45deg);
    transition: transform .3s ease, border-color .3s ease;
}
.hc-topic:hover::after {
    border-color: #6f42c1;
    transform: translateX(3px) rotate(45deg);
}

.hc-topic .fx-tool-body { padding-right: 14px; }

.hc-status {
    min-height: 22px;
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #6f42c1;
    text-align: center;
}


/* -----------------------------------------------------------------------------
   4. Empty state
   -------------------------------------------------------------------------- */
.hc-empty {
    max-width: 560px;
    margin: 34px auto 0;
    padding: 34px 26px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(111,66,193,.12);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.05);
}
.hc-empty[hidden] { display: none; }

.hc-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(111,66,193,.1), rgba(155,92,255,.15));
    display: flex;
    align-items: center;
    justify-content: center;
}
.hc-empty-icon i { font-size: 26px; color: #6f42c1; }

.hc-empty-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.hc-empty-body {
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0 0 18px;
}


/* -----------------------------------------------------------------------------
   5. FAQ footer link
   -------------------------------------------------------------------------- */
.hc-faq-more {
    margin: 28px 0 0;
    text-align: center;
}


/* -----------------------------------------------------------------------------
   6. "Still need help?" band
   -------------------------------------------------------------------------- */
.hc-band-section { padding-top: 0; }

.hc-band {
    position: relative;
    padding: 44px 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, #6f42c1 0%, #9333ea 100%);
    box-shadow: 0 26px 60px rgba(111,66,193,.28);
    overflow: hidden;
}
.hc-band::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    filter: blur(60px);
    pointer-events: none;
}

.hc-band-head {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto 30px;
    text-align: center;
}

.hc-band-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 10px;
}

.hc-band-body {
    font-size: 15.5px;
    line-height: 1.75;
    color: rgba(255,255,255,.86);
    margin: 0;
}

.hc-routes {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hc-route {
    display: block;
    height: 100%;
    padding: 22px 20px;
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(21,10,44,.18);
    transition: transform .3s ease, box-shadow .3s ease;
}
.hc-route:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 54px rgba(21,10,44,.26);
}

.hc-route-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(111,66,193,.1), rgba(155,92,255,.15));
    display: flex;
    align-items: center;
    justify-content: center;
}
.hc-route-icon i { font-size: 21px; color: #6f42c1; }

.hc-route-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9333ea;
    margin-bottom: 5px;
}

.hc-route-val {
    display: block;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 7px;
    overflow-wrap: break-word;
}

.hc-route-note {
    display: block;
    font-size: 13.5px;
    line-height: 1.6;
    color: #6b7280;
}

.hc-band-note {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 26px auto 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255,255,255,.80);
    text-align: center;
}


/* -----------------------------------------------------------------------------
   7. Focus visibility
   -------------------------------------------------------------------------- */
.hc-search-input:focus-visible,
.hc-search-btn:focus-visible,
a.hc-topic:focus-visible {
    outline: 2px solid #6f42c1;
    outline-offset: 3px;
}

/* Inside the purple band a purple ring would disappear. */
.hc-route:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Fallback for engines without :focus-visible (older Safari). */
.hc-search-btn:focus,
.hc-route:focus { outline: 2px solid #6f42c1; outline-offset: 3px; }
.hc-route:focus { outline-color: #ffffff; }
.hc-search-btn:focus:not(:focus-visible),
.hc-route:focus:not(:focus-visible) { outline: none; }


/* -----------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .hc-band { padding: 52px 44px; }
    .hc-band-title { font-size: 32px; }
}

@media (max-width: 575px) {
    /* The submit button stops fitting on one line next to the input at 375px,
       so the field stacks. It stays a real 44px target either way. */
    .hc-search-field {
        flex-wrap: wrap;
        border-radius: 22px;
        padding: 8px 10px 10px 44px;
    }
    .hc-search-icon { left: 16px; top: 30px; }
    .hc-search-input { flex: 1 1 100%; }
    .hc-search-btn { flex: 1 1 100%; }
    .hc-empty { padding: 28px 20px; }
    .hc-band { padding: 34px 18px; border-radius: 22px; }
    .hc-band-title { font-size: 24px; }
}


/* -----------------------------------------------------------------------------
   9. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hc-search-field,
    .hc-search-btn,
    .hc-topic::after,
    .hc-route {
        transition: none !important;
        animation: none !important;
    }
    .hc-search-btn:hover,
    .hc-route:hover,
    .hc-topic:hover::after {
        transform: none;
    }
}
