:root {
    --ink: #0b1220;
    --muted: #5b6675;
    --bg: #ffffff;
    --alt: #f6f8fb;
    --border: #e6eaf0;
    --accent: #2563eb;
    --accent-soft: #eef3ff;
    --radius: 16px;
    --maxw: 1040px;
    --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 12px 32px rgba(11, 18, 32, .06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; margin: 0; overflow-wrap: break-word; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

/* ======================================================================
   BASE = MOBILE FIRST
   ====================================================================== */

/* ---------- NAV (mobile: brand + lang on row 1, scrollable links row 2) ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px 16px; padding: 10px 0;
}
.brand { order: 1; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 7px; }
.brand-logo { width: 22px; height: 22px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.lang { order: 2; margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang a { color: var(--muted); padding: 6px 2px; }
.lang a.active { color: var(--ink); }
.lang a:hover { color: var(--accent); }

.nav-links {
    order: 3; flex-basis: 100%;
    display: flex; gap: 22px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; padding: 4px 0; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- HERO / FREE ---------- */
.hero {
    text-align: center;
    padding: 56px 0 48px;
    background: radial-gradient(80% 70% at 50% -10%, var(--accent-soft), transparent 70%);
}
.badge {
    display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
    background: var(--accent-soft); border: 1px solid #dce6ff;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-title { font-size: clamp(30px, 8vw, 58px); font-weight: 800; max-width: 16ch; margin: 0 auto; }
.lede { font-size: clamp(16px, 4.4vw, 21px); color: var(--muted); max-width: 56ch; margin: 18px auto 0; }
.checks {
    list-style: none; padding: 0; margin: 24px auto 0; max-width: 600px;
    display: flex; flex-direction: column; gap: 10px; align-items: flex-start; width: fit-content; text-align: left;
}
.checks li { font-weight: 500; font-size: 15px; position: relative; padding-left: 26px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--accent); font-weight: 800; }

.steps-inline {
    list-style: none; counter-reset: step; padding: 0;
    margin: 26px auto 0; max-width: 440px;
    display: flex; flex-direction: column; gap: 12px; text-align: left;
}
.steps-inline li {
    counter-increment: step; position: relative; padding-left: 42px;
    font-weight: 500; font-size: 16px; display: flex; align-items: center; min-height: 28px;
}
.steps-inline li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; background: var(--accent-soft); color: var(--accent);
    font-weight: 800; font-size: 14px; border-radius: 8px; display: grid; place-items: center;
}
.trust { margin-top: 26px; font-weight: 600; font-size: 14px; color: var(--ink); }
.tagline { margin-top: 6px; font-style: italic; color: var(--muted); font-size: 15px; }
.formula-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.validation { margin-top: 18px; font-size: 14px; color: var(--ink); font-weight: 500; max-width: 60ch; position: relative; padding-left: 24px; }
.validation::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }

/* ---------- PRICING ---------- */
.pricing { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 36px auto 0; max-width: 360px; }
.price-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; text-align: left; box-shadow: var(--shadow);
}
.price-card.pro { border-color: var(--accent); box-shadow: 0 12px 32px rgba(37, 99, 235, .14); }
.price-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.price-card.pro .price-name { color: var(--accent); }
.price { font-size: 36px; font-weight: 800; margin-top: 6px; letter-spacing: -0.03em; }
.price-per { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.price-note { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- SECTIONS ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; }
.section h2 { font-size: clamp(24px, 6vw, 38px); font-weight: 800; max-width: 20ch; }
.section-lede { font-size: clamp(16px, 4.4vw, 19px); color: var(--muted); margin-top: 14px; max-width: 60ch; }

/* steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step-n { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; font-weight: 700; }
.step p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* formula */
.formula {
    margin-top: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--ink); color: #fff; padding: 16px 20px; border-radius: 12px;
}
.formula-label { font-size: 13px; color: #9aa7bd; font-weight: 600; }
.formula code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(14px, 4vw, 17px); font-weight: 600; }

/* why */
blockquote { margin: 28px 0 0; padding: 16px 22px; border-left: 3px solid var(--accent); font-size: clamp(18px, 5vw, 20px); font-weight: 600; font-style: italic; }

/* pro features */
.features { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature-icon { font-size: 30px; }
.feature h3 { font-size: 20px; font-weight: 700; margin-top: 12px; }
.feature p { color: var(--muted); margin-top: 8px; }

/* footer */
.footer { padding: 48px 0; border-top: 1px solid var(--border); text-align: center; }
.footer .brand { justify-content: center; display: inline-flex; }
.footer-tag { color: var(--muted); margin-top: 10px; }
.muted { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---------- BETA SIGNUP ---------- */
.beta-wrap { text-align: center; }
.beta-form { margin-top: 26px; }
.beta-row { display: flex; flex-direction: column; gap: 10px; max-width: 440px; margin: 0 auto; }
.beta-row input[type="email"] {
    flex: 1; font: inherit; font-size: 16px; padding: 14px 16px;
    border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--ink);
}
.beta-row input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.beta-row button {
    font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: var(--accent);
    border: none; border-radius: 12px; padding: 14px 22px; cursor: pointer; white-space: nowrap;
}
.beta-row button:hover { background: #1d4fd0; }
.beta-promo {
    display: block; width: 100%; max-width: 440px; margin: 10px auto 0;
    font: inherit; font-size: 15px; padding: 12px 16px;
    border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--ink);
}
.beta-promo:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.beta-consent {
    display: flex; gap: 10px; align-items: flex-start; justify-content: center;
    margin: 14px auto 0; max-width: 440px; font-size: 14px; color: var(--muted); text-align: left;
}
.beta-consent input { margin-top: 3px; flex-shrink: 0; }
.beta-privacy { margin-top: 14px; font-size: 13px; color: var(--muted); }
.beta-wrap h2 { max-width: none; }
.beta-wrap .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- TOAST ---------- */
.toast {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    z-index: 100; display: flex; align-items: center; gap: 14px;
    max-width: 92%; padding: 13px 18px; border-radius: 12px;
    font-size: 15px; font-weight: 500; color: #fff;
    box-shadow: 0 8px 30px rgba(11, 18, 32, .18);
    transition: opacity .4s ease, transform .4s ease;
}
.toast.success { background: #166534; }
.toast.error { background: #b42318; }
.toast button { background: none; border: none; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: .85; padding: 0; }
.toast button:hover { opacity: 1; }
.toast.toast-hide { opacity: 0; transform: translateX(-50%) translateY(-12px); }
.form-message { max-width: 440px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.form-message.success { background: #e7f6ee; color: #166534; border: 1px solid #bbe6cb; }
.form-message.error { background: #fdeaea; color: #b42318; border: 1px solid #f5c2c0; }

/* ---------- FOOTER LINKS ---------- */
.footer-links { display: flex; gap: 20px; justify-content: center; margin: 14px 0 4px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: var(--accent); }

/* ---------- LEGAL PAGES ---------- */
.legal { padding: 40px 0 72px; }
.legal h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; margin-bottom: 24px; letter-spacing: -0.02em; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 34px 0 10px; }
.legal h3 { font-size: 18px; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink); font-size: 16px; line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); word-break: break-word; }
.legal strong { font-weight: 700; }

/* ---------- SIGNUPS TABLE ---------- */
.signups { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.signups th, .signups td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.signups th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.signups td { color: var(--ink); }
.signups tr:hover td { background: var(--alt); }

/* ======================================================================
   TABLET ≥ 680px
   ====================================================================== */
@media (min-width: 680px) {
    .container { padding: 0 24px; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .pricing { grid-template-columns: repeat(2, minmax(0, 240px)); max-width: none; justify-content: center; }
    .checks { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; justify-content: center; align-items: center; }
    .beta-row { flex-direction: row; }
}

/* ======================================================================
   DESKTOP ≥ 880px  (single-row nav)
   ====================================================================== */
@media (min-width: 880px) {
    html { scroll-padding-top: 84px; }
    .nav-inner { flex-wrap: nowrap; height: 64px; padding: 0; gap: 28px; }
    .brand { order: 0; }
    .nav-links { order: 0; flex-basis: auto; overflow: visible; gap: 28px; margin: 0 auto; }
    .lang { order: 0; margin-left: 0; }
    .hero { padding: 96px 0 80px; }
    .section { padding: 88px 0; }
}
