/*
Theme Name: FolkyTalk
Theme URI: https://folkytalk.com/
Author: Mikaris
Description: The FolkyTalk website: the idea, the privacy promise, and the legal, safety and support pages.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: folkytalk
*/

/* ---------- Fonts (bundled, same pairing as the app) ---------- */
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/PlayfairDisplay-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/PlayfairDisplay-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/PlayfairDisplay-SemiBoldItalic.ttf") format("truetype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens (from the app's theme) ---------- */
:root {
    --bg: #0A0B0F;
    --bg-top: #15171E;
    --surface: #161922;
    --surface-high: #1D212B;
    --hairline: #2A2E3A;
    --ink: #F4F1EB;
    --ink-soft: #9AA0AD;
    --ink-faint: #636A78;
    --accent: #C3C9D4;
    --heard: #E3B778;
    --ease: #6FB6A6;
    --reliability: #7E9CD8;
    --trust: #C08BB0;
    --danger: #E58C82;
    --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 22px;
    --gutter: clamp(16px, 4vw, 40px);
    --ease-out: cubic-bezier(.2, .7, .2, 1);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    background-image: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 900px);
    color: var(--ink-soft);
    font: 400 17px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-color: rgba(244, 241, 235, .35); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
em { font-style: italic; }
p { margin: 0 0 1em; }
::selection { background: rgba(195, 201, 212, .3); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.sr-only, .ft-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 10px; }
.skip-link:focus { top: 16px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0 0 18px; color: var(--ink-soft);
    font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--ink-faint); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 26px; border-radius: 999px;
    font: 600 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
    border: 1px solid transparent;
    transition: transform .25s var(--ease-out), background .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--ink); color: var(--bg); box-shadow: 0 10px 30px -12px rgba(244, 241, 235, .45); }
.btn-light:hover { box-shadow: 0 16px 40px -12px rgba(244, 241, 235, .55); color: var(--bg); }
.btn-ghost { color: var(--ink); border-color: var(--hairline); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--ink-faint); background: rgba(255, 255, 255, .05); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    transition: background .35s, border-color .35s, backdrop-filter .35s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(10, 11, 15, .72);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-color: rgba(42, 46, 58, .7);
}
/* Keep the fixed header below the WordPress admin bar for signed-in editors. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .site-nav { top: 122px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(195, 201, 212, .22), 0 0 22px rgba(195, 201, 212, .12); }
.brand-name { font: 600 21px/1 var(--serif); color: var(--ink); letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { color: var(--ink-soft); font-size: 15px; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
    .nav-toggle {
        display: grid; place-content: center; gap: 6px; width: 44px; height: 44px;
        background: transparent; border: 1px solid var(--hairline); border-radius: 50%; cursor: pointer;
    }
    .nav-toggle-bar { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { transform: translateY(3.75px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { transform: translateY(-3.75px) rotate(-45deg); }
    .site-nav {
        position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
        padding: 12px var(--gutter) 28px; background: rgba(10, 11, 15, .96);
        backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--hairline);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .3s, transform .3s var(--ease-out), visibility .3s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .site-nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--hairline); font-size: 17px; }
    .site-nav .btn { margin-top: 20px; min-height: 50px; }
    .site-header:has(.is-open) { background: rgba(10, 11, 15, .96); }
}

/* ---------- Decorative spheres (glass bubbles from the brand art) ---------- */
.sphere {
    position: absolute; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 60%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 30px 60px rgba(255, 255, 255, .03);
}
.sphere-a { width: 420px; height: 420px; top: -180px; right: -140px; }
.sphere-b { width: 300px; height: 300px; bottom: -120px; left: -120px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 400px at 72% 45%, rgba(126, 156, 216, .08), transparent 70%),
        radial-gradient(500px 360px at 20% 80%, rgba(227, 183, 120, .05), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(44px, 6.6vw, 86px); letter-spacing: -.015em; line-height: 1.04; margin-bottom: 26px; }
.hero-title em { color: var(--accent); font-weight: 600; }
.hero-lead { font-size: clamp(17px, 1.5vw, 19px); max-width: 34em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Orbit visual */
.orbit { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin-left: auto; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(154, 160, 173, .16); animation: spin linear infinite; }
.ring-1 { inset: 0; animation-duration: 70s; }
.ring-2 { inset: 9%; animation-duration: 52s; animation-direction: reverse; border-color: rgba(154, 160, 173, .12); }
.ring-3 { inset: 18%; animation-duration: 40s; border-color: rgba(154, 160, 173, .1); }
.ring-4 { inset: 27%; border-color: rgba(154, 160, 173, .08); animation: none; }
.node {
    position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
    background: var(--ink); box-shadow: 0 0 0 4px rgba(244, 241, 235, .08), 0 0 22px 4px rgba(244, 241, 235, .35);
}
.ring-1 .node { top: 14.6%; left: 14.6%; }
.ring-2 .node { top: 100%; left: 50%; }
.ring-2 .node-b { top: 20%; left: 90%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; opacity: .7; }
.ring-3 .node { top: 50%; left: 100%; }
.node-label {
    position: absolute; left: 50%; top: 50%; translate: 16px -50%;
    padding: 6px 12px; border-radius: 999px; white-space: nowrap;
    font: 500 12.5px/1 var(--sans); letter-spacing: .04em; color: var(--ink);
    background: rgba(22, 25, 34, .8); border: 1px solid var(--hairline);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    animation: spin linear infinite reverse;
}
.ring-1 .node-label { animation-duration: 70s; }
.ring-2 .node-label { animation-duration: 52s; animation-direction: normal; }
.ring-3 .node-label { animation-duration: 40s; }
.face-halo {
    position: absolute; inset: 30%; border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 201, 212, .22), rgba(195, 201, 212, 0) 70%);
    filter: blur(20px); animation: breathe 6s ease-in-out infinite;
}
.orbit-face {
    position: absolute; inset: 33%; width: 34%; height: 34%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6));
    border-radius: 50%; box-shadow: 0 0 0 1px rgba(195, 201, 212, .14);
}
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.08); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--hairline); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--ink-soft); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 124px) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 70px); }
.section-head.center { text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .lead { margin: 18px auto 0; }
.section-title { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.01em; max-width: 18ch; }
.section-head.center .section-title { margin: 0 auto; }
.section + .section { border-top: 1px solid rgba(42, 46, 58, .5); }

/* Idea */
.statement { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.15; letter-spacing: -.01em; font-weight: 400; margin-bottom: 48px; }
.statement em { font-weight: 600; color: var(--accent); }
.idea-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.idea-cols p { font-size: 18px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step {
    position: relative; padding: 34px 30px 30px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(29, 33, 43, .7), rgba(22, 25, 34, .4));
    border: 1px solid var(--hairline);
    transition: transform .4s var(--ease-out), border-color .4s;
}
.step:hover { transform: translateY(-4px); border-color: #3a3f4d; }
.step-num { display: block; font: italic 600 44px/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--ink-faint); margin-bottom: 26px; }
.step h3 { font-size: 24px; margin-bottom: 12px; }
.step p { margin: 0; font-size: 16px; }

/* Themes */
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.theme-card {
    --c: var(--accent);
    position: relative; overflow: hidden; padding: 30px 26px 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--hairline); min-height: 300px;
    display: flex; flex-direction: column;
    transition: transform .4s var(--ease-out), border-color .4s;
}
.theme-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 40%, var(--hairline)); }
.theme-heard { --c: var(--heard); }
.theme-ease { --c: var(--ease); }
.theme-reliability { --c: var(--reliability); }
.theme-trust { --c: var(--trust); }
.theme-glow {
    position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%);
    opacity: .55; transition: opacity .4s;
}
.theme-card:hover .theme-glow { opacity: .9; }
.theme-card h3 { position: relative; font-size: 26px; margin-bottom: 18px; }
.theme-card h3::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px var(--c); margin-bottom: 22px; }
.theme-quote { position: relative; font: italic 600 17px/1.45 var(--serif); color: var(--ink); margin-bottom: auto; padding-bottom: 20px; }
.theme-card p:last-child { position: relative; margin: 0; font-size: 15px; }

/* Results */
.results-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.phone {
    position: relative; width: min(330px, 100%); margin: 0 auto; padding: 12px; border-radius: 48px;
    background: linear-gradient(160deg, #2a2e3a, #111318 40%, #1d212b);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06), 0 0 120px -20px rgba(126, 156, 216, .18);
}
.phone-screen { border-radius: 38px; padding: 42px 22px 26px; background: linear-gradient(180deg, var(--bg-top), var(--bg)); overflow: hidden; }
.phone-hello { font: 600 13px/1 var(--sans); color: var(--ink-soft); margin-bottom: 8px; text-align: center; }
.aura { position: relative; width: 170px; height: 170px; margin: 10px auto 18px; animation: spin 60s linear infinite; }
.petal { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; border-radius: 50%; mix-blend-mode: screen; filter: blur(6px); opacity: .8; }
.p-heard { background: radial-gradient(circle, var(--heard), transparent 70%); translate: 0 -30px; scale: 1.05; }
.p-ease { background: radial-gradient(circle, var(--ease), transparent 70%); translate: 32px 0; scale: 1.15; }
.p-reliability { background: radial-gradient(circle, var(--reliability), transparent 70%); translate: 0 26px; scale: .8; }
.p-trust { background: radial-gradient(circle, var(--trust), transparent 70%); translate: -30px 0; scale: 1.05; }
.phone-headline { font: 600 19px/1.3 var(--serif); color: var(--ink); text-align: center; margin: 0 0 22px; }
.phone-row { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ink); }
.phone-row b { margin-left: auto; font-weight: 400; color: var(--ink-soft); font-size: 13.5px; }
.chip { width: 8px; height: 8px; border-radius: 50%; }
.chip-heard { background: var(--heard); } .chip-ease { background: var(--ease); } .chip-reliability { background: var(--reliability); } .chip-trust { background: var(--trust); }
.phone-more { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink-soft); }
.results-copy .lead { margin: 22px 0 30px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
    border: 1px solid var(--ink-faint);
    background: radial-gradient(circle, var(--ink) 0 3px, transparent 3.5px);
}
.check-list strong { color: var(--ink); font-weight: 600; }

/* Privacy */
.privacy { background: radial-gradient(900px 500px at 50% 0, rgba(195, 201, 212, .05), transparent 70%); }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--hairline); background: rgba(22, 25, 34, .5); }
.promise svg { width: 44px; height: 44px; padding: 10px; margin-bottom: 24px; border-radius: 50%; background: rgba(195, 201, 212, .08); fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.promise h3 { font-size: 21px; margin-bottom: 10px; }
.promise p { margin: 0; font-size: 15.5px; }
.privacy-link { text-align: center; margin: 44px 0 0; }

/* Not */
.not-list { list-style: none; margin: 40px 0 0; padding: 0; }
.not-list li { padding: 26px 0; border-top: 1px solid var(--hairline); font-size: 18px; }
.not-list li:last-child { border-bottom: 1px solid var(--hairline); }
.not-list span { display: block; font: 600 clamp(24px, 2.8vw, 32px)/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; }

/* FAQ */
.faq .section-title { margin-bottom: 40px; }
.faq-item { border-top: 1px solid var(--hairline); }
.faq-item:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 24px 0; cursor: pointer; list-style: none;
    font: 600 clamp(19px, 2vw, 22px)/1.3 var(--serif); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--hairline); border-radius: 50%; transition: transform .3s var(--ease-out), border-color .3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--ink); transition: transform .3s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(180deg); border-color: var(--ink-faint); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-item p { margin: 0; padding: 0 60px 26px 0; }

/* Download */
.download-card {
    position: relative; overflow: hidden; text-align: center;
    padding: clamp(60px, 9vw, 110px) var(--gutter); border-radius: 36px;
    background: radial-gradient(700px 400px at 50% 110%, rgba(126, 156, 216, .12), transparent 70%), linear-gradient(180deg, var(--surface-high), var(--surface));
    border: 1px solid var(--hairline);
}
.download-rings span { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(154, 160, 173, .08); translate: -50% -50%; }
.download-rings span:nth-child(1) { width: 520px; height: 520px; }
.download-rings span:nth-child(2) { width: 820px; height: 820px; }
.download-rings span:nth-child(3) { width: 1120px; height: 1120px; }
.download-face { position: relative; width: 84px; height: 84px; margin: 0 auto 30px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(195, 201, 212, .2), 0 0 60px rgba(195, 201, 212, .15); }
.download-card .section-title { position: relative; margin: 0 auto 18px; }
.download-card .lead { position: relative; margin: 0 auto 34px; }
.store-buttons { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.store-soon { position: relative; display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 14px 24px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--ink); font-size: 15px; background: rgba(10, 11, 15, .4); }
.store-soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ease); box-shadow: 0 0 12px var(--ease); animation: breathe 2.4s ease-in-out infinite; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 70px 0 30px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 18px 0 0; max-width: 24ch; font: italic 600 18px/1.4 var(--serif); color: var(--ink-soft); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h2 { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--ink-faint); }
.footer-base p { margin: 0; }

/* ---------- Content pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: 170px 0 70px; border-bottom: 1px solid var(--hairline); }
.page-hero .sphere-a { top: -220px; right: -120px; }
@media (min-width: 901px) { .page-hero.has-toc .container { max-width: 1180px; padding-left: calc(var(--gutter) + 310px); } }
.page-title { font-size: clamp(38px, 5.4vw, 66px); letter-spacing: -.01em; margin-bottom: 20px; }
.page-meta { margin: 24px 0 0; font-size: 13.5px; color: var(--ink-faint); }
.page-layout { padding-top: 60px; padding-bottom: 120px; }
.page-layout.has-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 70px; }
.page-layout:not(.has-toc) .prose { max-width: 820px; margin: 0 auto; }
.toc { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 140px); overflow: auto; }
.toc-title { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.toc nav { display: flex; flex-direction: column; border-left: 1px solid var(--hairline); }
.toc a { padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-faint); font-size: 14px; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--ink-soft); }
.toc a.is-active { color: var(--ink); border-left-color: var(--ink); }

.prose { max-width: 740px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 2.8vw, 32px); margin: 64px 0 18px; }
.prose h3 { font: 600 17px/1.4 var(--sans); color: var(--ink); margin: 32px 0 10px; }
.prose p, .prose li { color: #B4B9C3; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; padding-left: .3em; }
.prose ul li::marker { color: var(--ink-faint); }
.prose ol li::marker { color: var(--ink-soft); font-family: var(--serif); font-weight: 600; }
.prose code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-high); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hairline); }
.prose th { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.prose td { color: #B4B9C3; }

.in-short {
    position: relative; padding: 32px 34px 22px; margin-bottom: 20px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(29, 33, 43, .8), rgba(22, 25, 34, .5)); border: 1px solid var(--hairline);
}
.in-short h2 { margin: 0 0 16px !important; font: 600 12.5px/1 var(--sans) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.in-short ul { list-style: none; padding: 0; }
.in-short li { position: relative; padding-left: 28px; color: var(--ink); font-size: 16.5px; }
.in-short li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 1px; background: var(--accent); }

/* Support page cards */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.contact-card { padding: 26px 26px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.prose .contact-card h3 { font: 600 22px/1.2 var(--serif); margin: 0 0 10px; }
.contact-card p { font-size: 15.5px; }

/* ---------- Form ---------- */
.ft-form-wrap { margin: 28px 0 40px; }
.ft-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field span { font-size: 14px; font-weight: 600; color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--ink-faint); }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--hairline);
    background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--sans);
    transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-faint); box-shadow: 0 0 0 4px rgba(195, 201, 212, .08); }
.ft-form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 6px 0 0; }
.ft-form-foot span { font-size: 13.5px; color: var(--ink-faint); }
.ft-notice { padding: 16px 20px; border-radius: 14px; margin-bottom: 16px; font-size: 15px; }
.ft-notice strong { display: block; color: var(--ink); }
.ft-notice-ok { background: rgba(111, 182, 166, .1); border: 1px solid rgba(111, 182, 166, .35); color: var(--ink); }
.ft-notice-error { background: rgba(229, 140, 130, .1); border: 1px solid rgba(229, 140, 130, .35); color: var(--ink); }

/* ---------- Download page ---------- */
.download-page { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 140px 0 90px; text-align: center; }
.download-page::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 420px at 50% 30%, rgba(126, 156, 216, .09), transparent 70%); }
.download-inner { position: relative; }
.download-page .eyebrow::before { display: none; }
.download-page .page-title { max-width: 16ch; margin: 0 auto 20px; }
.download-page .lead { margin: 0 auto 40px; }
.download-mark { position: relative; width: 150px; height: 150px; margin: 0 auto 34px; display: grid; place-items: center; }
.download-mark .download-face { margin: 0; }
.download-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(154, 160, 173, .16); animation: breathe 5s ease-in-out infinite; }
.download-ring + .download-ring { inset: -28px; border-color: rgba(154, 160, 173, .08); animation-delay: -2.5s; }
.store-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 44px; }
.store-badge {
    display: inline-flex; align-items: center; gap: 14px; min-width: 220px; padding: 14px 24px 14px 20px;
    border-radius: 18px; text-align: left; text-decoration: none; color: var(--bg); background: var(--ink);
    box-shadow: 0 14px 36px -14px rgba(244, 241, 235, .5);
    transition: transform .25s var(--ease-out), box-shadow .25s;
}
a.store-badge:hover { transform: translateY(-2px); color: var(--bg); box-shadow: 0 18px 44px -14px rgba(244, 241, 235, .6); }
.store-badge svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: 12px; letter-spacing: .02em; opacity: .75; }
.store-text strong { font: 600 21px/1.15 var(--sans); letter-spacing: -.01em; }
.store-badge.is-soon { color: var(--ink); background: rgba(22, 25, 34, .7); border: 1px solid var(--hairline); box-shadow: none; cursor: default; }
.store-badge.is-soon.is-mine { border-color: var(--ink-faint); }
.download-qr { display: inline-flex; align-items: center; gap: 22px; margin: -14px auto 44px; padding: 16px 26px 16px 16px; border-radius: 24px; border: 1px solid var(--hairline); background: rgba(22, 25, 34, .6); text-align: left; }
.qr-card { position: relative; flex: none; width: 168px; height: 168px; padding: 10px; border-radius: 16px; background: var(--ink); box-shadow: 0 16px 40px -18px rgba(244, 241, 235, .45); }
.qr-card img:first-child { width: 100%; height: 100%; }
/* The QR keeps its centre clear for the face (7 of 37 modules wide). */
.qr-card .qr-face { position: absolute; left: 50%; top: 50%; width: 19%; height: 19%; translate: -50% -50%; }
.download-qr p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 22ch; }
.download-qr strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px), (hover: none) { .download-qr { display: none; } }
.download-promises { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 14.5px; }
.download-promises li { display: inline-flex; align-items: center; gap: 9px; }
.download-promises li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.download-more { margin: 0; font-size: 15px; }
@media (max-width: 640px) {
    .store-badge { width: 100%; justify-content: center; }
    .download-page { padding-top: 120px; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 80vh; display: grid; place-items: center; padding: 160px 0 100px; text-align: center; }
.not-found .section-title { margin: 0 auto 16px; }
.not-found .lead { margin: 0 auto 32px; }
.lost-face { width: 90px; height: 90px; margin: 0 auto 30px; border-radius: 50%; animation: drift 7s ease-in-out infinite; }
@keyframes drift { 50% { transform: translate(8px, -10px) rotate(6deg); } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .theme-grid, .promise-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .hero { min-height: 0; padding-top: 130px; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .orbit { width: min(420px, 92%); margin: 10px auto 0; }
    .scroll-cue { display: none; }
    .steps { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: 1fr; }
    .results-copy { order: -1; }
    .page-layout.has-toc { grid-template-columns: 1fr; gap: 0; }
    .toc { display: none; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .idea-cols, .theme-grid, .promise-grid, .contact-cards, .ft-form { grid-template-columns: 1fr; }
    .theme-card { min-height: 0; }
    .node-label { font-size: 11px; padding: 5px 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .ft-form { padding: 22px 18px; }
    .in-short { padding: 26px 22px 16px; }
    .faq-item p { padding-right: 0; }
    .page-hero { padding: 140px 0 50px; }
    .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
