/*
 * The public site on the design system's tokens (tokens.css). One value of its own: --fs-display, the
 * landing headline, which the panel never needs and the five text sizes cannot reach.
 */

:root { --fs-display: clamp(34px, 5.2vw, 58px); }

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }

p { margin: 0; }

a { color: var(--blue-text); }

.icon { width: 20px; height: 20px; flex: none; }

.wrap {
    max-width: var(--shell);
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.wrap.narrow { max-width: 760px; }

.center { text-align: center; }

.skip { position: absolute; left: 16px; top: -48px; padding: 8px 16px; border-radius: var(--round); background: var(--blue); color: var(--on-blue); z-index: 10; }

.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- header ---------- */

.top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}

.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }

.logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: var(--on-blue); }

.logo .icon { width: 22px; height: 22px; }

.brand-text strong { display: block; font-size: var(--fs-md); font-weight: 800; line-height: 1.1; }

.brand-text small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.top-nav { display: flex; gap: 24px; margin-left: auto; }

.top-nav a, .link { color: var(--muted); font-weight: 700; text-decoration: none; }

.top-nav a:hover, .link:hover { color: var(--text); }

.top-actions { display: flex; align-items: center; gap: 16px; }

/* ---------- buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 20px;
    border-radius: var(--round);
    background: var(--blue);
    color: var(--on-blue);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover { background: var(--blue-text); }

.button:active { transform: translateY(1px); }

.button .icon { width: 18px; height: 18px; }

.button.big { min-height: 52px; padding: 12px 24px; font-size: var(--fs-md); }

.button.ghost { background: var(--blue-soft); color: var(--blue-text); }

.button.ghost:hover { background: color-mix(in srgb, var(--blue) 18%, var(--surface)); }

.button.light { background: var(--surface); color: var(--blue-text); }

.button.light:hover { background: var(--bg); }

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

.cta-row.center { justify-content: center; }

/* ---------- type ---------- */

.eyebrow, .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-text);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow .icon { width: 16px; height: 16px; }

.accent { color: var(--blue-text); }

.lead { margin-top: 20px; color: var(--muted); font-size: var(--fs-md); line-height: 1.55; max-width: 34em; }

.body-lead { margin-top: 16px; color: var(--muted); font-size: var(--fs-md); line-height: 1.55; }

/* ---------- hero ---------- */

.hero { padding: 56px 0 24px; overflow: hidden; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

.hero h1 { margin-top: 16px; font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }

.assurances { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 700; }

.assurances li { display: inline-flex; align-items: center; gap: 6px; }

.assurances .icon { width: 16px; height: 16px; color: var(--good); }

.hero-visual { position: relative; padding: 0 0 40px 40px; }

.photo { margin: 0; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); }

.photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-photo { aspect-ratio: 5 / 4; }

.hero-phone { position: absolute; left: -8px; bottom: 0; width: 34%; min-width: 150px; }

/* ---------- device frames ---------- */

.device { margin: 0; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }

.device.phone { border: 6px solid var(--text); border-radius: 30px; }

.device.browser { border: 1px solid var(--line); border-radius: var(--radius); }

.browser-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }

.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }

.wide-shot { margin-top: 40px; }

.shot-note { margin-top: 12px; color: var(--muted); font-size: var(--fs-xs); text-align: center; }

/* ---------- sections ---------- */

.section { padding: 80px 0; }

.section.tinted { background: var(--surface); }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }

.section-head.left { margin-left: 0; text-align: left; }

.section-head h2, .section h2, .section h1 { margin-top: 12px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }

.section-head > p:not(.kicker) { margin-top: 16px; color: var(--muted); font-size: var(--fs-md); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.split .photo { aspect-ratio: 5 / 4; }

.split .button { margin-top: 24px; }

/* ---------- pains ---------- */

.pain-list { display: grid; gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }

.pain-list li { padding: 16px 20px; border-left: 3px solid var(--blue); border-radius: 0 12px 12px 0; background: var(--surface); color: var(--muted); }

.pain-list strong { display: block; color: var(--text); font-size: var(--fs-md); }

.bridge { margin-top: 24px; font-size: var(--fs-md); font-weight: 700; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }

.steps li { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }

.step-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--on-blue); font-weight: 800; }

.steps h3 { margin-top: 20px; font-size: var(--fs-md); font-weight: 800; }

.steps p { margin-top: 8px; color: var(--muted); }

/* ---------- features ---------- */

.feature { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; margin-top: 56px; }

.feature:first-of-type { margin-top: 0; }

.feature.reverse .feature-copy { order: 2; }

.feature h3 { margin-top: 16px; font-size: var(--fs-lg); font-weight: 800; }

.feature-copy > p { margin-top: 12px; color: var(--muted); font-size: var(--fs-md); line-height: 1.55; }

.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-text); }

.feature-icon .icon { width: 24px; height: 24px; }

.ticks { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; font-weight: 700; }

.ticks li { display: flex; gap: 10px; align-items: flex-start; }

.ticks .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--good); }

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

.feature-grid.four { grid-template-columns: repeat(4, 1fr); margin-top: 0; }

.card { padding: 28px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }

.section:not(.tinted) .card { background: var(--surface); }

.card h3 { margin-top: 16px; font-size: var(--fs-md); font-weight: 800; }

.card p { margin-top: 8px; color: var(--muted); }

/* ---------- now and next ---------- */

.now-next { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 20px; align-items: stretch; }

.now-next h3 { display: flex; align-items: center; gap: 8px; margin: 0; }

.now-next h3 .icon { color: var(--good); }

.now-next .next h3 .icon { color: var(--blue-text); }

.now-next ul { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 18px; color: var(--muted); }

.next-photo { aspect-ratio: auto; min-height: 260px; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 12px; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-size: var(--fs-md); font-weight: 700; cursor: pointer; list-style: none; }

.faq summary::-webkit-details-marker { display: none; }

.faq .chev { color: var(--muted); transition: transform 0.2s ease; }

.faq details[open] .chev { transform: rotate(180deg); }

.faq details p { padding: 0 20px 20px; color: var(--muted); font-size: var(--fs-md); line-height: 1.55; }

/* ---------- final call ---------- */

.final { padding: 0 0 88px; }

.final-box {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding-block: 56px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--blue), color-mix(in srgb, var(--blue) 70%, #0b1424));
    color: var(--on-blue);
    text-align: center;
}

.final-box h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }

.final-box p { max-width: 34em; opacity: 0.92; font-size: var(--fs-md); }

.final-box .button { margin-top: 8px; }

.final-assistant { width: 80px; height: 80px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--on-blue) 60%, transparent); }

/* ---------- legal ---------- */

.legal h1 { font-size: clamp(28px, 4vw, 44px); }

.doc { margin-top: 32px; }

.doc h2 { font-size: var(--fs-lg); }

.doc ul { display: grid; gap: 10px; margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: var(--fs-md); line-height: 1.55; }

.doc-note { margin-top: 40px; padding: 16px 20px; border-radius: var(--radius); background: var(--blue-soft); color: var(--text); }

/* ---------- footer ---------- */

.foot { padding: 56px 0 32px; border-top: 1px solid var(--line); background: var(--surface); }

.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }

.foot-grid > div p { margin-top: 16px; max-width: 30em; color: var(--muted); }

.foot nav { display: grid; align-content: start; gap: 10px; }

.foot nav h2 { margin-bottom: 4px; color: var(--muted); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.foot nav a { color: var(--text); font-weight: 600; text-decoration: none; }

.foot nav a:hover { color: var(--blue-text); }

.foot-limit { display: flex; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); }

.foot-limit .icon { width: 16px; height: 16px; color: var(--blue-text); }

.foot-copy { margin-top: 16px; color: var(--muted); font-size: var(--fs-xs); }

/* ---------- tablet ---------- */

@media (max-width: 1000px) {
    .top-nav { display: none; }
    .top-actions { margin-left: auto; }
    .hero-grid, .split, .feature { grid-template-columns: 1fr; gap: 40px; }
    .feature.reverse .feature-copy { order: 0; }
    .steps, .feature-grid { grid-template-columns: 1fr; }
    .feature-grid.four { grid-template-columns: repeat(2, 1fr); }
    .now-next { grid-template-columns: 1fr 1fr; }
    .next-photo { grid-column: 1 / -1; aspect-ratio: 16 / 9; min-height: 0; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .pains .photo, #pricing .photo { order: 2; }
}

/* ---------- phone ---------- */

@media (max-width: 640px) {
    .top-actions .link { display: none; }
    .top-row { gap: 12px; min-height: 60px; }
    .brand-text small { display: none; }
    .top .button { min-height: 40px; padding: 6px 14px; font-size: var(--fs-sm); }
    .hero { padding: 32px 0 48px; }
    .hero-visual { padding: 0 0 32px 24px; }
    .hero-phone { width: 40%; min-width: 120px; left: -4px; }
    .button.big { width: 100%; font-size: var(--fs-sm); }
    .section { padding: 64px 0; }
    .feature-grid.four, .now-next { grid-template-columns: 1fr; }
    .card, .steps li { padding: 22px; }
    .foot-grid { grid-template-columns: 1fr; }
}
