/* Altrillio — brand stylesheet
   Tokens match the iOS app (Theme.swift). Single source of truth here. */

:root {
    --bg: #0B0F15;
    --surface: #121925;
    --surface-hi: #1A2230;
    --border: rgba(143, 137, 124, 0.18);
    --accent: #E08A4E;
    --accent-deep: #C44545;
    --ink: #EFEAE0;
    --muted: #8E897C;
    --text-low: #5A554E;

    --radius: 18px;
    --max-w: 1080px;
    --pad-x: 24px;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

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

/* -- NAV ----------------------------------------------------------------- */

.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(11, 15, 21, 0.7);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 18px var(--pad-x);
    display: flex; align-items: center; justify-content: space-between;
}

.nav__brand {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.nav__brand .r { color: var(--accent); text-shadow: 0 0 18px rgba(224, 138, 78, 0.45); }

.nav__links {
    display: flex; gap: 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* -- HERO ---------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 88px var(--pad-x) 96px;
    overflow: hidden;
}

.hero__rings {
    position: absolute; inset: 0;
    pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.6;
}
.hero__rings::before,
.hero__rings::after,
.hero__rings span::before,
.hero__rings span::after {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    animation: pulse 3.4s linear infinite;
    mix-blend-mode: plus-lighter;
}
.hero__rings::after { animation-delay: -0.85s; }
.hero__rings span::before { animation-delay: -1.7s; }
.hero__rings span::after { animation-delay: -2.55s; }

@keyframes pulse {
    0%   { transform: scale(0.4); opacity: 0.5; }
    100% { transform: scale(2.1); opacity: 0; }
}

.hero__inner {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}

.hero__eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}

.hero h1 .accent { color: var(--accent); }

.hero__sub {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.55;
}

.cta-row {
    display: flex; align-items: center; justify-content: center;
    gap: 18px; flex-wrap: wrap;
}

.cta {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 16px 28px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover {
    color: var(--bg);
    transform: translateY(-1px);
    box-shadow: 0 18px 40px -10px rgba(224, 138, 78, 0.35);
}
.cta--accent { background: var(--accent); color: var(--bg); }

.cta-note {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-low);
}

/* -- SECTIONS ------------------------------------------------------------ */

section { padding: 80px var(--pad-x); }
section .inner { max-width: var(--max-w); margin: 0 auto; }

.section-head {
    text-align: center;
    margin-bottom: 56px;
}
.section-head__eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-head h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    margin-bottom: 14px;
}
.section-head p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

/* -- THREE-COLUMN VALUE PROP -------------------------------------------- */

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.value-card__icon {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 16px;
    line-height: 1;
}

.value-card h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 8px;
}
.value-card p { color: var(--muted); font-size: 15px; }

/* -- "WHO IT'S FOR" CHIPS ------------------------------------------------ */

.audience {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.audience-list {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}

.audience-list li {
    list-style: none;
    background: var(--surface-hi);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 11px 20px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--ink);
}

/* -- FAQ ----------------------------------------------------------------- */

.faq-list {
    max-width: 720px; margin: 0 auto;
    display: grid; gap: 8px;
}
.faq-list details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
}
.faq-list summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 19px;
    list-style: none;
    display: flex; justify-content: space-between; gap: 16px;
    color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+';
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.65;
}

/* -- PRICING ------------------------------------------------------------- */

.pricing { text-align: center; }
.pricing-card {
    max-width: 460px; margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
}
.price {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 56px;
    color: var(--accent);
    line-height: 1; margin-bottom: 8px;
}
.price small {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    display: block; margin-top: 12px;
}
.pricing-card ul {
    text-align: left;
    margin: 28px 0;
    color: var(--ink);
    list-style: none;
}
.pricing-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 600;
}

/* -- FINAL CTA ----------------------------------------------------------- */

.final-cta {
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(224, 138, 78, 0.06));
    padding: 100px var(--pad-x);
    border-top: 1px solid var(--border);
}
.final-cta h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    margin-bottom: 22px;
    max-width: 720px; margin-left: auto; margin-right: auto;
}
.final-cta h2 .accent { color: var(--accent); }
.final-cta p {
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 32px;
}

/* -- FOOTER -------------------------------------------------------------- */

.footer {
    border-top: 1px solid var(--border);
    padding: 40px var(--pad-x);
    color: var(--text-low);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.02em;
}
.footer__inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }

/* -- LEGAL PAGES --------------------------------------------------------- */

.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px var(--pad-x) 100px;
}
.legal__eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.legal h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.1;
    margin-bottom: 8px;
}
.legal__updated {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-low);
    margin-bottom: 48px;
}
.legal h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 24px;
    margin: 40px 0 14px;
    color: var(--ink);
}
.legal h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 17px;
    margin: 26px 0 10px;
    color: var(--ink);
}
.legal p, .legal li {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 14px;
}
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* -- RESPONSIVE ---------------------------------------------------------- */

@media (max-width: 640px) {
    .nav__links { gap: 16px; font-size: 11px; }
    .hero { padding: 56px var(--pad-x) 72px; }
    section { padding: 56px var(--pad-x); }
    .value-card { padding: 24px 20px; }
    .footer__inner { flex-direction: column; text-align: center; }
}

/* Respect Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .hero__rings::before,
    .hero__rings::after,
    .hero__rings span::before,
    .hero__rings span::after { animation: none; opacity: 0.15; transform: scale(1); }
    html { scroll-behavior: auto; }
}
