/* ==========================================================================
   PHIL DARU — DESIGN SYSTEM
   ==========================================================================
   Ported from the Daru OS build at darustrong.com so phildaru.com and
   the app read as one product. Values are taken from the shipped app, not
   approximated:

     container      max 1200, padding-inline clamp(16px,5vw,24px)
     hairline       1px solid rgba(255,255,255,0.06)
     display type   clamp() sizing, weight 600, negative tracking,
                    #fff -> #9a9a9a vertical gradient clipped to the text
     eyebrow        Geist Mono 12px / 0.12em / uppercase / gold
     button         height 44, padding 0 22px, radius 10
     card           white 0.045 -> 0.01 gradient, 0.14 border, inset top
                    highlight, 0 30px 60px -30px black
     gold card      rgba(200,169,81,…) wash with a gold glow

   Gold is an ACCENT here, not the voice. It marks one thing per view — the
   primary action, the featured plan, an eyebrow. The old site's gold-gradient
   headlines are deliberately gone; headings use the white-to-grey fade.
   ========================================================================== */

:root {
    /* --- Surfaces (warm-tinted near-black, darkest first) --- */
    --ink-0: #050505;   /* page */
    --ink-1: #080808;   /* raised */
    --ink-2: #0a0a09;   /* card base */
    --ink-3: #0d0d0c;
    --ink-4: #1a1a19;   /* highest */
    --ink-5: #1c1c1b;

    /* --- Text ramp --- */
    --fg:    #ffffff;
    --fg-1:  #e5e5e5;
    --fg-2:  #c4c4c4;   /* lead paragraphs */
    --fg-3:  #a3a3a3;   /* body */
    --fg-4:  #737373;   /* labels, mono */
    --fg-5:  #525252;   /* faintest */

    /* --- Gold, used sparingly --- */
    --gold:       #d4b96a;
    --gold-light: #e8cd82;
    --gold-rgb:   200, 169, 81;
    --on-gold:    #0a0a09;

    /* --- Status (readiness bands) --- */
    --green: #4ade80;
    --amber: #d4b96a;
    --red:   #f0997b;

    /* --- Lines --- */
    --line:   rgba(255, 255, 255, 0.06);
    --line-2: rgba(255, 255, 255, 0.14);
    --line-3: rgba(255, 255, 255, 0.22);

    /* --- Type --- */
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;

    /* --- Layout --- */
    --container: 1200px;
    /* what the floating pill takes up in flow: 16px offset + 16px margin + height */
    --pill-space: 92px;
    --gutter: clamp(16px, 5vw, 24px);
    --section-y: clamp(64px, 9vw, 112px);

    /* --- Motion --- */
    --ease: cubic-bezier(.16, 1, .3, 1);
    --t: 180ms var(--ease);

    /* --- Elevation --- */
    --card-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        0 30px 60px -30px rgba(0, 0, 0, 0.6);
    --card-shadow-gold:
        inset 0 1px 0 rgba(255, 240, 200, 0.22),
        inset 0 0 24px rgba(var(--gold-rgb), 0.1),
        0 0 40px -10px rgba(var(--gold-rgb), 0.3),
        0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

/* ========================================================================
   BASE
   ======================================================================== */

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

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

body {
    margin: 0;
    background: var(--ink-0);
    color: var(--fg-3);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: rgba(var(--gold-rgb), 0.3); color: var(--fg); }

.ds-skip {
    position: absolute;
    left: -9999px;
}

.ds-skip:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--gold);
    color: var(--on-gold);
    font-weight: 600;
}

/* ========================================================================
   LAYOUT
   ======================================================================== */

.ds-wrap {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.ds-wrap-narrow {
    max-width: 760px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.ds-section {
    padding-block: var(--section-y);
    border-bottom: 1px solid var(--line);
}

.ds-section-flush { border-bottom: 0; }

.ds-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.ds-head-center { margin-inline: auto; text-align: center; }

/* ========================================================================
   TYPE
   ======================================================================== */

.ds-eyebrow {
    display: block;
    margin: 0 0 14px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.ds-eyebrow-quiet { color: var(--fg-4); }

/* The signature heading treatment: a vertical white-to-grey fade clipped to
   the glyphs. Replaces the old gold-gradient headline everywhere. */
.ds-h1, .ds-h2 {
    margin: 0;
    font-weight: 600;
    text-wrap: balance;
    background: linear-gradient(180deg, #fff 40%, #9a9a9a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ds-h1 {
    font-size: clamp(44px, 7vw, 84px);
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.ds-h2 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.ds-h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--fg);
}

.ds-h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--fg);
}

/* A heading that must stay solid white (inside cards, on gold) */
.ds-h1.ds-solid, .ds-h2.ds-solid {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--fg);
}

.ds-lead {
    margin: 20px 0 0;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    color: var(--fg-2);
    max-width: 62ch;
}

.ds-head-center .ds-lead { margin-inline: auto; }

.ds-body { margin: 0; font-size: 15px; line-height: 1.65; color: var(--fg-3); }
.ds-small { font-size: 13px; line-height: 1.6; color: var(--fg-4); }

.ds-mono {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--fg-4);
}

.ds-gold { color: var(--gold); }

/* ========================================================================
   BUTTONS
   ======================================================================== */

.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding-inline: 22px;
    border: 0;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--t), border-color var(--t), color var(--t), opacity var(--t), transform var(--t);
}

.ds-btn:active { transform: translateY(1px); }

.ds-btn[disabled], .ds-btn[aria-busy="true"] {
    opacity: 0.5;
    pointer-events: none;
}

/* Primary — gold. One per view. */
.ds-btn-primary { background: var(--gold); color: var(--on-gold); }
.ds-btn-primary:hover { background: var(--gold-light); }

/* Light — white fill, for a second emphasis without a second gold */
.ds-btn-light { background: var(--fg); color: var(--ink-2); }
.ds-btn-light:hover { background: var(--fg-1); }

/* Ghost — hairline */
.ds-btn-ghost {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--fg-1);
}

.ds-btn-ghost:hover { border-color: var(--line-3); color: var(--fg); }

.ds-btn-lg { height: 52px; padding-inline: 30px; font-size: 16px; }
.ds-btn-block { width: 100%; }

/* Text link with a nudging arrow */
.ds-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gold);
}

.ds-link:hover { color: var(--gold-light); }
.ds-link svg, .ds-link i { transition: transform var(--t); }
.ds-link:hover svg, .ds-link:hover i { transform: translateX(2px); }

/* ========================================================================
   CARDS
   ======================================================================== */

.ds-card {
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid var(--line-2);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
    box-shadow: var(--card-shadow);
}

.ds-card-gold {
    border-color: rgba(232, 205, 130, 0.4);
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.12), rgba(var(--gold-rgb), 0.03));
    box-shadow: var(--card-shadow-gold);
}

.ds-card-plain {
    border-radius: 16px;
    background: var(--ink-2);
    box-shadow: none;
}

.ds-card > :where(h2, h3, h4) + p { margin-top: 10px; }

.ds-card-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 20px;
    border-radius: 11px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold);
    font-size: 15px;
}

/* ========================================================================
   GRID
   ======================================================================== */

.ds-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }

@media (min-width: 680px) {
    .ds-grid-2, .ds-grid-3, .ds-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .ds-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .ds-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.ds-split { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; align-items: start; }

@media (min-width: 900px) {
    .ds-split { grid-template-columns: 1fr 1fr; }
    .ds-split-wide { grid-template-columns: 1.3fr 1fr; }
}

/* ========================================================================
   LISTS
   ======================================================================== */

.ds-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }

.ds-list li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--fg-3);
}

.ds-check {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg);
    font-size: 9px;
}

.ds-card-gold .ds-check {
    border-color: rgba(var(--gold-rgb), 0.45);
    background: rgba(var(--gold-rgb), 0.18);
    color: var(--gold-light);
}

.ds-check-no { color: var(--fg-5); background: none; }

/* ========================================================================
   NUMBERED STEPS
   ======================================================================== */

.ds-steps { counter-reset: ds-step; display: grid; }

.ds-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding-block: 28px;
    border-top: 1px solid var(--line);
}

.ds-step:last-child { border-bottom: 1px solid var(--line); }

.ds-step::before {
    counter-increment: ds-step;
    content: "0" counter(ds-step);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--gold);
    padding-top: 5px;
}

.ds-step p { margin: 10px 0 0; max-width: 62ch; }

/* ========================================================================
   PILL / BADGE
   ======================================================================== */

.ds-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding-inline: 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-2);
}

.ds-pill-gold {
    border-color: rgba(var(--gold-rgb), 0.45);
    background: rgba(var(--gold-rgb), 0.14);
    color: var(--gold-light);
}

/* ========================================================================
   HEADER
   ======================================================================== */

/* The floating pill header, as built on darustrong.com: a centred capsule that
   sits 16px below the top rather than a full-width bar, condenses once you
   scroll, slides away when you scroll down and comes back when you scroll up.
   Values are the ones the app ships, read out of its MarketingLayout bundle.

   The glowing indicator under the active item is the distinctive part: a light
   bar hanging off the top edge, a radial bloom below it, and a faint inset
   capsule. ds.js measures the active link and moves it. */

.ds-header {
    position: sticky;
    top: 16px;
    z-index: 50;
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding: 0 16px;
    pointer-events: none;   /* the page scrolls under the gaps beside the pill */
}

.ds-header-inner {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 1040px;
    height: 60px;
    padding: 0 8px 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: linear-gradient(180deg, #1c1c1b 0%, #0c0c0c 55%, #080808 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6),
        0 18px 40px -12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transition:
        height 0.5s var(--ease),
        max-width 0.6s var(--ease),
        box-shadow 0.5s ease;
}

/* Condensed once the page has moved. */
.ds-header[data-scrolled="true"] .ds-header-inner { max-width: 920px; height: 52px; }

/* Out of the way on the way down, back on the way up. */
.ds-header { transition: transform 0.45s var(--ease), opacity 0.45s ease; }
.ds-header[data-hidden="true"] { transform: translateY(calc(-100% - 24px)); opacity: 0; }

.ds-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.ds-brand img { height: 26px; width: auto; }

.ds-nav {
    position: relative;
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    align-items: stretch;
    justify-content: center;
    height: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.ds-nav::-webkit-scrollbar { display: none; }

.ds-nav a {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    padding: 0 clamp(8px, 1.6vw, 18px);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #8a8a8a;
    transition: color 0.35s ease;
}

.ds-nav a:hover,
.ds-nav a[aria-current="page"] { color: var(--fg); }

/* --- the active-item indicator --- */

.ds-nav-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    opacity: 0;
    pointer-events: none;
    transition: left 0.55s var(--ease), width 0.55s var(--ease), opacity 0.4s ease;
}

.ds-nav-indicator[data-on="true"] { opacity: 1; }

.ds-nav-indicator::before,
.ds-nav-indicator::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); }

/* the light bar on the top edge */
.ds-nav-indicator::before {
    width: 28px;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: #fff;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.9), 0 0 24px 6px rgba(var(--gold-rgb), 0.5);
}

/* the bloom hanging under it */
.ds-nav-indicator::after {
    width: 110px;
    height: 48px;
    background: radial-gradient(ellipse 50% 100% at 50% 0%,
        rgba(255, 255, 255, 0.22), rgba(var(--gold-rgb), 0.08) 50%, transparent 75%);
}

.ds-nav-indicator span {
    position: absolute;
    inset: 10px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.ds-header-actions { flex: none; display: flex; align-items: center; gap: 6px; }

.ds-header-actions .ds-btn {
    height: 40px;
    padding-inline: 18px;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ds-header-login {
    display: none;
    padding: 8px 12px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--fg-3);
    transition: color 0.35s ease;
}

.ds-header-login:hover { color: var(--fg); }

.ds-burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--fg);
    font-size: 15px;
    cursor: pointer;
}

@media (min-width: 900px) {
    .ds-nav { display: flex; }
    .ds-header-login { display: block; }
    .ds-burger { display: none; }
}

@media (max-width: 899px) {
    :root { --pill-space: 88px; }
    .ds-header-inner { height: 56px; padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .ds-header,
    .ds-header-inner,
    .ds-nav-indicator { transition: none; }
}

/* A hero that should run up behind the pill rather than start below it. The
   header is sticky, so it holds its own space in flow; this takes that space
   back and gives it to the media, then restores the height so bottom-aligned
   copy stays exactly where it was. */

.ds-hero-bleed { margin-top: calc(var(--pill-space) * -1); }
.ds-hero-bleed > div:first-child { min-height: calc(clamp(520px, 82vh, 780px) + var(--pill-space)); }

/* Before-and-after carousel. The assessment landing page has one of these in
   its own design language (.pa-ios-carousel); this is the same idea rebuilt on
   ds tokens, reading the same images. Transform-driven, so it stays on the
   compositor; everything stops under prefers-reduced-motion. */

.ds-carousel { position: relative; }

.ds-carousel-viewport {
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 20px;
    background: var(--ink-2);
    box-shadow: var(--card-shadow);
}

.ds-carousel-track {
    display: flex;
    transition: transform 0.55s var(--ease);
}

.ds-carousel-slide { flex: 0 0 100%; min-width: 0; }

.ds-carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ds-carousel-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3);
}

.ds-carousel-arrow {
    position: absolute;
    top: calc(50% - 40px);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(10, 10, 9, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--fg);
    font-size: 14px;
    cursor: pointer;
    transition: background-color var(--t), border-color var(--t), opacity var(--t);
}

.ds-carousel-arrow:hover { background: rgba(10, 10, 9, 0.9); border-color: var(--gold); }
.ds-carousel-arrow[disabled] { opacity: 0.35; cursor: default; }
.ds-carousel-prev { left: 12px; }
.ds-carousel-next { right: 12px; }

.ds-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.ds-carousel-dots button {
    width: 28px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--line-2);
    cursor: pointer;
    transition: background-color var(--t), width var(--t);
}

.ds-carousel-dots button[aria-selected="true"] { width: 44px; background: var(--gold); }

/* The floating social/scroll FAB sits bottom-right and lands straight on the
   next arrow at phone widths. Swipe and the dots are the expected affordance
   on touch anyway, and both are wired, so the arrows step aside. */
@media (max-width: 699px) {
    .ds-carousel-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ds-carousel-track { transition: none; }
    .ds-carousel-dots button { transition: none; }
}

/* --- Mobile sheet --- */

.ds-sheet {
    position: fixed;
    /* clears the floating pill: 16px offset + 16px margin + its 56px height */
    inset: 88px 0 0;
    z-index: 49;
    padding: 24px var(--gutter) 40px;
    background: var(--ink-0);
    overflow-y: auto;
    display: none;
}

.ds-sheet[data-open="true"] { display: block; }

.ds-sheet a.ds-sheet-link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    color: var(--fg-2);
}

.ds-sheet a.ds-sheet-link:hover { color: var(--fg); }
.ds-sheet a.ds-sheet-link[aria-current="page"] { color: var(--fg); font-weight: 500; }
.ds-sheet-cta { display: grid; gap: 10px; margin-top: 28px; }

@media (min-width: 900px) {
    .ds-sheet { display: none !important; }
}

/* ========================================================================
   HERO
   ======================================================================== */

.ds-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(72px, 12vw, 140px);
    border-bottom: 1px solid var(--line);
}

.ds-hero-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    width: min(900px, 140vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.1), transparent 65%);
    pointer-events: none;
}

.ds-hero-inner { position: relative; max-width: 900px; }
.ds-hero-center { margin-inline: auto; text-align: center; }
.ds-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ds-hero-center .ds-hero-ctas { justify-content: center; }

/* ========================================================================
   FOOTER
   ======================================================================== */

.ds-footer { border-top: 1px solid var(--line); background: var(--ink-1); }

/* Footer signup. The popup fires once a visit and stays away for three days
   after a dismissal, so this is the only way most returning visitors can join
   the list. It posts through the same handler; data-newsletter-form carries
   the source so the CRM can tell it apart from the popup. */

.ds-footer-signup {
    display: grid;
    gap: 20px;
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

/* .ds-footer h3 styles the column headings as small mono eyebrows. This one is
   a real heading, so it opts out rather than inheriting that. */
.ds-footer .ds-footer-signup h3 {
    margin: 0;
    font-family: var(--font);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--fg);
}

.ds-footer-signup p { margin: 8px 0 0; max-width: 44ch; }

.ds-signup-form { display: grid; gap: 12px; }
.ds-signup-form .ds-btn { height: 48px; }
.ds-signup-form .ds-status { grid-column: 1 / -1; margin: 0; }

@media (min-width: 720px) {
    .ds-signup-form { grid-template-columns: 1fr 1fr auto; align-items: start; }
}

@media (min-width: 960px) {
    .ds-footer-signup {
        grid-template-columns: 1fr 1.15fr;
        gap: 48px;
        align-items: center;
        padding: 48px 0;
    }
}

.ds-footer-top {
    display: grid;
    gap: 40px;
    padding-block: clamp(48px, 7vw, 72px);
}

@media (min-width: 760px) {
    .ds-footer-top { grid-template-columns: 1.6fr 1fr 1fr; }
}

.ds-footer h3 {
    margin: 0 0 16px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-5);
}

.ds-footer-links { display: grid; gap: 11px; }

.ds-footer-links a {
    width: fit-content;
    font-size: 14px;
    color: var(--fg-4);
    transition: color var(--t);
}

.ds-footer-links a:hover { color: var(--fg); }

.ds-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.ds-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--fg-4);
    font-size: 15px;
    transition: color var(--t), border-color var(--t), background-color var(--t);
}

.ds-social a:hover {
    color: var(--fg);
    border-color: var(--line-2);
    background: rgba(255, 255, 255, 0.04);
}

.ds-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--fg-5);
}

.ds-footer-bottom nav { display: flex; gap: 20px; }
.ds-footer-bottom a:hover { color: var(--fg-2); }

/* ========================================================================
   FORMS
   ======================================================================== */

.ds-form { display: grid; gap: 18px; }

.ds-field { display: grid; gap: 8px; }

.ds-field > span { font-size: 14px; font-weight: 500; color: var(--fg-1); }
.ds-field > span b { color: var(--gold); font-weight: 500; }

.ds-field :where(input, select, textarea) {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--ink-2);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px; /* 16px stops iOS zooming on focus */
    transition: border-color var(--t), background-color var(--t);
}

.ds-field textarea { min-height: 140px; line-height: 1.6; resize: vertical; }
.ds-field :where(input, textarea)::placeholder { color: var(--fg-5); }
.ds-field :where(input, select, textarea):hover { border-color: var(--line-3); }

.ds-field :where(input, select, textarea):focus-visible {
    border-color: var(--gold);
    outline: 2px solid rgba(var(--gold-rgb), 0.35);
    outline-offset: 0;
}

.ds-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ds-status { min-height: 20px; font-size: 14px; line-height: 1.5; }
.ds-status.is-error { color: var(--red); }
.ds-status.is-ok { color: var(--green); }

/* ========================================================================
   ACCORDION
   ======================================================================== */

.ds-faq { border-bottom: 1px solid var(--line); }

.ds-faq summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-height: 44px;
    padding-block: 22px;
    list-style: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--fg-1);
    transition: color var(--t);
}

.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary:hover { color: var(--fg); }

.ds-faq summary::after {
    content: "";
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    margin-top: 6px;
    background: currentColor;
    color: var(--fg-4);
    /* plus sign drawn as a mask so it needs no icon font */
    -webkit-mask: linear-gradient(currentColor 0 0) center/11px 1px no-repeat,
                  linear-gradient(currentColor 0 0) center/1px 11px no-repeat;
    mask: linear-gradient(currentColor 0 0) center/11px 1px no-repeat,
          linear-gradient(currentColor 0 0) center/1px 11px no-repeat;
    transition: transform var(--t);
}

.ds-faq[open] summary::after { transform: rotate(45deg); }

.ds-faq-body {
    padding-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--fg-3);
    max-width: 68ch;
}

.ds-faq-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.ds-faq-group { margin-bottom: 48px; }
.ds-faq-group:last-child { margin-bottom: 0; }

.ds-faq-group > h2 {
    margin: 0 0 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-2);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ========================================================================
   SECTION SUB-NAV
   ======================================================================== */

.ds-subnav { border-bottom: 1px solid var(--line); background: var(--ink-1); }

.ds-subnav-inner {
    display: flex;
    gap: 2px;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
}

.ds-subnav-inner::-webkit-scrollbar { display: none; }

.ds-subnav a {
    flex-shrink: 0;
    padding: 15px 14px;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--fg-4);
    transition: color var(--t), border-color var(--t);
}

.ds-subnav a:hover { color: var(--fg-2); }
.ds-subnav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--gold); }

/* ========================================================================
   MOTION
   ======================================================================== */

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

/* ========================================================================
   MODAL
   ======================================================================== */

.ds-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: var(--gutter);
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ds-modal[data-open="true"] { display: grid; }

.ds-modal-panel {
    position: relative;
    width: min(460px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: clamp(26px, 4vw, 36px);
    border: 1px solid var(--line-2);
    border-radius: 20px;
    background: var(--ink-2);
    box-shadow: var(--card-shadow);
}

.ds-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--fg-4);
    font-size: 15px;
    cursor: pointer;
    transition: color var(--t), background-color var(--t);
}

.ds-modal-close:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }

/* ========================================================================
   COOKIE NOTICE
   ======================================================================== */

.ds-cookie {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: var(--gutter);
    z-index: 70;
    display: none;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 680px;
    margin-inline: auto;
    padding: 16px 20px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: var(--ink-3);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.ds-cookie[data-open="true"] { display: flex; }
.ds-cookie p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--fg-3); }
.ds-cookie a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.ds-cookie-actions { display: flex; gap: 8px; }
.ds-cookie .ds-btn { height: 36px; padding-inline: 16px; font-size: 13.5px; }

/* ========================================================================
   REVEAL ON SCROLL  (stands in for AOS)
   ======================================================================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 620ms var(--ease), transform 620ms var(--ease);
    will-change: opacity, transform;
}

[data-reveal][data-revealed="true"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ========================================================================
   MEDIA
   ======================================================================== */

.ds-media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--ink-2);
}

.ds-media img { width: 100%; height: auto; }

.ds-video-link { display: block; position: relative; }

.ds-video-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

.ds-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(10, 10, 9, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--fg);
    font-size: 18px;
    transition: background-color var(--t), transform var(--t);
}

.ds-video-link:hover .ds-play {
    background: var(--gold);
    color: var(--on-gold);
    transform: translate(-50%, -50%) scale(1.04);
}

/* --- Stat row --- */

.ds-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-top: 36px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--line);
}

@media (min-width: 900px) { .ds-stats { grid-template-columns: repeat(5, 1fr); } }

.ds-stat { padding: 20px 18px; background: var(--ink-1); }

.ds-stat b {
    display: block;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg);
}

.ds-stat span {
    display: block;
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-5);
}

/* ========================================================================
   SOCIAL FAB  (mobile speed-dial)
   ========================================================================
   Restored from the previous build. Hidden from 900px up, where the header
   and footer already carry the same links. */

.ds-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
}

.ds-fab-toggle,
.ds-fab a {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--ink-4);
    color: var(--fg-1);
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.8);
    transition: background-color var(--t), color var(--t), border-color var(--t);
}

.ds-fab-toggle {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--on-gold);
}

.ds-fab-toggle:hover { background: var(--gold-light); }
.ds-fab a:hover { color: var(--fg); border-color: var(--line-3); }

.ds-fab-toggle i { transition: transform var(--t); }
.ds-fab[data-open="true"] .ds-fab-toggle i { transform: rotate(180deg); }

/* The links stack above the toggle, each one springing up in turn. */
.ds-fab-links {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
}

.ds-fab-links a {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    pointer-events: none;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.ds-fab[data-open="true"] .ds-fab-links a {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* Stagger, bottom-most first. */
.ds-fab[data-open="true"] .ds-fab-links a:nth-child(6) { transition-delay: 0ms; }
.ds-fab[data-open="true"] .ds-fab-links a:nth-child(5) { transition-delay: 35ms; }
.ds-fab[data-open="true"] .ds-fab-links a:nth-child(4) { transition-delay: 70ms; }
.ds-fab[data-open="true"] .ds-fab-links a:nth-child(3) { transition-delay: 105ms; }
.ds-fab[data-open="true"] .ds-fab-links a:nth-child(2) { transition-delay: 140ms; }
.ds-fab[data-open="true"] .ds-fab-links a:nth-child(1) { transition-delay: 175ms; }

@media (min-width: 900px) {
    .ds-fab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ds-fab-links a,
    .ds-fab-toggle i { transition: none; }
    .ds-fab[data-open="true"] .ds-fab-links a { transition-delay: 0ms !important; }
}
