:root {
    --coral: #E55E4C;
    --coral-deep: #C94A3A;
    --coral-soft: #FDE6DE;
    --cream: #FFF8F1;
    --cream-2: #FBF1E7;
    --butter: #FCEFC7;
    --sage: #DDE6D3;
    --sky: #DCEBF7;
    --sun: #F7C75B;
    --ink: #17120F;
    --teal: #0F2A2E;
    --teal-2: #163A3F;
    --muted: #6B625C;
    --subtle: #9A9089;
    --line: #EBDFD4;
    --white: #FFFFFF;
    --on-dark: #FBF6F1;
    --on-dark-muted: rgba(251, 246, 241, 0.66);
    --line-dark: rgba(255, 255, 255, 0.1);

    --radius: 20px;
    --radius-lg: 32px;
    --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
    --serif: 'Instrument Serif', Georgia, serif;
    --body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

body {
    font-family: var(--body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--coral-deep);
    margin-bottom: 18px;
}

.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }

.h2 {
    font-family: var(--display);
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.h2 .serif { font-size: 1.08em; color: var(--coral); }

.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); line-height: 1.65; max-width: 600px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }

.btn-coral { background: var(--coral); color: var(--white); box-shadow: 0 8px 24px -8px rgba(229, 94, 76, 0.6); }
.btn-coral:hover { background: var(--coral-deep); }

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #2B2420; }

.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-ghost-dark { color: var(--on-dark); border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.5); }

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 248, 241, 0.82);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -0.025em;
}

.brand img { width: 34px; height: 34px; border-radius: 10px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }

.nav-links a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover { color: var(--ink); background: rgba(23, 18, 15, 0.05); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { height: 40px; padding: 0 18px; font-size: 14px; }

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle svg { width: 20px; height: 20px; }

.mobile-panel { display: none; padding: 4px 24px 20px; border-bottom: 1px solid var(--line); }
.mobile-panel a { display: block; padding: 14px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-panel a:last-child { border-bottom: none; }
.nav.open .mobile-panel { display: block; }

/* Footer */
footer { background: var(--teal); color: var(--on-dark); padding: 72px 0 32px; }

.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line-dark);
}

.foot-brand .brand { color: var(--on-dark); }
.foot-brand p { color: var(--on-dark-muted); font-size: 14.5px; margin-top: 16px; max-width: 320px; }

.foot-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-dark);
    color: var(--on-dark);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
}

.foot-email:hover { border-color: rgba(255, 255, 255, 0.4); }
.foot-email svg { width: 18px; height: 18px; }

.foot-col h5 { font-size: 13px; font-weight: 600; margin-bottom: 16px; color: var(--sun); }
.foot-col ul { list-style: none; display: grid; gap: 11px; }
.foot-col a { color: var(--on-dark-muted); text-decoration: none; font-size: 14.5px; }
.foot-col a:hover { color: var(--on-dark); }

.foot-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    font-size: 13.5px;
    color: var(--on-dark-muted);
}

.foot-bottom a { color: var(--on-dark); text-decoration: none; }
.foot-bottom a:hover { text-decoration: underline; }

/* Document pages (privacy, terms, support, delete account) */
.doc-head { padding: 72px 0 48px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--coral-soft), var(--cream)); }
.doc-head .container, .doc .container { max-width: 760px; }
.doc-head h1 { font-family: var(--display); font-size: clamp(38px, 5vw, 54px); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 10px; }
.doc-head p { color: var(--muted); }

.doc { padding: 56px 0 96px; }
.doc section + section { margin-top: 36px; }
.doc h2 { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.doc p, .doc li { color: #3A322D; font-size: 16px; line-height: 1.7; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; margin-top: 6px; }
.doc a { text-underline-offset: 3px; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-card label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.form-card input, .form-card textarea {
    font: inherit;
    font-size: 15px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--cream);
    color: var(--ink);
    margin-bottom: 18px;
}

.form-card textarea { resize: vertical; min-height: 140px; }
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 1080px) {
    .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-links, .nav-actions .btn { display: none; }
    .nav-toggle { display: inline-flex; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .mobile-panel { padding: 4px 16px 20px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .form-card { padding: 20px; }
}
