/* ==========================================================================
   NextDigital v5 - Digital Presence
   Editorial layout (Lora display + Inter text) on the NextDigital blue/violet
   identity. Light and dark, semantic tokens only.
   ========================================================================== */

:root {
    color-scheme: light;

    --blue: #2563eb;
    --blue-soft: #3b82f6;
    --violet: #7c3aed;
    --violet-soft: #8b5cf6;
    --accent: #6d28d9;
    --accent-quiet: #4f46e5;

    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
    --gradient-text: linear-gradient(120deg, #2563eb 0%, #7c3aed 62%, #8b5cf6 100%);
    --wash: linear-gradient(140deg, rgba(37, 99, 235, .07), rgba(124, 58, 237, .09));

    --page: #ffffff;
    --surface: #f8fafc;
    --surface-2: #ffffff;
    --ink: #0b0f19;
    --body: #334155;
    --muted: #5b6779;
    --faint: #74809a;
    --line: rgba(15, 23, 42, .11);
    --line-strong: rgba(124, 58, 237, .34);
    --shadow: 0 24px 60px rgba(15, 23, 42, .07);
    --shadow-lift: 0 30px 70px rgba(124, 58, 237, .16);

    --radius: 16px;
    --radius-lg: 26px;
    --nav-h: 68px;
}

html[data-theme="dark"] {
    color-scheme: dark;

    --accent: #a78bfa;
    --accent-quiet: #93c5fd;

    --wash: linear-gradient(140deg, rgba(59, 130, 246, .12), rgba(139, 92, 246, .14));

    --page: #080c14;
    --surface: #0e1422;
    --surface-2: #111827;
    --ink: #f6f8fc;
    --body: #cbd5e1;
    --muted: #9fb0c6;
    --faint: #8494ab;
    --line: rgba(148, 163, 184, .18);
    --line-strong: rgba(167, 139, 250, .45);
    --shadow: 0 24px 60px rgba(0, 0, 0, .5);
    --shadow-lift: 0 30px 70px rgba(0, 0, 0, .62);
}

* { box-sizing: border-box; }
/* overflow-x: clip (not hidden) so decorative spill (Swiper cards effect)
   can never turn into a horizontal document scroll. */
html { background: var(--page); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(64% 42% at 50% -6%, rgba(124, 58, 237, .10), transparent 70%),
        radial-gradient(38% 34% at 92% 8%, rgba(37, 99, 235, .09), transparent 72%),
        radial-gradient(40% 40% at 2% 58%, rgba(139, 92, 246, .07), transparent 76%),
        var(--page);
    color: var(--body);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(124, 58, 237, .22); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--page);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

/* --------------------------------------------------------------- layout */

.shell { width: min(100% - 44px, 1140px); margin-inline: auto; }
.narrow { width: min(100% - 44px, 780px); margin-inline: auto; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.section { padding: clamp(72px, 9vw, 116px) 0; }
.section-tight { padding: clamp(52px, 6vw, 78px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.center { text-align: center; }

/* ----------------------------------------------------------- typography */

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    font-family: Lora, Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -.024em;
    overflow-wrap: break-word;
}
h1 { font-size: clamp(40px, 5vw, 62px); line-height: 1.03; }
h2 { font-size: clamp(31px, 3.7vw, 46px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.24; }
h4 { font-size: 17px; line-height: 1.3; }
p { margin: 0; }

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lede {
    color: var(--body);
    font-family: Lora, Georgia, serif;
    font-size: clamp(18px, 1.7vw, 21px);
    line-height: 1.5;
    max-width: 58ch;
}

.copy { color: var(--muted); font-size: 16px; line-height: 1.78; }
.copy + .copy { margin-top: 16px; }
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.stack { display: grid; gap: 18px; }
.stack-lg { display: grid; gap: 26px; }

/* ---------------------------------------------------------------- chrome */

.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--page) 86%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 27px; width: auto; display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}
.nav-links a { text-decoration: none; padding: 6px 0; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: color-mix(in srgb, var(--ink) 42%, transparent);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    /* Clip the off-canvas panel's translateX(100%) so it never widens the page. */
    overflow: hidden;
    transition: opacity .26s ease, visibility .26s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(86vw, 340px);
    display: flex;
    flex-direction: column;
    background: var(--page);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.32, .72, 0, 1);
}
.mobile-menu.open .mobile-panel { transform: none; }
.mobile-menu-head {
    height: var(--nav-h);
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.mobile-menu-head .icon-btn { display: inline-flex; margin: 0; }
.mobile-panel nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; }
.mobile-panel nav a {
    padding: 13px 16px;
    border-radius: 12px;
    color: var(--body);
    font-size: 16px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.mobile-panel nav a:hover { background: var(--surface); color: var(--ink); }
.mobile-panel nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.mobile-actions {
    margin-top: auto;
    padding: 16px 18px 24px;
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------- buttons */

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
    color: #ffffff;
    background: var(--gradient);
    box-shadow: 0 12px 28px rgba(124, 58, 237, .26);
}
.btn-primary:hover { background: var(--gradient-hover); box-shadow: 0 16px 34px rgba(124, 58, 237, .34); transform: translateY(-1px); }
.btn-quiet {
    color: var(--ink);
    border-color: var(--line);
    background: var(--surface-2);
}
.btn-quiet:hover { border-color: var(--line-strong); color: var(--accent); transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn.is-disabled { pointer-events: none; opacity: .55; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ hero */

.hero { padding: calc(var(--nav-h) + clamp(48px, 7vw, 92px)) 0 clamp(56px, 7vw, 88px); }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, .78fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}
/* Let both columns shrink below content min-width (the Swiper carousel
   otherwise forces a 480px track and the page overflows on phones). */
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: clamp(20px, 2.4vw, 30px); justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--faint); font-size: 13px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--accent); }

/* Abstract presence composition (pure CSS, no imagery) */
.presence-card {
    position: relative;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--violet) 9%, var(--surface-2)), var(--surface-2));
    box-shadow: var(--shadow);
    overflow: hidden;
}
.presence-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, .09) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 84%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 84%);
    pointer-events: none;
}
.presence-inner { position: relative; display: grid; gap: 14px; }
.presence-bar { display: flex; align-items: center; gap: 7px; }
.presence-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(124, 58, 237, .45); }
.presence-dot:nth-child(2) { background: rgba(37, 99, 235, .38); }
.presence-dot:nth-child(3) { background: rgba(124, 58, 237, .2); }
.presence-url {
    flex: 1;
    height: 24px;
    margin-left: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--faint);
    font-size: 11px;
    letter-spacing: .04em;
}
.presence-canvas {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}
.presence-row { display: flex; align-items: center; justify-content: space-between; }
.presence-logo { width: 34px; height: 10px; border-radius: 999px; background: var(--gradient); }
.presence-links { display: flex; gap: 8px; }
.presence-links span { width: 22px; height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.presence-head { display: flex; align-items: center; gap: 14px; }
.presence-avatar { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 17px; background: var(--gradient); }
.presence-lines { display: grid; gap: 9px; flex: 1; }
.presence-lines span { height: 11px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 13%, transparent); }
.presence-lines span:first-child { width: 76%; background: var(--gradient); opacity: .78; }
.presence-lines span:last-child { width: 50%; }
.presence-band { height: 82px; border-radius: 16px; background: var(--wash); border: 1px solid var(--line); }
.presence-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.presence-tiles span { height: 52px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface-2); }

/* Presence preview rows (rendered by site.js) */
.preview-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
}
.preview-row svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent); }
.preview-row strong { display: block; color: var(--ink); font-size: 14.5px; }
.preview-row span { display: block; margin-top: 2px; color: var(--faint); font-size: 12.5px; line-height: 1.5; }

/* ------------------------------------------------------------- statement */

.statement { padding: clamp(80px, 11vw, 140px) 0; }
.statement-inner { width: min(100% - 44px, 840px); margin-inline: auto; display: grid; justify-items: center; gap: 28px; text-align: center; }
.statement h2 { max-width: 20ch; }
.statement-rule { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.statement-lines { display: grid; gap: 15px; max-width: 62ch; }
.statement-lines .copy { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.66; }

/* ------------------------------------------------------------ head units */

.head { max-width: 760px; display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 54px); }
.head-center { margin-inline: auto; justify-items: center; text-align: center; }
.head-center .lede { margin-inline: auto; }

/* ----------------------------------------------------------------- cards */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-2);
    box-shadow: var(--shadow);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 10px; }
.card .copy { font-size: 15px; }
.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; box-shadow: none; }

.card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--wash);
    border: 1px solid var(--line);
}
.card-icon svg { width: 21px; height: 21px; }

.numbered { color: var(--accent); font-family: Lora, Georgia, serif; font-size: 40px; line-height: 1; }

/* ----------------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step {
    position: relative;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-2);
}
.step-index {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step .copy { font-size: 15px; }

/* --------------------------------------------------------------- listing */

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; color: var(--body); font-size: 15.5px; line-height: 1.6; }
.check-list svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--accent); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 64px);
    align-items: center;
}
.split + .split { margin-top: clamp(56px, 7vw, 90px); }
.split-reverse .split-text { order: 2; }

.band {
    padding: clamp(30px, 4vw, 46px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--wash);
}
.band-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: center; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--accent);
    background: var(--surface-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}
.pill svg { width: 14px; height: 14px; }

.signature { display: flex; flex-wrap: wrap; gap: 18px 40px; }
.signature div { min-width: 130px; }
.signature strong {
    display: block;
    font-family: Lora, Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.signature span { display: block; margin-top: 6px; color: var(--faint); font-size: 11px; letter-spacing: .17em; text-transform: uppercase; }

/* ------------------------------------------------------------------- faq */

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item {
    padding: 2px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-2);
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 0;
    color: var(--ink);
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .copy { padding: 0 0 20px; font-size: 15.5px; }

/* -------------------------------------------------------------- page top */

.page-hero { padding: calc(var(--nav-h) + clamp(56px, 7vw, 84px)) 0 clamp(30px, 4vw, 48px); }
.page-hero .head { margin-bottom: 0; }

/* ----------------------------------------------------------------- forms */

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
    gap: clamp(34px, 5vw, 56px);
    align-items: start;
}
.form-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-2);
    box-shadow: var(--shadow);
}
.field-group { display: grid; gap: 8px; margin-bottom: 18px; }
.field-group label { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.field, textarea, select {
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--page);
    color: var(--ink);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder, textarea::placeholder { color: var(--faint); opacity: .75; }
.field:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
textarea { min-height: 132px; resize: vertical; }
.form-note { margin-top: 14px; color: var(--faint); font-size: 12px; line-height: 1.6; text-align: center; }
.entry-note {
    margin-top: 6px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ------------------------------------------------------------------ auth */

.auth-main { min-height: calc(100svh - 84px); display: grid; place-items: center; padding: 84px 22px 44px; }
.auth-wrap { width: min(100%, 400px); }
.auth-panel {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-2);
    box-shadow: var(--shadow);
}
.auth-brand { display: flex; justify-content: center; margin-bottom: 26px; }
.auth-brand img { height: 27px; width: auto; }
.auth-head { margin-bottom: 22px; text-align: center; display: grid; gap: 10px; }
.auth-head h1 { font-size: 26px; line-height: 1.2; }
.auth-head p { color: var(--muted); font-size: 15px; line-height: 1.62; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.field-row label { margin: 0; }
.field-row a, .auth-foot a, .auth-copy a { color: var(--accent); font-weight: 600; text-decoration: none; }
.field-row a { font-size: 12px; letter-spacing: 0; text-transform: none; }
.field-row a:hover, .auth-foot a:hover { text-decoration: underline; }
.password-field { position: relative; }
.password-field .field { padding-right: 48px; }
.password-toggle {
    position: absolute;
    inset: 0 0 0 auto;
    width: 46px;
    border: 0;
    background: transparent;
    color: var(--faint);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.password-toggle:hover { color: var(--ink); }
.password-toggle svg { width: 18px; height: 18px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--faint); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--page);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease;
}
.social-btn:hover { border-color: var(--line-strong); }
.google-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #4285f4;
    font-size: 13px;
    font-weight: 800;
}
.auth-foot { margin-top: 22px; color: var(--muted); font-size: 14px; text-align: center; line-height: 1.6; }
.auth-footer { padding: 0 22px 26px; }
.auth-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; color: var(--faint); font-size: 12px; }
.auth-footer a { text-decoration: none; }
.auth-footer a:hover { color: var(--ink); }
.auth-success { display: grid; justify-items: center; gap: 14px; text-align: center; }
.auth-success[hidden] { display: none; }
.success-mark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--wash);
    border: 1px solid var(--line);
}
.code-inputs { display: flex; justify-content: space-between; gap: 8px; }
.code-inputs .field {
    width: 100%;
    padding: 13px 0;
    text-align: center;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .08em;
}
.auth-hint { margin-top: 12px; color: var(--faint); font-size: 12.5px; text-align: center; line-height: 1.6; }
.auth-hint code { color: var(--body); font-size: 12.5px; }

/* ---------------------------------------------------------------- legals */

.prose { display: grid; gap: 22px; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 19px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-card { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); }

/* ---------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); background: var(--page); }
.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 38px;
    padding: clamp(44px, 6vw, 66px) 0 38px;
}
.footer-brand p { margin-top: 16px; max-width: 34ch; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.footer-col h4 { margin-bottom: 16px; color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.footer-col nav { display: grid; gap: 11px; }
.footer-col nav a { color: var(--muted); font-size: 14.5px; text-decoration: none; transition: color .2s ease; }
.footer-col nav a:hover { color: var(--accent); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0 30px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: 13px;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ------------------------------------------------------------- theme fab */

.theme-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; }
.theme-toggle {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-2) 88%, transparent);
    color: var(--accent);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    min-width: 158px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-2);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.theme-fab.open .theme-menu { opacity: 1; visibility: visible; transform: none; }
.theme-menu button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
}
.theme-menu button:hover { background: var(--surface); color: var(--ink); }
.theme-menu button.active { color: var(--accent); font-weight: 600; }
.theme-menu svg { width: 16px; height: 16px; flex: 0 0 auto; }
.theme-menu .check { margin-left: auto; opacity: 0; }
.theme-menu button.active .check { opacity: 1; }

/* -------------------------------------------------------------- 404 page */

.notfound { min-height: 100svh; display: grid; place-items: center; padding: 100px 22px 60px; text-align: center; }
.notfound-code {
    font-family: Lora, Georgia, serif;
    font-size: clamp(72px, 14vw, 132px);
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* -------------------------------------------------------------- motional */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1020px) {
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 900px) {
    .nav-links, .nav-actions { display: none; }
    .icon-btn { display: inline-flex; }
    .hero-grid, .split, .band-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
    .split > *, .band-grid > *, .two-col > * { min-width: 0; }
    .split-reverse .split-text { order: 0; }
    .hero-side { max-width: 480px; margin-inline: auto; width: 100%; }
    .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .presence-tiles { grid-template-columns: repeat(3, 1fr); }
    .theme-fab { right: 14px; bottom: 14px; }
}

/* ==========================================================================
   v2 redesign additions — two pillars (Presence / Platforms), audiences.
   Minimal, reuses existing tokens. Presence leans violet, Platforms blue.
   ========================================================================== */

/* Pills sit inside grid containers (.stack, .stack-lg, .split-text); stop them
   stretching to full column width. */
.pill { justify-self: start; width: fit-content; max-width: 100%; }

/* Pillar accent scoping (within a subtree only) */
.accent-violet { --accent: #6d28d9; }
.accent-blue { --accent: #1d4ed8; }
html[data-theme="dark"] .accent-violet { --accent: #a78bfa; }
html[data-theme="dark"] .accent-blue { --accent: #93c5fd; }

/* Two large pillar cards (home) */
.pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pillar-card {
    position: relative;
    display: grid;
    gap: 16px;
    padding: clamp(26px, 3vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.pillar-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent 82%);
}
.pillar-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pillar-card .card-icon { margin-bottom: 4px; }
.pillar-card h3 { font-size: 25px; }
.pillar-tag { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pillar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pillar-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); font-size: 15px; }
.pillar-list svg { width: 17px; height: 17px; margin-top: 3px; flex: 0 0 auto; color: var(--accent); }

/* Platforms hero visual — CSS-only board, parallels .presence-card */
.board {
    position: relative;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--blue) 9%, var(--surface-2)), var(--surface-2));
    box-shadow: var(--shadow);
    overflow: hidden;
}
.board::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .09) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 84%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 84%);
    pointer-events: none;
}
.board-inner { position: relative; display: grid; gap: 14px; }
.board-bar { display: flex; align-items: center; gap: 7px; }
.board-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(37, 99, 235, .45); }
.board-dot:nth-child(2) { background: rgba(124, 58, 237, .38); }
.board-dot:nth-child(3) { background: rgba(37, 99, 235, .2); }
.board-title {
    flex: 1;
    height: 24px;
    margin-left: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--faint);
    font-size: 11px;
    letter-spacing: .04em;
}
.board-canvas {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}
.board-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.board-stat { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); display: grid; gap: 8px; }
.board-stat span { height: 8px; width: 60%; border-radius: 999px; background: color-mix(in srgb, var(--ink) 13%, transparent); }
.board-stat b { height: 14px; width: 42%; border-radius: 999px; background: var(--gradient); opacity: .8; }
.board-rows { display: grid; gap: 9px; }
.board-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.board-row i { width: 22px; height: 8px; border-radius: 999px; background: var(--gradient); opacity: .7; flex: 0 0 auto; }
.board-row span { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.board-row span:first-of-type { flex: 1; }
.board-row span:last-of-type { width: 44px; }

/* Pair the two hero visuals on the home page */
.duo-visual { display: grid; gap: 16px; }
.duo-visual .presence-card { --accent: #6d28d9; }

/* Audience mini-note (3-up used on pillar pages) */
.mini-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini { display: grid; gap: 7px; }
.mini h4 { color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mini p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* Cross-link teaser between pillars */
.crosslink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--wash);
}
.crosslink p { color: var(--body); font-size: 16px; }
.crosslink strong { color: var(--ink); }

@media (max-width: 900px) {
    .pillar-grid { grid-template-columns: 1fr; }
    .mini-3 { grid-template-columns: 1fr; }
}
