/* Direction: an administrative file made readable. Paper tones, serif headings like an
   official letter, the app's blue as ink, red used only for "you are here" and warnings.
   System fonts only: no Google Fonts request, so the site keeps the "no tracker" promise. */
:root {
  --bg: #f6f4ef;
  --paper: #fffdf8;
  --text: #171c2b;
  --muted: #565e72;
  --ink: #1e3a8a;
  --ink-soft: #e4e9f7;
  --red: #c62828;
  --line: #e2ddd2;
  --on-ink: #ffffff;
  --shadow: 0 1px 2px rgba(23, 28, 43, .06), 0 12px 32px -12px rgba(23, 28, 43, .18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1220;
    --paper: #161b2c;
    --text: #e9ecf4;
    --muted: #a4acc0;
    --ink: #9db0ea;
    --ink-soft: #1f2742;
    --red: #f07171;
    --line: #283049;
    --on-ink: #0e1220;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}

/* Small blue-white-red ribbon, same nod to the flag as in the app. */
body::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a 33.3%, #fff 33.3% 66.6%, #c62828 66.6%);
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }

main, .topbar, footer { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main > section { margin: 96px 0; }

/* Header */
.topbar { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; white-space: nowrap; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 9px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--on-ink);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(30, 58, 138, .55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(30, 58, 138, .6); }
.btn:active { transform: translateY(0); }
.btn-small { white-space: nowrap; padding: 8px 16px; font-size: .95rem; box-shadow: none; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; display: inline-block; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; margin: 32px 0 40px !important; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--muted); }
.hero h1 { font-size: clamp(2.2rem, 6.4vw, 3.6rem); margin: 0 0 20px; }
.hero h1 em { font-style: italic; color: var(--ink); white-space: nowrap; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: .95rem; }
.trust li::before { content: "✓ "; color: var(--ink); font-weight: 700; }

.hero-visual { position: relative; height: 440px; }
.phone {
  position: absolute;
  width: 210px;
  height: auto;
  border-radius: 28px;
  border: 7px solid #10142a;
  box-shadow: var(--shadow);
  background: #10142a;
}
.phone-front { left: 50%; top: 0; transform: translateX(-80%) rotate(-3deg); z-index: 2; }
.phone-back { left: 50%; top: 40px; transform: translateX(-20%) rotate(5deg); opacity: .9; }

/* Small phones (320px): smaller mockups so the back one stays on screen, and no header button
   competing with the brand for the only line. */
@media (max-width: 359px) {
  .hero-visual { height: 360px; }
  .phone { width: 170px; }
  .topbar .btn-small { display: none; }
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr .85fr; margin-top: 56px !important; }
  .hero-visual { height: 500px; }
  .phone { width: 220px; }
}

/* Disclaimer: kept right under the hero so nobody mistakes the app for an official one. */
.disclaimer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  border-radius: 10px;
  font-size: .95rem;
  color: var(--muted);
}
.disclaimer strong { color: var(--text); }

.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 32px; }

/* Journey: the product's core idea, drawn as the timeline it decodes. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 28px 56px; }
.steps li::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.steps li:last-child::before { display: none; }
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--ink-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: .82rem;
}
.step-final .step-num { background: var(--ink); color: var(--on-ink); }
.steps h3 { padding-top: 8px; }
.steps p { color: var(--muted); font-size: .97rem; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .steps li { padding: 56px 0 0; }
  .steps li::before { left: 48px; right: -20px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .steps h3 { padding-top: 0; }
}

/* Features: bento with one dominant tile. */
.bento { display: grid; gap: 16px; margin-top: 24px; }
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.tile p { color: var(--muted); margin: 0; }
.tile-code { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tile-code p { color: var(--on-ink); opacity: .85; }
.decode { margin-top: 20px; display: grid; gap: 10px; }
.decode code {
  font-family: var(--mono);
  font-size: .85rem;
  background: rgba(255, 255, 255, .14);
  padding: 8px 10px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.decode span { font-size: .95rem; }
.decode span::before { content: "= "; font-weight: 700; }
.tile-accent { background: var(--ink-soft); border-color: transparent; }

@media (min-width: 760px) {
  .bento { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto auto; }
  .tile-code { grid-row: span 3; padding: 32px; }
  .tile-code h3 { font-size: 1.6rem; }
}

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  gap: 20px;
  overflow-x: auto;
  padding: 40px 4px 12px;
  scroll-snap-type: x mandatory;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
@media (min-width: 760px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; max-width: 760px; margin: 0 auto; }
}

/* How it works */
.how-list { list-style: none; counter-reset: how; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.how-list li { counter-increment: how; padding: 24px 24px 24px 76px; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.how-list li::before {
  content: counter(how);
  position: absolute;
  left: 22px;
  top: 20px;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink);
}
.how-list p { color: var(--muted); margin: 0; }
@media (min-width: 760px) { .how-list { grid-template-columns: repeat(3, 1fr); } }

/* Security: full-bleed ink band for contrast. */
.security {
  background: #1e3a8a;
  color: #fff;
  border-radius: 24px;
  padding: 48px 24px;
}
.security a { color: #fff; }
.security-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 24px; }
.security-list li { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 16px; }
.security-list p { color: rgba(255, 255, 255, .82); margin: 0; }
@media (min-width: 760px) {
  .security { padding: 64px 56px; }
  .security-list { grid-template-columns: 1fr 1fr; gap: 28px 48px; }
}

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 650;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; color: var(--ink); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ink); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

.cta-final { text-align: center; padding: 24px 0; }
.cta-final h2 { margin-bottom: 24px; }

/* Privacy page */
.prose { max-width: 760px; padding-top: 24px; padding-bottom: 24px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 16px 0 8px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }
.prose code { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
th { background: var(--ink-soft); }

footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: .9rem;
}
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Shown until the Play listing is public: same look, no link, no hover lift. */
.btn-soon { cursor: default; }
.btn-soon:hover { transform: none; box-shadow: 0 6px 16px -6px rgba(30, 58, 138, .55); }
.btn-small.btn-soon:hover { box-shadow: none; }
