/* Walkship landing. Signal (dark) and Paper (light) from the app, following the system theme. */
:root {
  --bg: #0b0c0a;
  --bg-2: #121410;
  --card: #151713;
  --line: #262a22;
  --text: #e9ebe4;
  --muted: #9ba095;
  --faint: #6c7166;
  --accent: #b6d98c;
  --accent-ink: #10130c;
  --accent-soft: rgba(182, 217, 140, 0.1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --radius: 14px;
  --sans: "Golos Text", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f1eb;
    --bg-2: #eae9e2;
    --card: #fbfaf6;
    --line: #dddbd1;
    --text: #1d1f1a;
    --muted: #5e6358;
    --faint: #8a8e84;
    --accent: #56752f;
    --accent-ink: #f7f8f2;
    --accent-soft: rgba(86, 117, 47, 0.09);
    --shadow: 0 30px 70px -35px rgba(40, 45, 30, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
code { font: 500 0.88em var(--mono); background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 5px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 650; max-width: 18ch; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.label {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.sub { color: var(--muted); font-size: clamp(18px, 2vw, 21px); max-width: 38ch; margin-top: 22px; }
.caption { font: 400 13px/1.6 var(--mono); color: var(--faint); margin-top: 18px; }
.caption a { color: var(--muted); text-decoration: none; }
.caption a:hover { color: var(--accent); }
.caption [data-version]:not(:empty) { color: var(--accent); }
.caption [data-version]:not(:empty)::after { content: " · "; color: var(--faint); }
.note { margin-top: 4px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a, .lang { text-decoration: none; color: var(--muted); }
.nav a:hover, .lang:hover { color: var(--text); }
.lang { font: 500 13px var(--mono); letter-spacing: 0.08em; }

/* ---------- buttons ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 16px var(--sans); text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn .i { width: 20px; height: 20px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); filter: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 0; overflow: hidden; }
.stage { position: relative; margin-top: clamp(48px, 7vw, 84px); padding-bottom: 80px; }
.window {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.window-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.stage .window { width: 88%; }
.phone {
  border-radius: 34px; overflow: hidden; background: var(--bg);
  border: 7px solid #1c1e1a; box-shadow: var(--shadow);
}
@media (prefers-color-scheme: light) { .phone { border-color: #2a2c27; } }
.stage .phone { position: absolute; right: 0; bottom: 0; width: 25%; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0 0; }
.section-tight { padding-top: 72px; }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 28px; }
.phone-sm { width: min(240px, 78%); margin-inline: auto; border-radius: 28px; border-width: 6px; }
.num { font: 500 13px var(--mono); color: var(--accent); letter-spacing: 0.1em; display: block; margin-bottom: 10px; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* The map above the steps: three zones (on a walk · at home · in the cloud), each a column with a
   header. Lines are borders, arrowheads are rotated corners (.head-start, .head-end), 01–03 are the
   steps below. On narrow screens the same parts stand in a column. */
.flow {
  display: grid; grid-template-columns: minmax(0, 0.85fr) 150px minmax(0, 1.25fr) minmax(0, 1.3fr);
  margin-top: 56px;
}
.flow-col { display: flex; flex-direction: column; }
.flow-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.flow-zone {
  font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 28px;
}
.flow-col-link .flow-zone { border-top-color: transparent; }
.flow-col-home .flow-zone { color: var(--accent); border-top: 2px solid var(--accent); padding-top: 13px; }
.flow-col-out .flow-zone { margin-left: 110px; }

.flow-node {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.flow-node > .i { width: 26px; height: 26px; color: var(--accent); margin-bottom: 16px; }
.flow-node h3 { margin-bottom: 6px; }
.flow-node > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.5; }
.flow-mac {
  background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--card);
  border: 1.5px dashed var(--accent); padding: 26px 26px 28px;
}
.flow-mac h3 { font-size: 22px; }
.flow-sub { font: 500 12px/1.4 var(--mono); color: var(--accent); letter-spacing: 0.02em; }
.flow-rows { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.flow-rows li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 15px; line-height: 1.45; }
.flow-rows .i { width: 18px; height: 18px; color: var(--accent); margin: 2px 0 0 5px; }
.flow-step {
  display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 11px;
  font: 500 11px/1 var(--mono); font-style: normal; color: var(--accent);
  border: 1px solid var(--accent); background: var(--card);
}
.flow-col-out .flow-body { gap: 16px; }
.flow-out { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; }

.flow-link { position: relative; height: 44px; }
.flow-link::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 1.5px dashed var(--accent); }
.flow-link-out::before { border-top-style: solid; }
.flow-link b {
  position: absolute; top: 50%; width: 8px; height: 8px;
  border: solid var(--accent); border-width: 1.5px 1.5px 0 0;
}
.flow-link .head-end { right: 7px; transform: translateY(-50%) rotate(45deg); }
.flow-link .head-start { left: 7px; transform: translateY(-50%) rotate(-135deg); }
.flow-link .flow-step { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--bg); }
.flow-what, .flow-how {
  position: absolute; left: 4px; right: 4px; text-align: center;
  font: 500 11px/1.35 var(--mono); letter-spacing: 0.02em;
}
.flow-what { bottom: calc(50% + 16px); color: var(--text); }
.flow-how { top: calc(50% + 16px); color: var(--muted); }
.flow-link-out .flow-what { bottom: calc(50% + 8px); }
.flow-note { margin-top: 24px; color: var(--muted); font: 400 13px/1.5 var(--mono); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg); padding: 30px 28px 34px; }
.card .i { width: 26px; height: 26px; color: var(--accent); margin-bottom: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
/* The window on the left, the text on the right; one column on phones keeps the text first. */
.split-flip { grid-template-columns: 1.15fr 1fr; }
.split-flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; color: var(--muted); }
.ticks .i { width: 20px; height: 20px; color: var(--accent); margin-top: 4px; }

.panel {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  padding: clamp(32px, 5vw, 64px); border-radius: 22px;
  background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--card);
  border: 1px solid var(--line);
}
.req-title { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 6px 0 20px; }
.reqs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.reqs li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.reqs li:last-child { border-bottom: 0; }

.faq-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative;
  font-size: 19px; font-weight: 550;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px;
  font: 400 24px var(--mono); color: var(--accent); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 36px 24px 0; }
.faq details p a { color: var(--text); text-underline-offset: 3px; }
.faq details p a:hover { color: var(--accent); }
.story { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.story img { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 22px; }
.story h3 { margin-bottom: 12px; }
.story p { color: var(--muted); font-size: 16px; }

.foot { margin-top: clamp(96px, 12vw, 150px); border-top: 1px solid var(--line); padding: 36px 0 48px; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot img { height: 22px; width: auto; }
.foot-tag { font: 400 13px var(--mono); color: var(--faint); }
.foot nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; font-size: 15px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }

/* ---------- narrow screens ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .steps, .split, .panel, .faq-wrap { grid-template-columns: 1fr; }
  .split-flip > :first-child { order: 0; }
  .steps { gap: 64px; }
  .flow { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .flow-zone, .flow-col-home .flow-zone { border-top: 0; padding-top: 0; margin: 0 0 10px; }
  .flow-col-link .flow-zone { display: none; }
  .flow-link { height: 84px; }
  .flow-link::before { left: 50%; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 1.5px dashed var(--accent); }
  .flow-link-out::before { border-left-style: solid; }
  .flow-link .head-end { left: 50%; right: auto; top: auto; bottom: 7px; transform: translateX(-50%) rotate(135deg); }
  .flow-link .head-start { left: 50%; top: 7px; transform: translateX(-50%) rotate(-45deg); }
  .flow-what, .flow-how { left: calc(50% + 28px); right: 0; text-align: left; }
  .flow-what { bottom: 50%; }
  .flow-how { top: 50%; margin-top: 2px; }
  .flow-link-out .flow-what { bottom: auto; top: 50%; transform: translateY(-50%); left: calc(50% + 14px); }
  /* The cloud zone: both arrows first, then its header, then both cards side by side. */
  .flow-col-out { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .flow-col-out .flow-zone { grid-row: 2; grid-column: 1 / -1; margin-left: 0; }
  .flow-col-out .flow-body, .flow-out { display: contents; }
  .flow-out .flow-link { grid-row: 1; height: 64px; }
  .flow-out .flow-node { grid-row: 3; padding: 18px 16px 20px; }
  .flow-out:nth-child(2) > * { grid-column: 2; }
  .flow-note { text-align: center; }
  .grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 48px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-in { gap: 16px; }
  .grid { grid-template-columns: 1fr; }
  .stage .window { width: 100%; }
  .stage { padding-bottom: 0; }
  .stage .phone { position: relative; width: 62%; margin: -90px 0 0 auto; }
  .cta .btn { width: 100%; justify-content: center; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Privacy policy: one readable column of text. */
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5.4vw, 56px); }
.legal-date { font: 400 13px var(--mono); color: var(--faint); margin-top: 18px; }
.legal-lead { font-size: 19px; margin-top: 28px; }
.legal section { margin-top: 48px; }
.legal h2 { font-size: 24px; max-width: none; margin-bottom: 14px; }
.legal section p { color: var(--muted); margin-top: 12px; }
.legal section b { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); }

/* QR code in the download panel: for visitors on a computer; a phone just taps the APK button. */
.qr { display: flex; align-items: center; gap: 18px; margin-top: 28px; max-width: 420px; text-decoration: none; }
.qr img { flex: none; width: 116px; height: 116px; padding: 8px; border-radius: 12px; background: #fff; }
.qr span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.qr:hover span { color: var(--text); }
@media (max-width: 640px), (pointer: coarse) { .qr { display: none; } }

/* Android page: the install steps as a numbered list. */
.android .cta { margin-top: 28px; }
.android ol { margin: 12px 0 0; padding-left: 22px; color: var(--muted); display: grid; gap: 10px; }
.android ol b { color: var(--text); font-weight: 600; }
.android a.btn { color: var(--accent-ink); }
.android a.btn-ghost { color: var(--text); }
