/*
 * grund.run. The palette and type are taken from the grund dashboard design
 * (design/reference/dashboard-overview.png), so the site and the product read
 * as one thing. Served outside assets/, so it revalidates on every load and
 * can be edited without renaming. Fonts are self-hosted: the CSP allows
 * nothing from other origins.
 */

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin-3100e775.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/jetbrains-mono-latin-18be4527.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #141c18;
  --bg-raised: #18201c;
  --surface: #1f2722;
  --surface-hover: #253029;
  --border: #262f29;
  --border-strong: #313c35;
  --active: #28352c;

  --text: #eef3ef;
  --text-2: #c3ccc6;
  --muted: #8a948e;

  --accent: #b8dab3;
  --accent-hover: #c9e6c4;
  --accent-ink: #0e1710;
  --accent-text: #b5d8a8;
  --ok: #a9d8a0;
  --blue: #7fb6ea;
  --orange: #e8a57a;
  --violet: #b48fe6;

  --radius: 12px;
  --radius-lg: 16px;
  --page: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Top bar ────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(20 28 24 / 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 650;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.brand .mark {
  width: 2.1rem;
  height: 1.6rem;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-raised);
}

.nav .nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.5rem;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

@media (max-width: 760px) {
  .nav a:not(.nav-gh) {
    display: none;
  }
}

/* ─── Buttons and links ─────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.button:hover {
  background: var(--accent-hover);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-text);
  font-weight: 550;
  text-decoration: none;
}

.more .icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.15s ease;
}

.more:hover .icon {
  transform: translateX(3px);
}

.button.ghost {
  background: rgb(20 28 24 / 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.button.ghost:hover {
  background: var(--bg-raised);
}

/* The icon sprite: symbols only, never rendered itself. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

.muted {
  color: var(--muted);
}

/* ─── Hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 13vw, 10rem) 0 clamp(6rem, 13vw, 10.5rem);
  border-bottom: 1px solid var(--border);
}

/* Ground strata: grund means ground. Sits behind the copy, fades to the
   page at the top so the headline stays on flat colour. */
.strata {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 70%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgb(20 28 24 / 0.55) 45%, rgb(20 28 24 / 0) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 2rem;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgb(24 32 28 / 0.8);
  color: var(--text-2);
  font-size: 0.875rem;
}

.pill .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgb(127 182 234 / 0.15);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 17ch;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 780;
  line-height: 0.98;
}

.lede {
  max-width: 40rem;
  margin: 1.75rem 0 0;
  color: var(--text-2);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

/* ─── Four facts ─────────────────────────────────────────────────────── */

.facts {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-grid h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.fact-grid p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .fact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ─── Sections ──────────────────────────────────────────────────────── */

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--border);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 760;
  line-height: 1.02;
}

/* Two-tone headings: the claim, then its qualifier in grey. */
h2 .dim {
  display: block;
  color: #7b867f;
}

.section-lede {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  color: var(--text-2);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.centered {
  text-align: center;
}

.centered h2,
.centered .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.centered h2 {
  max-width: 20ch;
}

.section-head h2 {
  max-width: 18ch;
}

.note {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Visuals: small panels in the dashboard's visual language. */

.visual {
  margin: 0;
}

.visual figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font: 0.78rem var(--mono);
  text-align: center;
}

.panel {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow:
    0 30px 80px -30px rgb(0 0 0 / 0.65),
    0 0 100px -40px rgb(184 218 179 / 0.14);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.panel-head .muted {
  font-weight: 400;
}

.st {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st.ok {
  color: var(--ok);
}

/* The journey: numbered levels, copy on one side, one small visual on the
   other, alternating sides on wide screens. */

.journey {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.level {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
}

.level:nth-child(even) .level-copy {
  order: 2;
}

.level .num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgb(184 218 179 / 0.35);
  border-radius: 50%;
  background: var(--active);
  color: var(--accent-text);
  font: 600 0.9rem var(--mono);
}

.level h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 740;
  line-height: 1.12;
}

.level-copy p {
  max-width: 30rem;
  margin: 0.8rem 0 0;
  color: var(--text-2);
  font-size: 1.02rem;
}

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

  .level:nth-child(even) .level-copy {
    order: 0;
  }
}

.shell {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #0f1512;
  box-shadow: 0 24px 60px -30px rgb(0 0 0 / 0.7);
}

.shell p {
  margin: 0;
  color: var(--text-2);
  font: 0.84rem/1.75 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.shell .prompt {
  color: var(--accent-text);
}

.shell .ok-line {
  color: var(--ok);
}

.hw {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hw li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.hw .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.hw strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.hw span {
  color: var(--muted);
  font: 0.78rem var(--mono);
}

/* Two worked examples, homelab and SaaS. */

.examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.25rem;
  text-align: left;
}

.example {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}

.example-head h3 {
  margin-top: 0.4rem;
  font-size: 1.35rem;
  font-weight: 720;
  line-height: 1.2;
}

.example-head p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.kicker {
  color: var(--accent-text);
  font: 500 0.75rem var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel.apps {
  background: var(--bg);
  box-shadow: none;
}

.panel.apps .panel-head .muted {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.panel.apps .panel-head .icon {
  width: 1rem;
  height: 1rem;
}

.app-rows {
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
}

.app-rows li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem 1.25rem;
}

.app-rows li + li {
  border-top: 1px solid var(--border);
}

.app-rows .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.app-rows strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.app-rows .mono {
  color: var(--text-2);
  font-size: 0.76rem;
}

.serving {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-2);
  font-size: 0.88rem;
}

.c-orange {
  color: var(--orange);
}

.c-blue {
  color: var(--blue);
}

.c-violet {
  color: var(--violet);
}

.outcomes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcomes li {
  display: flex;
  gap: 0.65rem;
  padding: 0.45rem 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

.outcomes .icon {
  margin-top: 0.15rem;
  color: var(--accent);
}

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

@media (max-width: 480px) {
  .app-rows li {
    grid-template-columns: 1.6rem minmax(0, 1fr);
  }

  .app-rows .serving {
    grid-column: 2;
  }
}

/* Features: a plain grid of what every app gets. */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 3.25rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.features li {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}

.features .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1.1rem;
  color: var(--accent);
}

.features h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.features p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* "Outgrow one machine?" under the three steps. */

.grow {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 44rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: 1.1rem 1.35rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: left;
}

.grow .icon {
  margin-top: 0.15rem;
  color: var(--accent);
}

.grow p {
  margin: 0;
  color: var(--text-2);
}

.grow strong {
  color: var(--text);
}

.grow code {
  color: var(--accent-text);
  font: 0.88em var(--mono);
}

/* Who it is for. */

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 3rem;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.97rem;
}

.list strong {
  color: var(--text);
  font-weight: 600;
}

.list .icon {
  margin-top: 0.15rem;
  color: var(--accent);
}

.list.is-not .icon {
  color: var(--muted);
}

.list-title {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.honest {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text-2);
  font-size: 0.97rem;
}

.honest strong {
  color: var(--text);
}

.honest p {
  margin: 0;
}

.honest p + p {
  margin-top: 0.6rem;
}

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

/* Closing call to action. */

.closing {
  padding: clamp(5rem, 10vw, 7.5rem) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing .mark {
  width: 3rem;
  height: 2.3rem;
  margin: 0 auto 1.75rem;
  color: var(--accent);
}

.closing h2 {
  max-width: 18ch;
  margin: 0 auto;
}

.closing .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.closing .actions {
  justify-content: center;
}

/* ─── Sub-pages: pricing and licenses ────────────────────────────────── */

.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-raised);
}

.page-hero {
  padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}

.page-hero h1 .dim {
  display: block;
  color: #7b867f;
}

.wrap.narrow {
  max-width: 50rem;
}

.section.tight {
  padding-top: 1rem;
  border-top: 0;
}

.note.center {
  text-align: center;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}

.plan.is-featured {
  border-color: rgb(184 218 179 / 0.45);
  box-shadow: 0 0 80px -30px rgb(184 218 179 / 0.25);
}

.badge {
  position: absolute;
  top: -0.7rem;
  left: 1.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 650;
}

.plan h2 {
  font-size: 1.25rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.plan-for {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Four across: reserve two lines so every price sits on the same row. */
@media (min-width: 1061px) {
  .plan-for {
    min-height: 2.9em;
  }
}

.plans-section {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.price {
  display: flex;
  flex-direction: column;
  margin: 1.4rem 0 1.25rem;
}

.price strong {
  font-size: 2.4rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.price span {
  margin-top: 0.3rem;
  color: var(--text-2);
  font-size: 0.88rem;
}

.plan-list {
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.plan-list li {
  display: flex;
  gap: 0.6rem;
  padding: 0.35rem 0;
  color: var(--text-2);
  font-size: 0.92rem;
}

.plan-list .icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  color: var(--accent);
}

@media (max-width: 1060px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.6rem;
  }
}

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

.plans.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .plans.three {
    grid-template-columns: 1fr;
    row-gap: 1.6rem;
  }
}

.self-band {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.self-hosted {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.15rem 1.4rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.self-hosted .icon {
  margin-top: 0.15rem;
  color: var(--accent);
}

.self-hosted p {
  margin: 0;
  color: var(--text-2);
}

.self-hosted strong {
  color: var(--text);
}

.machine-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  margin-top: 2.75rem;
}

.machine-card {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}

.machine-card.is-grund {
  border-color: rgb(184 218 179 / 0.35);
}

.machine-card h3 {
  margin-top: 0.45rem;
  font-size: 1.3rem;
  font-weight: 720;
  line-height: 1.2;
}

.machine-card > p {
  margin: 0.5rem 0 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

.rates {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.rates th,
.rates td {
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  text-align: left;
  color: var(--text-2);
  vertical-align: top;
}

.rates thead th {
  border-top: 0;
  color: var(--muted);
  font: 500 0.72rem var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rates tbody th {
  width: 7rem;
  color: var(--text);
  font-weight: 600;
}

.rates td:last-child {
  text-align: right;
}

.rates strong {
  color: var(--text);
}

.machine-card:first-child .rates td:last-child {
  text-align: left;
}

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

.table-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.compare {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.compare th,
.compare td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text-2);
}

.compare thead th {
  background: var(--bg-raised);
  color: var(--text);
  font-weight: 650;
}

.compare tbody th {
  text-align: left;
  color: var(--text);
  font-weight: 500;
}

/* On narrow screens the table scrolls sideways; keep the feature names in
   view while it does. */
.compare th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-raised);
}

.compare tbody th {
  background: var(--bg);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare .icon {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0 auto;
}

.compare .yes {
  color: var(--accent);
}

.compare .no {
  color: var(--muted);
}

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
  margin: 2.5rem 0 0;
}

.faq div {
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
}

.faq dt {
  font-weight: 650;
}

.faq dd {
  margin: 0.4rem 0 0;
  color: var(--text-2);
}

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

.licenses {
  margin: 0;
  padding: 0;
  list-style: none;
}

.licenses li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.licenses h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.licenses p {
  margin: 0.5rem 0 0;
  color: var(--text-2);
}

.licenses a:not(.more) {
  color: var(--text);
}

/* ─── Footer ────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.foot nav {
  display: flex;
  gap: 1.25rem;
}

.foot a {
  color: var(--text-2);
  text-decoration: none;
}

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

.foot .brand {
  font-size: 1.1rem;
  color: var(--text);
}

.foot .brand .mark {
  width: 1.5rem;
  height: 1.15rem;
}

/* ─── 404 ───────────────────────────────────────────────────────────── */

.lost {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0;
}

.lost .code {
  margin: 0 0 1rem;
  color: var(--accent-text);
  font: 500 0.9rem var(--mono);
}

.lost h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
