/* Paper and Night mirror the app's palettes and follow the OS through light-dark();
   data-theme (set by theme.js) pins one, or switches to High contrast. */
:root {
  color-scheme: light dark;
  --bg: light-dark(#F7F7F5, #141414);
  --surface: light-dark(#FFFFFF, #1E1E1E);
  --ink: light-dark(#1A1A1A, #EDEDED);
  --ink-2: light-dark(#4A4A4A, #C4C4C4);
  --ink-3: light-dark(#5E5E5E, #A3A3A3);
  --ink-hover: light-dark(#000000, #FFFFFF);
  --accent: light-dark(#35507A, #86A3D4);
  --accent-dark: light-dark(#27405F, #A9C0E6);
  --accent-soft: light-dark(rgba(53, 80, 122, 0.1), rgba(134, 163, 212, 0.16));
  --on-accent: light-dark(#FFFFFF, #0B1220);
  --line: light-dark(rgba(26, 26, 26, 0.08), rgba(237, 237, 237, 0.12));
  --line-strong: light-dark(rgba(26, 26, 26, 0.16), rgba(237, 237, 237, 0.24));
  --fill: light-dark(rgba(26, 26, 26, 0.04), rgba(237, 237, 237, 0.07));
  --device: light-dark(#1A1A1A, #3A3A3A);
  --band-bg: light-dark(#35507A, #1E2A3D);
  --band-ink: light-dark(#FFFFFF, #EDEDED);
  --band-ink-2: light-dark(#E6ECF5, #C9D3E3);
  --band-eyebrow: light-dark(#D6E0F0, #A9C0E6);
  --gutter: 120px;
}
:root[data-theme="paper"] { color-scheme: light; }
:root[data-theme="night"] { color-scheme: dark; }
/* Black, white and yellow, as in the app. */
:root[data-theme="contrast"] {
  color-scheme: dark;
  --bg: #000000; --surface: #121212;
  --ink: #FFFFFF; --ink-2: #E6E6E6; --ink-3: #D6D6D6; --ink-hover: #FFD84D;
  --accent: #FFD84D; --accent-dark: #FFE58A; --accent-soft: rgba(255, 216, 77, 0.2); --on-accent: #000000;
  --line: rgba(255, 255, 255, 0.5); --line-strong: rgba(255, 255, 255, 0.7); --fill: rgba(255, 255, 255, 0.16);
  --device: #5C5C5C;
  --band-bg: #000000; --band-ink: #FFFFFF; --band-ink-2: #FFFFFF; --band-eyebrow: #FFD84D;
}
[data-theme="contrast"] .band { border-block: 1px solid var(--line); }
[data-theme="contrast"] .band .card { border: 1px solid var(--line); }
[data-theme="contrast"] a:not(.btn, .brand, .nav a, .toc a) { text-decoration: underline; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
/* Links inside running text need more than colour to stand out. */
main p a, main li a, .feature-list a, .small a { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; }
.skip:focus { top: 16px; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.white { background: var(--surface); }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--ink-2); }
.stack { display: flex; flex-direction: column; }

/* Header and footer */
.site-header {
  min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line);
}
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -0.2px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { min-height: 44px; padding: 0 14px; display: flex; align-items: center; font-size: 16px; color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.btn {
  min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 600; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { color: var(--bg); background: var(--ink-hover); }
.btn.lg { min-height: 60px; padding: 0 28px; font-size: 18px; box-shadow: 0 10px 24px rgba(26, 26, 26, 0.18); }
.btn.outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.nav .btn { margin-left: 12px; color: var(--bg); }

.site-footer { padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.site-footer .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.small { font-size: 14px; line-height: 20px; color: var(--ink-3); }

/* Sections */
section { padding-top: 112px; padding-bottom: 112px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 48px; }
h2 { font-size: 48px; line-height: 54px; font-weight: 700; letter-spacing: -1px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 21px; line-height: 28px; font-weight: 700; }
.card p { font-size: 17px; line-height: 26px; color: var(--ink-2); }
.icon-tile { width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.icon-tile.sm { width: 40px; height: 40px; border-radius: 12px; }

/* Hero */
.hero { padding-top: 96px; }
.hero h1 { font-size: 68px; line-height: 72px; font-weight: 700; letter-spacing: -1.8px; }
.hero .lede { font-size: 21px; line-height: 32px; color: var(--ink-2); max-width: 540px; }
.pill { align-self: flex-start; padding: 6px 14px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 600; }
.ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ticks { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; line-height: 20px; color: var(--ink-3); }
.ticks span { display: flex; align-items: center; gap: 6px; }
.ticks svg { color: var(--accent); }

/* Device frames around app screenshots */
.phones { position: relative; height: 700px; }
.phone {
  position: absolute; width: 317px; height: 686px; border-radius: 46px; border: 7px solid var(--device); background: var(--bg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(26, 26, 26, 0.16);
}
.phone.back { left: 0; top: 70px; }
.phone.front { left: 250px; top: 0; box-shadow: 0 40px 80px rgba(26, 26, 26, 0.24); }
.phone img, .watch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.watch img { border-radius: 44px; }
/* One screenshot per theme. Hidden lazy images aren't downloaded. */
.phone img:not(.paper) { display: none; }
[data-theme="night"] .phone img.night, [data-theme="contrast"] .phone img.contrast { display: block; }
[data-theme="night"] .phone img.paper, [data-theme="contrast"] .phone img.paper { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .phone img.paper { display: none; }
  :root:not([data-theme]) .phone img.night { display: block; }
}
.label { font-size: 11px; line-height: 16px; color: var(--ink-3); letter-spacing: 0.4px; text-transform: uppercase; }
.statement { font-size: 18px; line-height: 23px; font-weight: 600; }

.quick-art { position: relative; height: 480px; }
.pass {
  position: absolute; left: 20px; top: 20px; width: 340px; border-radius: 18px; background: var(--band-bg); color: var(--band-ink);
  padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 14px 34px rgba(26, 40, 64, 0.28); transform: rotate(-3deg);
}
.pass .label { color: var(--band-eyebrow); }
.pass .statement { font-size: 22px; line-height: 28px; }
.watch {
  position: absolute; left: 300px; top: 190px; width: 224px; height: 264px; border-radius: 52px; background: var(--device); padding: 8px;
  box-shadow: 0 30px 60px rgba(26, 26, 26, 0.2);
}

/* How it works */
.step { background: var(--bg); border: none; padding: 36px; gap: 16px; }
.step h3 { font-size: 24px; line-height: 30px; }
.num { width: 44px; height: 44px; border-radius: 22px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; }

/* Quick access list */
.feature-list { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.feature-list > div { display: flex; gap: 16px; align-items: flex-start; }
.feature-list strong { display: block; font-size: 19px; line-height: 26px; font-weight: 600; }
.feature-list div span { font-size: 17px; line-height: 25px; color: var(--ink-2); }

/* Privacy band */
.band { background: var(--band-bg); color: var(--band-ink); padding-top: 104px; padding-bottom: 104px; }
.band .eyebrow { color: var(--band-eyebrow); }
.band .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 48px; flex-wrap: wrap; }
.band a { color: var(--band-ink); font-size: 18px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: flex; align-items: center; }
.band .card { background: rgba(255, 255, 255, 0.1); border: none; gap: 10px; border-radius: 24px; }
.band .card p { color: var(--band-ink-2); }

/* Free */
.free { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 104px; padding-bottom: 104px; }
.free p { font-size: 20px; line-height: 30px; color: var(--ink-2); max-width: 720px; }
.free .ctas { justify-content: center; margin-top: 12px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding-top: 104px; padding-bottom: 104px; }
.faq h2 { font-size: 44px; line-height: 50px; }
.faq-list { border-top: 1px solid var(--line-strong); }
details { border-bottom: 1px solid var(--line-strong); padding: 24px 0; }
summary { cursor: pointer; list-style: none; font-size: 21px; line-height: 28px; font-weight: 600; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
/* Open/closed shown by shape, not only by the answer appearing below. */
summary::after { content: "+" / ""; flex-shrink: 0; font-size: 28px; font-weight: 400; color: var(--accent); }
details[open] summary::after { content: "\2212" / ""; }
details p { margin-top: 8px; font-size: 17px; line-height: 26px; color: var(--ink-2); max-width: 720px; }

/* Legal and contact pages */
.page-head { padding-top: 88px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: 60px; line-height: 66px; font-weight: 700; letter-spacing: -1.4px; }
.legal { display: grid; grid-template-columns: 1fr 3fr; gap: 64px; align-items: start; padding-top: 24px; padding-bottom: 96px; }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.toc a { min-height: 40px; display: flex; align-items: center; font-size: 16px; }
.toc .label { font-size: 13px; font-weight: 600; letter-spacing: 0.6px; color: var(--ink-3); padding-bottom: 10px; }
article { display: flex; flex-direction: column; gap: 56px; max-width: 760px; }
article section { padding: 0; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
article h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.4px; }
article p, article li { font-size: 18px; line-height: 29px; color: var(--ink-2); }
article ul { margin: 0; padding-left: 22px; }
.summary { padding: 36px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.summary h2 { font-size: 28px; line-height: 34px; letter-spacing: 0; }
.summary li::marker { color: var(--accent); }
.table { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.table > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 18px 20px; border-top: 1px solid var(--line); font-size: 16px; line-height: 24px; color: var(--ink-2); }
.table > div:first-child { border-top: none; padding: 14px 20px; background: var(--fill); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-2); }

.contact { display: grid; grid-template-columns: 5fr 1fr 6fr; gap: 0 24px; align-items: start; padding-top: 88px; padding-bottom: 96px; }
.contact .intro { display: flex; flex-direction: column; gap: 36px; }
.contact .intro p { font-size: 19px; line-height: 30px; color: var(--ink-2); }
.note { padding: 20px 22px; border-radius: 20px; background: var(--fill); font-size: 16px; line-height: 24px; color: var(--ink-2); }
.form { grid-column: 3; padding: 40px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(26, 26, 26, 0.06); display: flex; flex-direction: column; gap: 24px; }
.form h2 { font-size: 28px; line-height: 34px; letter-spacing: 0; }
fieldset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
legend, .form label.field { font-size: 15px; line-height: 20px; font-weight: 600; padding: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid var(--line-strong); display: flex; align-items: center; font-size: 16px; cursor: pointer; }
.topics input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.topics input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; margin-top: 8px; padding: 0 16px; height: 52px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 17px; font-weight: 400;
}
.form textarea { height: auto; padding: 14px 16px; line-height: 25px; resize: vertical; }
.form .actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .hero h1 { font-size: 52px; line-height: 58px; }
  .phones { transform: scale(0.8); transform-origin: top left; height: 560px; }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  section, .band, .free, .faq { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 48px; }
  h2, .faq h2 { font-size: 34px; line-height: 40px; }
  .hero h1, .page-head h1 { font-size: 40px; line-height: 46px; letter-spacing: -1px; }
  .page-head { padding-top: 48px; }
  .grid-2, .grid-3, .faq, .legal, .contact, .fields { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .grid-2 { gap: 48px; }
  .form { grid-column: auto; padding: 24px; margin-top: 32px; }
  .toc { display: none; }
  .table > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .table > div:first-child { display: none; }
  .phones { transform: none; height: 540px; overflow: hidden; }
  .phone.back { display: none; }
  .phone.front { left: 50%; margin-left: -158px; }
  .quick-art { height: 420px; overflow: hidden; }
  .pass { left: 0; width: min(340px, 100%); }
  .watch { left: auto; right: 0; top: 170px; transform: scale(0.85); transform-origin: bottom right; }
  .nav a:not(.btn) { padding: 0 8px; }
  .hide-sm { display: none !important; }
}

@media (max-width: 560px) {
  .site-header .nav a:not(.btn) { display: none; }
  .nav .btn { margin-left: 0; }
}

.site-footer fieldset { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.site-footer .topics { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) { .topics input:checked + label { outline: 3px solid Highlight; } }
