:root {
  --sand: #EFE3D3;
  --cream: #FAF5EE;
  --paper: #FFFDF9;
  --terracotta: #C0583C;
  --terracotta-deep: #9E4329;
  --clay: #8A6F5A;
  --ink: #2A2420;
  --ink-soft: #5E534B;
  --line: #E4D8C8;
  --charcoal: #1B1A19;
  --app-card: #33302D;
  --app-text: #EAE5DF;
  --radius: 18px;
  --wrap: 1120px;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--terracotta-deep); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 1rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-deep); color: #fff; }
.btn-quiet { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--clay); color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }

/* Hero */
.hero { padding: 48px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 24px; } }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .02em; color: var(--clay); background: var(--sand); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.fine { font-size: .95rem; color: var(--ink-soft); }

/* Phone mock: replace .screen contents with the demo <video> when it exists */
.phone {
  width: min(320px, 100%); margin-inline: auto; aspect-ratio: 9 / 19;
  background: #141312; border-radius: 44px; padding: 12px;
  box-shadow: 0 30px 60px -30px rgba(60, 35, 20, .45), 0 0 0 1px rgba(0,0,0,.06);
}
.screen { height: 100%; border-radius: 34px; background: var(--charcoal); overflow: hidden; display: flex; flex-direction: column; padding: 22px 16px 16px; color: var(--app-text); font-family: var(--font-head); }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.app-top { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; }
.app-top img { width: 22px; height: 22px; }
.app-pill { margin-left: auto; font-size: .7rem; color: #A5D6A7; background: #1B3326; padding: 3px 8px; border-radius: 8px; }
.app-weather { font-size: .72rem; color: #A8A096; margin: 14px 0 12px; }
.app-big { background: var(--terracotta); color: #fff; border-radius: 20px; padding: 26px 12px; text-align: center; font-weight: 700; font-size: 1.15rem; }
.app-big small { display: block; font-weight: 500; font-size: .72rem; opacity: .85; margin-top: 4px; }
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.app-btn { background: var(--app-card); border-radius: 14px; padding: 14px 8px; text-align: center; font-size: .78rem; font-weight: 600; }
.app-list { margin-top: 14px; font-size: .72rem; color: #A8A096; }
.app-item { background: #262321; border-radius: 12px; padding: 10px 12px; margin-top: 6px; display: flex; justify-content: space-between; color: var(--app-text); }
.app-item span:last-child { color: #A8A096; }
.mock-note { text-align: center; font-size: .85rem; color: var(--ink-soft); margin-top: 14px; }

/* Sections */
section { padding: 88px 0; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.band .step { background: var(--cream); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sand); color: var(--terracotta-deep); font-family: var(--font-head); font-weight: 700; margin-bottom: 16px; }
.step p { color: var(--ink-soft); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.card p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }
.card .tag { display: inline-block; font-size: .8rem; color: var(--clay); background: var(--sand); padding: 2px 10px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; font-family: var(--font-head); font-weight: 600; }

.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 880px) { .who { grid-template-columns: 1fr 1fr; } }
.who div { border-top: 3px solid var(--terracotta); padding-top: 14px; }
.who strong { font-family: var(--font-head); display: block; margin-bottom: 4px; }
.who span { color: var(--ink-soft); font-size: 1rem; }
.quote { margin: 56px 0 0; padding: 32px; border-radius: var(--radius); background: var(--sand); font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.quote cite { display: block; font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: 1rem; color: var(--ink-soft); margin-top: 12px; }

.privacy-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; max-width: 42em; }
.privacy-list li { padding-left: 34px; position: relative; }
.privacy-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--sand); box-shadow: inset 0 0 0 5px var(--sand), inset 0 0 0 9px var(--terracotta); }

.beta { text-align: center; }
.beta .wrap { max-width: 760px; }
.beta p { color: var(--ink-soft); font-size: 1.15rem; }
.beta .cta-row { justify-content: center; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terracotta); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; }

.notice { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; color: var(--ink-soft); font-size: 1rem; }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: .98rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ink-soft); }

/* Text pages (privacy, delete account) */
.doc { max-width: 760px; padding: 32px 0 88px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc .summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 28px 0; }
.doc .summary ul { margin: 0; padding-left: 1.2em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 1em 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--font-head); font-size: .95rem; }
.table-scroll { overflow-x: auto; }
.draft { background: #FFF1D6; border: 1px solid #E8C98F; color: #6B4A12; border-radius: 12px; padding: 12px 16px; font-size: .95rem; margin-bottom: 20px; }
.fill { background: #FFF1D6; padding: 0 4px; border-radius: 4px; }
