/* ============================================================
   Inglés Sin Guion — design system
   Navy + sand + gold. Editorial layout, quiet motion.
   ============================================================ */

:root {
    /* palette */
    --navy-900: #04182b;
    --navy-800: #0a2540;
    --navy-700: #003580;
    --navy-600: #0b3f8f;
    --navy-400: #3f6fc4;
    --navy-100: #dce7f8;

    --sand-100: #fbf9f4;
    --sand-200: #f4efe3;
    --sand-300: #e8dfcb;
    --sand-400: #d6c9ab;

    --gold-500: #c9a227;
    --gold-400: #dfbb45;
    --gold-300: #efd582;
    /* darker bronze reserved for small text and for white-on-gold surfaces.
       #c9a227 measures 2.30:1 on sand, which fails WCAG AA badly at 0.7rem;
       these two clear 4.5:1 on every light surface used here. */
    --gold-ink: #7d6418;   /* 5.38 on sand-100, 4.94 on sand-200 */
    --gold-deep: #856b1a;  /* 5.10 with white text on it */

    --ink: #14202e;
    --ink-soft: #46586b;
    --ink-mute: #626c76;   /* was #7b8794 = 3.48:1 on sand, now 5.08:1 */

    /* roles. named as tokens rather than left as raw palette references so the
       dark block can remap them; the light values are the palette entries. */
    --bg: var(--sand-100);
    --surface: #ffffff;
    --line: rgba(20, 32, 46, 0.1);
    --line-strong: rgba(20, 32, 46, 0.18);

    /* the sticky header is translucent so content shows through it, and
       becomes more opaque once stuck. dark mode needs translucent-DARK, so
       both are tokens rather than hardcoded rgba */
    --header-bg: rgba(251, 249, 244, 0.82);
    --header-bg-solid: rgba(251, 249, 244, 0.94);

    /*
     * Text tokens.
     *
     * --heading exists because h1..h4 painted themselves with the raw palette
     * step --navy-800. In dark mode --surface becomes that same navy, so the
     * headings landed on exactly their own colour: measured 1.00:1, which is
     * invisible rather than merely low contrast. Light value is unchanged, so
     * this is invisible to anyone on the light theme.
     */
    --heading: var(--navy-800);

    /*
     * Surface tokens for panels that used a raw sand step and were therefore
     * never themed. Each dark override previously themed the TEXT over one of
     * these without theming the SURFACE, which is what produced 1.09:1 and
     * 1.19:1. Tokenising the surface lets both halves flip together.
     */
    --drawer-bg: var(--sand-100);
    --plate-bg: var(--sand-200);
    --card-raised: var(--surface);

    /*
     * Small raised surfaces: the step-number disc, the WhatsApp pill list, the
     * photo frame, card icons. Each was a raw sand step, so all of them stayed
     * pale in dark mode while the text on them flipped to a light palette.
     * Measured 1.19:1 and 1.88:1 in dark before this token.
     */
    --chip-bg: var(--sand-200);
    --sand-hover: var(--sand-200);

    /* the label on a secondary button. --navy-700 on navy was 1.56:1 */
    --on-btn-secondary: var(--navy-700);

    /* the hover fill for a secondary button. Light uses navy-100 as it always
       has. Dark cannot: the label becomes navy-100 there too, so a navy-100
       fill measured 1.00:1 — an invisible button on hover. The dark value is a
       step off the surface ladder, giving 10.78:1. */
    --btn-secondary-hover: var(--navy-100);

    /* the label on a gold fill. The fill flips from a deep bronze in light
       (#856b1a, 5.10:1 with white) to a bright gold in dark (#dfbb45, only
       1.85:1 with white), so the label must invert with it. Same polarity trap
       as --navy and --card. */
    --on-gold-deep: #ffffff;

    /*
     * Every text role that used to be written as a raw palette step.
     *
     * The sweep that finished this is the whole reason 20 per-selector dark
     * overrides existed: a rule writing `color: var(--navy-800)` does not
     * follow the theme, because --navy-800 is a fixed palette entry. In dark
     * those rules put navy text on a navy surface and measured 1.00:1.
     *
     * --heading already existed for exactly this and 11 rules bypassed it.
     * --section-band is the surface half: `.section--sand` set a raw
     * `--sand-200`, so the band stayed pale in dark while its text flipped.
     */
    /* the quiz progress bar: a track and a fill. A step change has to be
       visible, so the fill clears 3:1 against the track (8.70:1 here) and the
       track against the page (WCAG 1.4.11, 1.26:1 here — the track is bounded by
       its own shape and the fill carries the reading, so the page separation is
       held by the bar outline instead). */
    --track: #e8dfcb;
    --progress-fill: var(--navy-700);

    --section-band: var(--sand-200);

    /*
     * The featured plan and the selected quiz option are a distinct surface in
     * dark mode only. In light they are the same navy they have always been, so
     * these two tokens exist purely to give dark a step of elevation; defining
     * them here means the light rules need no override of their own.
     */
    --surface-featured: var(--navy-800);
    --surface-selected: var(--navy-800);

    /* text on a gold surface. The featured-plan flag and the CTA both sit on
       gold; in dark the gold stays bright, so a light heading colour would read
       at 1.49:1. --navy-800 on --gold-400 is 4.96:1 and is also what the light
       theme has always used. */
    --on-gold-surface: var(--navy-800);

    /* the proof figures are a lighter navy than a heading (#003580 vs #0a2540).
       Both clear AA in light, so this keeps its own token rather than being
       folded into --heading and shifting the light rendering. */
    --proof-value-ink: var(--navy-700);

    /*
 * Hairlines and scrollbar parts.
 *
 * --sand-400 (#d6c9ab) was never remapped in dark, so the step-number disc
 * kept a pale ring on a navy chip and the scrollbar thumb stayed a light bar
 * on a dark page. daily.css already solved this with an --edge-* family; this
 * is the same fix for the main site.
 */
    --edge-hairline: var(--sand-400);
    --scroll-thumb: var(--sand-400);
    --scroll-track: var(--chip-bg);

    /* the gradient that caps the process section. Both stops are pale sand in
       light and a warm dark gold in dark. */
    --gold-fade: var(--sand-400);

/* a translucent wash laid OVER a surface, as distinct from a filled
       surface. --sand-hover is a fill: navy-800 on a navy-900 page would make
       a hover state invisible, which is why the two had to be separate. */
    --hover-wash: rgba(20, 32, 46, 0.06);
    --btn-ghost-hover: var(--sand-300);

    /* the gold CTA's glow is a per-theme literal with no token */
    --shadow-gold: 0 10px 30px rgba(201, 162, 39, 0.28);

    /* type */
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* rhythm */
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4.5rem, 11vw, 9rem);
    --measure: 62ch;
    --shell: 74rem;

    /* motion */
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    /* elevation */
    --shadow-sm: 0 1px 2px rgba(4, 24, 43, 0.04), 0 2px 8px rgba(4, 24, 43, 0.04);
    --shadow-md: 0 4px 12px rgba(4, 24, 43, 0.06), 0 12px 32px rgba(4, 24, 43, 0.06);
    --shadow-lg: 0 8px 24px rgba(4, 24, 43, 0.08), 0 32px 64px rgba(4, 24, 43, 0.1);
    --shadow-navy: 0 24px 60px rgba(4, 24, 43, 0.28);
}

/*
 * DARK THEME
 *
 * The palette is already built on a navy scale, so dark mode promotes the
 * colours the light theme uses for its navy sections to page level rather than
 * inventing a new palette.
 */
[data-theme="dark"] {
    color-scheme: dark;

    --bg: var(--navy-900);
    /*
     * Surfaces are a LADDER, not one value. --surface used to be navy-800, and
     * --section-band was navy-800 too, so the section band, the plain plan
     * cards and the featured card all rendered the same colour and merged into
     * the page with no separation.
     *
     * On a dark ground elevation reads as going LIGHTER, so the ordering is
     * deliberately inverted from light mode. Adjacent levels separate at
     * 1.09 / 1.22 / 1.14:1, and every text token clears AA on all four:
     *   page      #04182b  heading 14.38  soft 8.33
     *   band      #0d2036  heading 13.18  soft 7.64
     *   card      #12304f  heading 10.78  soft 6.25
     *   featured  #16395d  heading  9.47  soft 5.49
     */
    /* the quiz progress bar. A dark fill on a dark page was the first choice
       (3.35:1 vs the track) but reads as a hole punched in the bar, not as
       progress. Inverted: the fill is the bright one. --track 3.35:1 against the
       page, --progress-fill 4.30:1 against the track. */
    --track: #2f6ea8;
    --progress-fill: #dce7f8;

    --section-band: #0d2036;
    --surface: #12304f;
    --surface-featured: #16395d;
    /* the selected quiz option was --navy-800, which IS the unselected
       background, so the selected state was invisible in dark mode. */
    --surface-selected: #245687;
    --on-gold-surface: var(--navy-800);
    --ink: var(--navy-100);
    --ink-soft: #9fb3c8;
    --ink-mute: #8fa3b8;

    --line: rgba(220, 231, 248, 0.14);
    --line-strong: rgba(220, 231, 248, 0.24);
    --header-bg: rgba(4, 24, 43, 0.82);
    --header-bg-solid: rgba(4, 24, 43, 0.94);

    /* #7d6418 clears 4.5:1 on sand, but drops below 3:1 on navy */
    --gold-ink: var(--gold-300);
    --gold-deep: #dfbb45;

    /* the panel surfaces above, now dark */
    --heading: var(--navy-100);
    --drawer-bg: var(--navy-800);
    --plate-bg: var(--navy-800);
    --card-raised: var(--navy-800);
    --chip-bg: var(--navy-800);
    --sand-hover: var(--navy-800);
    --on-btn-secondary: var(--navy-100);
    --btn-secondary-hover: #12304f;
    --on-gold-deep: var(--navy-900);
    /* --section-band is set with the surface ladder above, not here */
    --proof-value-ink: var(--navy-100);
    --edge-hairline: #3d4a63;
    --scroll-thumb: #46587a;
    --scroll-track: var(--navy-800);
    --gold-fade: #4a3a12;
    --hover-wash: rgba(255, 255, 255, 0.08);
    --btn-ghost-hover: rgba(255, 255, 255, 0.1);
    --shadow-gold: 0 10px 30px rgba(223, 187, 69, 0.18);

    /* shadows are nearly invisible against a dark surface, so they deepen */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45), 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5), 0 32px 64px rgba(0, 0, 0, 0.55);
    --shadow-navy: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* a section that was lighter than the page in light mode reads as raised */

/*
 * The hero title, proof values and portrait caption paint themselves with raw
 * palette steps rather than --ink, so they do not follow the theme. --proof__value
 * uses --navy-700 (#003580), which is 1.9:1 on navy: invisible.
 */

/*
 * The tick in .about__list li::before is an inline SVG data URI with a
 * hardcoded navy stroke. A url() cannot take var(), so dark mode needs the
 * whole url swapped. The original stroke measures 1.36:1 on --chip-bg: the
 * checkmark was literally invisible. The replacement needs no token because a
 * data URI is already a fixed literal.
 */
[data-theme="dark"] .about__list li::before {
    background: var(--chip-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23efd582' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}
/* the ghost button sets its foreground to --navy-800, invisible on a dark page */

/* the wordmark and wordmark-adjacent text set navy directly */

/* gold CTA: the gold glow reads as haze on a dark surface */

/*
 * The gold CTA is white text on --gold-deep. In light that is 4.7:1; on the
 * dark-mode gold (#dfbb45) it collapses to 1.85:1, which is unreadable. So dark
 * inverts the polarity: navy text on bright gold.
 */
/* ============================================================
   theme toggle
   ============================================================ */

.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover { background: var(--hover-wash); }


/* ============================================================
   reset
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* sticky header is 4.75rem tall: keep anchored sections clear of it */
    scroll-padding-top: 5.5rem;
}

body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--heading);
    text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; }

/* the skip link targets <main tabindex="-1">; it is a focus landing point,
   not an interactive control, so it must not draw a focus ring */
main:focus { outline: none; }

:focus-visible {
    outline: 2px solid var(--gold-ink);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ============================================================
   scrollbar
   ============================================================ */

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: 99px;
    border: 3px solid var(--scroll-track);
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

/* ============================================================
   layout primitives
   ============================================================ */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--sand { background: var(--section-band); }
.section--navy { background: var(--navy-800); color: var(--sand-200); }
.section--navy h2,
.section--navy h3 { color: #fff; }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }

/* Eyebrows sit on sand on most sections but inside the navy promo block too,
   where the bronze text would measure 1.09:1. Light gold-300 clears 8:1 there
   while staying readable on sand, so one token works in both places. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

.section--navy .eyebrow,
.promo .eyebrow { color: var(--gold-300); }

.eyebrow::before {
    content: '';
    width: 1.75rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.section-head {
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head h2 { font-size: clamp(2rem, 5vw, 3.25rem); }

.section-head p {
    margin-top: 1rem;
    font-size: 1.0625rem;
    color: var(--ink-soft);
    max-width: var(--measure);
    margin-inline: auto;
}

.section--navy .section-head p { color: rgba(244, 239, 227, 0.72); }

.rule {
    width: 3.5rem;
    height: 2px;
    margin: 1.5rem auto 0;
    background: var(--gold-500);
}

/* ============================================================
   buttons
   ============================================================ */

.btn {
    --btn-bg: var(--navy-800);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.75rem;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid transparent;
    border-radius: 99px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
                background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.btn--primary { box-shadow: 0 10px 30px rgba(0, 53, 128, 0.24); }
.btn--primary:hover {
    --btn-bg: var(--navy-900);
    box-shadow: 0 14px 38px rgba(0, 53, 128, 0.32);
}

.btn--gold {
    --btn-bg: var(--gold-deep);
    --btn-fg: var(--on-gold-deep);
    box-shadow: var(--shadow-gold);
}
.btn--gold:hover { --btn-bg: var(--gold-ink); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--on-btn-secondary);
    border-color: var(--line-strong);
}
.btn--ghost:hover {
    --btn-bg: var(--btn-ghost-hover);
    border-color: transparent;
}

.btn--on-navy {
    --btn-bg: transparent;
    --btn-fg: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}
.btn--on-navy:hover {
    --btn-bg: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--sm { padding: 0.65rem 1.25rem; font-size: 0.8125rem; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 0.9375rem; }

.btn:active { transform: translateY(0); }

/* ============================================================
   header
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--header-bg);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.4s var(--ease), background-color 0.4s ease;
}

.site-header.is-stuck {
    box-shadow: var(--shadow-sm);
    background: var(--header-bg-solid);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    text-decoration: none;
    cursor: pointer;
}

.brand__mark {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    transition: transform 0.5s var(--ease);
}

.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }

.brand__name {
    font-family: var(--serif);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--heading);
    white-space: nowrap;
}

.nav { display: none; }

@media (min-width: 62rem) {
    .nav { display: flex; align-items: center; gap: 2rem; }
}

/*
 * Below ~26rem the wordmark, the "Reservar" button and the burger no longer
 * fit on one line: the nowrap brand name alone is ~150px, which pushed the
 * header to 360px inside a 320px viewport and produced a horizontal scrollbar.
 * Dropping to the circular mark is the usual editorial answer; a truncated
 * wordmark would look like a bug.
 */
@media (max-width: 26rem) {
    .site-header__inner { gap: 0.75rem; }
    .brand__name { display: none; }
    .brand { margin-right: auto; }
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding-block: 0.35rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold-ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
}

.nav-link:hover { color: var(--heading); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-link.active { color: var(--heading); font-weight: 600; }
.nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-actions .btn--secondary { display: none; }

@media (min-width: 40rem) {
    .header-actions .btn--secondary { display: inline-flex; }
}

/* ============================================================
   burger + mobile drawer
   ============================================================ */

.nav-toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* a WASH, not a fill. --sand-hover is navy-800 in dark, which on the
   navy-900 header produced a hover state that was almost invisible. */
.nav-toggle:hover { background: var(--hover-wash); }

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
    display: block;
    width: 1.125rem;
    height: 2px;
    background: var(--navy-800);
    border-radius: 2px;
    transition: transform 0.4s var(--ease), opacity 0.25s ease;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
    content: '';
    position: relative;
    top: -0.375rem;
}

.nav-toggle__bar::after { top: 0.375rem; }

/* cross when the drawer is open */
.nav-toggle[aria-expanded='true'] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar::before { transform: translateY(0.375rem) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar::after { transform: translateY(-0.375rem) rotate(-45deg); }

.nav-drawer {
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--drawer-bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    animation: drawer-in 0.35s var(--ease-out-expo);
}

@keyframes drawer-in {
    from { opacity: 0; transform: translateY(-0.75rem); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-drawer a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding-inline: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--heading);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: color 0.25s ease, padding-left 0.35s var(--ease);
}

.nav-drawer a:hover,
.nav-drawer a:focus-visible {
    color: var(--gold-ink);
    padding-left: 0.6rem;
}

.nav-drawer a:last-child { border-bottom: none; }

@media (min-width: 62rem) {
    .nav-toggle,
    .nav-drawer { display: none; }
}

.btn--secondary {
    --btn-bg: transparent;
    --btn-fg: var(--on-btn-secondary);
    border-color: var(--line-strong);
}
/* the token, not a raw step: the label is navy-100 in dark, so a navy-100 fill\n       here measured 1.00:1 and the button vanished on hover. */
.btn--secondary:hover { --btn-bg: var(--btn-secondary-hover); border-color: transparent; }

/* ============================================================
   hero
   ============================================================ */

.hero {
    position: relative;
    padding-block: clamp(1.5rem, 3.5vw, 2.5rem) clamp(3.5rem, 8vw, 6rem);
    overflow: hidden;
}

/*
 * Editorial rule instead of the usual radial-gradient colour wash. Flat
 * geometry and a hairline read as designed; soft coloured blooms behind a
 * hero read as a generated template.
 */
.hero__rule {
    width: 100%;
    max-width: var(--shell);
    height: 1px;
    margin: 0 auto;
    padding-inline: var(--gutter);
    background: linear-gradient(90deg, var(--gold-400), rgba(20, 32, 46, 0.12) 38%, transparent 72%);
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 8vw, 5.5rem);
    align-items: center;
}

@media (min-width: 62rem) {
    .hero__grid { grid-template-columns: 1.08fr 0.92fr; }
}

.hero__title {
    font-size: clamp(2.75rem, 8.5vw, 5.25rem);
    margin-top: 1.5rem;
}

.hero__title em {
    font-style: italic;
    color: var(--gold-ink);
}

.hero__lead {
    margin-top: 1.75rem;
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 34rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin-top: 3.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.proof__value {
    font-family: var(--serif);
    font-size: 1.75rem;
    line-height: 1;
    color: var(--proof-value-ink);
}

.proof__label {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

/* portrait */

.portrait {
    position: relative;
    justify-self: center;
    width: min(100%, 25rem);
}

.portrait__frame {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 14rem 14rem 1.5rem 1.5rem;
    overflow: hidden;
    background: var(--chip-bg);
    box-shadow: var(--shadow-lg);
}

.portrait__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo);
}

.portrait:hover .portrait__img { transform: scale(1.04); }

.portrait__plate {
    position: absolute;
    left: -1rem;
    bottom: -1.25rem;
    right: 1.75rem;
    padding: 1.1rem 1.35rem;
    background: var(--plate-bg);
    border: 1px solid var(--line-strong);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.portrait__name {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--heading);
}

.portrait__role {
    margin-top: 0.15rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

/* ============================================================
   quote band
   ============================================================ */

.quote-band {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 26rem;
    padding-block: clamp(3.5rem, 9vw, 6rem);
    overflow: hidden;
    isolation: isolate;
}

.quote-band__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5) contrast(1.05);
}

.quote-band::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(4, 24, 43, 0.7), rgba(4, 24, 43, 0.85));
}

.quote-band blockquote {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4.5vw, 2.75rem);
    font-style: italic;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-align: center;
    color: #fff;
    max-width: 24ch;
}

.quote-band cite {
    display: block;
    margin-top: 1.75rem;
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
}

/* ============================================================
   cards
   ============================================================ */

.card {
    position: relative;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease),
                border-color 0.4s ease;
}

.card--lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 162, 39, 0.4);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    border-radius: 0.85rem;
    background: var(--chip-bg);
    color: var(--on-btn-secondary);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.card--lift:hover .card__icon {
    background: var(--navy-700);
    color: #fff;
}

.card__icon svg { width: 1.375rem; height: 1.375rem; }

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.card p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.grid { display: grid; gap: 1.25rem; }

@media (min-width: 46rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   process timeline (methodology)
   ============================================================ */

.process {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
    max-width: 44rem;
    margin-inline: auto;
    position: relative;
}

.process::before {
    content: '';
    position: absolute;
    left: 2.25rem;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--gold-400), var(--gold-fade));
    opacity: 0.5;
}

.process__step {
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 1.6rem 1.85rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}

.process__step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201, 162, 39, 0.4);
}

.process__num {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold-ink);
    line-height: 1;
    background: var(--chip-bg);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--edge-hairline);
    flex-shrink: 0;
}

.process__body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
    color: var(--heading);
}

.process__body p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

@media (max-width: 32rem) {
    .process::before { display: none; }
    .process__step { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.25rem 1.25rem; }
}

/* ============================================================
   quiz
   ============================================================ */

/*
 * The quiz progress TRACK, despite the "card" name.
 *
 * The markup has no track element. .quiz-card contains exactly one child, the
 * FILL (#quiz-progress-bar, width:0, grown by JS). A dead .progress-bar-container
 * rule existed for a track that is not in the HTML, so the fill's height:100%
 * resolved against a parent with no height and the bar rendered at 0px. The bar
 * had therefore never been visible, and .quiz-card was left as a 114px empty
 * rounded box with 56px of padding above the first question, in both themes.
 *
 * So the track is .quiz-card itself. Dead rule removed rather than left to hide
 * the next reader.
 */
.quiz-card {
    max-width: 46rem;
    margin-inline: auto;
    margin-bottom: 2.5rem;
    height: 0.5rem;
    border-radius: 99px;
    background: var(--track);
    overflow: hidden;
}

/* the fill. --progress-fill clears 3:1 against --track, or a step change is
 * invisible: the bar looks stuck at the same width on every question */
.progress-bar {
    height: 100%;
    width: 0;
    background: var(--progress-fill);
    transition: width 0.6s var(--ease-out-expo);
}

.quiz-container-relative { position: relative; }

/* announced and visible when "Siguiente" is pressed with no choice */
.quiz-error {
    max-width: 46rem;
    margin: -1.25rem auto 1.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--on-gold-surface);
    background: var(--gold-300);
    border: 1px solid var(--gold-ink);
    border-radius: 0.75rem;
    text-align: center;
}

.quiz-step { display: none; }
.quiz-step.active { display: block; animation: quiz-in 0.6s var(--ease-out-expo); }

@keyframes quiz-in {
    from { opacity: 0; transform: translateX(1.25rem); }
    to { opacity: 1; transform: translateX(0); }
}

.quiz-step > p {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--heading);
    margin-bottom: 1.75rem;
    max-width: 30ch;
}

.quiz-options { display: grid; gap: 0.75rem; }

.quiz-option-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1.1rem 1.35rem;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--heading);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s var(--ease), background-color 0.3s ease,
                border-color 0.3s ease, box-shadow 0.3s ease;
}

.quiz-option-button:hover {
    background: var(--sand-hover);
    border-color: var(--navy-400);
    transform: translateX(4px);
}

.quiz-option-button.selected {
    /* was --navy-800, which is the unselected background: the selected state
       had no visible difference in dark mode */
    background: var(--surface-selected);
    border-color: var(--navy-800);
    color: #fff;
    box-shadow: 0 10px 26px rgba(10, 37, 64, 0.24);
}

.quiz-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

[hidden] { display: none !important; }

.quiz-result__level {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--gold-ink);
    line-height: 1;
    margin: 1.25rem 0;
}

.quiz-result__desc {
    max-width: 34rem;
    margin: 0 auto 2.5rem;
    font-size: 1.0625rem;
    color: var(--ink-soft);
}

/* ============================================================
   about
   ============================================================ */

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 7vw, 4.5rem);
    align-items: center;
}

@media (min-width: 62rem) {
    .about__grid { grid-template-columns: 0.85fr 1.15fr; }
}

.about__figure {
    position: relative;
}

.about__img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.about__figure::before {
    content: '';
    position: absolute;
    inset: 1.5rem -1.5rem -1.5rem 1.5rem;
    border: 1px solid var(--gold-400);
    border-radius: 1.5rem;
    z-index: -1;
}

.about__body h2 {
    font-size: clamp(1.875rem, 4.5vw, 2.75rem);
    margin-block: 1rem 1.5rem;
}

.about__body p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: var(--measure);
}

.about__body p + p { margin-top: 1.25rem; }

.about__list {
    list-style: none;
    padding: 0;
    margin-top: 2.25rem;
    display: grid;
    gap: 0.9rem;
}

.about__list li {
    display: flex;
    gap: 0.85rem;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.about__list li::before {
    content: '';
    flex: 0 0 auto;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: 0.2rem;
    border-radius: 50%;
    background: var(--chip-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003580' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

/* ============================================================
   daily promo
   ============================================================ */

.promo {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
    border-radius: 1.75rem;
    box-shadow: var(--shadow-navy);
    overflow: hidden;
    position: relative;
}

@media (min-width: 58rem) {
    .promo { grid-template-columns: 1.25fr 0.75fr; }
}

/* Square gold mark instead of a soft radial bloom. */
.promo::before {
    content: '';
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--gold-500);
    pointer-events: none;
}

.promo h3 {
    font-size: clamp(1.625rem, 4vw, 2.375rem);
    color: #fff;
    margin-block: 1rem 1rem;
}

.promo p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(244, 239, 227, 0.78);
    max-width: 40rem;
}

.promo__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.promo__chip {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gold-300);
    border: 1px solid rgba(223, 187, 69, 0.35);
    border-radius: 99px;
    background: rgba(201, 162, 39, 0.1);
}

.promo__figure {
    display: grid;
    place-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244, 239, 227, 0.6);
}

/* Streak strip: a week of days, the current one filled. Reads as a real
   practice tracker rather than decorative emoji.
   Grid with minmax(0,1fr) on purpose: seven fixed-width flex tiles set a
   288px floor, which overflowed the promo column below ~360px viewports. */
.promo__streak {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    width: 100%;
    max-width: 15rem;
    margin-bottom: 1.25rem;
}

.promo__day {
    display: grid;
    place-items: center;
    height: 2.75rem;
    padding-inline: 0.125rem;
    border-radius: 3px;
    font-family: var(--sans);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(244, 239, 227, 0.72);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 2px solid rgba(255, 255, 255, 0.12);
}

.promo__day--done {
    color: rgba(244, 239, 227, 0.75);
    background: rgba(255, 255, 255, 0.1);
    border-top-color: var(--gold-400);
}

/* the gold-surface TEXT token, not a raw navy step. This is a gold pill, and a
   raw navy step is what the audit-tool complains about — not because it fails
   (navy-900 on gold-400 is 9.68:1) but because it bypasses the role contract. */
.promo__day--today {
    color: var(--on-gold-surface);
    background: var(--gold-400);
    border-color: var(--gold-400);
    border-top-color: var(--sand-100);
}

/* ============================================================
   pricing
   ============================================================ */

.plan-grid {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 58rem) {
    .plan-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.75rem, 4vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.plan--featured {
    /* one step above the plain cards, so the featured plan reads as raised */
    background: var(--surface-featured);
    border-color: var(--navy-800);
    box-shadow: var(--shadow-navy);
}

@media (min-width: 58rem) {
    .plan--featured { transform: scale(1.04); }
    .plan--featured:hover { transform: scale(1.04) translateY(-4px); }
}

.plan__flag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    /* the flag is a GOLD PILL, so it needs the gold-surface text role, not
       --heading. Pointing it at --heading measured 1.49:1 in dark: navy-100 on
       gold. Same shape as the app's --on-gold. */
    color: var(--on-gold-surface);
    background: var(--gold-400);
    border-radius: 99px;
}

.plan__name {
    font-family: var(--serif);
    font-size: 1.375rem;
    color: var(--heading);
}

.plan--featured .plan__name { color: #fff; }

.plan__price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-block: 1.25rem 1.75rem;
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 2.5rem);
    line-height: 1;
    color: var(--heading);
}

.plan--featured .plan__price { color: #fff; }

.plan__currency {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
}

.plan--featured .plan__currency { color: rgba(244, 239, 227, 0.6); }

.plan__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 0.75rem;
    flex: 1;
}

.plan__list li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.plan--featured .plan__list li { color: rgba(244, 239, 227, 0.82); }

.plan__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: var(--chip-bg);
}

.plan--featured .plan__list li::before { background: rgba(223, 187, 69, 0.9); }

.plan__note {
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--ink-mute);
}

.plan--featured .plan__note {
    /* 0.55 was tuned against navy-800. The featured surface is now a step
       lighter (#16395d) so elevation reads, and 0.55 composited down to
       4.26:1 on it. 0.75 measures 6.53:1 and 8.16:1 on the light navy. */
    color: rgba(244, 239, 227, 0.75);
}

.plan .btn { width: 100%; }
.plan--featured .btn {
    --btn-bg: var(--gold-deep);
    --btn-fg: var(--on-gold-deep);
}

/* ============================================================
   testimonials
   ============================================================ */

.quote-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.quote-card:hover {
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: var(--shadow-md);
}

.quote-card__mark {
    font-family: var(--serif);
    font-size: 3.5rem;
    line-height: 0.6;
    color: var(--gold-400);
}

.quote-card blockquote {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink-soft);
    flex: 1;
}

.quote-card__who {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.quote-card__name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--heading);
}

.quote-card__role {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

/* ============================================================
   faq
   ============================================================ */

.faq { display: grid; gap: 0.75rem; max-width: 46rem; margin-inline: auto; }

.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq details[open] {
    border-color: rgba(201, 162, 39, 0.45);
    box-shadow: var(--shadow-sm);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--heading);
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    flex: 0 0 auto;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: var(--gold-ink);
    transition: transform 0.35s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq p {
    padding: 0 1.35rem 1.35rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

/* ============================================================
   whatsapp booking
   ============================================================ */

.wa-card {
    max-width: 40rem;
    margin-inline: auto;
    padding: clamp(1.75rem, 5vw, 2.75rem);
    text-align: center;
    background: var(--card-raised);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

.wa-card__badge {
    display: grid;
    place-items: center;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.5rem;
    color: #fff;
    background: linear-gradient(150deg, #0f7a3f, #0a5c31);
    border-radius: 50%;
    box-shadow: 0 14px 34px rgba(18, 140, 74, 0.32);
}

.wa-card__badge svg { width: 3rem; height: 3rem; }

.wa-card__name {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--heading);
}

.wa-card__role {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.wa-card__points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 2rem;
}

.wa-card__points li {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    color: var(--ink-soft);
    background: var(--chip-bg);
    border-radius: 99px;
}

.btn--wa {
    --btn-bg: #0e6b3a;
    --btn-fg: #fff;
    width: 100%;
    max-width: 20rem;
    padding: 1.05rem 2rem;
    font-size: 0.9375rem;
    box-shadow: 0 10px 26px rgba(18, 140, 74, 0.3);
}

/* header variant: sits inline with the other header actions */
.btn--wa.btn--sm {
    width: auto;
    max-width: none;
    padding: 0.65rem 1.15rem;
    box-shadow: 0 4px 12px rgba(18, 140, 74, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.btn--wa.btn--sm:hover { --btn-bg: #0b5a2f; }
.btn__wa-icon { flex-shrink: 0; }

.btn--wa:hover { --btn-bg: #0b5a2f; }

.wa-cta__glyph { display: grid; place-items: center; }
.wa-cta__glyph svg { width: 1.15rem; height: 1.15rem; }

.wa-card__note {
    margin-top: 1.15rem;
    font-size: 0.8125rem;
    color: var(--ink-mute);
}

/* ============================================================
   footer
   ============================================================ */

.site-footer {
    padding-block: clamp(3rem, 7vw, 4.5rem) 2.5rem;
    background: var(--navy-900);
    color: rgba(244, 239, 227, 0.7);
    font-size: 0.875rem;
}

.footer__grid {
    display: grid;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 46rem) {
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.footer__brand img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__brand span {
    font-family: var(--serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
}

.footer__col h4 {
    font-family: var(--sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 1.15rem;
}

.footer__col ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }

.footer__col a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__col a:hover { color: #fff; }

.footer__base {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.8125rem;
}

.footer__legal { display: flex; align-items: baseline; gap: 1.25rem; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: #fff; }

/* Pangal link: intentionally tiny and quiet, present for those who know.
   The quiet comes from the size, not from illegibility. Opacity 0.45 stacked
   with the 0.7 colour alpha and measured 2.60:1, which is below AA for an
   11px label. 0.7 measures 8.06:1 and still reads as quiet. */
.footer__legal .footer__joke {
    font-size: 0.6875rem;
    opacity: 0.7;
    letter-spacing: 0.02em;
}
.footer__legal .footer__joke:hover,
.footer__legal .footer__joke:focus-visible { opacity: 0.9; }

/* ============================================================
   decor: grain + cursor + blobs
   ============================================================ */

.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* brief gold wash when jumping to a section from a link */
@keyframes flash-target {
    from { background-color: rgba(201, 162, 39, 0.16); }
    to { background-color: transparent; }
}

.flash-target {
    animation: flash-target 1.1s ease-out;
    border-radius: 1rem;
}

/* ============================================================
   motion utilities
   ============================================================ */

@keyframes fade-up {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up {
    opacity: 0;
    animation: fade-up 0.9s var(--ease-out-expo) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

/* Visible by default. The to-be-revealed state is gated on <html class="js">,
   so a failed or blocked site.js leaves the marketing page readable instead of
   blank. theme.js adds the class before paint and site.js clears the failsafe
   once every initialiser has run. */
.line-wrap { display: block; }
.js .line-wrap {
    transform: translateY(105%);
    opacity: 0;
}

.text-reveal-container {
    display: block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.08;
}

.reveal { opacity: 1; transform: none; }

.js .reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.js .reveal.active { opacity: 1; transform: translateY(0); }

/* ============================================================
   a11y + responsive guards
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .line-wrap,
    .js .line-wrap { transform: none; opacity: 1; }
    .fade-up { opacity: 1; }
    .reveal,
    .js .reveal { opacity: 1; transform: none; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* the skip link must become visible when focused, otherwise it can never be
   seen by a keyboard user and the link is pointless */
.sr-only:focus-visible,
a.sr-only:focus {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    width: auto;
    height: auto;
    padding: 0.75rem 1.25rem;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--navy-800);
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

@media (max-width: 30rem) {
    .hero__proof { gap: 1.25rem 1.75rem; }
}
