/* Improver — marketing site
   Tokens follow DesignSystem.md §2 and §5. The one loud idea is the sticker:
   phones and the worked example get the companions' ink outline and a hard,
   unblurred offset shadow. Everything else stays quiet. No web fonts: SF Pro
   on Apple devices, the system face elsewhere. */

:root {
  --green: #33A11B;
  --green-pressed: #2E9418;
  --green-text: #23780F;
  --green-tint: #EAF7E4;
  --blue: #1A9BE0;
  --blue-text: #0F6CA6;
  --blue-tint: #E6F4FC;
  --yellow: #FFC21A;
  --yellow-text: #8A5A00;
  --yellow-tint: #FFF6D9;
  --orange-text: #A34F00;
  --orange-tint: #FFF1E0;

  --ink: #1E2B33;
  --text-2: #5B6870;
  --text-3: #8A959C;
  --paper: #FFFFFF;
  --sunken: #F5F7F8;
  --border: #E4E8EB;
  --nav-bg: rgba(255, 255, 255, 0.86);

  --outline: #1E2B33;
  --shadow-hard: rgba(30, 43, 51, 0.2);
  --btn-dark-bg: #1E2B33;
  --btn-dark-fg: #FFFFFF;
  --field-bg: var(--green-tint);

  --gutter: 16px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --phone-w: 280px;
  --phone-r: 42px;
  --bezel: 7px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green-text: #7BD65E;
    --green-tint: #17301A;
    --blue-text: #6CC3F2;
    --blue-tint: #10293A;
    --yellow-text: #FFD25C;
    --yellow-tint: #3A2F10;
    --orange-text: #FFAA4D;
    --orange-tint: #3A2410;

    --ink: #EEF2F4;
    --text-2: #A9B4BA;
    --text-3: #7E8A91;
    --paper: #12191E;
    --sunken: #1B252B;
    --border: #2A363D;
    --nav-bg: rgba(18, 25, 30, 0.86);

    --outline: #000000;
    --shadow-hard: rgba(0, 0, 0, 0.55);
    --btn-dark-bg: #EEF2F4;
    --btn-dark-fg: #12191E;
    --field-bg: #15261A;

    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 12px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

h1, h2, h3 { margin: 0; line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(44px, 11vw, 84px); letter-spacing: -0.04em; line-height: 0.96; }
h2 { font-size: clamp(30px, 6.4vw, 46px); letter-spacing: -0.03em; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.012em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.lede { color: var(--text-2); font-size: 19px; line-height: 1.5; max-width: 32em; }
.muted { color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Buttons: flat capsules (D-88). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 700; font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-pressed); }
.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-fg); }
.btn-dark:hover { opacity: 0.9; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* App Store badge placeholder: a dark two-line capsule until the real badge and link exist. */
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 56px; padding: 6px 22px 7px;
  border-radius: 14px;
  background: var(--btn-dark-bg); color: var(--btn-dark-fg);
  text-decoration: none; line-height: 1.15;
  border: 2px solid var(--outline);
  box-shadow: 3px 4px 0 var(--shadow-hard);
  transition: transform .12s ease, box-shadow .12s ease;
}
.store small { font-size: 12px; font-weight: 500; opacity: 0.85; }
.store span { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.store:hover { transform: translate(-1px, -1px); box-shadow: 4px 5px 0 var(--shadow-hard); }
.store:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--shadow-hard); }
.soon { color: var(--text-2); font-size: 15px; font-weight: 500; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--outline); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--text-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .btn { color: var(--btn-dark-fg); }
@media (max-width: 560px) {
  .nav-links { gap: 16px; }
  .nav-links .btn { display: none; }
}

/* The sticker phone */
.phone {
  width: var(--phone-w);
  max-width: 100%;
  padding: var(--bezel);
  border-radius: var(--phone-r);
  background: #0F1417;
  border: 3px solid var(--outline);
  box-shadow: 8px 10px 0 var(--shadow-hard);
  flex: none;
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--phone-r) - var(--bezel) - 3px);
  aspect-ratio: 804 / 1748;
  object-fit: cover;
  background: #fff;
}

/* Hero */
.hero { padding: 36px 0 0; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; }
.hero-copy .lede { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero-facts li {
  font-size: 14px; font-weight: 600; color: var(--text-2);
  background: var(--sunken); border-radius: 999px; padding: 6px 12px;
}
.hero-stage {
  position: relative;
  display: flex; justify-content: center;
  height: 470px;
  overflow: hidden;
  margin: 0 calc(var(--gutter) * -1);
}
.hero-stage .phone { position: absolute; top: 6px; --phone-w: 300px; --phone-r: 46px; }
.hero-stage::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
/* The day's number, stuck to the hero phone like a companion sticker. */
.tag {
  position: absolute; z-index: 2;
  top: 120px; left: calc(50% + 70px);
  padding: 10px 14px 11px;
  background: var(--yellow);
  color: #1E2B33;
  border: 3px solid var(--outline);
  border-radius: 18px;
  box-shadow: 4px 5px 0 var(--shadow-hard);
  transform: rotate(4deg);
  line-height: 1.1;
}
.tag b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tag span { font-size: 13px; font-weight: 600; }
@media (min-width: 880px) {
  .hero { padding-top: 56px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: start; }
  .hero-copy { padding-top: 48px; }
  .hero-stage { height: 600px; margin: 0; }
  .hero-stage .phone { --phone-w: 340px; --phone-r: 52px; --bezel: 9px; }
  .tag { top: 150px; left: auto; right: -6px; }
}

/* Sections */
.section { padding: 72px 0; }
.section-head { max-width: 34em; margin-bottom: 36px; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 18px; }
@media (min-width: 880px) { .section { padding: 104px 0; } }

/* How it works: a real sequence, so it is numbered. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff;
  border: 3px solid var(--outline);
  box-shadow: 2px 3px 0 var(--shadow-hard);
  font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums;
}
.steps p { color: var(--text-2); }
@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .steps li { grid-template-columns: 1fr; gap: 14px; }
  .steps li::before { grid-row: auto; }
}

/* A row: words and a phone. Mobile: stacked. Wide: side by side. */
.row .wrap { display: grid; gap: 40px; align-items: center; }
.row .phone { margin: 0 auto; }
.row-copy { max-width: 31em; }
.row-copy h2 { margin-bottom: 18px; }
.row-copy p { color: var(--text-2); font-size: 18px; }
.row-copy p + p { margin-top: 14px; }
@media (min-width: 880px) {
  .row .wrap { grid-template-columns: minmax(0, 1fr) var(--phone-w); gap: 72px; }
  .row.flip .wrap { grid-template-columns: var(--phone-w) minmax(0, 1fr); }
  .row.flip .phone { order: -1; }
  .row + .row { padding-top: 0; }
}

/* The worked example: the honest math, as a sticker card. */
.worked {
  margin-top: 28px;
  background: var(--paper);
  border: 3px solid var(--outline);
  border-radius: 22px;
  box-shadow: 5px 6px 0 var(--shadow-hard);
  padding: 4px 18px;
}
.worked div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0;
  font-size: 16px; color: var(--text-2);
}
.worked div + div { border-top: 1px solid var(--border); }
.worked b { font-size: 21px; font-weight: 800; color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.worked b.less { color: var(--green-text); }
.worked b.more { color: var(--yellow-text); }

/* Companions */
.field { background: var(--field-bg); }
.field .wrap { display: grid; gap: 40px; align-items: center; }
.field .phone { margin: 0 auto; }
.field h2 { margin-bottom: 18px; }
.field p { color: var(--text-2); font-size: 18px; }
.field p + p { margin-top: 14px; }
.facts { margin: 0; display: grid; gap: 24px; }
.facts dt { font-weight: 700; font-size: 18px; color: var(--ink); }
.facts dd { margin: 4px 0 0; color: var(--text-2); }
@media (min-width: 960px) {
  .field .wrap { grid-template-columns: minmax(0, 1fr) var(--phone-w) minmax(0, 1fr); gap: 56px; }
}

/* Around the app: a plain two-column list, no cards. */
.around { display: grid; gap: 28px 48px; margin: 0; }
.around div { padding-top: 18px; border-top: 3px solid var(--ink); }
.around dt { font-weight: 800; font-size: 20px; letter-spacing: -0.015em; }
.around dd { margin: 6px 0 0; color: var(--text-2); }
@media (min-width: 720px) { .around { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .around { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Account and privacy */
.account { background: var(--sunken); }
.account .wrap { display: grid; gap: 36px; }
.account .big { font-size: clamp(24px, 4.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; max-width: 22em; text-wrap: balance; }
.account .facts { max-width: 40em; }
@media (min-width: 880px) { .account .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }

/* Final call to action */
.cta .wrap { display: grid; gap: 20px; justify-items: start; }
.cta h2 { max-width: 15em; }
.cta p { color: var(--text-2); font-size: 18px; max-width: 32em; }
.cta .hero-cta { margin-top: 8px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--text-2); font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* Prose pages (privacy, support, 404) */
.page { padding: 44px 0 80px; }
.page .wrap { max-width: 740px; }
.page > .wrap > header { margin-bottom: 32px; }
.page header .lede, .page header .meta { margin-top: 14px; }
.page h1 { font-size: clamp(38px, 8vw, 56px); }
.page h2 { font-size: 26px; margin: 48px 0 12px; scroll-margin-top: 80px; }
.page h3 { margin: 28px 0 8px; }
.page p { margin: 0 0 14px; }
.page ul, .page ol { margin: 0 0 16px; padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page li::marker { color: var(--text-3); }
.page .meta { color: var(--text-2); font-size: 15px; font-weight: 500; }
.page table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 16px; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); }
.page th { font-weight: 700; }
.page td:first-child { font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .page td:first-child { white-space: normal; } }
.table-scroll { overflow-x: auto; }
.toc { margin: 0 0 8px; padding: 18px 22px; background: var(--sunken); border-radius: 20px; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0; columns: 2 14em; column-gap: 32px; }
.toc li { margin-bottom: 4px; }
.summary {
  background: var(--green-tint);
  border: 3px solid var(--outline);
  border-radius: 22px;
  box-shadow: 5px 6px 0 var(--shadow-hard);
  padding: 20px 22px;
  margin-bottom: 28px;
}
.summary p { margin: 0; }
.summary ul { margin: 10px 0 0; }
.summary li:last-child { margin-bottom: 0; }
.notice {
  background: var(--sunken);
  border-radius: 20px;
  padding: 18px 22px;
  margin: 22px 0;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sunken); color: var(--text-2);
  font-weight: 700; font-size: 18px;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 18px; color: var(--text-2); }
.faq .answer p:last-child, .faq .answer ol:last-child { margin-bottom: 0; }
.faq .answer strong { color: var(--ink); }

.lost { text-align: left; }
.lost .tag { position: static; display: inline-block; margin-bottom: 28px; transform: rotate(-3deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tag, .lost .tag { transform: none; }
}
.account .big { margin-top: 18px; }
.lost .lede { margin-top: 18px; }
