/* ==========================================================================
   LIOS website
   Values mirror the approved designs at 1440px. Responsive rules are at the end.
   ========================================================================== */

@font-face {
    font-family: 'Catamaran';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/catamaran-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Catamaran';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/catamaran-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #1C1B2B;
    --bg-band: #232235;
    --surface: #26253A;
    --line: #302F46;
    --border: #36354D;
    --border-strong: #4A4863;
    --text: #FFFFFF;
    --muted: #D4D2E2;
    --subtle: #B9B7CC;
    --accent: #96DCC0;
    --link-hover: #C9F0E0;
    --danger: #E5484D;
    --error-text: #FFB4B8;

    --gutter: 32px;
    --header-h: 97px;
    --s128: 128px;
    --s120: 120px;
    --s112: 112px;
    --s96: 96px;
    --s88: 88px;
    --s72: 72px;
    --s64: 64px;
    --s56: 56px;

}

/* ---------- Base ---------- */

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

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Catamaran', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--text); text-decoration: none; }

svg { flex-shrink: 0; }

/* Anchor targets land just below the sticky header. JS keeps --header-h exact. */
[id] { scroll-margin-top: var(--header-h); }
.legal-item[id], #contact, #request { scroll-margin-top: calc(var(--header-h) + 16px); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 999px;
}
.skip-link:focus { top: 16px; }

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

.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- Typography helpers ---------- */

.eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
}
.eyebrow-sm { font-size: 13px; }

.caps {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--subtle);
    line-height: 1.55;
}
.caps-wide { letter-spacing: 3px; }
.caps-gap { margin-top: 18px; }
.caps-gap-lg { margin-top: 22px; }

.h2 {
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.05;
    font-weight: 800;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 760px;
}
.section-head-tight { gap: 14px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.55;
    cursor: pointer;
    transition: filter .15s ease, background-color .15s ease, border-color .15s ease;
}
button.btn { line-height: normal; }
.btn:hover { filter: brightness(1.07); }
.btn:active { filter: brightness(.95); }

.btn-accent { background: var(--accent); color: var(--bg); }
.btn-accent:hover { color: var(--bg); }

.btn-sm { font-size: 16px; padding: 12px 22px; min-height: 44px; }
.btn-lg { font-size: 18px; padding: 16px 28px; min-height: 52px; }
.btn-xl { font-size: 18px; padding: 16px 32px; min-height: 52px; }

.btn-outline {
    border: 1.5px solid var(--border-strong);
    color: var(--text);
    font-weight: 600;
}
.btn-outline:hover { border-color: var(--subtle); filter: none; }

.btn-dark {
    align-self: flex-start;
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    padding: 14px 26px;
    min-height: 48px;
}

.btn-danger { background: var(--danger); color: var(--text); }

.btn-form { font-size: 17px; padding: 14px 24px; min-height: 52px; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* ---------- Header ---------- */

/* Full-width sticky bar. Transparent at the top of the page (identical to the design);
   once scrolled it gains a frosted background and a hairline divider. No height change, so nothing jumps. */
.header-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

.header-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    /* Solid page colour at rest: looks transparent and keeps crisp (sub-pixel) text rendering. */
    background: var(--bg);
    box-shadow: none;
    transition: background-color .25s ease, box-shadow .25s ease;
}
.header-bar.is-stuck {
    background: rgba(28, 27, 43, .97);
    box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(10, 9, 20, .28);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .header-bar.is-stuck {
        background: rgba(28, 27, 43, .8);
        -webkit-backdrop-filter: saturate(140%) blur(16px);
        backdrop-filter: saturate(140%) blur(16px);
    }
}

.site-header {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 1px;
}
.brand:hover { color: var(--link-hover); }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    font-size: 16px;
    font-weight: 600;
}
.site-nav a { color: var(--muted); transition: color .15s ease; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
    color: var(--text);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    border: 1.5px solid var(--border-strong);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.is-open .nav-toggle-bars { background: transparent; }
.is-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Shared sections ---------- */

.band {
    background: var(--bg-band);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------- Home: hero ---------- */

.hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--s72) var(--gutter) var(--s96);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 64px;
}

.hero-copy {
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.display {
    font-size: clamp(56px, 8vw, 112px);
    line-height: .92;
    font-weight: 800;
    letter-spacing: -2px;
}

.lead {
    font-size: 21px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 560px;
}

.hero-note { font-size: 16px; color: var(--subtle); }

.hero-visual {
    flex: 0 1 340px;
    min-width: min(280px, 100%);
    display: flex;
    justify-content: center;
}

/* Phone mock-up */
.phone {
    width: 320px;
    max-width: 100%;
    height: 640px;
    border-radius: 48px;
    background: #14131F;
    border: 10px solid #2F2E45;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.phone-cover { height: 170px; flex-shrink: 0; background: #F2A97E; position: relative; overflow: hidden; }
.phone-cover-hill { position: absolute; left: 20px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: #E58A5E; }
.phone-cover-sun { position: absolute; right: 30px; top: 30px; width: 54px; height: 54px; border-radius: 50%; background: #FCE3C9; }
.phone-cover-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: #3B5C6E; }

.phone-stats-wrap { padding: 0 16px; margin-top: -26px; position: relative; }
.phone-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px 4px;
    text-align: center;
}
.phone-stat-num { font-weight: 800; font-size: 17px; }
.phone-stat-label { font-size: 10px; color: var(--subtle); }

.phone-name { padding: 14px 18px 0; }
.phone-name-title { font-weight: 800; font-size: 24px; line-height: 1.1; }
.phone-name-handle { font-size: 13px; color: var(--subtle); }

.phone-toggle-wrap { padding: 14px 16px 0; }

.phone-grid {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    flex: 1;
}
.tile { border-radius: 14px; position: relative; overflow: hidden; }
.tile > div { position: absolute; }
.tile-green { background: #3E7A66; }
.tile-green > div { left: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; background: #96DCC0; }
.tile-violet { background: #7F78B8; }
.tile-violet > div { right: 0; bottom: 0; width: 70%; height: 40%; background: #5E57A0; }
.tile-blue { background: #2733DF; }
.tile-blue > div { left: 0; right: 0; top: 40%; height: 3px; background: #96DCC0; }
.tile-peach { background: #F2A97E; }
.tile-peach > div { left: 20%; top: 20%; width: 60%; height: 60%; border-radius: 12px; background: #FCE3C9; }

/* Expectation / Reality toggle */
.toggle {
    display: flex;
    background: var(--surface);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}
.toggle > div {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 0;
    border-radius: 999px;
    color: var(--subtle);
}
.toggle > div.is-on { background: var(--text); color: var(--bg); }
.toggle-sm > div { font-size: 13px; padding: 7px 0; }

/* ---------- Home: statement ---------- */

.statement {
    max-width: 1040px;
    margin: 0 auto;
    padding: var(--s96) var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
    align-items: center;
}
.statement-title {
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 1.12;
    font-weight: 800;
}
.statement-sub { font-size: 20px; color: var(--muted); max-width: 700px; }

/* ---------- Home: how it works ---------- */

.how {
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--s112) var(--gutter) var(--s56);
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 24px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature h3 { font-size: 26px; font-weight: 800; line-height: 1.15; }
.feature > p { color: var(--muted); }

.mock {
    background: var(--bg);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mock-g10 { gap: 10px; }
.mock-g12 { gap: 12px; }

.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mock-live { font-size: 13px; font-weight: 700; color: var(--accent); }
.mock-q { font-size: 18px; font-weight: 700; }
.mock-note { font-size: 13px; color: var(--subtle); }

.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.swatches > div { height: 70px; border-radius: 10px; }
.swatch-peach { background: #F2A97E; }
.swatch-violet { background: #7F78B8; }
.swatch-green { background: #3E7A66; }

.meter { height: 8px; border-radius: 999px; background: var(--border); position: relative; }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 62%; border-radius: 999px; background: var(--accent); }
.meter-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--subtle); }

.opt { font-size: 15px; padding: 10px 14px; border-radius: 12px; background: var(--surface); }
.opt.is-on { background: var(--accent); color: var(--bg); font-weight: 700; }

.points {
    background: #3E7A66;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.points-label { font-size: 13px; color: #E2F3EC; }
.points-value { font-size: 30px; font-weight: 800; line-height: 1.1; }
.points-pill { font-size: 13px; font-weight: 700; background: #5E9784; padding: 8px 14px; border-radius: 999px; }

.reward-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    border-radius: 12px;
    padding: 12px 14px;
}
.reward-name { font-size: 15px; font-weight: 700; }
.reward-cost { font-size: 14px; color: var(--subtle); }

.caps-icon { display: flex; align-items: center; gap: 10px; }

.diary-text { font-size: 16px; line-height: 1.5; color: var(--muted); }

.streak {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    border-radius: 14px;
    padding: 14px 16px;
}
.streak-title { font-size: 17px; font-weight: 800; }
.streak-sub { font-size: 13px; color: var(--subtle); }
.streak-num { font-size: 28px; font-weight: 800; }

.bubble {
    align-self: flex-start;
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

.feature-wide {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.feature-wide-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-wide-copy h3 { font-size: 34px; font-weight: 800; line-height: 1.1; }
.feature-wide-copy p { color: var(--muted); }
.feature-wide-tiles {
    flex: 1 1 420px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.support-tile { background: var(--bg); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.support-tile-title { font-size: 22px; font-weight: 800; }
.support-tile-text { font-size: 16px; color: var(--muted); }
.support-tile-meta { font-size: 15px; font-weight: 700; color: var(--accent); }

/* ---------- Home: free banner ---------- */

.free-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px var(--gutter) var(--s112);
}
.free {
    background: var(--accent);
    color: var(--bg);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}
.free-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.15; flex: 1 1 420px; }
.free-text { font-size: 18px; line-height: 1.55; flex: 1 1 380px; font-weight: 500; }

/* ---------- Home: who it's for ---------- */

.who {
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--s112) var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.for-you {
    background: var(--accent);
    color: var(--bg);
    border-radius: 28px;
    padding: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.for-you-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.for-you-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: #2E4A40; }
.for-you-copy h3 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; line-height: 1.08; }
.for-you-copy p:not(.for-you-eyebrow) { font-size: 19px; line-height: 1.55; font-weight: 500; }
.for-you-grid { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini { background: var(--bg); color: var(--text); border-radius: 18px; padding: 20px; }
.mini-title { font-size: 19px; font-weight: 800; }
.mini-text { font-size: 15px; color: var(--muted); margin-top: 4px; }

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 24px;
}
.audience {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.audience-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--subtle); }
.audience h3 { font-size: 30px; font-weight: 800; line-height: 1.12; }
.audience > p:not(.audience-eyebrow) { color: var(--muted); }
.audience-link {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 700;
    color: var(--accent);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.audience-link:hover { color: var(--link-hover); }

/* ---------- Home: privacy ---------- */

.privacy {
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--s112) var(--gutter);
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
}
.privacy-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.privacy-grid {
    flex: 1 1 520px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 20px;
}
.privacy-card { background: var(--surface); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.privacy-card-title { font-size: 21px; font-weight: 800; }
.privacy-card-text { color: var(--muted); font-size: 17px; }

/* ---------- Home: built in Dubai ---------- */

.built {
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--s112) var(--gutter);
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: center;
}
.built-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.h2-built { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; font-weight: 800; }
.built-stats { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.stat { background: var(--bg); border-radius: 22px; padding: 28px; }
.stat-num { font-size: 48px; font-weight: 800; line-height: 1; color: var(--accent); }
.stat-text { font-size: 17px; color: var(--muted); margin-top: 8px; }

/* ---------- Join ---------- */

.join {
    max-width: 1040px;
    margin: 0 auto;
    padding: var(--s128) var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    text-align: center;
}
.join-cta { gap: 26px; }
.join-inner { display: flex; flex-direction: column; gap: 28px; align-items: center; width: 100%; }
.h2-join { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; font-weight: 800; }
.join-text { font-size: 20px; color: var(--muted); max-width: 600px; }

.join-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 680px;
}
.join-form .form-alert { flex: 1 1 100%; }
.field-email { flex: 1 1 260px; }
.field-country { flex: 1 1 180px; }
.join-form .field { text-align: left; }
/* Matches the design: inputs keep their natural width, so the button drops to its own row. */
@media (min-width: 641px) {
    .join-form .field { min-width: auto; }
    .join-form .input { width: auto; }
}
.btn-submit {
    align-self: flex-end;
    font-size: 18px;
    padding: 14px 28px;
    min-height: 52px;
}

/* ---------- Forms ---------- */

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--subtle);
    min-width: 0;
}

.input {
    font-family: inherit;
    font-size: 18px;
    line-height: normal;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    min-height: 52px;
    box-sizing: border-box;
    width: 100%;
    font-weight: 400;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(150, 220, 192, .22); }
.input.input-validation-error { border-color: var(--danger); }

.input-dark {
    font-size: 17px;
    padding: 12px 16px;
    background: var(--bg);
    min-height: 50px;
}
.textarea { resize: vertical; min-height: 0; }

.field-error { font-size: 14px; font-weight: 600; color: var(--error-text); }
.field-error:empty { display: none; }

.form-alert {
    background: #3A2530;
    border: 1px solid #6B3A4A;
    color: #F3DCE2;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}

.notice {
    background: rgba(150, 220, 192, .12);
    border: 1px solid var(--accent);
    color: var(--text);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    max-width: 680px;
    box-sizing: border-box;
    width: 100%;
}

.stack-form { display: flex; flex-direction: column; gap: 16px; }

.form-foot { font-size: 14px; line-height: 1.5; color: var(--subtle); }
.contact .form-foot { line-height: 1.55; }
.form-foot a { color: var(--text); font-weight: 700; }
.form-foot a:hover { color: var(--link-hover); }

/* ---------- Page heroes ---------- */

.page-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--s72) var(--gutter) var(--s64);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.page-hero-about { padding-bottom: var(--s88); gap: 26px; }
.page-hero-support { padding-bottom: var(--s72); }

.h1-about { font-size: clamp(52px, 7.4vw, 104px); line-height: .95; font-weight: 800; letter-spacing: -2px; max-width: 1080px; }
.h1-support { font-size: clamp(52px, 7vw, 96px); line-height: .96; font-weight: 800; letter-spacing: -2px; max-width: 980px; }
.h1-legal { font-size: clamp(48px, 6.4vw, 88px); line-height: .98; font-weight: 800; letter-spacing: -1.5px; max-width: 1000px; }
.h1-delete { font-size: clamp(48px, 6vw, 84px); line-height: .98; font-weight: 800; letter-spacing: -1.5px; }

.lead-about { font-size: 22px; line-height: 1.55; color: var(--muted); max-width: 720px; }
.lead-support { font-size: 22px; line-height: 1.55; color: var(--muted); max-width: 680px; }
.lead-legal { font-size: 21px; line-height: 1.6; color: var(--muted); max-width: 760px; }
.delete-copy .lead-legal { max-width: none; }

.updated { font-size: 15px; color: var(--subtle); }

.alert-danger {
    background: #3A2530;
    border: 1px solid #6B3A4A;
    border-radius: 18px;
    padding: 18px 22px;
    font-size: 17px;
    line-height: 1.55;
    color: #F3DCE2;
    max-width: 860px;
}
.alert-danger b { color: var(--text); }
.alert-danger-lg { border-radius: 20px; padding: 22px 26px; font-size: 18px; max-width: none; }

.error-page { min-height: 40vh; }

/* ---------- About ---------- */

.pillars {
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--s88) var(--gutter);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 24px;
}
.pillar { background: var(--bg); border-radius: 28px; padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.pillar-text { font-size: 20px; line-height: 1.5; }

.story {
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--s112) var(--gutter);
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
    align-items: flex-start;
}
.story-aside { flex: 0 1 340px; min-width: min(280px, 100%); display: flex; flex-direction: column; gap: 18px; }
.story-quote { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.15; font-weight: 800; }
.story-body {
    flex: 1 1 560px;
    min-width: 0;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    font-size: 20px;
    line-height: 1.7;
    color: var(--muted);
}
.story-big { font-size: 26px; line-height: 1.35; font-weight: 800; color: var(--text); }
.story-strong { color: var(--text); font-weight: 700; }
.story-sign { font-size: 26px; font-weight: 800; color: var(--accent); }

.person { display: flex; align-items: center; gap: 14px; }
.person-lg { margin-top: 8px; }
.person-meta { display: flex; flex-direction: column; }
.person-name { font-size: 22px; font-weight: 800; }
.person-lg .person-name { font-size: 18px; }
.person-role { font-size: 15px; color: var(--subtle); }

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}
.person-lg .avatar { width: 60px; height: 60px; font-size: 24px; }
.avatar-green { background: #5E9784; }
.avatar-violet { background: #7F78B8; }

.team {
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--s112) var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.h2-team { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; font-weight: 800; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
    gap: 24px;
}
.team-card { background: var(--bg); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.team-card p { color: var(--muted); }

/* ---------- Support ---------- */

.support {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px var(--gutter) var(--s112);
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: flex-start;
}
.faq { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-strong);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--subtle); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item[hidden] { display: none; }
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    color: var(--text);
    font-size: 21px;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
    min-height: 44px;
    box-sizing: border-box;
    list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }
.faq-sign {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--accent);
}
.faq-sign::before { content: "+"; }
.faq-item[open] .faq-sign::before { content: "\00d7"; }
.faq-a { padding: 0 56px 24px 0; font-size: 18px; line-height: 1.65; color: var(--muted); }

.contact {
    flex: 0 1 420px;
    min-width: min(300px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-title { font-size: 28px; font-weight: 800; line-height: 1.55; }
.contact-sub { font-size: 16px; color: var(--subtle); }

.topics { border: 0; padding: 0; min-width: 0; gap: 8px; }
.topics legend { padding: 0; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pill span {
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-strong);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pill span:hover { border-color: var(--subtle); }
.pill input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Legal pages (Safety, Community, Terms) ---------- */

.intro {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.intro-community { gap: 18px; }

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 18px;
}
.safety-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.safety-card-title { font-size: 20px; font-weight: 800; }
.safety-card-text { font-size: 16px; line-height: 1.55; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--border-strong); font-size: 16px; font-weight: 600; }

.steps { display: flex; flex-wrap: wrap; gap: 18px; }
.step {
    flex: 1 1 220px;
    background: var(--surface);
    border-radius: 22px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.step-num { font-size: 14px; font-weight: 700; color: var(--accent); }
.step-title { font-size: 19px; font-weight: 800; }
.step-text { font-size: 16px; color: var(--muted); line-height: 1.5; }

.legal {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px var(--gutter) var(--s120);
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
    align-items: flex-start;
}
.toc {
    flex: 0 1 280px;
    min-width: min(240px, 100%);
    background: var(--surface);
    border-radius: 22px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
}
.toc-heading { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--subtle); margin-bottom: 6px; }
.toc a { display: flex; gap: 12px; padding: 8px 0; color: var(--muted); font-size: 16px; transition: color .15s ease; }
.toc a:hover { color: var(--text); }
.toc-num { color: var(--accent); font-weight: 700; width: 24px; flex-shrink: 0; }

.legal-body { flex: 1 1 640px; min-width: 0; max-width: 820px; }
.legal-item { padding: 36px 0; border-top: 1px solid var(--line); display: flex; gap: 28px; }
.legal-num { font-size: 15px; font-weight: 700; color: var(--accent); width: 40px; flex-shrink: 0; padding-top: 6px; }
.legal-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.legal-text h2 { font-size: 30px; line-height: 1.2; font-weight: 800; }
.legal-text p { font-size: 19px; line-height: 1.7; color: var(--muted); }

/* ---------- Delete account ---------- */

.delete {
    max-width: 1240px;
    margin: 0 auto;
    padding: var(--s72) var(--gutter) var(--s120);
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
    align-items: flex-start;
}
.delete-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.checklist {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.checklist ol { display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 14px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.checklist-num { color: var(--accent); font-weight: 800; }

.delete-form {
    flex: 0 1 460px;
    min-width: min(300px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 32px;
}
.delete-form-title { font-size: 26px; font-weight: 800; line-height: 1.55; }

.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
    cursor: pointer;
}
.check input {
    width: 22px;
    height: 22px;
    margin: 2px 3px 3px 4px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px var(--gutter) 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 26px; letter-spacing: 1px; }
.footer-tagline { color: var(--subtle); font-size: 16px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { transition: color .15s ease; }
.footer-col a:hover { color: var(--link-hover); }
.footer-heading { font-weight: 700; font-size: 13px; letter-spacing: 2px; color: var(--subtle); }
.footer-disclaimer { background: var(--surface); border-radius: 18px; padding: 20px 24px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--subtle); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Sticky "On this page" only while it sits beside the content. */
@media (min-width: 1049px) {
    .toc { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Collapse the header nav into a menu before it would wrap. */
@media (max-width: 1060px) {
    .nav-toggle { display: inline-flex; }

    .site-nav {
        display: none;
        order: 3;
        flex: 1 1 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 22px;
        padding: 8px 20px;
        /* Float the menu over the page so opening it never pushes content down. */
        position: absolute;
        top: calc(100% - 8px);
        left: var(--gutter);
        right: var(--gutter);
        max-height: calc(100vh - var(--header-h) - 16px);
        max-height: calc(100dvh - var(--header-h) - 16px);
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 18px 40px rgba(10, 9, 20, .45);
    }
    .site-nav a {
        display: flex;
        align-items: center;
        min-height: 48px;
        font-size: 17px;
        border-bottom: 1px solid var(--line);
    }
    .site-nav a:last-child { border-bottom: 0; }
    .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--line); padding-bottom: 0; color: var(--accent); }
    .site-nav a[aria-current="page"]:last-child { border-bottom: 0; }

    .is-open .site-nav { display: flex; }
}

@media (max-width: 760px) {
    :root {
        --s128: 96px;
        --s120: 88px;
        --s112: 80px;
        --s96: 72px;
        --s88: 64px;
        --s72: 48px;
        --s64: 48px;
        --s56: 48px;
    }

    .hero { gap: 56px; }
    .how { gap: 40px; }
    .story { gap: 40px; }
    .legal, .delete { gap: 40px; }
}

@media (max-width: 640px) {
    :root {
        --gutter: 20px;
        --header-h: 85px;
        --s128: 80px;
        --s120: 72px;
        --s112: 64px;
        --s96: 56px;
        --s88: 56px;
        --s72: 40px;
        --s64: 40px;
        --s56: 40px;
    }

    .site-header { padding-top: 18px; padding-bottom: 18px; gap: 16px; }
    .brand { font-size: 24px; }
    .brand .logo-mark { width: 34px; height: 17px; }

    .hero-copy { gap: 22px; }
    .lead { font-size: 19px; }
    .lead-about, .lead-support { font-size: 20px; }
    .lead-legal { font-size: 19px; }
    .btn-row .btn { flex: 1 1 auto; }

    .feature, .audience, .team-card, .pillar { padding: 26px; border-radius: 24px; }
    .feature-wide, .free { padding: 28px; border-radius: 24px; gap: 28px; }
    .feature-wide-copy h3 { font-size: 28px; }
    .for-you { padding: 28px; border-radius: 24px; gap: 28px; }
    .for-you-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .mini { padding: 16px; }
    .mini-title { font-size: 17px; }
    .audience h3 { font-size: 26px; }
    .stat-num { font-size: 40px; }
    .privacy-card, .stat { padding: 24px; }

    .join-form .btn-submit { flex: 1 1 100%; }

    .story-body { font-size: 18px; gap: 18px; }
    .story-big, .story-sign { font-size: 23px; }

    .faq-q { font-size: 19px; padding: 18px 0; gap: 14px; }
    .faq-a { padding-right: 0; font-size: 17px; }
    .contact, .delete-form { padding: 24px; border-radius: 24px; box-sizing: border-box; }
    .toc { box-sizing: border-box; }

    .legal-item { gap: 16px; padding: 28px 0; }
    .legal-num { width: 28px; padding-top: 5px; }
    .legal-text h2 { font-size: 25px; }
    .legal-text p { font-size: 17px; }
    .alert-danger-lg { padding: 18px 20px; font-size: 17px; }

    .footer-inner { padding-top: 48px; gap: 32px; }
    .footer-top { gap: 36px; }
    .footer-cols { gap: 28px 40px; }
}

@media (max-width: 380px) {
    :root { --gutter: 16px; }
    .site-header { gap: 10px; }
    .brand { font-size: 22px; gap: 8px; }
    .header-actions { gap: 8px; }
    .header-actions .btn-sm { padding: 10px 16px; font-size: 15px; }
    .for-you-grid { grid-template-columns: 1fr; }
    .phone { border-radius: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
