/* Flat and slim, in the app's own language: ink on white, one blue accent, hairline rules,
   no shadows, no gradients, no rounded containers. */
:root {
  --bg: #FFFFFF;
  --bg2: #F5F6F8;
  --ink: #0E1116;
  --ink2: #6B717A;
  --ink3: #A5ABB3;
  --rule: #ECEEF1;
  --blue: #0A66FF;
  --frame: #0B0D10;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D10;
    --bg2: #121519;
    --ink: #F2F4F7;
    --ink2: #9AA1AB;
    --ink3: #5C636D;
    --rule: #1D2126;
    --blue: #3D8BFF;
    --frame: #2A2F37;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", "PingFang SC", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 1px solid var(--blue); outline-offset: 3px; }
b { color: var(--ink); font-weight: 500; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--rule); }
.bar-in { max-width: 1040px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.tabs { display: flex; gap: 22px; margin-left: auto; }
.tabs a { color: var(--ink2); font-size: 15px; font-weight: 400; white-space: nowrap; padding: 4px 0; border-bottom: 1px solid transparent; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
/* Language menu: plain links to the same page in each language. */
.lang { position: relative; border: 0; }
.lang summary {
  display: flex; align-items: center; gap: 7px; padding: 4px 0;
  font-size: 15px; font-weight: 400; color: var(--ink2); white-space: nowrap;
}
.lang summary:hover, .lang[open] summary { color: var(--ink); }
.lang summary svg { width: 15px; height: 15px; }
.lang summary::after {
  content: ""; position: static; transform: rotate(45deg); width: 4px; height: 4px; margin: -3px 0 0 2px;
  border: solid currentColor; border-width: 0 1px 1px 0;
}
.lang[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 10px); margin: 0; padding: 6px 0; list-style: none;
  background: var(--bg); border: 1px solid var(--rule); min-width: 150px;
}
.lang ul a { display: block; padding: 6px 16px; color: var(--ink2); font-size: 15px; white-space: nowrap; }
.lang ul a:hover, .lang ul a[aria-current] { color: var(--ink); text-decoration: none; }
.lang ul a[aria-current] { font-weight: 400; }

/* Type */
main { max-width: 1040px; margin: 0 auto; padding: 0 16px 80px; counter-reset: sec; }
main > section:not(.landing) { counter-increment: sec; }
/* Small numbered label over each home section, like the app's "01 ACTIVITY". */
section > h2.center::before, .band-head h2::before, .get h2::before {
  content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 14px;
  font: 400 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; color: var(--blue);
}
h1 { font-size: clamp(40px, 6.6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 200; margin: 0 auto 20px; max-width: 14em; }
h2 { font-size: 26px; letter-spacing: -0.015em; font-weight: 300; margin: 0 0 16px; }
h3 { font-weight: 500; }
.lead { font-size: clamp(17px, 2.1vw, 19px); color: var(--ink2); margin: 0 auto; max-width: 34em; }
.meta { color: var(--ink2); font-size: 14px; margin-top: 14px; }
/* Section label: small caps, like the app. */
.eyebrow {
  display: block; margin: 24px 0 18px; font-size: 12px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
}
.hero { text-align: center; padding: 72px 0 48px; }
.hero picture { display: block; }
.hero img { width: 84px; height: 84px; border-radius: 19px; }
.section { max-width: 760px; margin: 0 auto 64px; }
.center { text-align: center; }
section > h2.center {
  font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; font-weight: 200;
  margin: 0 0 40px; padding-top: 28px; border-top: 1px solid var(--rule); text-align: left;
}

/* Feature list: numbered columns on hairlines, no boxes. */
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px;
  margin: 0 0 88px; counter-reset: item;
}
.card { counter-increment: item; padding: 20px 0 28px; border-top: 1px solid var(--rule); }
.card::before {
  content: counter(item, decimal-leading-zero); display: block; margin-bottom: 14px;
  font: 400 12px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink3); letter-spacing: .04em;
}
.card .icon { color: var(--blue); margin-bottom: 12px; }
.card .icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink2); font-size: 15px; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-weight: 400; font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 200; color: var(--ink2); transition: transform .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 22px; color: var(--ink2); }

/* Contact */
.contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
  border-top: 1px solid var(--rule); padding: 28px 0 0;
}
.contact h2 { margin: 0 0 4px; }
.contact p { margin: 0; color: var(--ink2); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); font-weight: 400; font-size: 16px;
  padding: 13px 24px; border-radius: 999px; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; stroke-width: 1.5; }
.btn:hover { text-decoration: none; opacity: .85; }

/* Privacy policy */
.badge { display: flex; gap: 14px; align-items: flex-start; max-width: 760px; margin: 0 auto 32px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.badge::before { display: none; }
.badge .icon { flex: none; margin: 2px 0 0; color: var(--blue); }
.badge h3 { margin: 0; }
.badge p { margin: 0; }
.policy h3 { font-size: 19px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.policy p { margin: 0 0 12px; color: var(--ink2); }

/* Guides: long reading, same hairline style as the policy */
.guide h2 { margin: 48px 0 12px; }
.guide p, .guide li { color: var(--ink2); }
.guide p { margin: 0 0 12px; }
.guide ul, .guide ol { margin: 0 0 12px; padding-left: 1.3em; }
.guide li { margin: 0 0 8px; }
.guide table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 4px 0 16px; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.guide thead th { font-weight: 400; color: var(--ink2); font-size: 14px; }
.guide tbody th { font-weight: 500; }
.guide .table-wrap { overflow-x: auto; } /* phones: the site default lets tables overflow */
.guide .sheet { min-width: 760px; font: 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; }
.guide .sheet td, .guide .sheet th { white-space: nowrap; }
.guide code { font: 13px ui-monospace, "SF Mono", Menlo, monospace; background: var(--bg2); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.guide .more { margin-top: 20px; }

/* Home: hero */
.landing { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 72px 0 96px; }
.landing h1 { margin: 0 0 20px; max-width: none; text-align: left; }
.landing .lead { margin: 0; text-align: left; }
.landing .eyebrow { margin-top: 0; }
/* Answer line of the headline in blue. */
.landing h1 span { color: var(--blue); }
/* Hero hook reads like a live figure from the app: mono, with a pulsing dot. */
.eyebrow.live {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; text-transform: none; color: var(--ink2);
}
.eyebrow.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.landing > .phone { justify-self: center; width: min(100%, 280px); }

.phone { background: var(--frame); padding: 8px; border-radius: 44px; }
.phone img { display: block; width: 100%; height: auto; border-radius: 37px; }

/* Home: showcase. A list of screens on the left, one phone on the right. */
.show { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: center; margin-bottom: 104px; }
.show-list { display: grid; }
.show-list button {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.show-list button:last-child { border-bottom: 1px solid var(--rule); }
.show-list .n { font: 400 12px/1.9 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink3); }
.show-list .t { font-size: 20px; font-weight: 300; color: var(--ink2); transition: color .2s; }
.show-list .d {
  grid-column: 2; color: var(--ink2); font-size: 15px;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s, opacity .4s, margin .4s;
}
.show-list button:hover .t { color: var(--ink); }
.show-list [aria-selected="true"] .n { color: var(--blue); }
.show-list [aria-selected="true"] .t { color: var(--ink); }
.show-list [aria-selected="true"] .d { max-height: 4em; opacity: 1; margin-top: 4px; }
.show-list button:focus-visible { outline-offset: -1px; }
/* Thin progress line under the current step while the showcase plays. */
.show-list .bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--blue); }
.show-list [aria-selected="true"] .bar { animation: fill 5s linear forwards; }
.show.paused .show-list .bar { animation: none; width: 0; }
@keyframes fill { to { width: 100%; } }
.show-phone { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.slide.on { opacity: 1; transform: none; pointer-events: auto; }

/* Home: how it works */
.steps { list-style: none; margin: 0 0 104px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps .big { display: block; font-size: 96px; line-height: .9; font-weight: 100; color: var(--blue); letter-spacing: -0.05em; margin-bottom: 20px; }
.steps h3 { margin: 0 0 6px; font-size: 20px; font-weight: 400; }
.steps p { margin: 0; color: var(--ink2); font-size: 15px; }

/* Home: comparison */
section[id] { scroll-margin-top: 64px; } /* clear the sticky header */
.lead.left { margin: -20px 0 32px; }
.table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.compare { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; }
/* Fixed layout: the three answer columns share the width equally, whatever their header length. */
.compare { table-layout: fixed; }
.compare thead th:first-child { width: 40%; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--rule); text-align: center; }
.compare thead th { font-weight: 400; color: var(--ink2); font-size: 14px; vertical-align: bottom; }
.compare tbody th { text-align: left; font-weight: 300; padding-left: 0; }
.compare .us { background: var(--bg2); }
.compare thead .us { color: var(--blue); font-weight: 500; font-size: 15px; }
.compare tbody tr:last-child .us { box-shadow: inset 0 -2px 0 var(--blue); }
.mark { font-size: 17px; }
.mark.y { color: var(--blue); }
.mark.n { color: var(--ink3); }
.mark.s { color: var(--ink2); }
.compare td:not(.us) .mark.y { color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { color: var(--ink3); font-size: 13px; margin: 14px 0 104px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.landing > div > * { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.landing > div > :nth-child(2) { animation-delay: .08s; }
.landing > div > :nth-child(3) { animation-delay: .16s; }
.landing > div > :nth-child(4) { animation-delay: .24s; }
.landing > .phone { animation: rise 1.1s .2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Home: platform badges */
.platforms { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.center .platforms { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 500; font-size: 17px; line-height: 1.1;
}
a.store:hover { text-decoration: none; opacity: .85; }
.store svg { width: 22px; height: 22px; stroke-width: 1.5; }
.store small { display: block; font-size: 11px; font-weight: 400; opacity: .65; }
.store.soon { background: transparent; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--rule); }

/* Home: privacy */
.band { margin: 0 0 88px; padding-top: 28px; border-top: 1px solid var(--rule); }
.band-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 28px; }
.band-head .icon { flex: none; color: var(--blue); padding-top: 6px; }
.band-head .icon svg { width: 26px; height: 26px; stroke-width: 1.5; }
.band-head h2 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 40px); font-weight: 200; letter-spacing: -0.025em; }
.band-head p { margin: 0; color: var(--ink2); }
/* Privacy in numbers: big thin figures, like the app's date numeral. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 8px; }
.stats div { padding: 8px 24px 8px 0; }
.stats div + div { border-left: 1px solid var(--rule); padding-left: 24px; }
.stats strong { display: block; font-size: clamp(56px, 8vw, 88px); line-height: 1; font-weight: 100; letter-spacing: -0.04em; margin-bottom: 10px; }
.stats div:last-child strong { color: var(--blue); }
.stats span { color: var(--ink2); font-size: 15px; }
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .stats div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* Home: closing */
.get { padding: 32px 0 40px; border-top: 1px solid var(--rule); }
.get h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); font-weight: 200; letter-spacing: -0.025em; }

footer {
  max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px;
  border-top: 1px solid var(--rule); color: var(--ink2); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}
footer a { color: var(--ink2); }

@media (max-width: 820px) {
  .landing { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 64px; text-align: center; }
  .landing h1, .landing .lead { text-align: center; margin-inline: auto; }
  .landing .platforms { justify-content: center; }
  .landing > .phone { width: min(70%, 250px); }
  .show { grid-template-columns: 1fr; gap: 32px; }
  .show-phone { order: -1; width: min(70%, 250px); justify-self: center; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { display: grid; grid-template-columns: 72px 1fr; column-gap: 12px; }
  .steps .big { grid-row: span 2; font-size: 72px; margin: 0; }
}
/* Phones: each criterion becomes a full-width label over three equal columns, no sideways scroll. */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; margin: 0; padding: 0; }
  .compare { min-width: 0; }
  .compare tr { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { border: 0; padding: 10px 6px; }
  .compare thead th:first-child { display: none; }
  .compare thead th { font-size: 12px; line-height: 1.3; align-self: end; }
  .compare thead .us { font-size: 13px; }
  .compare tbody th { grid-column: 1 / -1; padding: 14px 0 0; font-size: 15px; }
  .compare tbody td { padding: 6px; }
  .compare .us { border-radius: 0; }
  .compare tbody tr:last-child .us { box-shadow: none; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .bar-in { gap: 16px; }
  .tabs { gap: 16px; }
  /* Globe only; the menu still lists every language by name. */
  .lang .name, .lang summary::after { display: none; }
  .hero { padding: 40px 0 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  summary::after, .slide, .show-list .d, .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
  .landing > div > *, .landing > .phone { animation: none; }
  .eyebrow.live::before { animation: none; }
}

/* Language suggestion from app.js, above the header. */
.suggest { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--bg2); border-bottom: 1px solid var(--rule); font-size: 15px; }
.suggest a { font-weight: 400; }
.suggest button { flex: none; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--ink2); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.suggest button:hover { color: var(--ink); }
