﻿/* ==========================================================================
   Best e Bridge - English site, responsive stylesheet (v2)
   Used by SiteEng.master and its pages. Mobile-first.
   Does NOT depend on StyleSite_2.css / Members_20140612.css.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --navy-900: #00192a;
    --navy-800: #002940;   /* original site background */
    --navy-700: #0a3d66;
    --blue-600: #004378;   /* original heading blue */
    --blue-500: #1462a8;
    --blue-100: #e8f1fa;
    --red-600:  #c8102e;   /* brand red (logo / suits) */
    --red-700:  #a50d26;
    --accent-500: #b23a48;  /* muted version of the logo 'e' red (#b40820) - call-to-action */
    --accent-600: #962f3c;  /* hover */
    --accent-ink: #ffffff;  /* text on accent */
    --accent-50:  #fbeff1;  /* light tint (promo banner) */
    --ink:      #1b2430;
    --ink-soft: #4a5565;
    --line:     #dde3ea;
    --bg:       #ffffff;
    --bg-alt:   #f4f7fb;

    --radius:   12px;
    --radius-sm: 8px;
    --shadow:   0 1px 2px rgba(0,25,42,.06), 0 6px 20px rgba(0,25,42,.08);
    --shadow-hover: 0 2px 4px rgba(0,25,42,.08), 0 12px 32px rgba(0,25,42,.14);

    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1120px;
    --gutter: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }

a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-800); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute; left: -999px; top: 8px;
    background: #fff; padding: 8px 12px; z-index: 100; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .4em;
    padding: .65em 1.25em;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit; font-weight: 600; line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .45em 1em; font-size: .95rem; }
.btn-lg { padding: .8em 1.6em; font-size: 1.05rem; }

.btn-cta { background: var(--accent-500); color: var(--accent-ink); }
.btn-cta:hover { background: var(--accent-600); color: var(--accent-ink); }

.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ---------- Header / navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: #eaf3fb; /* soft light blue, same as the members user bar */
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 8px rgba(0,25,42,.05);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px;
    flex-wrap: wrap;
}
.brand img { width: 170px; height: auto; display: block; }

/* burger (mobile) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    cursor: pointer; border-radius: var(--radius-sm);
}
.nav-burger span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--blue-500); }
.nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line);
}
.nav-toggle:checked ~ .site-nav {
    display: flex;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-links { display: flex; flex-direction: column; }
.nav-links a {
    color: var(--navy-800);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 10px 4px;
}
.nav-links a:hover { color: var(--blue-500); text-decoration: none; }
.nav-links a.active { color: var(--navy-800); font-weight: 700; }
/* current page marker - same orange-red bar as the members-area menu.
   Mobile (stacked list): short bar on the left edge of the row. */
.nav-links a { position: relative; }
.nav-links a::after {
    content: "";
    position: absolute;
    left: -10px; top: 10px; bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: transparent;
    transition: background-color .15s;
}
.nav-links a.active::after { background: orangered; }

.nav-actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
    padding: 14px 4px 0;
    margin-top: 6px;
    border-top: 1px solid var(--line);
}
.nav-actions .nav-hello { flex-basis: 100%; }
.nav-actions .btn { border-radius: 999px; padding: .5em 1.35em; font-size: 1rem; }

/* outlined pill (Log in / Log out) */
.btn-outline { background: #fff; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline:hover { background: var(--blue-100); color: var(--navy-800); }

.nav-hello { color: var(--ink-soft); font-size: .95rem; }

@media (min-width: 900px) {
    .header-inner { flex-wrap: nowrap; min-height: 76px; gap: 24px; }
    .brand img { width: 210px; }
    .nav-burger { display: none; }
    .site-nav {
        display: flex !important;
        flex: 1 1 auto; flex-direction: row; align-items: center;
        padding: 0; border: 0;
    }
    /* links centred between the logo and the buttons */
    .nav-links { flex-direction: row; gap: 40px; margin: 0 auto; }
    .nav-links a { padding: 6px 0; }
    /* desktop: underline under the active link */
    .nav-links a::after {
        left: 0; right: 0; top: auto; bottom: -4px;
        width: auto; height: 3px;
        border-radius: 3px 3px 0 0;
    }
    .nav-actions { flex-wrap: nowrap; border: 0; margin: 0; padding: 0; gap: 12px; }
    .nav-actions .nav-hello {
        flex-basis: auto;
        max-width: 11em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
}
@media (min-width: 900px) and (max-width: 1099.98px) {
    .brand img { width: 170px; }
    .nav-links { gap: 24px; }
}
@media (min-width: 1200px) { .nav-actions .nav-hello { max-width: 18em; } }

/* ---------- Main ---------- */
.site-main { min-height: 50vh; }

.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
@media (min-width: 768px) { .section { padding: 72px 0; } }

/* ---------- Promo banner ---------- */
.promo-banner {
    background: var(--accent-50);
    color: var(--navy-800);
    border-bottom: 1px solid #efd3d7;
    text-align: center;
    font-weight: 600;
    padding: 10px 0;
    font-size: .98rem;
}
.promo-banner .promo-link { color: var(--accent-600); text-decoration: underline; margin-left: .5em; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(20,98,168,.55), transparent 60%),
        linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--blue-600) 100%);
}
/* faint card-suit watermark */
.hero::after {
    content: "\2660  \2665  \2666  \2663";
    position: absolute; right: -2%; bottom: -40px;
    font-size: 180px; line-height: 1; letter-spacing: 10px;
    color: rgba(255,255,255,.04);
    pointer-events: none; white-space: nowrap;
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; gap: 28px;
    padding-top: 40px; padding-bottom: 48px;
    align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .4em; }
/* "Explore Courses" jumps to the course boxes - keep them clear of the sticky header, scroll smoothly */
#courses { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* subtitle under the hero title - the global h2 colour is navy, invisible on the dark hero */
.hero h2 { color: #a9d1f5; font-weight: 600; margin-bottom: .7em; }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,.88); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.hero-note { margin: -8px 0 18px; color: rgba(255,255,255,.75); font-size: .92rem; }
.hero-points {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 6px 22px;
    color: rgba(255,255,255,.85); font-size: .95rem;
}
.hero-points li::before { content: "\2713"; color: #7fd18b; font-weight: 700; margin-right: .45em; }
.hero-media { text-align: center; }
.hero-media img { width: 100%; max-width: 460px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }

.partner-badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 16px;
    font-size: .92rem;
}

@media (min-width: 900px) {
    .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 40px; padding-top: 72px; padding-bottom: 80px; }
    .hero-media { text-align: right; }
}

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 1100px) { .grid-features { grid-template-columns: repeat(4, 1fr); } }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-body { padding: 18px 20px 22px; }
.card-body p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.card-body .feature-kicker { color: var(--accent-500); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2em; }
.card-body .feature-includes { margin-top: .8em; font-size: .9rem; }

/* ---------- Home: feature cards (lessons / bidding / declarer / defense) ---------- */
#courses { background: #f2f6fb; }
.grid-features { gap: 22px; }
.feature-card {
    position: relative;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0,41,64,.04), 0 6px 18px rgba(0,41,64,.06);
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: #c9d6e6;
    box-shadow: 0 2px 4px rgba(0,41,64,.05), 0 14px 32px rgba(0,41,64,.10);
}
/* suit symbol, top-right corner of each card */
.fc-suit { position: absolute; top: 22px; right: 22px; width: 24px; height: 24px; }
.fc-suit svg { display: block; width: 100%; height: 100%; }
.fc-suit.is-black { color: var(--navy-800); }
.fc-suit.is-red   { color: var(--accent-500); }
.fc-icon {
    width: 116px; height: 100px;
    border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(160deg, #e9f1fa 0%, #d5e3f3 100%);
    margin-bottom: 22px;
}
.fc-icon svg {
    width: 90px; height: 90px;
    filter: drop-shadow(0 2px 3px rgba(0,41,64,.18));
    transition: transform .25s;
}
.feature-card:hover .fc-icon svg { transform: scale(1.05); }
.fc-kicker {
    margin: 0 0 .2em;
    color: var(--accent-500);
    font-size: 1rem; font-weight: 500;
}
.feature-card h3 {
    color: var(--navy-800);
    font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em;
    margin: 0 0 .5em;
}
.fc-text { color: #33445a; font-size: 1.02rem; line-height: 1.6; margin: 0 0 24px; }
.btn-start {
    margin-top: auto;
    display: flex; align-items: center; justify-content: center;
    padding: .65em 1.2em;
    border: 1.5px solid var(--accent-500);
    border-radius: 8px;
    background: #fff;
    color: var(--accent-500); font-weight: 600; font-size: 1.05rem;
    transition: background .2s, color .2s;
}
.btn-start:hover { background: var(--accent-500); color: #fff; text-decoration: none; }
.btn-start:active { transform: translateY(1px); }

/* ---------- Steps ---------- */
.steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    counter-reset: none;
}
.steps li {
    background: #fff; border-radius: var(--radius); padding: 24px;
    border: 1px solid var(--line); text-align: center;
}
.steps p { color: var(--ink-soft); margin: 0; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-bottom: 12px;
    border-radius: 50%;
    background: var(--blue-600); color: #fff; font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden;
    color: #fff;
    padding: 40px 0;
    background:
        radial-gradient(700px 260px at 85% 50%, rgba(120,160,205,.28), transparent 70%),
        linear-gradient(90deg, #163e68 0%, #1f4b7a 50%, #2d5d8d 100%);
}
.cta-inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.3; max-width: 17em; }
.cta-action { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cta-band .btn-cta {
    border-radius: 999px;
    padding: .7em 2.6em;
    background: linear-gradient(180deg, #c0505c 0%, var(--accent-500) 100%);
    box-shadow: 0 6px 16px rgba(0,0,0,.22);
}
.cta-band .btn-cta:hover { background: var(--accent-600); }
.cta-price { margin: 0; color: rgba(255,255,255,.9); font-size: 1rem; line-height: 1.5; }
.cta-price a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta-price a:hover { color: #ffd9de; }
/* decorative outline cards on the right */
.cta-deco {
    position: absolute; right: 2%; bottom: -34px;
    width: 230px; height: auto;
    pointer-events: none;
}
.cta-deco rect { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.22); stroke-width: 3; }
.cta-deco .suit { fill: rgba(255,255,255,.16); }
@media (max-width: 899.98px) { .cta-deco { display: none; } }

/* "Never played?" - highlighted call-out so beginners notice it */
.hero-beginners {
    display: inline-flex; align-items: center; gap: 12px;
    margin: 26px 0 0; padding: 12px 16px 12px 14px;
    font-size: 1rem; line-height: 1.4; color: #fff;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    border-left: 5px solid #ffc94d;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.hero-beginners-icon {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: #ffc94d; color: var(--navy-800);
    font-size: 1.2rem; line-height: 1;
}
.hero-beginners strong { color: #ffc94d; font-weight: 700; }
.hero-beginners a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: normal; }
.hero-beginners a::after { content: "\2192"; display: inline-block; margin-left: .35em; transition: transform .15s; }
.hero-beginners a:hover { color: #ffc94d; }
.hero-beginners a:hover::after { transform: translateX(4px); }
@media (max-width: 599.98px) {
    .hero-beginners { display: flex; font-size: 1rem; padding: 10px 12px; gap: 10px; }
    .hero-beginners-icon { width: 32px; height: 32px; font-size: 1.05rem; }
}
@media (min-width: 900px) {
    .cta-inner { flex-direction: row; justify-content: center; gap: 12%; text-align: left; padding-right: 160px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 32px 0; font-size: .93rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-logo { background: #fff; border-radius: 6px; padding: 6px 10px; width: 160px; height: auto; box-sizing: content-box; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; }
.footer-links a { color: #fff; }
.copyright { margin: 0; }
@media (min-width: 900px) {
    .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Forms (for ported pages: Login, ChangePassword, OrderSub) ---------- */
.form-card { max-width: 480px; margin: 40px auto; padding: 28px 24px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-weight: 600; font-size: .95rem; }
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=password],
.form-row select,
.form-row textarea {
    width: 100%;
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #c3ccd6;
    border-radius: var(--radius-sm);
    background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border-color: var(--blue-500); outline: 3px solid rgba(20,98,168,.18); outline-offset: 0;
}
.lblError { color: #c0392b; }
.lblSuccess { color: #1d7a35; }

/* password eye icon (from StyleSite_4.css) */
.password-container { position: relative; display: block; }
.password-container input { padding-right: 42px; }
.eye-icon {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 20px; height: auto; cursor: pointer; opacity: .6;
}

/* ---------- Auth pages (LoginV2, later ChangePassword) ---------- */
.auth-section {
    padding: 32px 0 56px;
    background:
        radial-gradient(900px 400px at 100% 0%, var(--blue-100), transparent 70%),
        var(--bg-alt);
}
.auth-grid { display: grid; gap: 32px; align-items: center; }
.auth-card { padding: 28px 22px; max-width: 460px; width: 100%; margin: 0 auto; }
.auth-card:hover { transform: none; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .25em; }
.auth-sub { color: var(--ink-soft); margin-bottom: 22px; }
.auth-switch {
    margin: 22px 0 0; padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center; color: var(--ink-soft);
}
.auth-switch a { font-weight: 600; color: var(--accent-500); }
.auth-aside { display: none; }
.auth-aside h2 { margin-bottom: 16px; }
.auth-aside img { width: 100%; max-width: 380px; margin-top: 20px; filter: drop-shadow(0 14px 24px rgba(0,25,42,.18)); }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 6px 0 6px 30px; color: var(--ink); }
.check-list li::before {
    content: "\2713";
    position: absolute; left: 0; top: 7px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--blue-100); color: var(--blue-600);
    font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}

@media (min-width: 900px) {
    .auth-section { padding: 64px 0 88px; }
    .auth-grid { grid-template-columns: minmax(380px, 460px) 1fr; gap: 64px; }
    .auth-card { padding: 36px 34px; margin: 0; }
    .auth-aside { display: block; }
}

/* form extras */
.label-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.link-small { font-size: .9rem; }
.form-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 20px; }
.form-check input[type=checkbox] { width: 18px; height: 18px; margin: 0 8px 0 0; accent-color: var(--blue-600); vertical-align: middle; }
.form-check label { cursor: pointer; vertical-align: middle; }
.btn-block { display: flex; width: 100%; }
input.btn { -webkit-appearance: none; appearance: none; }

/* messages */
.alert { display: block; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius-sm); font-size: .95rem; line-height: 1.45; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-error { background: var(--accent-50); color: #7a1f2b; border: 1px solid #efc6cc; }
.alert-success { background: #ecf7ef; color: #1d5e2f; border: 1px solid #c4e4cd; }

/* ---------- Order / subscribe pages (OrderSub*V2) ---------- */
.order-section {
    padding: 32px 0 56px;
    background:
        radial-gradient(900px 380px at 0% 0%, var(--blue-100), transparent 70%),
        var(--bg-alt);
}
@media (min-width: 900px) { .order-section { padding: 56px 0 80px; } }

.page-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--ink-soft); margin: 0; }
.partner-note {
    display: inline-block;
    margin: 0 0 14px !important;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-50);
    border: 1px solid #efd3d7;
    color: var(--navy-800) !important;
    font-size: .95rem;
}

.muted { color: var(--ink-soft); }
.req { color: var(--accent-500); font-weight: 700; }

/* buttons */
.btn-ghost-dark { background: #fff; color: var(--blue-600); border-color: var(--blue-600); }
.btn-ghost-dark:hover { background: var(--blue-100); color: var(--navy-800); }

/* plan cards */
/* 1 column on phones, 2 on tablets, then all plans in one row.
   .plans-4 / .plans-5 = number of plan cards (set by the page). */
.plans {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    align-items: stretch;
}
@media (min-width: 560px) {
    .plans { grid-template-columns: repeat(2, 1fr); }
    /* odd number of cards: the last (featured) card spans the full row */
    .plans-5 > .plan-card:last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
    .plans-4 { grid-template-columns: repeat(4, 1fr); }
    /* 5 cards on medium screens: 3 + 2, second row centred */
    .plans-5 { grid-template-columns: repeat(6, 1fr); }
    .plans-5 > .plan-card { grid-column: span 2; }
    .plans-5 > .plan-card:nth-child(4) { grid-column: 2 / span 2; }
    .plans-5 > .plan-card:last-child { grid-column: 4 / span 2; }
}
@media (min-width: 900px) and (max-width: 1099.98px) {
    .plans-4 .plan-price .amount { font-size: 1.8rem; }
}
@media (min-width: 1100px) {
    .plans-5 { grid-template-columns: repeat(5, 1fr); gap: 14px; }
    .plans-5 > .plan-card,
    .plans-5 > .plan-card:nth-child(4),
    .plans-5 > .plan-card:last-child { grid-column: auto; }
    .plans-5 > .plan-card { padding-left: 14px; padding-right: 14px; }
    .plans-5 .plan-price .amount { font-size: 1.75rem; }
}

.plan-card {
    position: relative;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 20px 20px;
    text-align: center;
}
.plan-featured {
    border: 2px solid var(--accent-500);
    box-shadow: 0 10px 30px rgba(178,58,72,.16);
}
@media (min-width: 900px) { .plan-featured { transform: translateY(-6px); } }
.plan-ribbon {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--accent-500); color: #fff;
    font-size: .8125rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-size: 1.2rem; margin: 0 0 2px; }
.plan-period { color: var(--ink-soft); margin: 0 0 14px; font-size: .95rem; }
.plan-pricing { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; margin-bottom: 18px; min-height: 108px; }
.plan-old { color: var(--ink-soft); font-size: .9rem; margin: 0 0 2px; }
.plan-price { margin: 0; line-height: 1.1; color: var(--navy-800); }
.plan-price .amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price .per { font-size: .95rem; color: var(--ink-soft); margin-left: 2px; }
.plan-save {
    display: inline-block; align-self: center;
    margin: 10px 0 0; padding: 3px 10px; border-radius: 999px;
    background: #ecf7ef; color: #1d5e2f; font-weight: 700; font-size: .88rem;
}
.plan-note { color: var(--ink-soft); font-size: .93rem; margin: 10px 0 0; }

.order-notes {
    list-style: none; margin: 26px auto 0; padding: 0;
    max-width: 760px;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
    color: var(--ink-soft); font-size: .92rem;
}
.order-notes li::before { content: "\2022"; color: var(--blue-500); margin-right: .45em; }

/* ---------- Pricing v2 (OrderSubV2 step 1, scoped to .pricing-v2) ---------- */
/* Dark full-width band behind the plan cards; the rest of the order flow keeps the light look. */
.order-section { overflow-x: clip; }
.pricing-v2 {
    position: relative;
    isolation: isolate;
    margin: -32px 0 -56px;
    padding: 36px 0 44px;
}
.pricing-v2::before {
    content: "";
    position: absolute; z-index: -1;
    top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
    background:
        radial-gradient(700px 320px at 50% 0%, rgba(80,160,255,.28), transparent 70%),
        radial-gradient(1400px 120px at 50% 100%, rgba(255,255,255,.10), transparent 70%),
        linear-gradient(165deg, var(--blue-500) 0%, var(--navy-700) 45%, var(--navy-800) 100%);
}
@media (min-width: 900px) { .pricing-v2 { margin: -56px 0 -80px; padding: 56px 0 64px; } }

/* Page titles on the dark band (Orders, Help, Contact): same face as the home page h1, a step smaller */
.pricing-v2 .page-head h1,
.page-section-dark .page-head h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -.01em; }
.pricing-v2 .page-head p { color: rgba(255,255,255,.8); }

.pricing-v2 .plans { gap: 20px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 559.98px) { .pricing-v2 .plans { max-width: 380px; } }
/* wide screens: let the 4 cards grow past the page container so the billing lines stay on one line */
@media (min-width: 900px) and (max-width: 1199.98px) {
    .pricing-v2 .plans-4 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}
@media (min-width: 1200px) {
    .pricing-v2 .plans { width: min(1240px, calc(100vw - 48px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
}

.pricing-v2 .plan-card,
.pricing-v2 .plan-featured {
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,10,30,.35);
    transform: none;
    transition: transform .2s, box-shadow .2s;
}
.pricing-v2 .plan-card:hover,
.pricing-v2 .plan-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 0 0 2px rgba(130,190,255,.6), 0 0 36px rgba(80,160,255,.55), 0 18px 40px rgba(0,10,30,.45);
}

/* coloured top with a curved bottom edge */
.pricing-v2 .plan-top {
    position: relative;
    display: flex; flex-direction: column; justify-content: center;
    min-height: 150px;
    padding: 20px 16px 26px;
    background: linear-gradient(160deg, #3d93ea 0%, var(--blue-500) 55%, var(--blue-600) 100%);
    color: #fff;
    border-bottom-right-radius: 72px 34px;
}
.pricing-v2 .plan-name { color: #fff; font-size: 1.6rem; font-weight: 700; margin: 0 0 2px; }
.pricing-v2 .plan-price { color: #fff; }
.pricing-v2 .plan-price .amount { font-size: 2.5rem; }
@media (min-width: 900px) and (max-width: 1099.98px) { .pricing-v2 .plan-price .amount { font-size: 2.1rem; } }
.pricing-v2 .plan-per {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px;
    margin: 4px 0 0; font-size: .9rem; color: rgba(255,255,255,.92);
}
.pricing-v2 .plan-save {
    margin: 0; padding: 2px 8px; border-radius: 4px;
    background: #e8541c; color: #fff;
    font-size: .8rem; font-weight: 700;
}

/* free plan: light top + a small fan of cards */
.pricing-v2 .plan-free .plan-top { background: linear-gradient(160deg, #eef1f5 0%, #dde3ea 100%); }
.pricing-v2 .plan-free .plan-deco { opacity: .75; filter: saturate(.6); }

/* 12-month "Best offer" card: primary choice - accent ring + slight scale */
.pricing-v2 .plan-featured {
    z-index: 1;
    transform: scale(1.03);
    box-shadow: 0 0 0 2px #ff6a2b, 0 0 26px rgba(255,100,40,.45), 0 14px 36px rgba(0,10,30,.45);
}
.pricing-v2 .plan-featured:hover,
.pricing-v2 .plan-featured:focus-within {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 0 0 2px #ff6a2b, 0 0 40px rgba(255,100,40,.6), 0 18px 40px rgba(0,10,30,.5);
}
/* wide screens (4 cards in a row): make the annual card clearly bigger */
@media (min-width: 1200px) {
    .pricing-v2 .plans-4 { gap: 34px; padding: 0 12px; }
    .pricing-v2 .plan-featured { transform: scale(1.1); box-shadow: 0 0 0 3px #ff6a2b, 0 0 34px rgba(255,100,40,.55), 0 20px 44px rgba(0,10,30,.5); }
    .pricing-v2 .plan-featured:hover,
    .pricing-v2 .plan-featured:focus-within { transform: scale(1.1) translateY(-8px); box-shadow: 0 0 0 3px #ff6a2b, 0 0 46px rgba(255,100,40,.7), 0 22px 48px rgba(0,10,30,.5); }
    .pricing-v2 .plan-featured .plan-price .amount { font-size: 2.8rem; }
}
.pricing-v2 .plan-free .plan-name,
.pricing-v2 .plan-free .plan-price { color: var(--navy-800); }
.pricing-v2 .plan-deco { position: absolute; right: 18px; bottom: 6px; width: 70px; height: 56px; pointer-events: none; }
.pricing-v2 .plan-deco i {
    position: absolute; left: 20px; bottom: 0;
    width: 32px; height: 46px; border-radius: 4px;
    border: 2px solid #fff;
    background: repeating-linear-gradient(45deg, #6aa6e6 0 3px, #3f80cc 3px 6px);
    box-shadow: 0 2px 6px rgba(0,25,42,.25);
    transform-origin: 50% 100%;
}
.pricing-v2 .plan-deco i:nth-child(1) { left: 6px; transform: rotate(-22deg); }
.pricing-v2 .plan-deco i:nth-child(2) { transform: rotate(0deg); }
.pricing-v2 .plan-deco i:nth-child(3) { left: 34px; transform: rotate(22deg); }

/* card body */
.pricing-v2 .plan-body {
    flex: 1 1 auto;
    display: flex; flex-direction: column;
    padding: 14px 18px 18px;
    text-align: left;
    transition: background .2s;
}
.pricing-v2 .plan-card:hover .plan-body,
.pricing-v2 .plan-card:focus-within .plan-body { background: linear-gradient(180deg, #fff 0%, var(--blue-100) 100%); }
.pricing-v2 .plan-features { list-style: none; margin: 0 0 18px; padding: 0; flex: 1 1 auto; font-size: .93rem; color: var(--navy-800); }
.pricing-v2 .plan-features li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; line-height: 1.35; }
.pricing-v2 .pf-icon {
    position: relative; flex: none;
    width: 18px; height: 18px; margin-top: 1px;
    border-radius: 50%; background: var(--navy-700);
}
.pricing-v2 .pf-info::before {
    content: "i"; display: block; text-align: center;
    color: #fff; font: 700 12px/18px Georgia, serif;
}
.pricing-v2 .pf-clock::before,
.pricing-v2 .pf-clock::after { content: ""; position: absolute; background: #fff; border-radius: 1px; }
.pricing-v2 .pf-clock::before { left: 8px; top: 4px; width: 2px; height: 6px; }
.pricing-v2 .pf-clock::after { left: 8px; top: 8px; width: 5px; height: 2px; }
.pricing-v2 .pf-billed { display: block; margin-top: 2px; font-size: .8rem; color: var(--ink-soft); }
@media (min-width: 1200px) { .pricing-v2 .pf-billed { white-space: nowrap; } }
.pricing-v2 .pf-limited .pf-icon { background: var(--accent-500); }
.pricing-v2 .pf-limited strong { color: var(--accent-500); }

/* Black Friday annual card (.plan-bf) */
@media (min-width: 900px) { .pricing-v2 .plans:has(.plan-bf) { align-items: center; } }
.pricing-v2 .plan-bf .plan-top {
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255,106,43,.38), transparent 60%),
        linear-gradient(160deg, #23232b 0%, #0b0b0e 100%);
}
.pricing-v2 .bf-tag {
    display: inline-block; align-self: center;
    margin: 0 0 8px; padding: 4px 14px; border-radius: 999px;
    background: #ff6a2b; color: #111;
    font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    animation: bf-pulse 1.8s ease-in-out infinite;
}
@keyframes bf-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,43,.65); }
    50%      { box-shadow: 0 0 0 7px rgba(255,106,43,0); }
}
.pricing-v2 .plan-was { margin: 2px 0 0; font-size: .9rem; color: rgba(255,255,255,.7); }
.pricing-v2 .plan-was s { color: #ffb08a; }
.pricing-v2 .plan-bf .plan-price .amount { color: #ff7a3d; }
.pricing-v2 .plan-bf .plan-ribbon { background: #ff6a2b; color: #111; font-weight: 800; }
.pricing-v2 .bf-note { margin: -6px 0 12px; text-align: center; font-size: .82rem; font-weight: 700; color: #c9440f; }
.btn-bf { background: linear-gradient(90deg, #e8541c, #c9440f); color: #fff; font-weight: 700; letter-spacing: .02em; }
.btn-bf:hover { background: linear-gradient(90deg, #c9440f, #a8380b); color: #fff; }
@media (prefers-reduced-motion: reduce) { .pricing-v2 .bf-tag { animation: none; } }

/* "Best offer" corner ribbon */
.pricing-v2 .plan-ribbon {
    top: 22px; right: -36px; left: auto; z-index: 2;
    width: 140px; padding: 3px 0;
    transform: rotate(45deg);
    border-radius: 0;
    background: var(--accent-500);
    font-size: .68rem; text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* 100% secure + notes */
.pricing-v2 .secure-badge {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin: 32px 0 0; color: #fff; font-size: .95rem;
}
.pricing-v2 .secure-icon {
    width: 46px; height: 46px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.75);
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3Cpath d='M9.5 16l2 2 3-3.5'/%3E%3C/svg%3E") center / 22px no-repeat,
        radial-gradient(circle at 35% 30%, #4fa3ff, var(--blue-600));
}
.pricing-v2 .order-notes { margin-top: 16px; color: rgba(255,255,255,.75); }
.pricing-v2 .order-notes li::before { color: #7fb6ff; }

/* step 2 */
.order-flow { max-width: 760px; margin: 0 auto; }
.order-summary {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue-600);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.order-summary-label { display: block; font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.order-summary-plan { font-size: 1.1rem; font-weight: 700; color: var(--navy-800); }
.order-summary-sep { margin: 0 .35em; color: var(--ink-soft); }
@media (max-width: 559.98px) {
    .order-summary-sep { display: none; }
    .order-summary-plan .lblSubPrice { display: block; }
    .order-notes { flex-direction: column; align-items: center; text-align: center; }
}

.choice-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 20px; }
.choice-card {
    display: flex; flex-direction: column; gap: 4px;
    background: #fff; color: var(--ink) !important;
    border: 2px solid var(--line); border-radius: var(--radius);
    padding: 22px 20px;
    text-decoration: none !important;
    box-shadow: var(--shadow);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.choice-card:hover, .choice-card:focus-visible { border-color: var(--blue-500); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.choice-icon { font-size: 1.6rem; line-height: 1; color: var(--blue-600); margin-bottom: 6px; }
.choice-card:last-child .choice-icon { color: var(--accent-500); }
.choice-title { font-size: 1.15rem; font-weight: 700; color: var(--navy-800); }
.choice-text { color: var(--ink-soft); }
.choice-cta { margin-top: 8px; font-weight: 600; color: var(--blue-500); }

.form-card-wide { padding: 24px 18px; margin-bottom: 20px; }
.form-card-wide:hover { transform: none; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card-wide { padding: 32px 32px; } }
.form-card-wide h2, .form-title { font-size: 1.4rem; margin-bottom: .2em; }
.form-card-wide > .muted { margin-bottom: 20px; }

.form-grid { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .form-row { min-width: 0; }
.form-row select { width: 100%; max-width: 100%; }
.form-label { font-weight: 600; font-size: .95rem; }
.field-hint { font-size: .85rem; color: var(--ink-soft); }
.form-row input[readonly] { background: var(--bg-alt); color: var(--ink-soft); }

/* ASP.NET CheckBox renders <span><input><label></span> */
.form-check > span { display: flex; align-items: flex-start; gap: 10px; }
.form-check > span input[type=checkbox] { flex: 0 0 auto; margin-top: 3px; }
.form-check label { line-height: 1.45; }
.form-check a { text-decoration: underline; }

.recaptcha-row { margin-top: 6px; }
.recaptcha-wrap { min-height: 78px; }
@media (max-width: 380px) {
    /* reCAPTCHA is a fixed 304px wide - shrink it on very narrow phones */
    .recaptcha-wrap { height: 64px; min-height: 0; }
    .recaptcha-wrap .g-recaptcha { transform: scale(.82); transform-origin: 0 0; }
}

.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
@media (max-width: 559.98px) { .order-actions .btn { width: 100%; } }

/* step 3 */
.post-signup { max-width: 680px; margin: 0 auto; padding: 28px 22px; }
.post-signup:hover { transform: none; box-shadow: var(--shadow); }
@media (min-width: 640px) { .post-signup { padding: 36px 40px; } }
.post-signup h2 { color: #1d5e2f; }
.post-signup-msg { display: block; font-weight: 700; font-size: 1.1rem; color: #1d5e2f; }
.post-signup-msg:empty { display: none; }
.post-steps { padding-left: 1.3em; margin: 0 0 1em; }
.post-steps li { margin-bottom: 4px; }
.post-signup-actions { margin-top: 24px; }
.alert-info { background: var(--blue-100); color: var(--navy-800); border: 1px solid #c9dcef; }

/* ---------- Content pages (SiteHelpV2, TermsOfUseV2) ---------- */
.page-section {
    padding: 32px 0 56px;
    background:
        radial-gradient(900px 380px at 100% 0%, var(--blue-100), transparent 70%),
        var(--bg-alt);
}
@media (min-width: 900px) { .page-section { padding: 56px 0 80px; } }

/* Dark variant: same blue/navy band as the Orders page (.pricing-v2).
   Used by Contact and Help; cards on top stay white. */
.page-section-dark {
    background:
        radial-gradient(700px 320px at 50% 0%, rgba(80,160,255,.28), transparent 70%),
        radial-gradient(1400px 120px at 50% 100%, rgba(255,255,255,.10), transparent 70%),
        linear-gradient(165deg, var(--blue-500) 0%, var(--navy-700) 45%, var(--navy-800) 100%);
}
.page-section-dark .page-head p { color: rgba(255,255,255,.8); }
.page-section-dark .contact-alt,
.page-section-dark .no-results { color: rgba(255,255,255,.8); }
.page-section-dark .contact-alt a { color: #fff; font-weight: 600; text-decoration: underline; }
.page-section-dark .card,
.page-section-dark .faq-item,
.page-section-dark .search-box { box-shadow: 0 10px 30px rgba(0,10,30,.35); }
.page-section-dark .faq-item { border-color: transparent; }

/* Help / FAQ (content comes from Help/FAQ.html) */
.faq-container { max-width: 860px; margin: 0 auto; }
.search-wrapper { position: relative; max-width: 560px; margin: 0 auto 16px; }
.search-icon {
    position: absolute; top: 50%; left: 16px; transform: translateY(-50%);
    font-size: 17px; line-height: 1; opacity: .65; pointer-events: none;
}
.search-box {
    width: 100%;
    padding: 14px 18px 14px 46px;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    -webkit-appearance: none; appearance: none;
}
.search-box::placeholder { color: #8a94a3; }
.search-box:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(20,98,168,.18); }

.quick-search { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }
.quick-search button {
    font: inherit; font-size: .92rem; font-weight: 600; line-height: 1.2;
    min-height: 40px; padding: .5em 1.05em;
    color: var(--blue-600); background: #fff;
    border: 1px solid var(--line); border-radius: 999px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.quick-search button:hover { background: var(--blue-100); border-color: #c9dcef; }
.quick-search button.active-filter,
.quick-search button.active-filter:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.quick-search #resetSearchBtn { color: var(--ink-soft); }

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,25,42,.05);
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.faq-item.active { border-color: #c9dcef; box-shadow: var(--shadow); }
.faq-question {
    width: 100%;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    font: inherit; font-size: 1.02rem; font-weight: 600; line-height: 1.4;
    color: var(--navy-800); text-align: left;
    background: none; border: 0; cursor: pointer;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-item.active .faq-question { background: var(--blue-100); }
.question-text { display: flex; align-items: center; gap: 12px; }
.question-icon { flex: 0 0 auto; width: 1.5em; font-size: 1.2rem; line-height: 1; text-align: center; }
.faq-question::after {
    content: "";
    flex: 0 0 auto; margin-left: auto;
    width: 9px; height: 9px;
    border-right: 2px solid var(--blue-500); border-bottom: 2px solid var(--blue-500);
    transform: translateY(-3px) rotate(45deg);
    transition: transform .2s;
}
.faq-item.active .faq-question::after { transform: translateY(2px) rotate(-135deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
    padding: 0 18px 0 62px;
    color: var(--ink-soft);
}
.faq-item.active .faq-answer { padding-top: 14px; padding-bottom: 18px; }
.faq-answer p { margin: 0 0 .75em; }
.faq-answer > :last-child, .faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol { margin: 0 0 .75em; padding-left: 1.3em; }
.faq-answer li { margin-bottom: 4px; }
.faq-answer strong { color: var(--ink); }
.faq-answer a { font-weight: 600; text-decoration: underline; }
.no-results { display: none; text-align: center; color: var(--ink-soft); padding: 24px 0; margin: 0; }
.highlight-search { background: #fff1a8; color: inherit; border-radius: 2px; }
@media (max-width: 599.98px) {
    .faq-question { padding: 14px 16px; font-size: 1rem; gap: 10px; }
    .faq-answer { padding-left: 16px; padding-right: 16px; }
}

.help-contact {
    max-width: 860px; margin: 32px auto 0; padding: 22px 20px;
    flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.help-contact:hover { transform: none; box-shadow: var(--shadow); }
.help-contact h2 { font-size: 1.2rem; margin: 0 0 .2em; }
.help-contact p { margin: 0; color: var(--ink-soft); }
@media (min-width: 700px) {
    .help-contact { flex-direction: row; justify-content: space-between; text-align: left; padding: 24px 28px; }
}

/* Terms and Conditions */
.legal-layout { display: grid; gap: 20px; max-width: 1040px; margin: 0 auto; }
.legal-toc { padding: 18px 20px; }
.legal-toc:hover { transform: none; box-shadow: var(--shadow); }
.legal-toc h2 {
    font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--ink-soft); margin: 0 0 6px;
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 24px; }
.legal-toc li { break-inside: avoid; }
.legal-toc a { display: block; padding: 6px 0; font-size: .93rem; line-height: 1.35; color: var(--blue-600); }
.legal-doc { padding: 24px 20px; display: block; }
.legal-doc:hover { transform: none; box-shadow: var(--shadow); }
.legal-doc h2 {
    font-size: 1.3rem; margin: 1.8em 0 .5em; padding-top: 1.2em;
    border-top: 1px solid var(--line);
    scroll-margin-top: 84px;
}
.legal-doc h3 { font-size: 1.05rem; margin: 1.4em 0 .4em; color: var(--blue-600); }
.legal-doc ul, .legal-doc ol { margin: 0 0 1em; padding-left: 1.4em; }
.legal-doc li { margin-bottom: 6px; }
.legal-intro { font-size: 1.05rem; }
.legal-intro p:last-child { margin-bottom: 0; }
.legal-contact { margin: 2em 0 0; padding: 16px 18px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.legal-contact a { font-weight: 600; }
@media (min-width: 640px) { .legal-doc { padding: 36px 40px; } }
@media (min-width: 960px) {
    .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
    .legal-toc { position: sticky; top: 88px; }
    .legal-toc ol { columns: 1; }
}

/* ---------- Touch targets (phones / tablets) ---------- */
/* Small inline links get a larger hit area without changing the layout much */
@media (max-width: 899.98px) {
    .footer-links a,
    .promo-banner .promo-link,
    .link-small,
    .auth-switch a {
        display: inline-block;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-top: -6px;
        margin-bottom: -6px;
    }
    .footer-links { gap: 0 20px; }
    .form-check label a { display: inline-block; padding: 8px 0; margin: -8px 0; }
    .form-check { min-height: 44px; margin: 0 0 14px; }
    .form-check input[type=checkbox] { width: 22px; height: 22px; }
    .form-check label { padding: 10px 0; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
