@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Variable-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

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

.wrap {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
    height: 64px;
    display: flex;
    align-items: center;
}
.wordmark {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    font-family: inherit;
}
.btn-primary {
    background: #fff;
    color: #000;
}
.btn-primary:not([disabled]):hover {
    background: #e5e5e5;
    cursor: pointer;
}
.btn-primary[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}
.btn-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 12px;
}

/* Sections */
section { padding: 128px 0; }
.eyebrow {
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #6b7280;
}
.eyebrow.center { text-align: center; margin-bottom: 64px; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 88px;
}
/* .wrap is a flex item of .hero: without a width it shrinks to its content */
.hero > .wrap { width: 100%; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    width: 100%;
}
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 400px) { .hero-copy h1 { font-size: 40px; } }
.hero-copy h1 { overflow-wrap: break-word; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
@media (min-width: 640px) { .hero-copy h1 { font-size: 60px; } }
@media (min-width: 1024px) { .hero-copy h1 { font-size: 72px; } }
.hero-copy p.lead {
    font-size: 18px;
    color: #9ca3af;
    max-width: 420px;
    line-height: 1.6;
}
.hero-cta { padding-top: 8px; }

/* Fade-up animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s ease-out forwards; opacity: 0; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.4s; }

/* Phone mockup */
.phone-col { display: flex; justify-content: center; position: relative; }
@media (min-width: 1024px) { .phone-col { justify-content: flex-end; } }
.phone-glow {
    position: absolute;
    width: min(400px, 100%);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}
.phone-frame {
    width: 280px;
    max-width: 100%;
    height: 560px;
    background: #141416;
    border-radius: 40px;
    padding: 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 80px rgba(255,255,255,0.04), 0 40px 80px rgba(0,0,0,0.6);
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.phone-notch {
    width: 120px;
    height: 28px;
    background: #141416;
    border-radius: 0 0 18px 18px;
    margin-bottom: 8px;
}
.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    display: block;
}
.phone-label {
    font-size: 9px;
    letter-spacing: 0.3em;
    color: #6b7280;
    margin-top: 16px;
}
.duration-pills {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.pill {
    font-size: 10px;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 999px;
    background: #141416;
}
.pill.active {
    color: #fff;
    background: #1a1a1c;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}
.timer-ring { margin-top: 32px; position: relative; }
.timer-ring .time {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.flip-hint {
    margin-top: auto;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.flip-hint p {
    font-size: 8px;
    color: #6b7280;
    text-align: center;
}

/* Card grids */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: #141416;
    border-radius: 24px;
    padding: 32px;
}
.card.center { text-align: center; }
.card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card h3 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.card p { font-size: 14px; color: #6b7280; line-height: 1.6; }

.section-title {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}
@media (min-width: 640px) { .section-title { font-size: 36px; } }
.section-lead {
    color: #6b7280;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
    font-size: 14px;
    line-height: 1.6;
}

/* Dashboard mockup card */
.dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.dash-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}
.dash-weekday {
    font-size: 10px;
    color: #4b5563;
    text-align: center;
}
.dash-tile {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    background: #1a1a1c;
}
.dash-tile.filled { background: #3a3a3d; }
.dash-tile.today { background: #ffffff; }
.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #1f1f22;
}
.dash-stats .stat { text-align: center; }
.dash-stats .stat .num { font-size: 20px; font-weight: 700; }
.dash-stats .stat .unit { font-size: 14px; color: #6b7280; font-weight: 400; }
.dash-stats .stat .label { font-size: 10px; color: #6b7280; margin-top: 4px; }

/* Final CTA */
.cta-card {
    background: #141416;
    border-radius: 24px;
    padding: 48px 24px;
    text-align: center;
}
@media (min-width: 640px) { .cta-card { padding: 64px 48px; } }
.cta-card h2 { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
@media (min-width: 640px) { .cta-card h2 { font-size: 36px; } }
.cta-card p { color: #6b7280; font-size: 14px; max-width: 420px; margin: 0 auto 32px; }

/* Footer */
footer { padding: 48px 0; }
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    font-size: 12px;
    color: #4b5563;
}
@media (min-width: 640px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #4b5563; text-decoration: none; }
.footer-links a:hover { color: #9ca3af; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Legal pages */
.legal-main { padding: 160px 0 96px; }
.legal-main h1 { font-size: 36px; font-weight: 700; margin-bottom: 32px; }
.legal-card {
    background: #141416;
    border-radius: 24px;
    padding: 32px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}
.back-link {
    display: inline-block;
    margin-top: 32px;
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
}
.back-link:hover { color: #fff; }

/* Language switch in nav */
.nav-inner { justify-content: space-between; }
.nav-lang { font-size: 12px; letter-spacing: 0.15em; color: #4b5563; }
.nav-lang a:hover { color: #9ca3af; }
.nav-lang .current { color: #fff; }
.nav-lang .sep { margin: 0 6px; }

/* Prose pages (privacy, support) */
.legal-card.prose { white-space: normal; }
.prose h2 { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 16px; }
.prose h3 { font-size: 15px; font-weight: 600; color: #fff; margin: 24px 0 8px; }
.prose p, .prose li { margin-bottom: 12px; }
.prose ul { padding-left: 20px; margin-bottom: 12px; }
.prose a { color: #fff; text-decoration: underline; }
.prose hr { border: 0; border-top: 1px solid #1f1f22; margin: 40px 0; }
.lang-switch { display: flex; gap: 16px; margin-bottom: 24px; font-size: 14px; color: #6b7280; }
.lang-switch a:hover { color: #fff; }
