/* Currently. — shared styles
   Brand: Atelier Color · fonts match the iOS app (Bricolage Grotesque / Hanken Grotesk / Space Mono) */

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

:root {
    --iris: #9989F5;          /* brand background */
    --iris-soft: #B4A8FA;
    --iris-deep: #7E6BE8;
    --ink: #181528;           /* deep indigo-black */
    --lime: #E4FA5C;          /* single pop accent */
    --cream: #F6F4FF;         /* light text on dark / cards */
    --muted: #2C2746;         /* secondary text — AA (4.5:1) on iris and on cream */
    --card: #FBFAFF;
    --line: rgba(24,21,42,0.16);
    --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

::selection { background: var(--lime); color: var(--ink); }

html { scroll-behavior: smooth; }

body {
    font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh; min-height: 100dvh;
    letter-spacing: -0.01em;
    position: relative;
    background:
        radial-gradient(125% 85% at 50% -12%, var(--iris-soft) 0%, rgba(180,168,250,0) 55%),
        radial-gradient(115% 75% at 50% 116%, var(--iris-deep) 0%, rgba(126,107,232,0) 52%),
        linear-gradient(180deg, #A294F6 0%, var(--iris) 60%, #8E7DF1 100%);
    background-attachment: fixed;
}

.display { font-family: 'Bricolage Grotesque', serif; }
.mono { font-family: 'Space Mono', monospace; }

/* ---------- header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 32px;
}
.wordmark {
    font-family: 'Bricolage Grotesque', serif;
    font-weight: 700; font-size: 21px;
    letter-spacing: -0.03em; color: var(--ink);
    display: inline-flex; align-items: baseline; gap: 1px;
    text-decoration: none;
}
.wordmark .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--lime); display: inline-block;
    box-shadow: 0 0 0 2px rgba(24,21,42,0.18);
    transition: transform 0.35s var(--ease);
}
.wordmark:hover .dot { transform: scale(1.45) translateY(-1px); }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a {
    font-size: 14.5px; font-weight: 600; color: var(--ink);
    text-decoration: none; position: relative; transition: opacity 0.2s;
    opacity: 0.78;
}
.header-nav a::after {
    content: ""; position: absolute; left: 0; bottom: -3px;
    width: 100%; height: 1.5px; background: var(--ink);
    transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.header-nav a:hover { opacity: 1; }
.header-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-nav a.btn { color: var(--cream); opacity: 1; }
.header-nav a.btn::after { display: none; }
@media (max-width: 640px) { .header-nav .nav-hide { display: none; } }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Bricolage Grotesque', serif;
    font-weight: 700; text-decoration: none;
    border-radius: 999px; cursor: pointer; border: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative; overflow: hidden; opacity: 1;
}
.btn-lg { padding: 17px 36px; font-size: 18px; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(24,21,42,0.30); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(228,250,92,0.45); }
.btn svg { width: 21px; height: 21px; }
.btn::before {
    content: ""; position: absolute; top: 0; left: -120%;
    width: 55%; height: 100%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s var(--ease);
}
.btn:hover::before { left: 150%; }

/* ---------- footer ---------- */
.site-footer {
    display: flex; align-items: center; justify-content: center;
    gap: 8px 22px; flex-wrap: wrap;
    padding: 30px 24px; font-size: 13.5px; color: var(--muted);
    border-top: 1px solid var(--line);
}
.site-footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .sep { opacity: 0.4; }

/* ---------- content pages (legal / support) ---------- */
.page-wrap { max-width: 740px; margin: 0 auto; padding: 130px 24px 56px; }
.sheet {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 26px; padding: 48px clamp(24px, 5vw, 56px) 44px;
    box-shadow: 0 30px 70px rgba(24,21,42,0.16);
}
.page-kicker {
    font-family: 'Space Mono', monospace;
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--iris-deep); margin-bottom: 14px;
}
.page-title {
    font-family: 'Bricolage Grotesque', serif;
    font-weight: 700; font-size: clamp(34px, 5.4vw, 54px);
    line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 12px; color: var(--ink);
}
.page-updated { font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.prose h2 {
    font-family: 'Bricolage Grotesque', serif;
    font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
    margin: 34px 0 12px; color: var(--ink);
}
.prose h3 { font-weight: 600; font-size: 17px; margin: 22px 0 8px; color: var(--ink); }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: #2a2640; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 1.1em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--iris-deep); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.prose strong { color: var(--ink); }
.callout {
    background: #F1EEFF; border: 1px solid var(--line);
    border-left: 3px solid var(--lime);
    border-radius: 14px; padding: 18px 20px; margin: 22px 0;
    font-size: 15.5px; line-height: 1.6; color: #2a2640;
}

/* ---------- entrance animation (the only ambient motion) ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: rise 0.85s var(--ease) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.14s; }
.d3 { animation-delay: 0.23s; } .d4 { animation-delay: 0.32s; }
.d5 { animation-delay: 0.41s; } .d6 { animation-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; opacity: 1; }
    html { scroll-behavior: auto; }
}
