/* Trevi marketing site — minimal stylesheet that matches the app palette.
   System fonts only (no Google Fonts) for speed + privacy. */

:root {
    --navy:        #0D1240;
    --orange:      #E8834A;
    --cream:       #F9EDE3;
    --surface:     #FFFFFF;
    --on-surface:  #0D1240;
    --muted:       #6B7280;
    --border:      rgba(13, 18, 64, 0.1);

    --serif: ui-serif, Georgia, "Times New Roman", serif;
    --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
             "Helvetica Neue", Arial, sans-serif;

    --max-width: 760px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--on-surface);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
a:hover { color: var(--orange); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.wordmark {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.01em;
}
header nav {
    display: flex;
    gap: 24px;
}
header nav a {
    font-size: 14px;
    color: rgba(13, 18, 64, 0.65);
    text-decoration: none;
    font-weight: 500;
}
header nav a:hover { color: var(--navy); }
header nav a[aria-current="page"] {
    color: var(--navy);
    border-bottom: 2px solid var(--orange);
    padding-bottom: 4px;
}

/* --- Hero --- */

.hero {
    padding: 64px 0 48px;
    text-align: center;
}
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color: var(--navy);
    font-weight: 700;
}
.lede {
    font-size: 19px;
    color: rgba(13, 18, 64, 0.7);
    max-width: 520px;
    margin: 0 auto;
}
.hero-cta {
    margin-top: 36px;
}
.badge {
    display: inline-block;
    background: var(--navy);
    color: white;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.15s ease;
}
.badge:hover { transform: translateY(-1px); color: white; }

/* --- Features (3-up) --- */

.features {
    padding: 56px 0;
    border-top: 1px solid var(--border);
}
.features .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}
.feature h3 {
    font-family: var(--serif);
    font-size: 20px;
    margin: 0 0 8px;
    color: var(--navy);
}
.feature p {
    margin: 0;
    color: rgba(13, 18, 64, 0.7);
    font-size: 16px;
}

@media (min-width: 720px) {
    .features .container {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

/* --- CTA section --- */

.cta {
    padding: 64px 0 80px;
    text-align: center;
    border-top: 1px solid var(--border);
}
.cta h2 {
    font-family: var(--serif);
    font-size: 32px;
    margin: 0 0 12px;
    color: var(--navy);
}
.cta p {
    color: rgba(13, 18, 64, 0.7);
    margin: 0 0 24px;
}
.button {
    display: inline-block;
    background: var(--orange);
    color: white;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.15s ease;
}
.button:hover { transform: translateY(-1px); color: white; }

/* --- Prose (privacy + support pages) --- */

.prose {
    padding: 40px 0 64px;
}
.prose h1 {
    font-family: var(--serif);
    font-size: 40px;
    color: var(--navy);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.prose h2 {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--navy);
    margin: 40px 0 12px;
}
.prose h3 {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--navy);
    margin: 24px 0 8px;
}
.prose p, .prose li {
    color: rgba(13, 18, 64, 0.82);
    font-size: 16px;
    line-height: 1.7;
}
.prose ul {
    padding-left: 22px;
}
.prose li { margin: 6px 0; }
.prose .meta {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 32px;
}
.prose hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 40px 0 20px;
}
.prose .card {
    background: var(--surface);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0 32px;
    border: 1px solid var(--border);
}
.prose .card p { margin: 6px 0; }

/* --- Footer --- */

footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 24px;
}
.footnote {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    text-align: center;
}
.footnote a {
    color: var(--muted);
}
.footnote a:hover { color: var(--navy); }

/* --- Stealth coming-soon page --- */

.stealth {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}
.stealth-mark {
    font-family: var(--serif);
    font-size: clamp(56px, 12vw, 96px);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 24px;
    letter-spacing: -0.03em;
    line-height: 1;
}
.stealth-message {
    font-family: var(--serif);
    font-size: clamp(18px, 3vw, 22px);
    color: rgba(13, 18, 64, 0.55);
    margin: 0 0 40px;
    font-style: italic;
}
.stealth-mail {
    display: inline-block;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--orange);
    padding-bottom: 4px;
    font-weight: 500;
}
.stealth-mail:hover {
    color: var(--orange);
}
.stealth-footer {
    border: 0;
    margin-top: 60px;
}

/* --- Dark mode (respects system setting) --- */

@media (prefers-color-scheme: dark) {
    :root {
        --navy:        #DCE0F2;
        --orange:      #F09660;
        --cream:       #1A1A22;
        --surface:     #2A2A35;
        --on-surface:  #DCE0F2;
        --muted:       #9CA3AF;
        --border:      rgba(255, 255, 255, 0.08);
    }
    .badge { background: #DCE0F2; color: #1A1A22; }
}
