/* Palette mirrors apps/web/src/theme.css: coral = needs you, green = done / forward. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --sunken: #eff1f3;
  --border: #e6e9ec;
  --text: #171a1c;
  --muted: #5d676d;
  --accent: #2e5e54;
  --accent-soft: #e4efeb;
  --on-accent: #ffffff;
  --alert: #f0446b;
  --alert-soft: #fde6ec;
  --alert-text: #b3123b;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1413;
    --surface: #181e1d;
    --sunken: #212927;
    --border: #28312f;
    --text: #ecefee;
    --muted: #a3aeaa;
    --accent: #5cb89d;
    --accent-soft: #1c2e29;
    --on-accent: #0f1413;
    --alert-soft: #3a1b24;
    --alert-text: #ff8aa5;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1100px, 100% - 40px); margin-inline: auto; }
.narrow details { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.mark { width: 32px; height: 32px; color: var(--accent); }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 500; }
.site-header nav a:hover { color: var(--text); }

.eyebrow { color: var(--accent); font-weight: 600; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: 21px; color: var(--muted); margin-top: 22px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 17px; border: 2px solid transparent; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn.ghost:hover { border-color: var(--accent); }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.device { background: var(--surface); border: 1px solid var(--border); border-radius: 32px; padding: 22px; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .35); }
.device-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 22px; padding: 4px 6px 16px; }
.pill { background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.tasks { display: grid; gap: 10px; }
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--sunken); border-radius: 16px; padding: 14px 16px; }
.task strong { display: block; font-size: 17px; }
.task small { color: var(--muted); font-size: 14px; }
.task .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); }
.task .who { font-size: 13px; font-weight: 600; color: var(--muted); }
.task.alert { background: var(--alert-soft); }
.task.alert .dot { border-color: var(--alert); background: var(--alert); }
.task.alert small { color: var(--alert-text); }
.task.done .dot { border-color: var(--accent); background: var(--accent); }
.task.done strong { text-decoration: line-through; text-decoration-color: var(--muted); }
.tap { display: flex; align-items: center; gap: 10px; margin-top: 16px; background: var(--accent); color: var(--on-accent); border-radius: 14px; padding: 12px 16px; font-weight: 600; font-size: 15px; }
.tap svg { width: 22px; height: 22px; flex: none; }

.section { padding: 80px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 20px; font-weight: 700; }
.section-lead { color: var(--muted); font-size: 20px; margin-top: 14px; max-width: 40em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.steps li, .cards li, .plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.alt .cards li { background: var(--bg); }
.steps h3, .cards h3 { margin-bottom: 8px; }
.steps p, .cards p { color: var(--muted); font-size: 17px; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 14px; }

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

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.ticks { display: grid; gap: 18px; margin-top: 28px; }
.ticks li { padding-left: 34px; position: relative; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%232e5e54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: 28px; }
.note p { margin-top: 10px; }
.coral { color: var(--alert-text); font-weight: 600; }
.green { color: var(--accent); font-weight: 600; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; margin-top: 36px; }
.alt .plan { background: var(--bg); }
.plan.featured { border: 2px solid var(--accent); }
.price { font-size: 40px; font-weight: 800; margin: 10px 0 4px; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { margin-top: 18px; display: grid; gap: 8px; color: var(--muted); }
.plan li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

details { border-bottom: 1px solid var(--border); padding: 18px 0; }
details:first-of-type { margin-top: 28px; border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 600; font-size: 19px; }
details p { color: var(--muted); margin-top: 10px; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; padding: 10px 0; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }

.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.legal .fine { margin-bottom: 36px; }
.legal h2 { font-size: 24px; margin-top: 40px; margin-bottom: 14px; }
.legal h3 { font-size: 18px; margin-top: 24px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--muted); margin-top: 10px; }
.legal ul, .legal ol { margin-top: 10px; padding-left: 22px; list-style: disc; }
.legal ol { list-style: decimal; }
.legal strong { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 16px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--text); font-weight: 700; }
.legal mark.todo { background: var(--alert-soft); color: var(--alert-text); font-weight: 600; padding: 1px 6px; border-radius: 6px; }
.legal .callout { background: var(--accent-soft); border-radius: var(--radius); padding: 20px 24px; margin-top: 28px; }
.legal .callout p { color: var(--text); }
.legal .steps-plain { margin-top: 14px; }
.legal .steps-plain li { margin-top: 14px; }

.fallback { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 16px; padding: 40px 20px; }
.fallback h1 { font-size: clamp(32px, 6vw, 48px); }
.fallback p { color: var(--muted); max-width: 30em; margin-inline: auto; }
.fallback .cta-row { justify-content: center; }

@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .steps, .cards { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
  .hero { padding-top: 40px; }
  .section { padding: 56px 0; }
}

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