/* vavr.us. Colours are the apps' tokens (packages/ui/src/tokens.ts): evergreen brand, marigold accent, warm neutrals. */
:root {
  --bg: #f8f6f3; --surface: #ffffff; --sunken: #f1eee9; --text: #1c1815; --muted: #5b544b; --border: #e5e0d8;
  --brand: #0e6a60; --brand-strong: #0b564e; --brand-soft: #eaf6f4; --on-brand: #faf8f5;
  --accent: #f6bc45; --accent-soft: #fef3d6; --accent-text: #7a5006;
  --deep: #07302c; --on-deep: #eaf6f4; --on-deep-muted: #9ad6cd;
  --shadow: 0 1px 2px rgb(28 24 21 / 6%), 0 8px 24px rgb(28 24 21 / 8%);
  --radius: 16px; --font: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100e; --surface: #1c1815; --sunken: #2b2622; --text: #f1eee9; --muted: #a69e92; --border: #433d36;
    --brand: #2e9c8e; --brand-strong: #5fbbae; --brand-soft: #0a433d; --on-brand: #04211e;
    --accent: #f6bc45; --accent-soft: #3a2a08; --accent-text: #fbd37a;
    --deep: #04211e; --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); letter-spacing: -0.006em; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 780; letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 740; }
h3 { font-size: 20px; font-weight: 680; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* 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(--border); }
.top__row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 760; font-size: 20px; letter-spacing: -0.03em; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 520; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--sunken); }
.nav a[aria-current] { color: var(--brand-strong); background: var(--brand-soft); }
@media (max-width: 760px) {
  .top__row { flex-wrap: wrap; gap: 0 12px; padding-block: 8px; }
  .top__signin { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 4px -12px 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 620 16px/1 var(--font); text-decoration: none; border: 1px solid transparent; background: var(--brand); color: var(--on-brand); transition: background 140ms, transform 140ms; }
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--sunken); }
.btn--light { background: var(--on-deep); color: var(--deep); }
.btn--light:hover { background: #fff; }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 640; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 14px; }
.kicker::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* Scene: the door tablet and the parent's lock screen, drawn in HTML. */
.scene { position: relative; min-height: 440px; }
.tablet { position: absolute; inset: 0 0 120px 0; background: var(--deep); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); color: var(--on-deep); display: flex; flex-direction: column; }
.tablet__screen > * { max-width: 54%; }
.tablet__screen { flex: 1; border-radius: 16px; background: linear-gradient(160deg, #0b564e, #07302c); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.tablet__site { font-size: 14px; color: var(--on-deep-muted); }
.tablet__big { font-size: clamp(22px, 2.4vw, 30px); font-weight: 740; letter-spacing: -0.03em; line-height: 1.15; color: #fff; }
.tablet__row { display: flex; flex-wrap: wrap; gap: 10px; }
.tablet__btn { flex: 1; border-radius: 14px; padding: 14px; font-weight: 650; font-size: 15px; background: rgb(255 255 255 / 10%); color: #fff; }
.tablet__btn--main { background: var(--accent); color: #3a2a08; }
.phone { position: absolute; right: 4%; bottom: 0; width: min(40%, 215px); aspect-ratio: 9 / 18.5; background: #12100e; border-radius: 36px; padding: 10px; box-shadow: 0 24px 60px rgb(7 48 44 / 35%); }
.phone__screen { height: 100%; border-radius: 28px; background: linear-gradient(180deg, #2b4a45, #12100e 70%); padding: 38px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.phone__time { text-align: center; color: #fff; font-size: 44px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.live { background: rgb(248 246 243 / 94%); color: #1c1815; border-radius: 18px; padding: 12px; font-size: 12.5px; line-height: 1.35; }
.live b { display: block; font-size: 13.5px; }
.live__bar { height: 6px; border-radius: 6px; background: #e5e0d8; margin: 8px 0 4px; overflow: hidden; }
.live__bar i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, #0e6a60, #2e9c8e); border-radius: 6px; }
.live__meta { display: flex; justify-content: space-between; color: #5b544b; font-size: 11.5px; }
.live--note { background: rgb(248 246 243 / 80%); }
@media (max-width: 520px) { .scene { min-height: 400px; } .tablet { inset: 0 0 150px 0; } .tablet__screen { padding: 16px; } .tablet__big { font-size: 19px; } .tablet__site { font-size: 12px; } .tablet__btn { padding: 10px; font-size: 13px; } .phone { width: 42%; right: 2%; } }

/* Sections */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--sunken { background: var(--sunken); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--deep .muted, .section--deep .lead, .section--deep .kicker { color: var(--on-deep-muted); }
.section--deep a { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__head .lead { font-size: 19px; color: var(--muted); }
.band { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); }
.band .lead { font-size: 19px; color: var(--muted); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
.section--deep .card { background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 12%); }
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #3a2a08; font-weight: 760; margin-bottom: 14px; }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e6a60' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.section--deep .ticks li::before { background-color: rgb(255 255 255 / 12%); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 620; }
.promise { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.promise div { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.promise b { display: block; font-size: 19px; margin-bottom: 4px; }
.cta { background: var(--brand); color: var(--on-brand); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; opacity: 0.85; }
.cta .btn { background: var(--on-brand); color: var(--brand-strong); }

/* Long-form pages (privacy, terms) */
.prose { max-width: 760px; padding-bottom: 80px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--sunken); font-weight: 640; }
.notice { background: var(--accent-soft); color: var(--accent-text); border-radius: 12px; padding: 12px 16px; font-size: 15px; margin-bottom: 24px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 640; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 48px 0 32px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot h2 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot nav a { display: block; color: var(--text); text-decoration: none; padding: 4px 0; }
.foot nav a:hover { color: var(--brand-strong); text-decoration: underline; }
.foot .brand { margin-bottom: 10px; }
.foot__base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > div:first-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.section--flush { padding-top: 0; }
.mt { margin-top: 40px; }
.mt-s { margin-top: 14px; }
