/* Mokup — landing site styles */

:root {
  color-scheme: dark;

  /* macOS-dark neutrals: no colour cast in the greys */
  --bg: #0b0b0d;
  --bg-soft: #121215;
  --surface: #17171a;
  --surface-2: #1d1d21;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f5f7;
  --text-dim: #a1a1a6;
  --text-faint: #7c7c81;

  /* one accent, used sparingly (Apple dark-mode green) */
  --brand: #30d158;
  --brand-deep: #248a3d;
  --brand-bright: #4ade80;
  --on-brand: #05230e;
  --accent: #ff9f0a;
  --accent-soft: rgba(255, 159, 10, 0.14);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  --ring: 0 0 0 3px rgba(48, 209, 88, 0.35);

  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: var(--brand-bright);
  text-decoration: none;
}

a:hover {
  color: #6fe0bd;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
}

h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  letter-spacing: -0.032em;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* Visible keyboard focus everywhere (WCAG 2.4.7) */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Theme ---------- */

html[data-theme="light"] {
  color-scheme: light;

  --bg: #fbfbfd;
  --bg-soft: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #eeeef1;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.18);

  --text: #1d1d1f;
  --text-dim: #55555b;
  --text-faint: #86868b;

  --brand: #1a8f45;
  --brand-deep: #14713a;
  --brand-bright: #17924a;
  --on-brand: #ffffff;
  --ring: 0 0 0 3px rgba(26, 143, 69, 0.3);

  --shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.22);
}

body {
  transition: background 0.25s ease, color 0.25s ease;
}

html[data-theme="light"] .site-header {
  background: rgba(251, 251, 253, 0.78);
}

html[data-theme="light"] .hero::before {
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.05), transparent 72%);
}

html[data-theme="light"] .window {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .window-bar {
  background: rgba(0, 0, 0, 0.035);
}

html[data-theme="light"] .card-icon {
  background: rgba(0, 0, 0, 0.045);
}

html[data-theme="light"] .card code,
html[data-theme="light"] .chip {
  background: rgba(0, 0, 0, 0.055);
}

html[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .hero-sub,
html[data-theme="light"] .section-sub,
html[data-theme="light"] .card p,
html[data-theme="light"] .step-copy p {
  color: var(--text-dim);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.theme-toggle:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}



/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  flex: 0 0 auto;
}

.logo img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.logo:hover {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.header-cta {
  margin-left: 4px;
}

.nav a {
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0;
  transition: color 0.16s ease;
}

.nav a:hover {
  color: var(--text);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg) !important;
  font-weight: 500;
  font-size: 0.86rem;
  transition: background 0.16s ease, opacity 0.16s ease;
}

.header-cta:hover {
  background: #ffffff;
  opacity: 0.92;
}

.header-cta svg {
  width: 15px;
  height: 15px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 9px;
  padding: 7px 10px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 22px 20px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 9px 2px;
  }

  .nav .header-cta {
    justify-content: center;
    margin-top: 8px;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: none;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

/* Apple-ish filled button: light fill, dark label — the Chrome logo keeps its
   real colours instead of fighting a saturated background. */
.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
}

.btn-primary:hover {
  background: #ffffff;
  color: var(--bg);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn-accent {
  background: var(--accent);
  color: #1a0a03;
  box-shadow: 0 12px 30px -14px rgba(242, 107, 58, 0.9);
}

.btn-accent:hover {
  color: #1a0a03;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 84px 0 20px;
  text-align: center;
  overflow: hidden;
}

/* soft top light, the way macOS marketing pages lift the header area */
.hero::before {
  content: "";
  position: absolute;
  inset: -320px 0 auto 50%;
  width: 900px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* accent phrase: same face, quieter colour — no gradient text, no mono clash */
.hero h1 .grad {
  white-space: nowrap;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: var(--brand);
}

.hero-sub {
  margin: 20px auto 0;
  max-width: 620px;
  color: var(--text-dim);
  font-size: 1.075rem;
  line-height: 1.55;
  letter-spacing: -0.006em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  justify-content: center;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ---------- macOS window frame (hero, steps, demo) ---------- */

.window {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.window-lights {
  display: flex;
  gap: 8px;
}

.window-lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4b4b50;
}

.window-lights i:nth-child(1) {
  background: #ff5f57;
}

.window-lights i:nth-child(2) {
  background: #febc2e;
}

.window-lights i:nth-child(3) {
  background: #28c840;
}

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.window img,
.window video {
  display: block;
  width: 100%;
  height: auto;
}

/* 880px = native GIF size, so the animation stays pixel-crisp */
.hero-shot {
  margin: 52px auto 0;
  max-width: 920px;
}

.hero-shot .window img {
  border-radius: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 620px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.section-sub {
  margin-top: 14px;
  color: var(--text-dim);
}

/* ---------- Feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: background 200ms ease, border-color 200ms ease;
}

.card:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  margin-bottom: 14px;
}

.card-icon svg {
  width: 17px;
  height: 17px;
}

.card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

.card code {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 5px;
  border-radius: 5px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- Split media section ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 11px;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.checklist svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--brand-bright);
}

.checklist strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Steps (visual rows) ---------- */

.step-rows {
  display: grid;
  gap: 64px;
}

.step-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.step-row:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
}

.step-row:nth-child(even) .step-shot {
  order: 2;
}

.step-row:nth-child(even) .step-copy {
  order: 1;
}

.step-shot {
  border-radius: 0;
  border: 0;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

.step-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.step-copy h3 {
  margin: 14px 0 10px;
  font-size: 1.16rem;
}

.step-copy p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}

.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-faint);
}

.step-row .window {
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

@media (max-width: 900px) {
  .step-rows {
    gap: 44px;
  }

  .step-row,
  .step-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .step-row .step-shot,
  .step-row:nth-child(even) .step-shot {
    order: 0;
  }

  .step-row:nth-child(even) .step-copy {
    order: 0;
  }
}

/* ---------- Benefit grid ---------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 16px;
}

.benefit {
  padding: 26px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.benefit h3 {
  margin-bottom: 8px;
}

.benefit p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- Frameworks ---------- */

.frameworks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-dim);
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  max-width: 880px;
}

.plan {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: none;
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.plan h3 {
  font-size: 1.02rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 12px 0 6px;
}

.price .amount {
  font-size: 2.6rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.price .strike {
  color: var(--text-faint);
  text-decoration: line-through;
  font-size: 1.1rem;
}

.price .unit {
  color: var(--text-faint);
  font-size: 0.84rem;
}

.plan-note {
  color: var(--text-faint);
  font-size: 0.83rem;
  margin-bottom: 22px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 11px;
}

.plan li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.plan li svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--brand-bright);
}

.plan li.off {
  color: var(--text-faint);
}

.plan li.off svg {
  color: var(--text-faint);
}

.plan .btn {
  width: 100%;
  margin-top: auto;
}

.coupon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(242, 107, 58, 0.5);
  background: var(--accent-soft);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.coupon code {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 780px;
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  padding: 0 20px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.faq details[open] {
  border-color: var(--line-strong);
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  padding: 17px 0;
  font-weight: 600;
  font-size: 0.96rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--brand-bright);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .answer {
  padding: 0 0 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.faq .answer code {
  color: var(--brand-bright);
  background: rgba(36, 164, 127, 0.12);
  padding: 1px 5px;
  border-radius: 5px;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding: 56px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  text-align: center;
  overflow: hidden;
}

.cta-band h2 {
  max-width: 720px;
  margin: 0 auto;
}

.cta-band p {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--text-dim);
}

.cta-band .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 620px) {
  .cta-band {
    padding: 40px 22px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 34px;
  margin-top: 40px;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}

@media (max-width: 460px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 0.87rem;
  max-width: 300px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: -0.005em;
  color: var(--text-faint);
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- Legal page ---------- */

.legal {
  padding: 64px 0 80px;
}

.legal .wrap {
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal .updated {
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.legal h2 {
  font-size: 1.22rem;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  padding-left: 20px;
  color: var(--text-dim);
  display: grid;
  gap: 8px;
}

.legal code {
  color: var(--brand-bright);
  background: rgba(36, 164, 127, 0.12);
  padding: 1px 5px;
  border-radius: 5px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  margin-bottom: 26px;
  color: var(--text-dim);
}

.back-link:hover {
  color: var(--text);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 1;
}

html.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

html.reveal-enabled .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.reveal-enabled .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .header-cta:hover {
    transform: none;
  }
}

/* ---------- Mobile header: logo · theme · menu ---------- */

@media (max-width: 820px) {
  .site-header .nav {
    order: 4;
  }

  .site-header .theme-toggle {
    order: 2;
    margin-left: auto;
  }

  /* the hero carries the install CTA on small screens */
  .site-header .header-cta {
    display: none;
  }

  .site-header .nav-toggle {
    order: 3;
    margin-left: 8px;
  }
}
