/* Bebas Neue (fonts/README.md): headings and labels, as in the media pack. */
@font-face {
  font-family: 'Bebas Neue';
  src: url('/fonts/bebas-neue-latin.woff2') format('woff2');
  font-display: swap;
}
:root {
  /* The media pack's colors: Shack Red, Tube Cream, Ink Brown, and Filament
     Amber for small accents only. */
  --bg: #fdf8ec;
  --bg-2: #f7eaca;
  --panel: #fffdf7;
  --panel-2: #f7eed8;
  --line: #e6d6b3;
  --text: #3a1e14;
  --muted: #6b5446;
  --accent: #a21311;
  --accent-hover: #7f0e0c;
  --accent-soft: #f6dfd2;
  --accent-ink: #fff8e8;
  --amber: #e8892b;
  --ok: #2f6b2f;
  --shadow: 0 1px 2px rgba(58, 30, 20, 0.05), 0 8px 24px rgba(58, 30, 20, 0.07);
  --display: 'Bebas Neue', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
}
.mono {
  font-family: var(--mono);
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap.narrow {
  max-width: 760px;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--accent);
}
h3 {
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 700;
}
h2 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 0 0 12px;
}
h3 {
  font-size: 19px;
  margin: 0 0 6px;
}
.sub {
  color: var(--muted);
  font-size: 19px;
  max-width: 680px;
  margin: 0 0 28px;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:hover {
  border-color: var(--accent);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn.big {
  padding: 15px 24px;
  font-size: 17px;
}
.btn.ghost {
  background: var(--panel);
  border-color: var(--line);
}
.btn:focus-visible,
.link:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navrow {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
}
/* The animated logos sit in a <picture> (a still one for reduced motion); lay out the img as if the wrapper weren't there. */
picture {
  display: contents;
}
.brand .wordmark {
  height: 30px;
  width: auto;
}
.brand b {
  color: var(--accent);
}
.nav nav {
  display: flex;
  gap: 22px;
}
.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav nav a:hover {
  color: var(--text);
}
.navcta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.link {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background:
    repeating-radial-gradient(circle at 50% 30%, transparent 0 22px, rgba(162, 19, 17, 0.05) 22px 23px),
    var(--bg-2);
  border-bottom: 3px solid var(--accent);
}
.herobadge {
  width: 168px;
  height: auto;
  margin: 0 auto 18px;
}
.herocopy {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
}
.herocopy .lead {
  margin-left: auto;
  margin-right: auto;
}
.herocopy .ctas {
  justify-content: center;
}
.eyebrow {
  font-family: var(--display);
  color: var(--text);
  font-size: 22px;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(54px, 9vw, 104px);
  line-height: 0.95;
  margin: 0 0 22px;
}
.lead {
  font-size: clamp(18px, 2.2vw, 20px);
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 640px;
}
.lead b {
  color: var(--text);
  font-weight: 600;
}
.ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.fine {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
}

/* Device frames (pure CSS around real console screenshots) */
.iphone {
  position: relative;
  margin: 0;
  padding: 3.2%;
  border-radius: 15% / 7%;
  background: #05080b;
  border: 1px solid #2c3746;
  box-shadow: 0 0 0 2px #c9d1dc, 0 30px 60px rgba(15, 23, 41, 0.22);
}
.iphone img {
  border-radius: 12% / 5.6%;
}
.iphone::before {
  /* Dynamic Island */
  content: '';
  position: absolute;
  top: 4.6%;
  left: 50%;
  width: 30%;
  height: 3.4%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 1;
}
.devices {
  position: relative;
  aspect-ratio: 16 / 9.6;
  margin-top: 8px;
}
.devices figure {
  position: absolute;
  margin: 0;
}
.macbook {
  left: 13%;
  top: 0;
  width: 66%;
}
.mac-screen {
  padding: 2.2% 2.2% 3%;
  border-radius: 2.2% / 3.4%;
  background: #05080b;
  border: 1px solid #333c48;
  box-shadow: 0 40px 80px rgba(15, 23, 41, 0.22);
}
.mac-screen img {
  border-radius: 0.6%;
}
.mac-base {
  position: relative;
  left: -7%;
  width: 114%;
  height: 0;
  padding-bottom: 2.6%;
  border-radius: 0 0 40% 40% / 0 0 100% 100%;
  background: linear-gradient(#d3d7dc, #8f949b);
}
.mac-base::before {
  /* thumb notch */
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 14%;
  height: 40%;
  transform: translateX(-50%);
  border-radius: 0 0 12px 12px;
  background: #9ba0a7;
}
.ipad {
  left: 0;
  bottom: 3%;
  width: 37%;
  padding: 1.6%;
  border-radius: 4.5% / 6.5%;
  background: #05080b;
  border: 1px solid #2c3746;
  box-shadow: 0 0 0 2px #c9d1dc, 0 30px 60px rgba(15, 23, 41, 0.22);
}
.ipad img {
  border-radius: 2.4% / 3.4%;
}
.phone-back {
  right: 11%;
  bottom: 5%;
  width: 15.5%;
}
.phone-front {
  right: 0;
  bottom: 0;
  width: 15.5%;
}

/* Works-on strip */
.strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.strip .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 22px;
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
}
.strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
}
.strip li {
  color: var(--text);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 88px 0;
}
.section.alt {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid article {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.grid p {
  margin: 0;
  color: var(--muted);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.checks li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}
.checks li b {
  color: var(--text);
  display: block;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.checks li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  width: 5px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(s);
  font-family: var(--display);
  font-size: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 400;
  margin-bottom: 6px;
}
.steps b {
  font-size: 19px;
}
.steps li > span {
  color: var(--muted);
}
.radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.radios > div {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.radios p {
  margin: 10px 0 0;
  color: var(--muted);
}
.radios b {
  color: var(--text);
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag.ok {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 50%, var(--line));
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1100px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 32px rgba(162, 19, 17, 0.14);
}
.plan h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0;
}
.tagline {
  margin: -8px 0 0;
  color: var(--muted);
}
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin: 0;
}
.price b {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.price span,
.price small {
  color: var(--muted);
}
.price small {
  width: 100%;
  font-size: 15px;
}
.price em {
  font-style: normal;
  font-weight: 600;
  color: var(--ok);
}
.plan ul {
  margin: 0;
  padding-left: 20px;
  flex: 1;
}
.plan li {
  margin: 4px 0;
}
.plan li.soon {
  color: var(--muted);
}
.plan li em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.plan .btn {
  padding: 13px;
  font-size: 16px;
}

/* FAQ */
details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 19px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  color: var(--muted);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
}
details[open] summary::after {
  content: '−';
}
details p {
  color: var(--muted);
  margin: 12px 0 0;
}

/* Final CTA and footer */
.final {
  padding: 96px 0;
  text-align: center;
  border-bottom: 3px solid var(--accent);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.final p {
  color: var(--muted);
  font-size: 19px;
  margin: 0 0 28px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 15px;
}
.footrow {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer a {
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav nav {
    display: none;
  }
  .two {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero {
    padding-top: 36px;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps,
  .radios {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 0;
  }
}
@media (max-width: 760px) {
  /* Too small to overlap: laptop on top, the rest in a row beneath. */
  .devices {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 2.3fr 1fr 1fr;
    gap: 14px 10px;
    align-items: end;
  }
  .devices figure {
    position: relative;
    inset: auto;
    width: auto;
  }
  .macbook {
    grid-column: 1 / -1;
    padding: 0 6%;
  }
}
@media (max-width: 620px) {
  .grid,
  .plans {
    grid-template-columns: 1fr;
  }
  .navcta .link {
    display: none;
  }
  .ctas .btn {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Terms and privacy */
.legal {
  padding: 56px 0 80px;
}
.legal h1 {
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
  margin: 0 0 8px;
}
.legal .updated {
  color: var(--muted);
  margin: 0 0 32px;
}
.legal h2 {
  font-size: 30px;
  margin: 36px 0 10px;
}
.legal p,
.legal li {
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin: 6px 0;
}

/* --- Help (knowledge base) --- */
.help {
  padding: 48px 0 80px;
}
.help h1 {
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
  margin: 0 0 10px;
}
.help .lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 720px;
  margin: 0 0 28px;
}
.help .crumb {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}
.help .crumb a {
  color: var(--muted);
}
.radiocard {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
  margin-bottom: 36px;
  max-width: 720px;
}
.radiocard b {
  font-size: 19px;
}
.radiocard span {
  color: var(--muted);
}
.sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px 36px;
}
.sections h2 {
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0 0 10px;
}
.articles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.articles a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}
.articles a:hover,
.radiocard:hover {
  border-color: var(--accent);
}
.articles span {
  color: var(--muted);
  font-size: 15px;
}
.help .ask {
  margin-top: 44px;
  color: var(--muted);
}
.helpgrid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  font-size: 15px;
}
.help .toc h2 {
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 20px 0 6px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc li a {
  display: block;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.toc li a:hover {
  background: var(--panel-2);
}
.toc a[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.toc .back {
  color: var(--muted);
  text-decoration: none;
}
.prose {
  max-width: 740px;
}
.prose h2 {
  font-size: 32px;
  margin: 36px 0 10px;
}
.prose h3 {
  font-size: 19px;
  margin: 26px 0 8px;
}
.prose p,
.prose li {
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
}
.prose li {
  margin: 6px 0;
}
.prose ol,
.prose ul {
  padding-left: 24px;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: var(--panel-2);
  border-radius: 0 10px 10px 0;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pager a {
  display: grid;
  gap: 2px;
  text-decoration: none;
  font-weight: 600;
}
.pager a span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.pager .next {
  text-align: right;
}
.help .key {
  color: var(--muted);
  font-size: 15px;
  max-width: 820px;
}
.yes {
  color: var(--ok);
  font-weight: 700;
}
.no,
.dim {
  color: var(--muted);
}
.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 20px 0 36px;
}
.matrix {
  border-collapse: collapse;
  width: 100%;
  min-width: 860px;
  font-size: 15px;
}
.matrix th,
.matrix td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.matrix thead th {
  position: sticky;
  top: 0;
  background: var(--panel-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.matrix tbody th {
  font-family: var(--mono);
  white-space: nowrap;
}
.matrix .c {
  text-align: center;
}
.matrix .bands {
  color: var(--muted);
}
.matrix tr.note td {
  padding-top: 0;
  font-size: 14px;
  color: var(--muted);
}
.matrix tbody tr:has(+ tr.note) th,
.matrix tbody tr:has(+ tr.note) td {
  border-bottom: none;
}
.matrix tr.group th {
  padding-top: 22px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  color: var(--accent);
}
.tag.dim {
  border-color: var(--line);
  color: var(--muted);
}
.help ul.plain {
  padding-left: 22px;
}
.help h2 {
  font-size: 32px;
}
@media (max-width: 900px) {
  .helpgrid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toc {
    position: static;
    max-height: none;
    order: 2;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
}

/* Download page */
.release {
  margin: 0 0 22px;
}
.release h3 {
  margin: 0 0 6px;
}
.release h3 .muted {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8em;
}
.release ul {
  margin: 0;
  padding-left: 22px;
}
.release-older summary {
  font-size: 17px;
}
.release-older[open] summary {
  margin-bottom: 16px;
}
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 18px 0 36px;
}
.dl {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}
.dl:hover {
  border-color: var(--accent);
}
.dl span {
  color: var(--muted);
  font-size: 14px;
}
.help ol.plain {
  padding-left: 22px;
}
.help ol.plain li {
  margin: 6px 0;
}
pre.cmd {
  margin: 10px 0 14px;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 14px;
}
