@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600;700&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

/* Terminal palette, matched to the web client (web/src/styles.css) and
   the mobile theme (src/theme/colors.ts): a black ground and one signal green.
   The two schemes do not share an accent — #00ff41 is 15.38:1 on black and
   1.37:1 on white — so light substitutes #0a7a2a. Radii are 2px throughout;
   precise geometry is a large part of what makes a product read as tooling. */
:root {
  --bg: #e9ede9;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-elevated-strong: #ffffff;
  --text: #0a0f0a;
  --text-secondary: rgba(10, 15, 10, 0.56);
  --border: rgba(10, 15, 10, 0.14);
  /* A different green, not a dimmed one: #00ff41 is 1.37:1 here. */
  --primary: #0a7a2a;
  --primary-light: rgba(10, 122, 42, 0.12);
  --text-on-primary: #ffffff;
  --secondary: #1f5c3a;
  --success: #0a7a2a;
  --tint-1: rgba(10, 122, 42, 0.07);
  --tint-2: rgba(31, 92, 58, 0.05);
  --tint-3: rgba(10, 122, 42, 0.03);
  --grid-line: rgba(10, 15, 10, 0.05);
  --grid-size: 44px;
  --shadow: rgba(10, 15, 10, 0.1);
  --radius-lg: 2px;
  --radius-md: 2px;
  --radius-sm: 2px;
  --max-width: 1120px;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Chakra Petch', 'IBM Plex Sans', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elevated: rgba(255, 255, 255, 0.03);
    --bg-elevated-strong: #0a0a0a;
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.48);
    --border: #222222;
    --primary: #00ff41;
    --primary-light: rgba(0, 255, 65, 0.14);
    --text-on-primary: #000000;
    --secondary: #7cffa8;
    --success: #00ff41;
    --tint-1: rgba(0, 255, 65, 0.05);
    --tint-2: rgba(124, 255, 168, 0.03);
    --tint-3: rgba(0, 255, 65, 0.02);
    --grid-line: rgba(0, 255, 65, 0.045);
    --shadow: rgba(0, 0, 0, 0.8);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Blueprint grid over the accent glows — matches the web client's backdrop
   (web/src/styles.css) and the mobile LiquidGlassBackground. */
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px var(--grid-size)),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px var(--grid-size));
  -webkit-mask-image: radial-gradient(120% 110% at 30% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(120% 110% at 30% 0%, #000 40%, transparent 100%);
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  /* Dimmed from 0.8 so the glows frame the grid rather than dominate it. */
  opacity: 0.5;
}

.blob-1 {
  width: 480px;
  height: 480px;
  top: -180px;
  right: -140px;
  background: var(--tint-1);
}

.blob-2 {
  width: 520px;
  height: 520px;
  bottom: -220px;
  left: -180px;
  background: var(--tint-2);
}

.blob-3 {
  width: 380px;
  height: 380px;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tint-3);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  letter-spacing: 0.3px;
}

/* The app's own icon, the same file the favicon and the PWA use, so the mark
   in the nav cannot drift from the one on the home screen. */
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  /* The icon's own ground is black, which disappears into the dark theme;
     the hairline keeps its edge visible on either background. */
  border: 1px solid var(--border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 9px 18px !important;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--text-on-primary) !important;
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* Hero */
/* One column while there is no product shot to sit beside the text. The old
   two-column rule stretched the lead line to the full page width the moment
   the image came out; the measure is what keeps it readable, not the grid.
   Put `grid-template-columns: 1.1fr 0.9fr` back when a real screenshot from a
   release build replaces the development one that used to live here. */
.hero {
  padding: 104px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 62ch);
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badges {
    justify-content: center;
  }
}

/* Technical eyebrow: mono + tracked-out caps reads as a system label. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

h1 {
  font-family: var(--display);
  /* Smaller and tracked out rather than large and tightly set. The old
     -1.4px closed the headline into one consumer-display shape; this design
     tracks wide everywhere else, and a tight hero over a tracked-out eyebrow
     reads as two designs meeting. */
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: 2px;
  margin: 0 0 20px;
  font-weight: 700;
  text-wrap: balance;
}

.hero p.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  /* 480px was the width left over beside the screenshot. With the screenshot
     gone the measure should be chosen for reading, not for what fitted. */
  max-width: 58ch;
  margin: 0 0 34px;
}

@media (max-width: 860px) {
  .hero p.lead {
    max-width: none;
  }
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Flat fill, and theme-dependent ink: white on the light-mode deep green
   (5.29:1), black on the dark-mode signal green (15.38:1). White on the bright
   green would be 1.37:1 — a WCAG failure. */
.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
  box-shadow: 0 10px 30px -12px var(--primary-light);
}

/* The store button before the listing exists. It reads as a button so the row
   keeps its shape, but it is not a link and does not lift on hover, because
   there is nowhere for it to go. */
.btn-pending {
  background: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--border);
  cursor: default;
}

.btn-pending:hover {
  transform: none;
}

.btn-secondary {
  background: var(--bg-elevated-strong);
  color: var(--text);
  border-color: var(--border);
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

/* Hero mockup */
.mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 260px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px var(--shadow);
  line-height: 0;
}

.phone-screenshot {
  width: 100%;
  display: block;
}

/* Section headings */
.section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: 0.8px;
  margin: 0 0 14px;
  font-weight: 800;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  backdrop-filter: blur(16px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: var(--bg-elevated-strong);
  color: var(--primary);
  margin-bottom: 16px;
}

.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  flex-shrink: 0;
}

.feature-icon .icon {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Privacy strip */
.privacy-strip {
  display: grid;
  /* Three, not four: there are six of these, and four columns leaves the second
     row two-thirds empty. */
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 760px) {
  .privacy-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.privacy-item {
  text-align: center;
  padding: 22px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.privacy-item .feature-icon {
  margin: 0 auto 12px;
}

.privacy-item h4 {
  font-size: 14px;
  margin: 0 0 4px;
}

.privacy-item p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
}

/* Download */
.download-card {
  background: linear-gradient(135deg, var(--tint-1), var(--tint-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}

@media (max-width: 640px) {
  .download-card {
    padding: 36px 22px;
  }
}

.download-card h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 12px;
  letter-spacing: 0.6px;
}

.download-card p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 28px;
}

.download-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.download-note {
  font-size: 13px;
  color: var(--text-secondary);
}

.download-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text);
}

/* Privacy policy page */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.doc h1 {
  font-size: 34px;
}

.doc .meta {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 40px;
}

.doc section {
  margin-bottom: 28px;
}

.doc h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.doc p {
  color: var(--text-secondary);
  font-size: 15px;
  white-space: pre-line;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  margin-bottom: 24px;
}

/* ── What's different: a numbered list where the number carries meaning ────── */

.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.reason {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 30px 32px;
  background: var(--bg-elevated);
}

.reason-num {
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
  opacity: 0.45;
}

.reason-body h3 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.reason-body p {
  margin: 0 0 12px;
  max-width: 64ch;
  color: var(--text-secondary);
  line-height: 1.65;
}

.reason-body p:last-child {
  margin-bottom: 0;
}

/* The caveat under a claim. Set apart because a qualification that reads like
   the claim is a qualification nobody registers. */
.reason-note {
  border-inline-start: 2px solid var(--primary);
  padding-inline-start: 14px;
  font-size: 14.5px;
}

@media (max-width: 760px) {
  .reason {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 22px;
  }
  .reason-num {
    font-size: 24px;
  }
}

/* ── Limits: two columns that have to be read against each other ──────────── */

.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.ledger-col {
  padding: 28px 30px;
  background: var(--bg-elevated);
}

.ledger-col h3 {
  margin: 0 0 16px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ledger-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.ledger-col li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.ledger-col li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  font-weight: 700;
}

.ledger-yes h3 { color: var(--primary); }
.ledger-yes li::before { content: "✓"; color: var(--primary); }

/* Not red: this column is the honest half of the page, not a warning about a
   defect. It is set apart by weight, not by alarm. */
.ledger-no h3 { color: var(--text); }
.ledger-no li::before { content: "○"; color: var(--text-secondary); }

.ledger-note {
  margin: 20px 0 0;
  max-width: 72ch;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .ledger {
    grid-template-columns: 1fr;
  }
  .ledger-col {
    padding: 24px 22px;
  }
}

/* The language row, shared by the landing pages and the policy pages. The
   current language is a span rather than a link, so it stays in place instead
   of the row reflowing every time you switch. */
.site-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.site-langs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-langs a:hover {
  color: var(--text);
}

.site-langs [aria-current] {
  color: var(--primary);
  font-weight: 700;
}

/* The display face covers Latin and Cyrillic only. Left alone, a Japanese
   heading renders its kana in a system fallback at a different weight beside
   any Latin word in the same line, which reads as a mistake. These stacks put
   the whole line in one face. */
:root:lang(ja),
:root:lang(ko),
:root:lang(zh-Hans),
:root:lang(zh-Hant) {
  --display: 'Chakra Petch', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans CJK SC',
    'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  --body: 'IBM Plex Sans', -apple-system, 'Hiragino Sans', 'Yu Gothic',
    'Noto Sans CJK SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

:root:lang(ar) {
  --display: 'Chakra Petch', 'SF Arabic', 'Geeza Pro', 'Noto Sans Arabic',
    system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'SF Arabic', 'Geeza Pro', 'Noto Sans Arabic',
    sans-serif;
}

:root:lang(hi) {
  --display: 'Chakra Petch', 'Noto Sans Devanagari', 'Kohinoor Devanagari',
    system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Noto Sans Devanagari', 'Kohinoor Devanagari',
    sans-serif;
}
