/* I'll Circle Back: deep teal from the app icon, a warm cream page and an
   amber accent. Light by default, dark when the device asks for it. */
:root {
  --teal: #0F6B7A;
  --teal-top: rgb(16, 120, 118);
  --teal-bottom: rgb(8, 62, 74);
  --hero: linear-gradient(170deg, var(--teal-top) 0%, var(--teal-bottom) 100%);
  --cream: #FAF6EC;
  --amber: #F0A030;
  --amber-hover: #F5B556;
  --on-amber: #241605;

  --page: #FAF6EC;
  --surface: #FFFDF8;
  --surface-2: #F2ECDD;
  --ink: #13262B;
  --ink-2: #33494F;
  --muted: #586B70;
  --link: #0C6170;
  --accent-ink: #8A5208;
  --border: rgba(15, 107, 122, 0.16);
  --icon-bg: rgba(15, 107, 122, 0.10);
  --icon-fg: #0F6B7A;
  --focus: #0F6B7A;
  --shadow: 0 10px 30px rgba(8, 62, 74, 0.08), 0 1px 2px rgba(8, 62, 74, 0.06);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0A1D22;
    --surface: #0F272D;
    --surface-2: #133139;
    --ink: #F5F0E3;
    --ink-2: #CBD6D4;
    --muted: #98ABAD;
    --link: #86D3CD;
    --accent-ink: #F5B556;
    --border: rgba(250, 246, 236, 0.10);
    --icon-bg: rgba(134, 211, 205, 0.12);
    --icon-fg: #86D3CD;
    --focus: #F5B556;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
}
h1, h2, h3 { font-family: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.15; letter-spacing: -0.01em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 236, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) { header.site { background: rgba(10, 29, 34, 0.86); } }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav.links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
nav.links a { color: var(--ink-2); text-decoration: none; }
nav.links a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 760px) { .hide-sm { display: none; } }

/* Hero */
.hero { background: var(--hero); color: var(--cream); padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 56px solid rgba(240, 160, 48, 0.10); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero a { color: var(--cream); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cream); background: rgba(250, 246, 236, 0.14); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.lead { font-size: 19px; color: rgba(250, 246, 236, 0.9); max-width: 32em; margin: 0; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(250, 246, 236, 0.12); border: 1px solid rgba(250, 246, 236, 0.2); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 14px;
  font-weight: 650; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.button.ghost { color: var(--cream); border-color: rgba(250, 246, 236, 0.4); }
.button.ghost:hover { background: rgba(250, 246, 236, 0.1); text-decoration: none; }

/* "Coming soon" stand-in for the App Store badge: not a link. */
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px;
  background: #0B0F10; color: #FAF6EC; border: 1px solid rgba(250, 246, 236, 0.35); line-height: 1.2; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; opacity: 0.8; }
.store strong { display: block; font-size: 18px; }

/* Hero illustration: a sample case, drawn in HTML */
.case-mock { background: var(--cream); color: #13262B; border-radius: 22px; padding: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
  max-width: 420px; justify-self: center; width: 100%; }
.case-mock .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case-mock .kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #0C6170; }
.case-mock h2 { font-size: 20px; margin: 4px 0 0; }
.case-mock .amt { text-align: right; font-size: 12px; color: #586B70; white-space: nowrap; }
.case-mock .amt b { display: block; font-size: 18px; color: #13262B; }
.case-mock ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.case-mock li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; background: #FFFDF8; border: 1px solid rgba(15, 107, 122, 0.14);
  border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.case-mock li svg { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: rgba(15, 107, 122, 0.1); color: #0F6B7A; }
.case-mock li.wait svg { background: rgba(240, 160, 48, 0.22); color: #8A5208; }
.case-mock li span { display: block; color: #586B70; font-size: 12.5px; }

/* Sections */
section.band { padding: 64px 0; scroll-margin-top: 64px; }
section.band.alt { background: var(--surface-2); }
section.band h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 10px; }
.sub { color: var(--ink-2); margin: 0 0 32px; max-width: 40em; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid, .grid.two { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 44px 0 56px; }
}

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 12px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card p + p { margin-top: 8px; }
.card ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--icon-bg); color: var(--icon-fg); }
.icon svg { width: 24px; height: 24px; }

.situations { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .situations { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .situations { grid-template-columns: 1fr; } }
.situations li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.situations b { display: block; font-size: 17px; }
.situations span { color: var(--muted); font-size: 15px; }

.callout { margin-top: 24px; border-left: 4px solid var(--amber); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; box-shadow: var(--shadow); }
.callout h3 { margin: 0 0 6px; font-size: 19px; }
.callout p { margin: 0; color: var(--ink-2); }
.callout p + p { margin-top: 8px; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--amber); color: var(--on-amber); padding: 3px 9px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.card.pick { border: 2px solid var(--teal); }
@media (prefers-color-scheme: dark) { .card.pick { border-color: #86D3CD; } }
.card .tag { display: block; font-size: 14px; color: var(--muted); margin-top: 10px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
@media (max-width: 620px) { .checks { grid-template-columns: 1fr; } }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checks li b { color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23FAF6EC' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; color: var(--ink-2); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: #FAF6EC; font-weight: 700; font-size: 14px; display: grid; place-items: center; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; line-height: 1; color: var(--accent-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { margin: 0 0 16px; color: var(--ink-2); }

/* Download */
.download { background: var(--hero); color: var(--cream); border-radius: 24px; padding: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.download img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.download h2 { margin: 0 0 6px; }
.download p { margin: 0; color: rgba(250, 246, 236, 0.9); }
@media (max-width: 760px) { .download { grid-template-columns: 1fr; padding: 28px; text-align: left; } }

/* Long-form pages */
article.doc { max-width: 760px; margin: 0 auto; padding: 48px 0 72px; }
article.doc h1 { font-size: clamp(32px, 4.4vw, 44px); margin: 0 0 8px; }
article.doc h2 { font-size: 23px; margin: 36px 0 8px; }
article.doc h3 { font-size: 18px; margin: 24px 0 6px; }
article.doc p, article.doc li { color: var(--ink-2); }
article.doc li + li { margin-top: 6px; }
article.doc .meta { color: var(--muted); margin: 0 0 24px; }
article.doc .summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 22px; box-shadow: var(--shadow); }
article.doc .contact { font-size: 20px; font-weight: 650; }
.center { text-align: center; }
.notfound { padding: 96px 0; }
.notfound img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--ink-2); }
footer.site p { margin: 0; }
