/* The public pages: light only, Inter, the logo's blue. Red and green appear only as the app's live and preview colours. */
:root {
  --bg: #ffffff;
  --soft: #f4f6f9;
  --text: #16191f;
  --dim: #596170;
  --border: #e2e6ec;
  --accent: #2f6fd6;
  --accent-soft: #e8f0fc;
  --live: #e0393e;
  --preview: #1f9d47;
  --sans: 'Inter', system-ui, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.blue { color: var(--accent); }
.label { font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lede { color: var(--dim); font-size: 19px; max-width: 34em; }
.small { font-size: 14px; color: var(--dim); }

/* Anchors land below the fixed header. */
[id] { scroll-margin-top: 72px; }

/* Header: logo and name to the top, section links, the Download button always in view. */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.home-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.home-link img { width: 36px; height: 36px; }
.brand { font-weight: 700; font-size: 17px; color: var(--text); white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--dim); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-dark { background: var(--text); color: #fff; }
.btn-ghost { color: var(--accent); background: transparent; padding-inline: 8px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Opening */
.hero { text-align: center; }
.hero .wrap { display: grid; justify-items: center; gap: 22px; padding-block: 56px 0; }
/* The accent, not green: green means preview in the app. */
.pill { display: inline-flex; gap: 8px; align-items: center; background: var(--accent-soft); color: #1f56b0; border: 1px solid #c3d6f5; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.ctas.start { justify-content: start; }
.subline { font-size: 14px; color: var(--dim); display: flex; gap: 6px 16px; flex-wrap: wrap; justify-content: center; }
.frame { margin: 24px 0 0; width: 100%; max-width: 1080px; background: #0b0b0c; border-radius: 16px; padding: 10px; box-shadow: 0 40px 80px -20px rgba(16, 24, 40, .35), 0 0 0 1px rgba(16, 24, 40, .08); }
.frame img { display: block; width: 100%; height: auto; border-radius: 8px; }

.factrow { margin-top: 56px; background: var(--soft); border-block: 1px solid var(--border); }
.factrow .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; padding-block: 18px; font-size: 15px; color: var(--dim); font-weight: 500; }

/* Feature rows alternate text and screenshot. */
.row { padding-block: 88px; }
.row .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row.flip .copy { order: 2; }
.copy { display: grid; gap: 18px; min-width: 0; }
.copy .lede { font-size: 18px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--dim); }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.ticks b { color: var(--text); font-weight: 600; }
.ticks.inline { text-align: left; max-width: 640px; }
.shot { margin: 0; min-width: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 60px -18px rgba(16, 24, 40, .35), 0 0 0 1px rgba(16, 24, 40, .08); }
.shot.narrow { max-width: 330px; width: 100%; justify-self: center; }

.band { background: var(--soft); }
.centre { text-align: center; }
.row.centre .wrap { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 24px; counter-reset: s; }
.steps li { display: grid; gap: 10px; justify-items: center; counter-increment: s; font-weight: 600; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* What works now and Coming soon, side by side. */
.row.lists .wrap { grid-template-columns: 1fr; gap: 18px; }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-lists > div { display: grid; gap: 14px; align-content: start; }
.two-lists h3 { margin: 10px 0 0; font-size: 1.05rem; }
.cols { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.cols li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; min-width: 0; }
.cols li::before { content: "✓"; color: var(--preview); font-weight: 700; }
.cols.soon li::before { content: "○"; color: var(--dim); font-weight: 400; }
@media (min-width: 861px) and (max-width: 1100px) { .two-lists .cols { grid-template-columns: 1fr; } .two-lists h2 { font-size: 2rem; } }

/* Download */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; text-align: left; width: 100%; max-width: 900px; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 32px; box-shadow: 0 20px 40px -24px rgba(16, 24, 40, .25); }
.dl.waiting { grid-template-columns: 1fr; text-align: center; }
.dl-main { display: grid; gap: 12px; justify-items: start; }
.dl-meta { font-size: 14px; color: var(--dim); }
.whatsnew { display: grid; gap: 8px; }
.whatsnew ul { margin: 0; padding-left: 20px; color: var(--dim); display: grid; gap: 4px; }
.note { max-width: 46em; color: var(--dim); font-size: 15px; }

/* User guide and mailing list */
.row.panels { padding-block: 64px; }
.row.panels .wrap { display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--soft); border-radius: 14px; padding: 28px; display: grid; gap: 12px; align-content: start; }
.panel p { color: var(--dim); }

/* Forms */
form { display: grid; gap: 14px; }
form > button { justify-self: start; }
label, .field > .field-label { display: grid; gap: 6px; font-size: 14px; color: var(--dim); font-weight: 500; }
.field { display: grid; gap: 6px; min-width: 0; }
input, textarea, select { font: 16px var(--sans); color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; width: 100%; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border: 2px solid var(--text); }
textarea { min-height: 120px; resize: vertical; }
.field-error { font-size: 14px; font-weight: 600; color: var(--text); }
.field-error::before { content: "! "; color: var(--accent); }
.frow { display: flex; gap: 10px; flex-wrap: wrap; }
.frow > * { flex: 1 1 200px; }
.news-row { display: flex; gap: 10px; }
.news-row input { flex: 1 1 auto; min-width: 0; }
.news-row button { flex: 0 0 auto; }
.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; }

/* Questions */
.faq { width: 100%; max-width: 780px; text-align: left; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq details p { margin-top: 8px; color: var(--dim); max-width: 40em; }

/* Pages other than home: support, privacy, the mailing list steps, not found. */
.page { padding-block: 56px 80px; }
.page .wrap { display: grid; gap: 22px; max-width: 760px; }
/* A page's own heading is the size of a home-page section heading (the mockup's support view). */
.page h1 { font-size: clamp(30px, 4.2vw, 46px); }
.prose { display: grid; gap: 14px; }
.prose h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-top: 14px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

/* The user guide: Markdown topics rendered into .prose. */
.prose ol { margin: 0; padding-left: 26px; display: grid; gap: 6px; }
.prose h3 { margin-top: 8px; }
.prose li > p { margin: 0; }
.prose img { display: block; height: auto; border-radius: 10px; box-shadow: 0 16px 32px -16px rgba(16, 24, 40, .35), 0 0 0 1px rgba(16, 24, 40, .08); }
/* A wide table scrolls inside itself, never the page. */
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 600; }
.prose td:first-child { white-space: nowrap; }
.guide-topics { margin: 0; padding-left: 34px; display: grid; gap: 8px; font-size: 18px; }
.guide-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 22px; margin-top: 12px; }
.guide-nav a { display: grid; gap: 2px; text-decoration: none; font-weight: 600; }
.guide-nav a[rel="next"] { margin-left: auto; text-align: right; }

footer { border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 12px 28px; padding-block: 28px; font-size: 14px; color: var(--dim); }
footer a { color: var(--dim); }

@media (max-width: 860px) {
  [id] { scroll-margin-top: 110px; }
  .two-lists, .row .wrap, .dl, .two { grid-template-columns: 1fr; }
  .row.flip .copy { order: 0; }
  .row { padding-block: 64px; }
  .cols, .steps { grid-template-columns: 1fr; }
  .site-header .btn-sm { margin-left: auto; }
  .site-nav { margin-left: 0; width: 100%; order: 3; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 18px; font-size: 14px; scrollbar-width: none; }
  .subline .dot { display: none; }
  .subline { flex-direction: column; gap: 2px; }
  .factrow .wrap { flex-direction: column; align-items: center; gap: 4px; }
  .frame { padding: 5px; border-radius: 10px; }
}
