/* ══════════════════════════════════════════════════════════════════
   MERCURIOUS.AI — SHARED STYLESHEET
   ──────────────────────────────────────────────────────────────────
   The one copy of every shared component: tokens, base, typography,
   sections & textures, ornaments, buttons, navigation, hero commons,
   cards, quote box, footer. Lifted verbatim from index.html (the
   canonical page) on 24 Aug 2026.

   Load order contract: every page links this file BEFORE its own
   <style> blocks, so a page rule with equal specificity wins. Page
   styles may override deliberately (each override carries a comment)
   but must never re-declare a shared component unchanged — that
   re-creates the drift this file exists to end.

   Cache: served with must-revalidate (netlify.toml *.css rule), so
   edits here reach returning visitors on next load.
   ══════════════════════════════════════════════════════════════════ */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    --navy:           #0D1117;
    --navy-mid:       #111827;
    --navy-light:     #1A2535;
    --teal:           #1A6575;
    --teal-mid:       #1E7A8C;
    --teal-light:     #2A9AB0;
    --terracotta:     #C8513A;
    --terracotta-h:   #B8432C;
    /* Named 24 Aug 2026: the brighter terracotta the eyebrows always
       used as a bare hex. Lifts small caps off the navy; not for
       large surfaces — buttons stay --terracotta. */
    --terracotta-bright: #D4614A;
    --steel:          #4A6580;
    --steel-light:    #6A8AA8;
    --amber:          #C4800A;
    --text-primary:   #E8E4DC;
    --text-secondary: #A8B8C4;
    --text-muted:     #6A7A88;
    --card-bg:        rgba(255,255,255,0.04);
    --card-border:    rgba(255,255,255,0.08);
    --divider:        rgba(200,180,160,0.15);

    /* The grain: one fractal-noise SVG at the four sanctioned
       opacities. Compose with background-image, strongest first. */
    --noise-08:  url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    --noise-07:  url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.07'/%3E%3C/svg%3E");
    --noise-055: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.055'/%3E%3C/svg%3E");
    --noise-04:  url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* prevent page content from expanding layout viewport on iOS */
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    background: var(--navy);
    color: var(--text-primary);
    line-height: 1.7;
    /* clip, NOT hidden: overflow-x hidden turns body into a scroll
       container, which silently kills every scroll-driven animation
       on the page (view-timelines attach to body instead of the
       viewport and never progress — found 26 Aug when the Seven
       Shifts card-turns froze). clip clips identically with no
       scroll-container side effect. */
    overflow-x: clip;
}

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

a { text-decoration: none; color: inherit; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { font-size: 1.05rem; }

.eyebrow {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta-bright);
    margin-bottom: 1rem;
}

/* ============================================
   LAYOUT, SECTIONS & TEXTURES
   ============================================ */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 7rem 0;
}

.section-dark {
    background: var(--navy);
    background-image: var(--noise-08);
}
.section-mid  { background: var(--navy-mid); }
.section-teal { background: #1A1F35; }
.section-teal-dark {
    background: #122B35;
    border-top: 1px solid rgba(42,154,176,0.4);
    box-shadow: inset 0 4px 40px rgba(42,154,176,0.12);
}

/* Textured section grounds, as used on the homepage's good-fit and
   transformation sections. Apply alongside .section. */
.section-lift {
    background: var(--navy-light);
    background-image: var(--noise-055);
}
.section-lift-warm {
    background: var(--navy-light);
    background-image:
        var(--noise-07),
        radial-gradient(ellipse at 70% 110%, rgba(200,81,58,0.14) 0%, transparent 55%);
}

.section-header {
    max-width: 720px;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-top: 0.5rem;
}

/* ============================================
   ORNAMENTS
   The law (docs/design-standards.md): an ornament takes the
   alignment of the text it introduces. .ornament is the left-aligned
   diamond-at-edge; .ornament-sym is the symmetric centred pair and
   belongs only in centred sections.
   ============================================ */
.ornament {
    width: 110px;
    height: 14px;
    margin: 2rem 0;
    position: relative;
}

.ornament::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    right: 0;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(to right, var(--terracotta), rgba(200,81,58,0));
}

.ornament::after {
    content: '◆';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--terracotta);
    font-size: 0.42rem;
    text-shadow: 0 0 10px rgba(200,81,58,0.9);
    line-height: 1;
}

.ornament-sym {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 2rem auto;
    color: var(--terracotta);
    font-size: 0.42rem;
    text-shadow: 0 0 10px rgba(200,81,58,0.9);
}

.ornament-sym::before {
    content: '';
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--terracotta));
}

.ornament-sym::after {
    content: '';
    width: 80px;
    height: 1px;
    background: linear-gradient(to left, transparent, var(--terracotta));
}

.ornament-center {
    margin: 2rem auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 3px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--text-primary);
    border-color: var(--terracotta);
}
.btn-primary:hover {
    background: var(--terracotta-h);
    border-color: var(--terracotta-h);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(240,237,232,0.3);
}
.btn-ghost:hover {
    border-color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-teal {
    background: #1A1F35;
    color: var(--text-primary);
    border-color: var(--teal);
}
.btn-teal:hover {
    background: var(--teal-mid);
    border-color: var(--teal-mid);
    transform: translateY(-1px);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(232,228,220,0.4);
}
.btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

/* ============================================
   NAVIGATION
   Markup is stamped from partials/site-header.html; this is its one
   copy of the styling.
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background: #111827;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
    transition: padding 0.3s ease;
}

#navbar.scrolled {
    padding: 0.6rem 0;
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
}
.nav-logo img {
    filter: drop-shadow(0 0 6px rgba(232,228,220,0.22));
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-wing {
    font-size: 1.4rem;
    color: var(--terracotta);
    line-height: 1;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.logo-dot {
    color: var(--steel-light);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(232,228,220,0.85);
    letter-spacing: 0.04em;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a.current { color: var(--teal-light); }
.nav-links a:hover { color: var(--text-primary); }

.nav-links .nav-cta {
    background: var(--terracotta);
    color: var(--text-primary);
    padding: 0.55rem 1.3rem;
    border-radius: 3px;
    font-weight: 600;
}

.nav-links .nav-cta:hover {
    background: var(--terracotta-h);
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* ============================================
   HERO COMMONS
   Each page's hero image (and any deliberate overlay variant) stays
   in that page's own styles; the structure lives here.
   ============================================ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #0D1117; /* ground while the page's image loads */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13,17,23,0.80) 0%,
        rgba(13,17,23,0.55) 45%,
        rgba(13,17,23,0.65) 100%
    );
}

/* Subtle grain texture over every hero */
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--noise-04);
    opacity: 0.3;
}

.hero-eyebrow {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1.2rem;
}

.hero-headline {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-headline em {
    font-style: italic;
    color: var(--text-primary);
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(232,228,220,0.85);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll .chev {
    width: 22px; height: 22px;
    border-right: 2px solid var(--amber);
    border-bottom: 2px solid var(--amber);
    transform: rotate(45deg);
    animation: chevBob 1.8s ease-in-out infinite;
}
@keyframes chevBob { 0%,100% { translate:0 0; opacity:.55; } 50% { translate:0 10px; opacity:1; } }
@supports (animation-timeline: scroll()) {
    .hero-scroll { animation: cueFade linear both; animation-timeline: scroll(); animation-range: 0 260px; }
    @keyframes cueFade { to { opacity:0; visibility:hidden; } }
}

/* ============================================
   FAMILY 1 — INFORMATION CARDS (ruled 24 Aug 2026)
   Four components, four jobs, no hover on any of them:
   .panel     — the house card, for THINGS (a person, an offer,
                a boxed aside, grids of parallel facts)
   .principle — named convictions, flat teal margin rule
   .tk-ledger — numbered frameworks, one line per row
   .step      — processes in time, oversized numeral
   The old pain card (stripe + hover lift) is retired; pain grids
   are quiet panels with the ✦ .pain-mark.
   ============================================ */
.panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.7rem 1.8rem;
}
.panel h3 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.panel p { color: var(--text-secondary); margin-bottom: 0.9rem; font-size: 0.99rem; }
.panel ul { margin: 0 0 1rem 1.1rem; color: var(--text-secondary); font-size: 0.97rem; }
.panel li { margin-bottom: 0.4rem; }
.panel .panel-link { color: var(--teal-light); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.panel .panel-link:hover { color: var(--text-primary); }

.principle { border-left: 2px solid var(--teal); padding-left: 1.5rem; }
.principle h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.principle p { color: var(--text-primary); font-size: 0.93rem; line-height: 1.65; }
.approach-principles { display: flex; flex-direction: column; gap: 2rem; }

.step { text-align: left; padding: 2rem 0 0; position: relative; }
.step::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, var(--teal-mid), var(--teal-light) 55%, var(--teal-mid) 88%, transparent 100%);
}
.step h3 { margin-bottom: 0.8rem; font-size: 1.2rem; }
.step p { color: var(--text-primary); font-size: 0.95rem; line-height: 1.7; }
.step .step-detail {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.3rem 0.8rem;
    background: rgba(26,101,117,0.15);
    border: 1px solid rgba(26,101,117,0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--teal-light);
    letter-spacing: 0.05em;
}
.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 400;
    line-height: 0.85;
    color: rgba(200,81,58,0.42);
    margin-bottom: 1.1rem;
    letter-spacing: -0.02em;
}
.step-time {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.6rem;
}

/* The ledger: enumerated frameworks (from the Seven Shifts page,
   translated onto the shared tokens). */
.tkpanel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--amber);
    border-radius: 6px;
    padding: 1.6rem 2rem;
}
.tkrow {
    display: flex;
    gap: 1.2rem;
    align-items: baseline;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
    line-height: 1.6;
}
.tkrow:first-of-type { border-top: none; }
.tkrow .tn { color: var(--text-muted); font-weight: 600; flex: 0 0 1.2rem; }
.tkrow b { color: var(--teal-light); font-weight: 600; flex: 0 0 9.5rem; }
.tkrow span { color: var(--text-secondary); }

/* Pain grid: quiet panels with the ✦ mark, 2×2 on desktop. */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.pain-item {
    display: flex;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.7rem 1.8rem;
    position: relative;
}
.pain-mark {
    color: var(--terracotta);
    font-weight: 400;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
}
.pain-item p {
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ============================================
   FAMILY 2 — LINK CARDS (ruled 24 Aug 2026)
   A link card is a door: the WHOLE card is one link. Hover may move
   (it is honestly clickable). The guide card is the house link card;
   .guide--tool (amber top edge) is its variant for free tools.
   Offer cards (homepage) present a price and a button — the button is
   the door, so the card body itself stays still. Blog shelving
   (post/featured cards) lives in the blog's own styles.
   ============================================ */
.guide-list { display: grid; gap: 1.1rem; max-width: 52rem; }
.guide {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.guide:hover { border-color: var(--teal-mid); transform: translateY(-2px); }
.guide .guide-q {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    display: block;
    margin-bottom: 0.5rem;
}
.guide .guide-t {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    color: var(--text-primary);
    display: block;
    line-height: 1.35;
}
.guide p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-top: 0.6rem; }
.guide .guide-go { color: var(--teal-light); font-size: 0.9rem; display: inline-block; margin-top: 0.7rem; }
.guide--tool { border-top: 3px solid var(--amber); }

/* ============================================
   FAMILY 3 — CEREMONY (ruled 24 Aug 2026)
   Two treatments, one ceremony per page, never both:
   .solution-stat-box — the flourish frame: the page's LAW, its one
       claim, framed like an exhibit. Teal hairline-and-diamond edges.
   .orchestrator-quote — the open quote: a VOICE speaking, first
       person, signalled by the giant quotation mark.
   The terracotta-top quote panel is retired; its instances became a
   quiet panel (census "not yet") and stayed prose (about).
   ============================================ */
.solution-stat-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    /* Top and bottom edges are drawn by the teal flourishes instead,
       each with its diamond straddling the edge — symmetric frame. */
    border-top: none;
    border-bottom: none;
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.solution-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--teal-mid) 25%, var(--teal-light) 50%, var(--teal-mid) 75%, transparent);
}

.solution-stat-box::after {
    content: '◆';
    position: absolute;
    top: -0.38rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--teal-light);
    font-size: 0.42rem;
    text-shadow: 0 0 10px rgba(42,154,176,0.9);
    line-height: 1;
}

.solution-stat-box .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--teal-light);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.solution-stat-box .stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.solution-stat-box .stat-body {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.65;
}

.solution-stat-box .stat-source {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.stat-bottom-flourish {
    /* Anchored to the box's bottom edge, mirroring the top pair */
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 0;
    margin: 0;
}

.stat-bottom-flourish::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--teal-mid) 25%, var(--teal-light) 50%, var(--teal-mid) 75%, transparent);
}

.stat-bottom-flourish::after {
    content: '◆';
    position: absolute;
    bottom: -0.38rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--teal-light);
    font-size: 0.42rem;
    text-shadow: 0 0 10px rgba(42,154,176,0.9);
    line-height: 1;
}

.orchestrator-quote {
    margin-top: 3rem;
    padding: 0 2rem;
    text-align: center;
}
.orchestrator-quote::before {
    content: '\201C';
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: var(--teal);
    opacity: 0.4;
    line-height: 1;
    text-align: center;
    margin-bottom: 0.5rem;
}
.orchestrator-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    color: var(--text-primary);
    line-height: 1.75;
    margin: 0;
}

/* ============================================
   FAMILY 4 — LISTS (ruled 24 Aug 2026)
   One presentation marker: the six-point star. ✦ marks lists that
   PRESENT (features, credentials, benefits, pains) on marketing
   pages. Plain browser bullets stay for lists that EXPLAIN inside
   long-form prose. ✓ (terracotta) is reserved for reassurance items
   only. The ◆ diamond belongs to the ornaments, never to bullets.
   ============================================ */
.star-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.star-list li {
    /* Absolute marker, not flex: an li containing inline links must not
       be split into flex columns (found 25 Aug on the census list). */
    display: block;
    position: relative;
    padding-left: 1.15rem;
    font-size: 0.93rem;
    color: var(--text-primary);
}
.star-list li::before {
    content: '✦';
    color: var(--terracotta);
    font-size: 0.6rem;
    position: absolute;
    left: 0;
    top: 0.4em;
}

/* ============================================
   FOOTER
   Markup is stamped from partials/site-footer.html; this is its one
   copy of the styling.
   ============================================ */
footer {
    background: #060A0F;
    border-top: 1px solid rgba(26,101,117,0.2);
}

.footer-brand-moment {
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(26,101,117,0.15);
}

.footer-mercury-mark {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin: 1.5rem 0 1rem;
}

.footer-mercury-mark .mercury-x {
    color: var(--teal-light);
    margin: 0 0.3em;
}

.footer-mercury-tagline {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 1rem;
}

.footer-bottom {
    padding: 2.5rem 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-brand .logo-text {
    font-size: 1rem;
}

.footer-brand p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a,
.footer-links button {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.2s;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links button:hover { color: var(--teal-light); }

.footer-legal {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    justify-content: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(26,101,117,0.12);
}

.footer-legal a,
.footer-legal button {
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    text-decoration: none;
}

.footer-legal a:hover,
.footer-legal button:hover { color: var(--teal-light); }

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid rgba(26,101,117,0.3);
    padding: 0.3rem 0.75rem;
    transition: color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
    color: var(--teal-light);
    border-color: var(--teal);
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================
   SHARED RESPONSIVE RULES
   ============================================ */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-right {
        align-items: center;
    }
}

@media (max-width: 640px) {
    .section { padding: 5rem 0; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13,17,23,0.98);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-links.open { display: flex; }

    .nav-toggle { display: flex; }

    .pain-grid { grid-template-columns: 1fr; }

    .hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* ── Dropdowns: own the caret so it keeps its distance from the edge.
   Native carets ignore padding; appearance:none + our chevron doesn't. ── */
select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236A8AA8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.4rem;
}
