/* ==========================================================================
   VALUE CLUB - design system
   --------------------------------------------------------------------------
   Palette      deep pine ink + value jade + coupon gold on warm cream
   Motif        the coupon ticket: notched edges and gold perforation dots
   Type         Plus Jakarta Sans (display + text), system fallbacks
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
    /* Brand */
    --ink:        #062B29;   /* deep pine - headings, dark sections */
    --ink-soft:   #0E3F3B;   /* raised surfaces on dark                */
    --jade:       #00B37E;   /* the "go" colour - buttons, the V       */
    --jade-deep:  #008C61;   /* jade for large type on light           */
    --jade-text:  #00674A;   /* jade that passes AA at body size       */
    --gold:       #FFC53D;   /* coupon gold - accents, perforations    */
    --gold-deep:  #E0A61F;

    /* Neutrals */
    --cream:      #FFF8EC;   /* page base - warm paper                 */
    --cream-deep: #F7EEDD;   /* alternating band                       */
    --paper:      #FFFFFF;   /* cards                                  */
    --line:       #E7DFCE;   /* hairlines on cream                     */
    --line-dark:  #1C4E49;   /* hairlines on ink                       */
    --body:       #3E5451;   /* body copy                              */
    --muted:      #6B807C;   /* secondary copy                         */

    /* Feedback */
    --danger:     #C0392B;
    --danger-bg:  #FDECEA;

    /* Elevation - warm-tinted, never grey */
    --shadow-sm:  0 1px 2px rgba(6, 43, 41, .06),
                  0 2px 6px rgba(6, 43, 41, .05);
    --shadow-md:  0 2px 4px rgba(6, 43, 41, .05),
                  0 8px 24px rgba(6, 43, 41, .08);
    --shadow-lg:  0 4px 8px rgba(6, 43, 41, .05),
                  0 18px 48px rgba(6, 43, 41, .12);

    /* Geometry */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    /* Rhythm */
    --gut:      clamp(20px, 5vw, 40px);
    --section:  clamp(64px, 9vw, 112px);
    --maxw:     1180px;

    --font: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont,
            Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* The header is sticky, so anything reached by a #fragment must reserve room
   for it or the target lands underneath. */
:target,
[id] { scroll-margin-top: 96px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--body);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.022em;
}

p { margin: 0; }

a { color: var(--jade-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* Visible focus everywhere, but only for keyboard users. */
:focus-visible {
    outline: 3px solid var(--jade);
    outline-offset: 3px;
    border-radius: 4px;
}

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

.skip-link {
    position: absolute; left: 50%; top: 0; z-index: 100;
    transform: translate(-50%, -120%);
    background: var(--ink); color: var(--cream);
    padding: 12px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm);
    font-weight: 700; text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--cream); }

/* --- Layout primitives -------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gut);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section--band  { background: var(--cream-deep); }
.section--ink   { background: var(--ink); }

.section--ink h2,
.section--ink h3 { color: var(--cream); }
.section--ink p  { color: rgba(255, 248, 236, .76); }

/* --- Logo lockup -------------------------------------------------------- */
.vc-lockup {
    display: inline-flex;
    align-items: center;
    gap: .58em;
    font-size: 21px;              /* drives the whole lockup */
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.vc-lockup__mark { height: 1.95em; width: auto; flex: none; }
.vc-lockup__word {
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink);
}
.vc-lockup__word span { color: var(--jade-deep); margin-left: .28em; }
.vc-lockup--light .vc-lockup__word       { color: var(--cream); }
.vc-lockup--light .vc-lockup__word span  { color: var(--jade); }
a.vc-lockup:hover .vc-lockup__word { color: var(--ink); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;          /* a button label must never wrap */
    transition: transform .16s ease, box-shadow .16s ease,
                background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }

/* Jade fill with ink text: high contrast and unmistakably the primary action. */
.btn--primary {
    background: var(--jade);
    color: var(--ink);
    box-shadow: 0 2px 0 var(--jade-deep), var(--shadow-sm);
}
.btn--primary:hover {
    background: #00c78c;
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--jade-deep), var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); box-shadow: 0 1px 0 var(--jade-deep); }

.btn--ghost {
    background: transparent;
    border-color: rgba(6, 43, 41, .18);
    color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(6, 43, 41, .04); color: var(--ink); }

.btn--onink {
    background: transparent;
    border-color: rgba(255, 248, 236, .28);
    color: var(--cream);
}
.btn--onink:hover { border-color: var(--cream); background: rgba(255, 248, 236, .08); color: var(--cream); }

.btn--block { width: 100%; }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* --- Header ------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 248, 236, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 4px 20px rgba(6, 43, 41, .06);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.site-nav__links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.site-nav a {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    opacity: .78;
}
.site-nav a:hover { opacity: 1; }
.site-nav .btn { font-size: 15px; padding: 12px 22px; }

@media (max-width: 820px) {
    .site-nav__links { display: none; }
}

/* Below this the header runs out of room: shrink the lockup and drop the
   second word of the button label so the two can never collide. */
@media (max-width: 560px) {
    .site-header__inner { min-height: 66px; gap: 12px; }
    .site-header .vc-lockup { font-size: 18px; }
    .site-nav .btn { font-size: 14.5px; padding: 11px 18px; }
    .btn__extra { display: none; }
}

/* --- Eyebrow / launch pill --------------------------------------------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: rgba(0, 179, 126, .13);
    color: var(--jade-text);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.pill__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--jade);
    box-shadow: 0 0 0 4px rgba(0, 179, 126, .18);
    animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(0, 179, 126, .16); }
    50%      { box-shadow: 0 0 0 7px rgba(0, 179, 126, .05); }
}
.pill--ink { background: rgba(255, 197, 61, .16); color: var(--gold); }
.pill--ink .pill__dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 197, 61, .18); }

/* --- Hero --------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(52px, 7vw, 92px) clamp(64px, 8vw, 104px);
}
/* Soft jade glow behind the hero, and a faint ticket-dot texture. */
.hero::before {
    content: "";
    position: absolute;
    top: -280px; right: -180px;
    width: 760px; height: 760px;
    background: radial-gradient(circle, rgba(0, 179, 126, .16), transparent 62%);
    pointer-events: none;
}
.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.hero h1 {
    margin-top: 22px;
    font-size: clamp(38px, 6.4vw, 66px);
    letter-spacing: -.035em;
}
.hero h1 em {
    font-style: normal;
    color: var(--jade-deep);
    /* A gold rule under the phrase, echoing the coupon perforation.
       A real underline rather than a background sweep, so the offset can be
       measured from the baseline: 0.28em clears the descender of the "y" and
       leaves a visible gap, and it follows the text if the line ever rewraps. */
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: .11em;
    text-underline-offset: .28em;
    text-decoration-skip-ink: none;
    /* Keep the phrase on one line so the rule never breaks mid-word. */
    white-space: nowrap;
}
.hero__lead {
    margin-top: 22px;
    max-width: 33em;
    font-size: clamp(17px, 1.6vw, 19.5px);
    color: var(--body);
}
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}
.hero__note {
    margin-top: 18px;
    font-size: 14px;
    color: var(--muted);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    list-style: none;
    padding-inline: 0;
}
.chips li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
}
.chips svg { width: 17px; height: 17px; color: var(--jade-deep); flex: none; }

@media (max-width: 900px) {
    /* Copy first, art after. The coupon cards are decorative, so leading with
       them on a phone pushes the headline and the CTA below the fold. */
    .hero__grid { grid-template-columns: 1fr; }
    .hero__art  { margin-top: 8px; }
}

@media (max-width: 560px) {
    /* Equal, full-width tap targets instead of two ragged pills. */
    .hero__cta { flex-direction: column; align-items: stretch; }
    .hero__cta .btn { width: 100%; }
}

/* --- Coupon cards (hero art) ------------------------------------------- */
.hero__art { position: relative; }
.coupon-stack {
    position: relative;
    display: grid;
    gap: 16px;
    max-width: 400px;
    margin-inline: auto;
}

/* The signature component: a ticket with notched sides and a perforated tear. */
.coupon {
    position: relative;
    background: var(--paper);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    align-items: center;
    /* Notches cut from the left and right edges at the vertical midpoint. */
    --notch: 13px;
    mask:
        radial-gradient(circle var(--notch) at left  50%, transparent 98%, #000 100%) left  / 50.5% 100% no-repeat,
        radial-gradient(circle var(--notch) at right 50%, transparent 98%, #000 100%) right / 50.5% 100% no-repeat;
    -webkit-mask:
        radial-gradient(circle var(--notch) at left  50%, transparent 98%, #000 100%) left  / 50.5% 100% no-repeat,
        radial-gradient(circle var(--notch) at right 50%, transparent 98%, #000 100%) right / 50.5% 100% no-repeat;
    transition: transform .28s cubic-bezier(.2, .8, .3, 1),
                box-shadow .28s cubic-bezier(.2, .8, .3, 1);
}

/* The cards sit square and evenly spaced - the movement is the hover, not a
   permanent tilt. */
.coupon:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.coupon__icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: rgba(0, 179, 126, .12);
    color: var(--jade-text);
}
.coupon__icon svg { width: 24px; height: 24px; }

.coupon__text { min-width: 0; }
.coupon__label {
    display: block;
    font-size: 11px; font-weight: 800;
    letter-spacing: .11em; text-transform: uppercase;
    color: var(--muted);
}
.coupon__name {
    display: block;
    margin-top: 2px;
    font-size: 16.5px; font-weight: 800;
    color: var(--ink); letter-spacing: -.02em;
    line-height: 1.25;
}
/* The "members only" tag is the last item in the stack grid rather than an
   absolutely positioned sticker, so it can never overlap a card and it stays
   centred on every width. */
.coupon-stack__tag {
    justify-self: center;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: var(--shadow-sm);
}
.coupon-stack__tag svg { width: 15px; height: 15px; }

/* --- Perforation divider ------------------------------------------------ */
.perf {
    height: 1px;
    background-image: linear-gradient(90deg, var(--gold-deep) 0 8px, transparent 8px 20px);
    background-size: 20px 1px;
    background-repeat: repeat-x;
    opacity: .5;
    border: 0;
    margin: 0;
}
.perf--ink { background-image: linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 20px); opacity: .34; }

/* --- Section headings --------------------------------------------------- */
.head { max-width: 46rem; }
.head--centre { margin-inline: auto; text-align: center; }
.head__eyebrow {
    display: block;
    margin-bottom: 14px;
    font-size: 13px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--jade-text);
}
.section--ink .head__eyebrow { color: var(--gold); }
.head h2 { font-size: clamp(29px, 3.9vw, 42px); }
.head p  { margin-top: 16px; font-size: 17.5px; }

/* --- Card grids --------------------------------------------------------- */
.grid {
    display: grid;
    gap: 22px;
    margin-top: 46px;
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 179, 126, .34);
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p  { font-size: 16px; }
.card__icon {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    margin-bottom: 20px;
    border-radius: 15px;
    background: rgba(0, 179, 126, .12);
    color: var(--jade-text);
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--gold { background: rgba(255, 197, 61, .22); color: #8A6410; }

/* --- Steps -------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 46px;
    counter-reset: step;
}
.step {
    position: relative;
    background: var(--paper);
    border-radius: var(--r-lg);
    padding: 34px 28px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
.step__num {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--gold);
    font-size: 17px; font-weight: 800;
}
.step h3 { font-size: 19px; margin-bottom: 9px; }
.step p  { font-size: 16px; }
/* Perforated tear along the top of each step, echoing the coupon motif. */
.step::before {
    content: "";
    position: absolute;
    inset: 0 26px auto 26px;
    top: 0;
    height: 3px;
    background-image: linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 15px);
    background-size: 15px 3px;
    border-radius: 0 0 3px 3px;
}

/* --- Category tiles ----------------------------------------------------- */
/* Eight categories, so a fixed 4x2 / 2x4 grid reads far tidier than auto-fit
   (which orphans two tiles on a wide screen). */
.cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 44px;
    list-style: none;
    padding: 0;
}
@media (max-width: 860px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Two columns hold down to ~380px; below that the labels get too cramped. */
@media (max-width: 380px) { .cats { grid-template-columns: 1fr; } }
.cats li {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: border-color .18s ease, transform .18s ease;
}
.cats li:hover { border-color: rgba(0, 179, 126, .4); transform: translateY(-2px); }
.cats svg { width: 22px; height: 22px; color: var(--jade-text); flex: none; }

/* --- Countdown ---------------------------------------------------------- */
/* A grid, not wrapping flex: four equal tiles that stay aligned, dropping to
   a tidy 2x2 rather than an orphaned "seconds" on its own row. */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    list-style: none;
    padding: 0;
}
@media (max-width: 620px) {
    .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.countdown li {
    padding: 18px 12px;
    border-radius: var(--r-md);
    background: var(--ink-soft);
    border: 1px solid var(--line-dark);
    text-align: center;
}
.countdown b {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--cream);
    font-variant-numeric: tabular-nums;
}
.countdown span {
    display: block;
    margin-top: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 248, 236, .58);
}

.ink-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}
@media (max-width: 880px) { .ink-split { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.ticks li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 13px;
    align-items: start;
    font-size: 16.5px;
    color: rgba(255, 248, 236, .82);
}
.ticks svg {
    width: 26px; height: 26px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(0, 179, 126, .18);
    color: var(--jade);
    flex: none;
}

/* --- Register / form ---------------------------------------------------- */
.register { position: relative; }
.register__grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
}
@media (max-width: 940px) { .register__grid { grid-template-columns: 1fr; } }

.form-card {
    position: relative;
    background: var(--paper);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    padding: clamp(26px, 3.4vw, 40px);
}
/* Gold perforation strip along the top edge - this is a coupon too. */
.form-card::before {
    content: "";
    position: absolute;
    inset: 0 30px auto 30px;
    height: 4px;
    background-image: linear-gradient(90deg, var(--gold) 0 7px, transparent 7px 17px);
    background-size: 17px 4px;
    border-radius: 0 0 4px 4px;
}

.field { margin-top: 20px; }
.field:first-of-type { margin-top: 0; }

.field > label,
.fieldset > legend {
    display: block;
    margin-bottom: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.005em;
}
.field .opt { font-weight: 500; color: var(--muted); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea,
.captcha input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    background: #FDFBF6;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
    appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E5451' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 44px;
    cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.captcha input[type="text"]:focus {
    outline: none;
    background: var(--paper);
    border-color: var(--jade);
    box-shadow: 0 0 0 4px rgba(0, 179, 126, .16);
}
.field input::placeholder,
.captcha input::placeholder { color: #9AAAA7; }

.field--pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 560px) { .field--pair { grid-template-columns: 1fr; } }

/* Inline validation */
.field.has-error input,
.field.has-error select { border-color: var(--danger); background: var(--danger-bg); }
.field__err {
    display: none;
    margin-top: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--danger);
}
.field.has-error .field__err { display: block; }

/* Consent checkbox */
.check {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 13px;
    align-items: start;
    margin-top: 24px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--body);
    cursor: pointer;
}
.check input {
    width: 22px; height: 22px; margin: 1px 0 0;
    accent-color: var(--jade-deep);
    cursor: pointer;
}
.check.has-error { color: var(--danger); }

/* Honeypot - hidden from people, visible to naive bots. */
.hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important; height: 1px !important;
    overflow: hidden !important;
}

/* --- CAPTCHA ------------------------------------------------------------ */
.captcha {
    margin-top: 24px;
    padding: 20px;
    background: #FDFBF6;
    border: 1.5px dashed var(--line);
    border-radius: var(--r-md);
}
.captcha__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.captcha__label { font-size: 14.5px; font-weight: 700; color: var(--ink); }
/* Stacked rather than side by side: the form column is narrow between roughly
   940px and 1250px, and a 220px image beside an input squeezed the field down
   to about 100px there. Stacking is predictable at every width. */
.captcha__row {
    display: grid;
    gap: 14px;
    /* Matches the CAPTCHA image width so the code and the input it belongs to
       line up as a single block rather than two loose elements. */
    max-width: 300px;
}
.captcha__box {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* width + aspect-ratio rather than a fixed height: on a narrow phone the
   global img{max-width:100%} shrinks the width, and a fixed height would
   stretch the code out of shape. */
.captcha__img {
    display: block;
    width: 100%;
    max-width: 300px;              /* the PNG's natural size - never upscaled */
    height: auto;
    aspect-ratio: 300 / 80;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--line);
    background: var(--cream);
}
.captcha__sum {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 260px;
    height: 64px;
    padding-inline: 18px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--line);
    background: var(--cream);
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .01em;
}
.captcha__refresh {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    transition: transform .3s ease, border-color .16s ease, color .16s ease;
}
.captcha__refresh:hover { border-color: var(--jade); color: var(--jade-text); }
.captcha__refresh.is-spinning { transform: rotate(360deg); }
.captcha__refresh svg { width: 18px; height: 18px; }
.captcha__hint { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* The code input sits outside .field, so it needs the error state wiring too. */
.captcha input[type="text"] {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .12em;
}
.captcha input[type="text"]::placeholder {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.captcha.has-error input[type="text"] {
    border-color: var(--danger);
    background: var(--danger-bg);
}
.captcha.has-error .field__err { display: block; }

/* --- Form status -------------------------------------------------------- */
.form-status {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: var(--r-sm);
    font-size: 15px;
    font-weight: 600;
    display: none;
}
.form-status.is-error {
    display: block;
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(192, 57, 43, .28);
}
.form-status.is-ok {
    display: block;
    background: rgba(0, 179, 126, .12);
    color: var(--jade-text);
    border: 1px solid rgba(0, 179, 126, .34);
}

.form-foot { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Success panel that replaces the form after a successful submit. */
.form-done { display: none; text-align: center; padding: 22px 8px 12px; }
.form-done.is-visible { display: block; }
.form-done__mark {
    width: 74px; height: 74px;
    margin: 0 auto 22px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(0, 179, 126, .14);
    color: var(--jade-text);
}
.form-done__mark svg { width: 36px; height: 36px; }
.form-done h3 { font-size: 25px; margin-bottom: 12px; }
.form-done p  { font-size: 16.5px; max-width: 30em; margin-inline: auto; }
.is-submitted .form-card__body { display: none; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { max-width: 820px; margin: 46px auto 0; }
.faq details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq details[open] { border-color: rgba(0, 179, 126, .34); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    width: 12px; height: 12px;
    flex: none;
    border-right: 2.4px solid var(--jade-deep);
    border-bottom: 2.4px solid var(--jade-deep);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .faq__body { padding: 0 24px 22px; font-size: 16px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 248, 236, .7);
    padding-block: clamp(48px, 6vw, 72px) 32px;
    font-size: 15px;
}
.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* Without this the columns stretch to the tallest block and their rows
       get pushed apart by align-content: stretch. */
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 34px;
}
.site-footer__blurb { max-width: 34ch; margin-top: 18px; }
.site-footer__contact {
    display: grid;
    align-content: start;
    gap: 10px;
}
.site-footer h4 {
    color: var(--cream);
    font-size: 13px;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.site-footer a { color: var(--cream); font-weight: 600; }
.site-footer a:hover { color: var(--gold); }
/* In-page jump links read cleaner without a rule under every one. */
.site-footer__contact a[href^="#"] { text-decoration: none; }
.site-footer__contact a[href^="#"]:hover { text-decoration: underline; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding-top: 28px;
    border-top: 1px solid var(--line-dark);
    font-size: 13.5px;
    color: rgba(255, 248, 236, .5);
}

/* --- Print -------------------------------------------------------------- */
@media print {
    .site-header, .hero__art, .captcha, .btn { display: none !important; }
    body { background: #fff; }
}
