:root {
    --primary: #c62828;
    --primary-strong: #a61f1f;
    --on-primary: #ffffff;
    --background: #ffffff;
    --background-tint: #fff3f2;
    --surface: #ffffff;
    --surface-muted: rgba(0, 0, 0, 0.04);
    --text-primary: #000000;
    --text-secondary: #3c3c43;
    --border: rgba(0, 0, 0, 0.12);
    --mist: rgba(0, 0, 0, 0.08);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    --radius: 28px;
    --accent-soft: rgba(198, 40, 40, 0.18);
    --accent-soft-strong: rgba(198, 40, 40, 0.32);
    --accent-green: #0f5a39;
    --accent-green-soft: rgba(15, 90, 57, 0.18);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #ff453a;
        --primary-strong: #ff2f22;
        --background: #000000;
        --background-tint: #111114;
        --surface: #1c1c1e;
        --surface-muted: rgba(255, 255, 255, 0.06);
        --text-primary: #ffffff;
        --text-secondary: #ebebf5;
        --border: rgba(255, 255, 255, 0.18);
        --mist: rgba(255, 255, 255, 0.14);
        --shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
        --accent-soft: rgba(255, 69, 58, 0.22);
        --accent-soft-strong: rgba(255, 69, 58, 0.38);
        --accent-green: #49b07a;
        --accent-green-soft: rgba(73, 176, 122, 0.22);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--background) 0%, var(--background-tint) 45%, var(--background) 100%);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 999px;
    opacity: 0.5;
    filter: blur(0px);
    animation: drift 14s ease-in-out infinite;
}

.orb-one {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 30% 30%, var(--accent-soft-strong), rgba(0, 0, 0, 0));
    top: -80px;
    left: -40px;
}

.orb-two {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at 70% 40%, var(--accent-soft), rgba(0, 0, 0, 0));
    bottom: -120px;
    right: -120px;
    animation-delay: 2s;
}

.orb-three {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 60% 50%, var(--accent-green-soft), rgba(0, 0, 0, 0));
    top: 45%;
    right: 35%;
    animation-delay: 4s;
}

.site-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px clamp(20px, 6vw, 80px);
}

.brand {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.site-nav a {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.site-nav a:hover {
    opacity: 1;
}

.nav-cta {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--on-primary);
    letter-spacing: 0.12em;
}

.nav-cta:hover {
    color: var(--on-primary);
    background: var(--primary-strong);
}

.site-main {
    position: relative;
    z-index: 1;
    width: min(1120px, 92vw);
    margin: 0 auto;
    padding-bottom: 80px;
}

.hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 6vw, 64px);
    align-items: center;
    padding: 40px 0 30px;
}

.hero-copy h1 {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    line-height: 1.05;
    margin: 10px 0 16px;
}

.lead {
    font-size: 1.1rem;
    max-width: 32ch;
    color: var(--text-secondary);
}

.eyebrow {
    display: inline-flex;
    gap: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    background: var(--accent-soft);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 999px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 16px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.store-button.apple {
    background: var(--primary);
    color: var(--on-primary);
}

.store-button.google {
    background: var(--surface);
    color: var(--text-primary);
}

.store-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.hero-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface-muted);
    font-size: 0.85rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    width: min(420px, 100%);
}

.screen {
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 18px;
    background: linear-gradient(160deg, var(--surface), var(--accent-soft));
}

.screen-header {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.screen-header span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--border);
}

.screen-chip {
    display: inline-flex;
    padding: 6px 12px;
    background: var(--accent-green-soft);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-green);
}

.screen-title {
    font-weight: 600;
    margin: 14px 0 10px;
}

.screen-line {
    height: 8px;
    background: var(--mist);
    border-radius: 999px;
    margin-bottom: 8px;
}

.screen-line.short {
    width: 70%;
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.screen-box {
    height: 60px;
    border-radius: 18px;
    background: var(--surface-muted);
}

.mini-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.mini-card {
    background: var(--surface-muted);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
}

.mini-card strong {
    display: block;
    font-size: 1.4rem;
}

.section {
    margin-top: 80px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-title {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0;
}

.section-lead {
    max-width: 40ch;
    margin: 0;
    color: var(--text-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border-radius: 22px;
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.panel {
    background: var(--surface);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.panel.highlight {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.stat {
    background: var(--surface-muted);
    border-radius: 18px;
    padding: 14px 18px;
}

.panel.highlight .stat {
    background: rgba(255, 255, 255, 0.18);
}

.stat-value {
    display: block;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--accent-green);
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.checklist li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
}

.checklist li::before {
    content: '+ ';
    position: absolute;
    left: 0;
    color: var(--on-primary);
    font-weight: 600;
}

.link-button {
    display: inline-flex;
    margin-top: 20px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 600;
}

.link-button:hover {
    background: var(--primary-strong);
    color: var(--on-primary);
}

.link-button.ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.panel.highlight .link-button.ghost {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--on-primary);
}

.cta {
    margin-top: 90px;
}

.cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: linear-gradient(120deg, var(--accent-soft), var(--surface-muted));
    border-radius: var(--radius);
    padding: 30px;
}

.cta-card h2 {
    font-family: 'Fraunces', 'Times New Roman', serif;
    margin: 0 0 8px;
}

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 80px;
    padding: 30px clamp(20px, 6vw, 80px) 60px;
    display: grid;
    gap: 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-brand strong {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--text-secondary);
}

.legal {
    margin-top: 40px;
}

.legal-header {
    max-width: 60ch;
    margin-bottom: 30px;
}

.legal-header h1 {
    font-family: 'Fraunces', 'Times New Roman', serif;
    font-size: clamp(2.2rem, 3.5vw, 3.4rem);
    margin: 12px 0 14px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.legal-card {
    background: var(--surface);
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.legal-card ul {
    padding-left: 18px;
}

.legal-panel {
    margin-top: 30px;
    background: var(--surface-muted);
    padding: 24px;
    border-radius: 18px;
}

.support {
    margin-top: 40px;
}

.support-header {
    max-width: 56ch;
}

.support-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.support-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
}

.support-note {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.support-faq {
    margin-top: 40px;
    background: var(--surface);
    border-radius: 24px;
    padding: 26px;
    border: 1px solid var(--border);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.faq-item {
    background: var(--surface-muted);
    border-radius: 18px;
    padding: 18px;
}

.reset {
    margin-top: 50px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
    align-items: start;
}

.reset-card {
    background: var(--surface);
    border-radius: 26px;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.reset-card h1 {
    font-family: 'Fraunces', 'Times New Roman', serif;
    margin: 10px 0 12px;
}

.form-card {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.form-card label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.form-card input {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    padding: 12px 14px;
    font-size: 1rem;
}

.primary-button {
    border: none;
    border-radius: 16px;
    padding: 12px 18px;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 600;
    cursor: pointer;
}

.primary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-muted);
}

.form-status.is-success {
    background: var(--accent-soft);
}

.form-status.is-error {
    background: var(--accent-soft-strong);
}

.reset-aside {
    background: var(--accent-soft);
    border-radius: 24px;
    padding: 24px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

.delay-4 {
    animation-delay: 0.6s;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .orb {
        animation: none;
    }
}

@media (max-width: 980px) {
    .hero,
    .split,
    .reset {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-grid,
    .legal-grid,
    .support-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .site-header {
        flex-direction: column;
        gap: 16px;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-card {
        width: 100%;
    }
}
