/* Public site — "Afterglow" tokens, a copy of apps/web/src/index.css kept in step by hand
   (the same copy the intro deck carries). Light and dark; the theme follows the device, or
   the choice saved by the app (fios.theme) on this device. */
:root {
  --bg: #e8eaee; --bg-2: #dfe2e8; --surface: #ffffff; --surface-2: #f6f7f9; --surface-3: #eef0f3;
  --ink: #0f1116; --ink-2: #4a4f5e; --ink-3: #6f7585; --ink-4: #b6bac5; --on-inv: #f4f5f7;
  --line: #0f111614; --line-2: #0f111624;
  --afterglow: linear-gradient(120deg, #22204a 0%, #6e4a93 48%, #ee9563 100%);
  --accent: #5844d4; --accent-soft: #5844d41a; --pos: #0b9877; --pos-soft: #0b98771c; --neg: #d8432f; --neg-soft: #d8432f1a;
  --warn: #c98a0c; --warn-soft: #d6981624; --plan: #b0567a; --fc: #3a82d6; --graphite: #111219;
  --sh-2: 0 1px 2px #0f11160a, 0 10px 30px -12px #0f111624; --sh-3: 0 2px 6px #0f11160f, 0 30px 80px -24px #0f111652;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0b0c10; --bg-2: #101218; --surface: #15171d; --surface-2: #1a1d24; --surface-3: #21252d;
  --ink: #f2f3f6; --ink-2: #b4b9c6; --ink-3: #8d93a3; --ink-4: #4f5562; --on-inv: #0f1116;
  --line: #ffffff12; --line-2: #ffffff21;
  --accent: #8f7dff; --accent-soft: #8f7dff24; --pos: #2cc59e; --pos-soft: #2cc59e21; --neg: #ff6a55; --neg-soft: #ff6a5521;
  --warn: #f0b43c; --warn-soft: #f0b43c24; --plan: #d9789c; --fc: #5ea4f2;
  --sh-2: 0 1px 2px #0000004d, 0 12px 32px -12px #0009; --sh-3: 0 30px 80px -20px #000000b3;
  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; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-optical-sizing: auto; font-feature-settings: 'tnum' 1, 'cv11' 1; line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
h1 { font-size: clamp(30px, 5.2vw, 52px); line-height: 1.04; letter-spacing: -0.028em; font-weight: 700; margin: 0 0 14px; text-wrap: balance; }
h2 { font-size: clamp(23px, 3.2vw, 32px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 12px; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 6px; }
.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 18px; max-width: 52ch; }
.brand { font-family: 'Lora', Georgia, serif; font-style: italic; font-size: 20px; color: var(--ink-2); margin: 0 0 14px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--graphite); color: #f4f5f7; box-shadow: 0 10px 24px -12px #111219aa; }
.btn.primary:hover { box-shadow: 0 14px 28px -12px #111219cc; }
:root[data-theme='dark'] .btn.primary { background: #f2f3f6; color: #0f1116; box-shadow: none; }
.btn.glow { background: var(--afterglow); color: #fff; box-shadow: 0 10px 26px -10px rgb(110 74 147 / .7); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn.block { width: 100%; }

/* ---------- Header ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: saturate(170%) blur(22px); -webkit-backdrop-filter: saturate(170%) blur(22px); border-bottom: 1px solid var(--line); }
.bar .in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--afterglow); box-shadow: 0 6px 18px -6px rgb(110 74 147 / .6), inset 0 1px rgb(255 255 255 / .3); flex: none; }
.logo svg { width: 18px; height: 18px; }
.home-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; min-height: 44px; }
.bar nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.bar nav a[aria-current='page'] { color: var(--ink); background: var(--surface-3); }
.bar .cta { margin-left: 6px; }
@media (max-width: 719px) {
  .bar .in { padding: 8px 12px; gap: 6px; }
  .bar .name { display: none; }
  .bar nav a { padding: 0 8px; font-size: 13px; }
  .bar nav a.signin { display: none; }
  .bar .cta { height: 38px; padding: 0 13px; font-size: 13px; margin-left: 2px; }
}
@media (max-width: 399px) {
  .bar .in { gap: 4px; }
  .bar nav { gap: 0; }
  .bar nav a { padding: 0 6px; }
  .bar .cta { padding: 0 11px; }
}

/* ---------- Layout ---------- */
main { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
@media (min-width: 760px) { .section { padding: 72px 0; } }
.section + .section { border-top: 1px solid var(--line); }
.section .head { max-width: 60ch; margin-bottom: 22px; }
.readable { max-width: 44rem; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { padding-block: 40px 36px; display: grid; gap: 28px; }
@media (min-width: 860px) { .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; padding-block: 64px 56px; gap: 40px; } }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero .trust { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.phones { display: flex; gap: 14px; justify-content: center; align-items: flex-start; }
.phone { flex: 0 1 220px; min-width: 0; margin: 0; }
.phone img { display: block; width: 100%; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; border: 7px solid var(--graphite); border-radius: 30px; background: #e8eaee; box-shadow: var(--sh-3); }
.phone figcaption { display: block; margin: 8px 0 2px; text-align: center; font-size: 12px; color: var(--ink-3); }
.phone.up { margin-top: 36px; }
@media (max-width: 859px) { .phone { flex-basis: 160px; } .phone.up { margin-top: 0; } }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 12px; }
.grid.c2 { grid-template-columns: 1fr; }
.grid.c3 { grid-template-columns: 1fr; }
.grid.c4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: 1fr 1fr; } .grid.c4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.card { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 18px; box-shadow: var(--sh-2); }
.card.soft { background: var(--surface-2); box-shadow: none; }
.card.tint { background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.card p + p { margin-top: 8px; }
.card .k { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--graphite); color: #f4f5f7; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
:root[data-theme='dark'] .card .k { background: #f2f3f6; color: #0f1116; }
.card.link { text-decoration: none; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.card.link:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.card.link .more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--ink-4); }

/* The one dark block of a page. */
.instrument { border-radius: 26px; background: radial-gradient(120% 140% at 100% 0%, #3a2a52 0%, #111219 55%); color: #f4f5f7; padding: 26px 22px; display: grid; gap: 14px; box-shadow: var(--sh-3); }
@media (min-width: 760px) { .instrument { padding: 36px; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; } }
.instrument .eyebrow { color: #b4b9c6; }
.instrument h2 { color: #fff; }
.instrument p { margin: 0; color: #d7dbe5; font-size: 15px; max-width: 52ch; }
.instrument .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.instrument .btn.primary { background: #f4f5f7; color: #0f1116; box-shadow: none; }
.instrument .btn.secondary { background: #ffffff14; color: #fff; border-color: #ffffff2e; }

/* ---------- Pricing ---------- */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-3); }
.seg button { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-2); }
.seg .off { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--pos); }
.plans { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.plan { position: relative; display: grid; gap: 14px; padding: 22px 20px 20px; }
.plan.recommended { border: 2px solid var(--accent); }
.plan .tag { position: absolute; top: -12px; left: 18px; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plan .name { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.plan .tagline { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.plan .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; font-variant-numeric: tabular-nums; }
.plan .price .big { font-size: 40px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.plan .price .per { font-size: 14px; color: var(--ink-3); }
.plan .price s { font-size: 15px; color: var(--ink-3); }
.plan .sub { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.plan .sub .year { color: var(--ink); font-weight: 500; }
.plan .sub .year b { font-weight: 700; }
.plan .save { font-size: 12.5px; font-weight: 700; color: var(--pos); background: var(--pos-soft); padding: 2px 8px; border-radius: 999px; }
.plan .charge { margin: 0; font-size: 13px; color: var(--ink-3); min-height: 1.5em; }
.plan ul, ul.every { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.every { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 20px; }
.plan li, ul.every li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 14.5px; }
.plan li::before, ul.every li::before { content: ''; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--pos-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b9877' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.plan.soon { opacity: .85; }
.plan.soon .big { font-size: 24px; font-weight: 600; }
.plans[data-period='year'] .m, .plans[data-period='month'] .y { display: none; }
.fine { font-size: 13.5px; color: var(--ink-2); max-width: 70ch; }
.fine p { margin: 0 0 8px; }

/* ---------- Articles ---------- */
.crumbs { font-size: 13px; color: var(--ink-3); margin: 18px 0 10px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article { padding-bottom: 56px; }
.article header { margin-bottom: 20px; }
.article .meta { font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.article h1 { font-size: clamp(28px, 4.6vw, 40px); }
.article .desc { font-size: 17px; color: var(--ink-2); margin: 0; }
.tldr { border-radius: 18px; background: var(--accent-soft); padding: 16px 18px; margin: 22px 0; }
.tldr .eyebrow { color: var(--accent); margin-bottom: 6px; }
.tldr ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.toc { border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); padding: 14px 18px; margin: 0 0 24px; font-size: 14px; }
.toc summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.body { font-size: 16.5px; line-height: 1.65; }
.body > * + * { margin-top: 1em; }
.body h2 { margin-top: 2em; font-size: clamp(21px, 3vw, 27px); }
.body h3 { margin-top: 1.6em; font-size: 18px; }
.body p { margin: 0; }
.body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.body ul, .body ol { padding-left: 22px; display: grid; gap: 6px; margin: 0; }
.body li > p { margin: 0; }
.body pre { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line); overflow-x: auto; font-size: 14px; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-3); padding: 1px 5px; border-radius: 6px; }
.body pre code { background: none; padding: 0; font-size: inherit; }
.body blockquote { margin: 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 14px 14px 0; color: var(--ink-2); }
.body table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.body thead th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.body td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.body tr:last-child td { border-bottom: 0; }
.body td:first-child, .body th:first-child { padding-left: 0; }
.body hr { border: 0; border-top: 1px solid var(--line); }
.body strong { font-weight: 700; }
.body img { border-radius: 14px; }
.faq { margin-top: 36px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-weight: 600; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--ink-3); flex: none; width: 24px; text-align: center; }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 0 16px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.related { margin-top: 36px; }
.cta-box { margin-top: 36px; }
.article-list { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 640px) { .article-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .article-list { grid-template-columns: repeat(3, 1fr); } }
.article-card h3 { font-size: 17px; margin: 6px 0 6px; }
.article-card .eyebrow { margin-bottom: 0; }
.article-card p { font-size: 14px; }
.author { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.author .logo { width: 30px; height: 30px; border-radius: 9px; }
.author .logo svg { width: 15px; height: 15px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 36px 0 40px; font-size: 13.5px; color: var(--ink-3); }
footer.site .cols { display: grid; gap: 22px; }
@media (min-width: 760px) { footer.site .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
footer.site h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
footer.site a { color: var(--ink-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
footer.site a:hover { color: var(--ink); }
footer.site .legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
footer.site .legal p { margin: 0; }
footer.site .legal b { color: var(--ink-2); font-weight: 600; }
.langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-3); }
.langs a { min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; text-decoration: none; }
.langs a[aria-current='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-2); }
