/* The topic pages (made by tools/site-pages/build.py). The same light, clean look as the home page:
   these rules are copied from its <style> (plan: docs/plans/website-redesign.md, step 2), plus the topic-page bits below. */
:root {
  --bg: #ffffff; --bg-2: #f7f8fc; --line: #e6e8f0; --line-2: #d5d8e5;
  --ink: #0f1430; --dim: #4a5170; --faint: #5a6180;
  --accent: #4b3fd1; --accent-hover: #3d32b8; --accent-soft: #eeedfd; --accent-ink: #3a30b0;
  --navy: #0f1430; --navy-2: #0b0f26; --on-navy: #c3c8e4; --on-navy-dim: #aeb4d6;
  --ok: #1f8a5b;
  --display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--display); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.grad { color: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn.ghost:hover { border-color: var(--faint); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .93rem; }
/* phones: buttons take the full width, so long labels wrap inside them instead of running off the screen */
@media (max-width: 520px) {
  .ctas .btn { flex: 1 1 100%; white-space: normal; text-align: center; padding-block: 10px; line-height: 1.25; }
}
.eyebrow { font-size: .95rem; font-weight: 700; color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .9rem; }
.badge svg { width: 16px; height: 16px; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.top nav { margin-left: auto; display: flex; gap: 26px; }
.top nav a { color: #3d4462; text-decoration: none; font-weight: 600; font-size: .95rem; }
.top nav a:hover { color: var(--ink); }
.top .btn.ghost { border-color: transparent; }
/* phone header: a Pricing link in the bar, everything else in a menu (a <details>, so it works without JS) */
.top-pricing, .menu { display: none; }
.menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line-2); color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 20px; height: 20px; }
.menu .ico-x, .menu[open] .ico-bars { display: none; }
.menu[open] .ico-x { display: block; }
.menu[open] > summary { border-color: var(--faint); }
.menu-panel { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15, 20, 48, .12); padding: 6px 24px 14px; display: grid; max-height: calc(100vh - 72px); overflow-y: auto; }
.menu-panel a { padding: 13px 2px; text-decoration: none; font-weight: 700; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.menu-panel a:last-child { border-bottom: 0; }
.menu-panel a span { color: var(--faint); font-weight: 500; font-size: .9rem; margin-left: 8px; }
@media (max-width: 860px) {
  .top nav { display: none; } .top .wrap { gap: 8px; height: 64px; }
  .top .btn.sm { min-height: 44px; }   /* touch screens: header buttons big enough for a thumb */
  .top-pricing { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin-left: auto; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .93rem; }
  .menu { display: block; }
}
/* phones: the wordmark shrinks to two short lines; Log in moves to the menu (it's there already) so the bar fits */
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .brand { gap: 8px; flex: none; } .brand span { font-size: .82rem; line-height: 1.05; width: 4.2em; }
  .top .btn.ghost.app-link { display: none; }
}
/* the smallest phones: Pricing lives in the menu, so the wordmark and Start free have room */
@media (max-width: 374px) { .top-pricing { display: none; } .top .btn.primary { margin-left: auto; } }

/* hero */
.hero { padding: 80px 0 64px; background: linear-gradient(var(--bg-2), var(--bg)); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); font-weight: 800; margin: 18px 0 18px; }
.hero .lede { color: var(--dim); font-size: 1.15rem; max-width: 600px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .note { margin-top: 14px; color: var(--faint); font-size: .93rem; }
.shot { margin-top: 48px; border-radius: 14px; overflow: hidden; border: 1px solid #e3e6f0; box-shadow: 0 30px 60px -20px rgba(15, 20, 48, .25), 0 8px 20px -8px rgba(15, 20, 48, .12); background: #fff; }
.shot .bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #f3f4f9; border-bottom: 1px solid var(--line); font-size: .78rem; color: #5f6685; }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7dae6; }
.shot .bar span { margin-left: 10px; }
@media (min-width: 1000px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .hero-grid .shot { margin-top: 0; }
}

/* the strip of true facts under the hero */
.facts { border-top: 1px solid #eef0f6; border-bottom: 1px solid #eef0f6; }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; padding-block: 26px; }
.facts div { display: flex; gap: 12px; align-items: center; color: #3d4462; font-size: .95rem; }
.facts strong { color: var(--ink); }
.facts svg { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* sections */
section.band { padding: 88px 0; }
section.band + section.band { border-top: 1px solid #eef0f6; }
section.band.soft { background: var(--bg-2); }
section.band h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; margin: 10px 0 14px; }
section.band .intro { color: var(--dim); max-width: 680px; font-size: 1.08rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: .97rem; }
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; margin-top: 56px; }
.split + .split { margin-top: 80px; }
.split.flip > :first-child { order: 2; }
.split h3 { font-size: 1.7rem; margin-bottom: 12px; }
.split p { color: var(--dim); }
.split ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.split li { padding-left: 28px; position: relative; color: #2a3050; }
.split li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 16px; height: 16px; background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a5b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.split .shot { margin-top: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } .split.flip > :first-child { order: 0; } }
.devices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.devices span { padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: .9rem; color: #2a3050; }

/* on your phone */
.split.phone-split { grid-template-columns: 1.1fr .9fr; margin-top: 0; }
.phone-split .intro { margin-bottom: 4px; }
.phone-split li strong { color: var(--ink); }
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::before { content: ''; position: absolute; inset: 12% 8%; background: radial-gradient(closest-side, rgba(75, 63, 209, .18), rgba(75, 63, 209, 0)); border-radius: 50%; }
.phone { position: relative; width: 300px; aspect-ratio: 390 / 844; border-radius: 46px; padding: 11px; background: #0f1430; box-shadow: 0 0 0 2px #d5d8e5, 0 30px 60px -20px rgba(15, 20, 48, .35); }
.phone::after { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 20px; background: #0f1430; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; background: #f0f2fa; }
@media (max-width: 860px) { .split.phone-split { grid-template-columns: 1fr; } .phone { width: 250px; } .phone-wrap { margin-top: 8px; } }

/* pricing */
.plans-country { margin-top: 18px; max-width: 760px; font-size: .92rem; color: var(--faint); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 40px; }
.plan { background: #fff; border: 1px solid #e3e6f0; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.main { border: 2px solid var(--accent); }
.plan h3 { font-size: 1.25rem; }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--faint); margin-left: 6px; letter-spacing: 0; }
.plan p { color: var(--dim); font-size: .95rem; }
.plan ul { margin: 0; padding-left: 18px; color: #2a3050; font-size: .95rem; display: grid; gap: 6px; }
.plan .btn { margin-top: auto; }
.plan.main .btn.primary { margin-top: auto; }


/* shorter plan cards on phones: name and price on one row, the button up top, three features, the rest behind a toggle */
.plan-more { display: none; }
@media (max-width: 760px) {
  .plans { gap: 16px; margin-top: 28px; }
  .plan { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 10px 12px; padding: 20px; }
  .plan > * { grid-column: 1 / -1; }
  .plan h3 { grid-column: 1; grid-row: 1; }
  .plan.main { padding-top: 28px; }
  .plan .price { grid-column: 2; grid-row: 1; font-size: 1.9rem; line-height: 1; white-space: nowrap; }
  .plan .price small { margin-left: 4px; font-size: .8rem; }
  .plan p { order: 1; }
  .plan .btn { order: 2; margin-top: 2px; }
  .plan ul { order: 3; }
  .plan ul li:nth-child(n+4) { display: none; }
  .plan-more { display: block; order: 4; font-size: .92rem; }
  .plan-more > summary { cursor: pointer; color: var(--accent); font-weight: 700; list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; }
  .plan-more > summary::-webkit-details-marker { display: none; }
  .plan-more > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
  .plan-more[open] > summary::after { transform: rotate(-135deg) translate(-2px, 0); }
  .plan-more > p { margin-top: 10px; }
  .plan-more ul { margin-top: 8px; }
  .plan-more ul li:nth-child(n+4) { display: list-item; }
}

/* questions */
.faq { margin-top: 32px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq p { color: var(--dim); padding-bottom: 14px; }
.faq-more { margin-top: 6px; }
.faq .faq-more { background: transparent; border: 0; padding: 0; }
.faq-more > summary { padding: 10px 2px; color: var(--accent); font-weight: 700; }
.faq-more > summary .n { color: var(--faint); font-weight: 600; }
.faq-more > .faq { margin-top: 6px; }

/* the company */
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 40px; }
.company-grid > div { background: var(--bg-2); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.company-grid h3 { font-size: 1.2rem; }
.company-grid p { color: var(--dim); font-size: .97rem; }
.company-grid > div > a { font-weight: 700; text-decoration: none; margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; }

/* closing call to action */
.cta-end { background: var(--navy); color: #fff; }
.cta-end .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta-end h2 { color: #fff; margin: 0 0 8px; }
.cta-end p { color: var(--on-navy); }
.cta-end .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-end .btn.primary { background: #fff; color: var(--navy); }
.cta-end .btn.primary:hover { background: #eef0fa; }
.cta-end .btn.ghost { background: transparent; color: #fff; border-color: #474f7a; }
.cta-end .btn.ghost:hover { border-color: #8a91b8; }

/* footer */
footer { background: var(--navy-2); color: var(--on-navy-dim); font-size: .93rem; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 32px; padding-block: 56px 36px; }
footer .cols > div { display: flex; flex-direction: column; gap: 0; align-items: flex-start; }
footer .cols strong { margin-bottom: 4px; }
footer .cols strong { color: #fff; }
footer .about { grid-column: span 2; max-width: 360px; gap: 8px !important; }
@media (max-width: 760px) { footer .about { grid-column: auto; } }
footer .about .name { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.05rem; }
footer .about .name img { width: 28px; height: 28px; }
/* every footer link is a 44px target, even a short one like API */
footer a { color: var(--on-navy-dim); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
footer a:hover { color: #fff; }
footer .legal { border-top: 1px solid #22284a; padding-block: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- extra bits for the topic pages ---- */
.crumbs { font-size: .9rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--faint); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; } .crumbs a:hover { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero.small { padding: 40px 0 56px; }
.hero.small h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); max-width: 860px; }
.hero.small .shot { margin-top: 44px; }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--dim); }
.prose p + p { margin-top: 14px; }
.prose h2 { margin-top: 8px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; margin: 14px 0 0; }
.prose strong { color: var(--ink); }
/* the guides (/guides/): one long article, so more room above each heading, and a box for the wording to copy */
.article h2 { margin-top: 44px; font-size: clamp(1.45rem, 3vw, 1.8rem); }
.article h2:first-child { margin-top: 0; }
.article h2 + p, .article h2 + ul { margin-top: 14px; }
.article p + ul, .article ul + p { margin-top: 14px; }
.article .template { margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--ink); }
.split h2 { margin-top: 0; }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--dim); }
.ticks li strong { color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 16px; height: 16px; background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a5b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.compare-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--dim); }
.compare thead th { color: var(--ink); background: var(--bg-2); font-size: .9rem; }
.compare tbody th { color: var(--ink); font-weight: 600; width: 30%; }
.compare tr:last-child > * { border-bottom: 0; }
.compare td.us { color: var(--ink); background: #fbfaff; }
/* phones: each row becomes a small card (feature, then each product with its name), so no column is off-screen */
@media (max-width: 640px) {
  .compare-wrap { overflow: visible; border: 0; background: transparent; }
  table.compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tr { display: block; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: #fff; }
  .compare tbody th { display: block; width: auto; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .compare td { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); gap: 10px; border-bottom: 1px solid var(--line); }
  .compare td::before { content: attr(data-label); color: var(--ink); font-weight: 600; font-size: .85rem; }
  .compare tr > :last-child { border-bottom: 0; }
}
.fine { margin-top: 12px; font-size: .86rem; color: var(--faint); max-width: 820px; }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-top: 24px; }
.more a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: #fff; color: var(--ink); }
.more a strong { display: block; }
.more a span { color: var(--dim); font-size: .92rem; }
.more a:hover { border-color: var(--accent); }
/* feature pictures: a tap or click opens them full screen (zoom.js); the expand icon shows they can (tools/site-pages/pic.py) */
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.zoom img { width: 100%; }
.zoom-icon { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(17, 20, 45, .72); color: #fff; opacity: 0; transition: opacity .15s; pointer-events: none; }
.zoom-icon svg { width: 20px; height: 20px; }
.zoom:hover .zoom-icon, .zoom:focus-visible .zoom-icon { opacity: 1; }
@media (hover: none) { .zoom-icon { opacity: 1; width: 34px; height: 34px; border-radius: 9px; background: rgba(17, 20, 45, .58); } .zoom-icon svg { width: 18px; height: 18px; } }
@media (prefers-reduced-motion: reduce) { .zoom-icon { transition: none; } }
.phone .zoom { height: 100%; border-radius: 36px; }
.phone .zoom-icon { top: 46px; right: 14px; }
.zoom-box { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.zoom-box::backdrop { background: rgba(11, 15, 38, .88); }
.zoom-pic { box-sizing: border-box; width: 100%; height: 100%; display: grid; place-items: center; padding: 60px 16px 16px; overflow: auto; }
.zoom-pic img { width: auto; max-width: 100%; max-height: calc(100dvh - 76px); border-radius: 10px; background: #fff; }
.zoom-close { position: fixed; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.zoom-close svg { width: 22px; height: 22px; }
.zoom-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) { .zoom-pic { padding: 60px 8px 8px; } }
/* a real review: the home page's (index.html, #reviews), same look */
.review-wrap { background: var(--accent-soft); border-radius: 20px; padding: 40px 28px; text-align: center; }
.review { margin: 0 auto; max-width: 720px; }
.review blockquote { margin: 12px auto 16px; font-size: 1.3rem; line-height: 1.5; font-weight: 600; color: var(--ink); }
.review-stars { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 0 0 12px; }
.review .stars { color: #e8930c; font-size: 1.6rem; letter-spacing: 3px; line-height: 1; }
.review .stars-label { color: var(--ink); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.review figcaption { color: var(--dim); font-size: .95rem; }
.review figcaption b { color: var(--ink); }
@media (max-width: 560px) { .review-wrap { padding: 28px 18px; } .review blockquote { font-size: 1.12rem; } }
/* the plans on a topic page: the price under the plan's name */
.card .plan-price { color: var(--ink); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
