:root {
  color-scheme: dark;

  /* surfaces — true neutral black, chroma 0. Depth comes from lightness
     steps and hairline borders only; no tint, no shadows. */
  --page: #000000;
  --surface: #0c0c0d;         /* catalogue panel */
  --surface-warm: #141416;    /* sidebar, one step up */
  --surface-contact: #0f0f10; /* contact block */

  /* ink — neutral off-white; pure #fff on pure black is harsh at body size */
  --ink: #f5f5f7;             /* 19.3:1 on --page */
  --ink-muted: #a1a1a6;       /* 8.2:1 */
  --ink-faint: #86868b;       /* 5.8:1 — passes for 11-13px labels */
  --ink-fact: #86868b;
  --ink-on-dark: var(--ink);
  --ink-on-dark-muted: var(--ink-muted);

  /* primary action is a white plate with black text — the store-page move.
     Colour is spent only on links, so the pills stay the loudest thing. */
  --accent: #f5f5f7;
  --accent-hover: #ffffff;
  --accent-deep: #2997ff;     /* link text: 6.5:1 on --surface */
  --accent-underline: #1c4a75;

  /* borders — hairlines, the only edge definition on the page */
  --border-warm: #1d1d1f;
  --border-warm-inner: #2a2a2c;
  --border-cool: #1a1a1c;

  --r-card: 26px;
  --r-icon: 14px;
  --pad-x: 44px;
  --canvas: 1120px;

  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.canvas { max-width: var(--canvas); margin: 0 auto; }

a { color: inherit; text-decoration: none; }

/* ---------------- header ---------------- */
header { padding: 20px var(--pad-x); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--ink-muted); }
.nav-links a { transition: color 150ms var(--ease); }
.nav-links a:hover { color: var(--ink); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 150ms var(--ease);
}
/* on a dark ground the "solid" pill inverts: light plate, dark label */
.pill-dark { padding: 10px 20px; background: var(--ink); color: var(--page); font-size: 15px; }
.pill-dark:hover { background: var(--accent-hover); }
.pill-accent { padding: 12px 22px; background: var(--accent); color: var(--page); font-size: 14px; flex: none; }
.pill-accent:hover { background: var(--accent-hover); }
.pill-light { padding: 14px 28px; background: var(--ink); color: var(--page); font-size: 16px; }
.pill-light:hover { background: var(--accent-hover); }

.pill svg { width: 15px; height: 15px; fill: currentColor; flex: none; }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 21px;
  border: 1px dashed var(--border-warm-inner);
  border-radius: 999px;
  color: var(--ink-faint);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.soon svg { width: 15px; height: 15px; flex: none; }

/* ---------------- hero ---------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: clamp(48px, 7vw, 76px) var(--pad-x) clamp(40px, 5vw, 60px);
  text-align: center;
}
h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.375rem, 6vw, 3.875rem);   /* 38px → 62px */
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero p {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ---------------- catalogue panel ---------------- */
.panel {
  margin: 0 var(--pad-x) var(--pad-x);
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--r-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 36px 30px;
  background: var(--surface-warm);
  border-right: 1px solid var(--border-warm-inner);
}
.sidebar > p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-muted); }

.facts { margin: auto 0 0; display: flex; flex-direction: column; font-family: var(--mono); font-size: 12px; }
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border-warm-inner);
  padding-top: 9px;
  margin-top: 9px;
}
.facts dt { color: var(--ink-fact); }
.facts dd { margin: 0; color: var(--ink); text-align: right; }
.facts .hl { color: var(--accent-deep); }


/* catalogue */
.catalogue { display: flex; flex-direction: column; }

.app-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 34px var(--pad-x);
  border-bottom: 1px solid var(--border-cool);
}
.app-row:last-child { border-bottom: none; flex: 1; }

.app-id { display: flex; align-items: flex-start; gap: 18px; }
/* the three app icons are themselves near-black; a hairline ring keeps them
   from dissolving into the black panel */
.app-icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--r-icon);
  border: 1px solid var(--border-warm-inner);
}
.app-text { display: flex; flex-direction: column; gap: 6px; }
.app-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.app-name { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.035em; }
.app-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.app-desc { margin: 0; max-width: 460px; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.app-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }

/* ---------------- contact ---------------- */
.contact {
  margin: 0 var(--pad-x) var(--pad-x);
  padding: 48px;
  background: var(--surface-contact);
  border: 1px solid var(--border-warm-inner);
  border-radius: var(--r-card);
  color: var(--ink-on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.contact h2 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 1.875rem); font-weight: 700; letter-spacing: -0.03em; }
.contact p { margin: 0; max-width: 440px; font-size: 16px; line-height: 1.65; color: var(--ink-on-dark-muted); }
.contact .pill-light { margin-top: 8px; }
.contact-details {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-warm-inner);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-on-dark-muted);
}
.contact-details a { color: var(--ink-muted); border-bottom: 1px solid var(--border-warm-inner); }
.contact-details a:hover { color: var(--ink); }

::selection { background: var(--accent-deep); color: var(--ink); }

/* ---------------- legal pages ---------------- */
.doc-head {
  padding: clamp(40px, 6vw, 64px) var(--pad-x) 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doc-head h1 { max-width: 640px; font-size: clamp(2rem, 5vw, 2.75rem); }
.doc-head .stamp {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.legal {
  margin: 0 var(--pad-x) var(--pad-x);
  padding: 40px var(--pad-x);
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--r-card);
}
.legal > *:first-child { margin-top: 0; }
.legal h2 { margin: 30px 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.legal p, .legal li { margin: 0 0 12px; max-width: 68ch; font-size: 15px; line-height: 1.7; color: var(--ink-muted); }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-underline); }

.doc-nav {
  margin: 0 var(--pad-x) var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 15px;
  color: var(--ink-muted);
}
.doc-nav a { transition: color 150ms var(--ease); }
.doc-nav a:hover { color: var(--ink); }

/* ---------------- footer ---------------- */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 22px;
  padding: 0 var(--pad-x) 32px;
  font-size: 13px;
  color: var(--ink-faint);
}
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { transition: color 150ms var(--ease); }
footer a:hover { color: var(--ink); }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border-warm-inner); }
  .facts { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .app-row, .legal { padding-left: 30px; padding-right: 30px; }
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; }
  .app-row { flex-direction: column; gap: 18px; }
  .app-actions { align-self: stretch; align-items: stretch; }
  .app-actions .pill-accent, .app-actions .soon { justify-content: center; }
  .contact { padding: 36px 24px; }
  .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------------- support form ---------------- */
.form-panel {
  margin: 0 var(--pad-x) var(--pad-x);
  padding: 40px var(--pad-x);
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--r-card);
}
.form-panel form { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.field .opt, .field .req {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-faint);
}
.field .req { color: var(--accent-deep); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--page);
  color: var(--ink);
  border: 1px solid var(--border-warm-inner);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3a3a3d; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.25);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff6b6b; }

.field .hint { margin: 0; font-size: 13px; color: var(--ink-faint); }
.field .err { margin: 0; font-size: 13px; color: #ff8a8a; }

/* honeypot — offscreen rather than display:none, which some bots detect */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#submit-btn { border: none; cursor: pointer; }
#submit-btn:disabled { opacity: 0.55; cursor: default; }

.status { margin: 0; font-size: 14px; color: var(--ink-muted); }
.status-err { color: #ff8a8a; }

.sent { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sent h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.sent p { margin: 0; max-width: 46ch; font-size: 15px; color: var(--ink-muted); }
.sent .pill { margin-top: 8px; }

@media (max-width: 640px) {
  .form-panel { padding: 28px 20px; }
}
