/* Everyday Agent: the landing and the legal pages. Tokens from DESIGN.md; light and dark. */
:root {
  --page: #f7f7f8;
  --surface: #ffffff;
  --inset: #f6f6f8;
  --ink: #111113;
  --ink-2: #3c3c43;
  --hint: #6d6d72;
  --sep: rgba(60, 60, 67, .16);
  --primary: #111113;
  --on-primary: #ffffff;
  --link: #2f6fd6;
  --ok: #167a41;
  --tg: #1c6fb0;
  --tg-btn: #1c6fb0;
  --leo: #2f7fe6;
  --leo-ink: #1f6fd1;
  --lift: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 20px rgba(0, 0, 0, .06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e0e10;
    --surface: #17171a;
    --inset: #2c2c2e;
    --ink: #f2f2f3;
    --ink-2: #d1d1d6;
    --hint: #98989e;
    --sep: rgba(84, 84, 88, .55);
    --primary: #f2f2f3;
    --on-primary: #111113;
    --link: #6aa6ff;
    --ok: #3ccf7a;
    --tg: #4ba3f5;
    --tg-btn: #2563c7;
    --leo-ink: #6aa6ff;
    --lift: 0 1px 2px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  overflow-x: hidden;
}
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.top { border-bottom: .5px solid var(--sep); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.mark { display: grid; grid-template-columns: repeat(3, 7px); gap: 2px; }
.mark i { display: block; width: 7px; height: 7px; border-radius: 50%; }
.mark i:nth-child(1) { background: #7c5cfc; } .mark i:nth-child(2) { background: #2f7fe6; } .mark i:nth-child(3) { background: #1f9e68; }
.mark i:nth-child(4) { background: #e0484d; } .mark i:nth-child(5) { background: #e8a10f; } .mark i:nth-child(6) { background: #ee7426; }
.top-link { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  background: var(--primary); color: var(--on-primary);
  font: 600 17px/1.2 var(--font); text-decoration: none; text-align: center;
}
.btn:hover { filter: brightness(.94); }
.btn:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.btn-tint { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--ink); }

/* Sections */
section { padding: 48px 0; }
section + section { border-top: .5px solid var(--sep); }
.h2 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.lead { color: var(--ink-2); font-size: 17px; max-width: 640px; }
.hint { color: var(--hint); font-size: 14px; }
.grid { display: grid; gap: 16px; margin-top: 24px; }

/* Hero */
.hero { padding: 56px 0 48px; }
.hero h1 { font-size: 40px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; max-width: 12ch; }
.hero .sub { margin-top: 16px; font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
.hero .cta { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero .cta .btn { width: 100%; max-width: 360px; }

/* Steps with mock screens */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 28px; }
.step-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.step-text { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.n { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--inset); color: var(--ink); font-size: 14px; font-weight: 700; vertical-align: 2px; }

.phone { background: var(--inset); border-radius: 16px; padding: 14px; }
.bubble { background: var(--surface); border-radius: 14px 14px 14px 4px; padding: 10px 12px; box-shadow: var(--lift); font-size: 15px; line-height: 1.4; max-width: 100%; }
.bubble p + p, .bubble ul { margin-top: 6px; }
.bubble ul { padding-left: 18px; margin-bottom: 0; }
.who { font-weight: 600; color: var(--leo-ink); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--leo); }
.time { color: var(--hint); font-size: 12px; text-align: right; margin-top: 4px; font-variant-numeric: tabular-nums; }

.card { background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: var(--lift); }
.card-head { display: flex; align-items: center; gap: 8px; color: var(--hint); font-size: 13px; }
.face { width: 26px; height: 26px; flex: none; }
.card-title { font-weight: 600; font-size: 16px; letter-spacing: -.01em; margin-top: 8px; }
.card-reason { color: var(--hint); font-size: 14px; margin-top: 2px; }
.draft { background: var(--inset); border-radius: 10px; padding: 8px 10px; font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.actions { display: flex; gap: 8px; margin-top: 10px; }
.act { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.act-main { flex: 1; background: var(--tg-btn); color: #fff; }
.act-tint { background: color-mix(in srgb, var(--tg) 12%, transparent); color: var(--tg); }
.act-ghost { color: var(--hint); font-weight: 500; }
.strip { margin-top: 10px; border-radius: 10px; background: var(--inset); padding: 9px 10px 0; font-size: 14px; overflow: hidden; }
.strip-row { display: flex; justify-content: space-between; gap: 8px; }
.strip .undo { color: var(--link); font-weight: 600; }
.bar { height: 3px; margin: 9px -10px 0; background: var(--tg-btn); width: 60%; }
.done { margin-top: 10px; color: var(--ok); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* Grouped list */
.group { background: var(--surface); border-radius: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.group li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 14px; font-size: 15px; }
.group li + li { border-top: .5px solid var(--sep); }
.group .val { color: var(--hint); text-align: right; font-variant-numeric: tabular-nums; }
.group-title { margin-top: 24px; color: var(--hint); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; padding: 0 14px; }
.group-title + .group { margin-top: 6px; }

/* Numbered how-to */
.howto { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.howto li { counter-increment: s; position: relative; padding: 14px 14px 14px 52px; background: var(--surface); border-radius: 14px; font-size: 15px; }
.howto li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--inset); font-weight: 700; font-size: 14px; }
.howto b { display: block; font-size: 16px; margin-bottom: 2px; }

/* Tiles */
.tile { background: var(--surface); border-radius: 14px; padding: 16px; }
.tile h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.tile p { color: var(--ink-2); font-size: 15px; }

/* Prices */
.price { background: var(--surface); border-radius: 14px; padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.price h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.amount { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.amount span { font-size: 15px; font-weight: 600; color: var(--hint); letter-spacing: 0; }
.price ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.price li + li { margin-top: 4px; }
.price .btn { margin-top: auto; }
.price-note { margin-top: 16px; }

/* FAQ */
.faq { margin-top: 24px; background: var(--surface); border-radius: 14px; }
.faq details + details { border-top: .5px solid var(--sep); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 40px 14px 14px; font-weight: 600; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 12px; color: var(--hint); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 14px 16px; color: var(--ink-2); font-size: 15px; }
.faq .a p + p { margin-top: 8px; }

/* Final call */
.final { text-align: center; }
.final .btn { margin-top: 20px; width: 100%; max-width: 360px; }
.final .hint { margin-top: 10px; }

/* Footer */
.foot { border-top: .5px solid var(--sep); padding: 28px 0 40px; color: var(--hint); font-size: 14px; }
.foot nav ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot p + p { margin-top: 4px; }

/* Legal pages */
.doc { padding: 32px 0 48px; }
.doc h1 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.doc .date { color: var(--hint); font-size: 15px; margin-top: 8px; }
.doc h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 32px 0 10px; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.doc p, .doc li { font-size: 16px; color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc .toc { background: var(--surface); border-radius: 14px; padding: 14px 16px; margin-top: 20px; }
.doc .toc ol { margin: 6px 0 0; }
.doc .box { background: var(--surface); border-radius: 14px; padding: 16px; margin-top: 12px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; background: var(--surface); border-radius: 14px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: .5px solid var(--sep); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 600; border-top: 0; }
.doc .scroll { overflow-x: auto; }
.req dt { color: var(--hint); font-size: 14px; margin-top: 10px; }
.req dd { margin: 2px 0 0; color: var(--ink); overflow-wrap: anywhere; }

@media (min-width: 720px) {
  section { padding: 72px 0; }
  .hero { padding: 88px 0 72px; }
  .hero h1 { font-size: 56px; }
  .hero .sub { font-size: 21px; }
  .hero .cta .btn { width: auto; }
  .h2 { font-size: 34px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .howto { grid-template-columns: repeat(2, 1fr); }
  .doc h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter .15s ease; }
}

/* The price and the author in one calm block. */
.lead + .lead { margin-top: 12px; }
#author { margin-top: 40px; }
