/* Recall's public site (spec MVP 3j). Colors are DESIGN.md's tokens, light and dark. */
:root {
  color-scheme: light dark;
  --window: #ffffff; --panel: #f5f5f7; --fg: #1d1d1f; --muted: #636366; --line: rgba(0,0,0,.09);
  --fill: rgba(0,0,0,.045); --accent: #0066cc; --accent-fill: #0071e3; --on: #ffffff;
  --k-talk: #0a84ff; --k-listen: #ff9f0a; --k-memo: #30d158;
}
@media (prefers-color-scheme: dark) {
  :root {
    --window: #1e1e20; --panel: #2a2a2c; --fg: #f5f5f7; --muted: #98989d; --line: rgba(255,255,255,.09);
    --fill: rgba(255,255,255,.06); --accent: #2997ff; --accent-fill: #0060c7;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--window); color: var(--fg);
  font: 16px/1.75 -apple-system, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  overflow-wrap: anywhere;
}
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; font-family: -apple-system, "SF Pro Display", "Hiragino Sans", system-ui, sans-serif; line-height: 1.3; letter-spacing: .01em; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
kbd { font: 13px ui-monospace, "SF Mono", Menlo, monospace; padding: 1px 6px; border-radius: 6px; background: var(--fill); border: 1px solid var(--line); }
code { font: 14px ui-monospace, "SF Mono", Menlo, monospace; padding: 1px 5px; border-radius: 6px; background: var(--fill); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* header and footer, on every page */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.site-header a { color: var(--fg); text-decoration: none; }
.site-header a:hover { text-decoration: underline; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.wordmark img { width: 24px; height: 24px; }
.site-header nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.site-header nav a { display: inline-block; padding: 12px 4px; }
[aria-current="page"] { font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0 0 12px; padding: 0; }
.site-footer li a { display: inline-block; padding: 8px 0; }
.site-footer a { color: var(--muted); }

/* the landing page */
.hero { padding: 88px 0 48px; text-align: center; }
.hero h1 { font-size: clamp(26px, 6vw, 56px); margin: 0 0 20px; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.button {
  display: inline-block; padding: 12px 28px; border-radius: 10px; background: var(--accent-fill); color: var(--on);
  font-weight: 600; font-size: 17px; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.requirements { color: var(--muted); font-size: 14px; margin: 16px auto 0; max-width: 560px; }
.shot { margin: 48px auto 0; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.14); }
section { padding: 72px 0 0; }
section > .wrap > h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 12px; }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 680px; }
.card { background: var(--panel); border-radius: 12px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.promises li { background: var(--panel); border-radius: 12px; padding: 16px 20px; }
.promises strong { display: block; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.price { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.2em; }
.plan li + li { margin-top: 4px; }
.note { color: var(--muted); font-size: 14px; }

/* help and legal pages */
.doc { padding-top: 48px; }
.doc h1 { font-size: clamp(28px, 4.5vw, 38px); margin: 0 0 16px; }
.doc h2 { font-size: 22px; margin: 48px 0 12px; padding-top: 8px; }
.doc h3 { font-size: 17px; margin: 28px 0 8px; }
.doc li + li { margin-top: 6px; }
.doc table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.doc th { width: 30%; font-weight: 600; word-break: auto-phrase; }
.index { list-style: none; padding: 0; display: grid; gap: 12px; }
.index a { display: block; padding: 16px 20px; border-radius: 12px; background: var(--panel); text-decoration: none; color: var(--fg); }
.index a:hover { background: var(--fill); }
.index strong { display: block; color: var(--accent); }
.index span { color: var(--muted); font-size: 14px; }
.callout { background: var(--panel); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.back { margin-top: 48px; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .hero .lead, .hero .requirements { text-align: left; }
  .doc th, .doc td { padding: 10px 8px 10px 0; }
  .doc th { width: 36%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* landing, features and pricing */
.site-header nav ul { align-items: center; }
.site-header a, .wordmark { white-space: nowrap; }
.site-header nav .nav-cta { background: var(--accent-fill); color: var(--on); border-radius: 8px; padding: 6px 14px; font-weight: 600; }
.site-header nav .nav-cta:hover { text-decoration: none; filter: brightness(1.08); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; margin: 0 0 12px; }
.hero-small { padding: 64px 0 8px; }
.hero-small h1 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; align-items: center; margin: 0; }
.text-link { font-weight: 600; text-decoration: none; padding: 12px 4px; }
.text-link:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 24px auto 0; max-width: 720px; }
.chips li { background: var(--fill); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; }
.problems { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.problems .num { font: 700 14px ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent); }
.problems h3 { margin: 8px 0; }
.problems p { margin: 0 0 8px; }
.problems .example { font-size: 14px; border-top: 1px solid var(--line); padding-top: 8px; margin: 12px 0 0; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--muted); font-size: 13px; font-weight: 600; }
.compare tbody th { font-weight: 600; word-break: auto-phrase; }
.compare td:last-child { font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.steps li { border-top: 3px solid var(--accent); padding-top: 12px; }
.steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--muted); }
.more { margin: 24px 0 0; font-weight: 600; }
.plan-pro { border: 2px solid var(--accent); }
.price-alt { margin: -8px 0 16px; color: var(--muted); font-size: 14px; }
.plan .button { margin-top: 8px; }
.feature .points { margin: 0 0 8px; padding-left: 1.2em; }
.feature .points li + li { margin-top: 6px; }
.feature .shot { margin-top: 32px; }
.final-cta { text-align: center; }
.final-cta .wrap { background: var(--panel); border-radius: 16px; padding: 48px 24px; }
.final-cta h2 { font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
@media (max-width: 600px) {
  .site-header nav ul { gap: 12px; }
  .site-header nav a { padding: 12px 2px; }
  .site-header nav .nav-cta { display: none; }
  .hero, .hero h1, .hero .eyebrow { text-align: left; }
  .hero .reassure, .hero .install { margin-left: 0; }
  .cta-row { justify-content: flex-start; }
  .final-cta .wrap { margin: 0 16px; width: auto; }
  .chips { justify-content: flex-start; }
  .compare th, .compare td { padding: 10px 6px 10px 0; font-size: 14px; }
}
.local-promise { font-weight: 600; margin: 16px auto 0; }
.shot-narrow { max-width: min(520px, 100%); }
.button-large { font-size: 19px; padding: 15px 30px; border-radius: 12px; }
.fineprint { color: var(--muted); font-size: 13px; margin: 8px auto 0; }

/* diagrams drawn in HTML: where the data stays, and what Pro adds */
.diagram { margin: 32px 0 0; padding: 24px; border-radius: 16px; background: var(--panel); display: grid; gap: 16px; }
.frame-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.mac-frame { border: 2px solid var(--accent); border-radius: 14px; padding: 16px; display: grid; gap: 12px; }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.pipeline li { position: relative; background: var(--window); border-radius: 10px; padding: 12px 14px; }
.pipeline li + li::before { content: "→"; position: absolute; left: -12px; top: 50%; transform: translate(-50%, -50%); color: var(--muted); }
.pipeline b { display: block; }
.pipeline small, .links small { display: block; color: var(--muted); font-size: 13px; }
.outside { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.outside li { display: flex; gap: 10px; align-items: baseline; }
.outside .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; }
.blocked .mark { background: var(--fill); color: var(--fg); }
.optin { color: var(--muted); }
.optin .mark { border: 1.5px dashed var(--muted); }
.period { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
.plan-name { font-weight: 700; }
.bar { display: flex; border-radius: 8px; overflow: hidden; font-size: 13px; }
.bar span { padding: 8px 10px; }
.bar .kept { flex: 3; background: var(--fill); color: var(--muted); border: 1.5px dashed var(--line); border-right: 0; border-radius: 8px 0 0 8px; }
.bar .shown { flex: 1; background: var(--accent-fill); color: var(--on); font-weight: 600; text-align: center; }
.bar .shown.all { flex: 4; }
.connect { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.node-recall { background: var(--accent-fill); color: var(--on); font-weight: 700; border-radius: 12px; padding: 14px 18px; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.links li { position: relative; background: var(--window); border-radius: 10px; padding: 10px 14px; }
.links li::before { content: ""; position: absolute; left: -16px; top: 50%; width: 16px; border-top: 1.5px dashed var(--muted); }
@media (max-width: 600px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline li:nth-child(3)::before { display: none; }
  .diagram { padding: 16px; }
  .bar .kept { flex: 2; }
}
