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

:root {
    /* Light cream theme, always. We intentionally do NOT follow the OS dark
       mode: the previous dark override flipped the background to navy but left
       the body copy hardcoded dark navy, so paragraph text turned unreadable
       dark-on-dark. Forcing light keeps the readable look on every device. */
    color-scheme: light;

    --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;
}
/* Account-deletion link — set apart from the other nav items in terracotta. */
header nav a.nav-delete { color: var(--orange); font-weight: 600; }
header nav a.nav-delete:hover { color: var(--navy); }

/* --- 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; }
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 8px;
    font-size: 15px;
}
.prose th, .prose td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.prose th {
    font-family: var(--sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 600;
}
.prose td { color: rgba(13, 18, 64, 0.82); }
.prose td:first-child { font-weight: 600; color: var(--navy); }
@media (max-width: 560px) {
    .prose th, .prose td { padding: 10px 8px; font-size: 14px; }
}

/* --- 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 intentionally disabled ---
   The site renders in the light cream theme on all devices (see color-scheme
   in :root). The former prefers-color-scheme:dark override only remapped the
   palette variables, but much of the body copy uses hardcoded dark-navy
   rgba(13,18,64,…) colors rather than the --on-surface variable, so in dark
   mode that text rendered dark-on-dark and was unreadable. Rather than ship a
   half-working dark theme, we force light. If a proper dark theme is wanted
   later, switch those hardcoded colors to variables first, then restore a
   media query here. */

/* Pre-launch "Coming soon to the App Store" badge — non-clickable variant of
   .badge. Dimmed + default cursor + no hover lift so it clearly reads as
   not-yet-available. Swap back to the live <a class="badge"> link at launch. */
.badge--soon {
    opacity: 0.55;
    cursor: default;
}
.badge--soon:hover {
    transform: none;
    color: white;
}

/* ===== Launch landing: hero device mockups + screenshot feature rows ===== */

/* Faint terracotta glow at the top of the hero so it isn't flat. */
.hero {
    background: radial-gradient(1100px 480px at 50% -8%,
                rgba(232, 131, 74, 0.10), transparent 62%);
}

.eyebrow {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    margin: 0 0 18px;
}

/* Device frame (shared). The screenshots already include the iOS status bar /
   Dynamic Island, so the frame is just a navy bezel with rounded, clipped art. */
.device {
    position: relative;
    width: 220px;
    padding: 7px;
    background: var(--navy);
    border-radius: 30px;
    box-shadow: 0 26px 50px -18px rgba(13, 18, 64, 0.45),
                0 8px 18px -10px rgba(13, 18, 64, 0.30);
}
.device img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 520 / 1130;   /* lock the screenshot's real ratio — no stretch */
    border-radius: 24px;
}

/* Hero: a large center phone with two smaller phones gently fanned behind it,
   so there's a clear hero screen rather than three equal overlapping slabs. */
.hero-mockups {
    position: relative;
    height: 520px;
    max-width: 600px;
    margin: 48px auto 0;
}
.hero-mockups .device {
    position: absolute;
    top: 0;
    left: 50%;
}
.hero-mockups .device--front {
    width: 208px;
    transform: translateX(-50%);
    z-index: 3;
}
.hero-mockups .device--left {
    width: 172px;
    transform: translateX(calc(-50% - 162px)) translateY(52px) rotate(-8deg);
    z-index: 2;
}
.hero-mockups .device--right {
    width: 172px;
    transform: translateX(calc(-50% + 162px)) translateY(52px) rotate(8deg);
    z-index: 1;
}

/* Features become full-width rows (screenshot beside copy), not a 3-up grid. */
.features .container { display: block; }
.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: center;
    padding: 40px 0;
    text-align: center;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row__media { display: flex; justify-content: center; }
.feature-row .device { width: 200px; }
.feature-row__text h3 {
    font-family: var(--serif);
    font-size: 24px;
    margin: 0 0 10px;
    color: var(--navy);
}
.feature-row__text p {
    margin: 0 auto;
    max-width: 440px;
    color: rgba(13, 18, 64, 0.70);
    font-size: 16px;
    line-height: 1.6;
}

@media (min-width: 720px) {
    .feature-row {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
        text-align: left;
        padding: 56px 0;
    }
    .feature-row__text p { margin: 0; }
    .feature-row--reverse .feature-row__media { order: 2; }
}

/* Shrink the hero fan on small screens so nothing overflows. */
@media (max-width: 640px) {
    .hero-mockups { height: 400px; max-width: 330px; }
    .hero-mockups .device--front { width: 160px; }
    .hero-mockups .device--left {
        width: 132px;
        transform: translateX(calc(-50% - 116px)) translateY(40px) rotate(-8deg);
    }
    .hero-mockups .device--right {
        width: 132px;
        transform: translateX(calc(-50% + 116px)) translateY(40px) rotate(8deg);
    }
    .feature-row .device { width: 180px; }
}
