/* Self-hosted (latin subset) so visitors never contact Google. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('fonts/archivo.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/ibm-plex-mono-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/ibm-plex-sans.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

  :root {
    --bg: #F1F7F5;
    --surface: #FFFFFF;
    --surface-2: #E4EFEB;
    --ink: #12201C;
    --muted: #55726C;
    --line: #CBDBD6;
    --accent: #00695C;
    --accent-ink: #FFFFFF;
    --accent-soft: #DCEEE9;
    --brand-red: #E31B23;
    --shadow: 0 1px 2px rgba(18,32,28,0.04), 0 8px 24px -12px rgba(18,32,28,0.18);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0C1513;
      --surface: #15211D;
      --surface-2: #1C2925;
      --ink: #E7F1EE;
      --muted: #93ADA6;
      --line: #2A3B36;
      --accent: #35C7B3;
      --accent-ink: #08201B;
      --accent-soft: #17322C;
      --brand-red: #FF6169;
      --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 28px -12px rgba(0,0,0,0.55);
    }
  }

  :root[data-theme="dark"] {
    --bg: #0C1513;
    --surface: #15211D;
    --surface-2: #1C2925;
    --ink: #E7F1EE;
    --muted: #93ADA6;
    --line: #2A3B36;
    --accent: #35C7B3;
    --accent-ink: #08201B;
    --accent-soft: #17322C;
    --brand-red: #FF6169;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 28px -12px rgba(0,0,0,0.55);
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 { font-family: 'Archivo', 'Segoe UI', system-ui, sans-serif; text-wrap: balance; margin: 0; }
  .mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

  a { color: inherit; }

  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

  /* ---------- Nav ---------- */
  header.nav {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
  }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .brand svg { width: 30px; height: 30px; flex: none; }
  .brand span {
    font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 17px;
    letter-spacing: 0.01em;
  }
  nav.links { display: flex; align-items: center; gap: 28px; }
  nav.links a {
    text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500;
  }
  nav.links a:hover { color: var(--ink); }
  .badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent-soft); color: var(--accent);
    border-radius: 999px; padding: 5px 12px 5px 10px;
    font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 600;
    letter-spacing: 0.02em;
  }
  .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-red); }

  @media (max-width: 720px) {
    nav.links a.hide-mobile { display: none; }
  }

  /* ---------- Hero ---------- */
  .hero { padding: 72px 0 56px; }
  .hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  }
  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 44px 0 40px; }
  }
  .eyebrow {
    font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500;
    color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 18px; display: block;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.04;
    letter-spacing: -0.01em;
  }
  .hero h1 em {
    font-style: normal; color: var(--accent);
  }
  .hero p.lede {
    margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 46ch;
  }
  .hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: var(--accent-ink);
    border: none; border-radius: 999px; padding: 13px 24px;
    font-size: 15px; font-weight: 600; text-decoration: none;
    cursor: pointer; font-family: inherit;
  }
  .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .btn-ghost {
    background: transparent; color: var(--muted); border: 1px solid var(--line);
  }
  .fact-line {
    margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 18px;
    font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted);
  }
  .fact-line span { display: flex; align-items: center; gap: 8px; }
  .fact-line .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

  /* device frame */
  .device-stage { position: relative; display: flex; justify-content: center; }
  .device {
    width: min(300px, 78vw);
    border-radius: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px;
    transform: rotate(-2.2deg);
  }
  .device img { width: 100%; display: block; border-radius: 24px; }
  .device.tilt-right { transform: rotate(2deg); }
  .device.plain { transform: none; }

  /* ---------- Section shell ---------- */
  section { padding: 64px 0; }
  section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .section-head { max-width: 640px; margin-bottom: 40px; }
  .section-head .eyebrow { margin-bottom: 12px; }
  .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; }
  .section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 58ch; }

  /* ---------- Difficulty ladder ---------- */
  .ladder {
    display: grid; grid-template-columns: repeat(6, 1fr);
    border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  }
  .ladder-cell {
    padding: 22px 16px; border-right: 1px solid var(--line);
    background: var(--surface);
  }
  .ladder-cell:last-child { border-right: none; }
  .ladder-cell.is-extreme { background: var(--accent-soft); }
  .ladder-num {
    font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted);
  }
  .ladder-name { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16px; margin-top: 6px; }
  .ladder-tag {
    margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.4;
    min-height: 34px;
  }
  @media (max-width: 820px) {
    .ladder { grid-template-columns: repeat(3, 1fr); }
    .ladder-cell:nth-child(3) { border-right: none; }
    .ladder-cell:nth-child(n+4) { border-top: 1px solid var(--line); }
  }
  @media (max-width: 480px) {
    .ladder { grid-template-columns: repeat(2, 1fr); }
    .ladder-cell:nth-child(2n) { border-right: none; }
    .ladder-cell:nth-child(3) { border-top: 1px solid var(--line); }
  }
  .ladder-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

  /* ---------- Feature grid ---------- */
  .feature-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  @media (max-width: 900px) { .feature-layout { grid-template-columns: 1fr; } }
  .feature-list { display: flex; flex-direction: column; gap: 26px; }
  .feature {
    display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  }
  .feature .num {
    font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600;
    color: var(--accent); border: 1px solid var(--line); border-radius: 8px;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: var(--surface);
  }
  .feature h3 { font-size: 17px; font-weight: 700; }
  .feature p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
  .feature-shots { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

  /* ---------- Honesty / pricing ---------- */
  .promise {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  }
  .promise-cell { background: var(--surface); padding: 26px 22px; }
  .promise-cell .big { font-family: 'IBM Plex Mono', monospace; font-size: 28px; font-weight: 600; }
  .promise-cell .lbl { margin-top: 8px; font-size: 14px; color: var(--muted); }
  @media (max-width: 720px) { .promise { grid-template-columns: 1fr; } }

  /* ---------- Footer ---------- */
  footer { padding: 48px 0 40px; }
  .footer-inner {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
    padding-top: 28px; border-top: 1px solid var(--line);
    font-size: 13.5px; color: var(--muted);
  }
  .footer-inner a { text-decoration: none; }
  .footer-inner a:hover { color: var(--ink); }
  .footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

  /* ---------- Privacy view ---------- */
  .policy { max-width: 720px; margin: 0 auto; padding: 56px 28px 80px; }
  .policy .back {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 32px;
  }
  .policy h1 { font-size: 2rem; font-weight: 800; }
  .policy .updated { color: var(--muted); font-size: 14px; margin-top: 10px; font-family: 'IBM Plex Mono', monospace; }
  .policy h2 { font-size: 1.2rem; font-weight: 700; margin-top: 40px; margin-bottom: 12px; }
  .policy p { margin: 14px 0; color: var(--ink); }
  .policy ul { padding-left: 22px; margin: 14px 0; }
  .policy li { margin: 8px 0; }
  .policy a.inline { color: var(--accent); text-decoration: underline; }

  ::selection { background: var(--accent-soft); color: var(--ink); }

  /* ---------- Studio pages ---------- */
  nav.links a[aria-current="page"] { color: var(--ink); }
  .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
  .card-grid .cell { background: var(--surface); padding: 26px 22px; }
  .card-grid h3 { font-size: 17px; font-weight: 700; }
  .card-grid p { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
  @media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; } }
  .product-card {
    display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
    padding: 28px; text-decoration: none; box-shadow: var(--shadow);
  }
  .product-card:hover { border-color: var(--accent); }
  .product-card .mark svg { width: 64px; height: 64px; display: block; }
  .product-card h3 { font-size: 22px; font-weight: 800; }
  .product-card p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 60ch; }
  @media (max-width: 720px) { .product-card { grid-template-columns: auto 1fr; } .product-card .badge { grid-column: 1 / -1; justify-self: start; } }
  .about { max-width: 62ch; color: var(--muted); font-size: 17px; }
  .about p { margin: 0 0 16px; }
  .small-print { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
