/* Schibsted Grotesk, SIL Open Font License. Files in assets/fonts/. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-400.woff2") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-500.woff2") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-600.woff2") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-700.woff2") format("woff2");
}

:root {
  --paper: #f6f7f9;
  --surface: #ffffff;
  --ink: #12151c;
  --ink-soft: #2c3340;
  --ink-mute: #3d4554;
  --line: #d5dbe4;
  --line-strong: #b7c0ce;
  --accent: #577399;
  --accent-hover: #4a6282;
  --accent-fill: #577399;
  --accent-fill-strong: #4a6282;
  --accent-soft: #e7eef5;
  --code: #12151c;
  --code-ink: #e7ebf2;
  --header-bg: rgba(246, 247, 249, 0.96);
  --shadow: 0 10px 28px rgba(18, 21, 28, 0.08);
  --radius: 12px;
  --max: 1120px;
  --header-h: 72px;
  --font-body: "Schibsted Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #0e1116;
  --surface: #161a21;
  --ink: #f4f6f8;
  --ink-soft: #d5dae3;
  --ink-mute: #b7c0cc;
  --line: #2c3340;
  --line-strong: #3d4656;
  --accent: #7088a8;
  --accent-hover: #8196b2;
  --accent-fill: #577399;
  --accent-fill-strong: #4a6282;
  --accent-soft: #1c2838;
  --code: #0a0c10;
  --code-ink: #e7ebf2;
  --header-bg: rgba(14, 17, 22, 0.96);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) transparent;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

::selection {
  background: #d5e0ea;
  color: #12151c;
}

[data-theme="dark"] ::selection {
  background: #2a3848;
  color: #f4f6f8;
}

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

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  z-index: 20;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.skip-link:focus {
  transform: none;
  top: 0.75rem;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.nav-wrap,
.nav-right,
.site-nav {
  display: flex;
  align-items: center;
}

.nav-wrap {
  height: var(--header-h);
  justify-content: space-between;
  gap: 1rem;
}

.nav-right {
  gap: 0.25rem;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}

.site-nav {
  gap: 0.15rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: var(--accent-soft);
}

.site-nav a.is-active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.site-nav .btn {
  margin-left: 0.35rem;
  color: #ffffff;
  text-decoration: none;
}

.site-nav .btn:hover,
.site-nav .btn:active {
  color: #ffffff;
  background: var(--accent-fill-strong);
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--accent-soft);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.theme-icon-sun,
.theme-icon-system,
.nav-toggle .icon-close {
  display: none;
}

html[data-theme-next="light"] .theme-icon-moon,
html[data-theme-next="system"] .theme-icon-moon {
  display: none;
}

html[data-theme-next="light"] .theme-icon-sun {
  display: block;
}

html[data-theme-next="system"] .theme-icon-system {
  display: block;
}

.nav-toggle {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-fill);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--accent-fill-strong);
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover,
.btn-secondary:active {
  background: var(--accent-soft);
  color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 40px;
  padding: 0.3rem 0.8rem;
  font-size: 0.9375rem;
}

.hero {
  padding: 4.25rem 0 3.5rem;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-grid > *,
.split > *,
.feature-row > *,
.spec-block > *,
.contact-layout > *,
.pricing-grid > *,
.frame,
.code-sample,
.route {
  min-width: 0;
  max-width: 100%;
}

.lede,
.section-copy {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-bar,
.field-row,
.kv div,
.tree p,
.frame-note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--line);
}

.frame-bar {
  background: var(--paper);
  font-size: 0.8125rem;
  color: var(--ink-mute);
}

.frame-bar strong {
  color: var(--ink);
  font-weight: 600;
}

.field-row span:first-child,
.kv dt,
.tree p {
  color: var(--ink);
}

.field-type,
.kv dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-mute);
}

.kv {
  margin: 0;
}

.kv div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
}

.kv dt {
  font-weight: 600;
}

.tree p {
  margin: 0;
  justify-content: flex-start;
}

.tree .depth-1 {
  padding-left: 1.75rem;
}

.tree .depth-2 {
  padding-left: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.frame-note {
  margin: 0;
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.route {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--code);
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  overflow-x: auto;
}

.method {
  flex: none;
  background: var(--accent-fill-strong);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.section {
  padding: 4.75rem 0;
}

.section-follow {
  padding-top: 0;
}

.more-link {
  margin-top: 1.25rem;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.band > .container {
  width: min(var(--max), 100%);
}

.icon {
  width: 48px;
  height: 48px;
  display: block;
  flex: none;
  overflow: visible;
  color: var(--ink);
}

.scene {
  display: block;
  width: 100%;
  height: auto;
}

.schema-row,
.schema-rule,
.host-app,
.host-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--line);
}

.schema-row {
  flex-wrap: wrap;
}

.schema-name.is-title,
.host-name {
  font-weight: 600;
}

.schema-chip {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0.12rem 0.5rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.schema-rule {
  margin: 0;
  justify-content: flex-start;
  color: var(--ink-mute);
  font-size: 0.8125rem;
}

.host-app {
  justify-content: flex-start;
  gap: 0.85rem;
  border-bottom: 0;
  padding-bottom: 0.35rem;
}

.host-mark {
  width: 52px;
  height: 44px;
  flex: none;
  color: var(--ink);
}

.host-name {
  display: block;
  font-size: 1.125rem;
}

.host-kind,
.host-line dt {
  display: block;
  color: var(--ink-mute);
  font-size: 0.8125rem;
  font-weight: 400;
}

.host-sheet dl {
  margin: 0;
}

.host-line {
  margin: 0;
}

.host-line dd {
  margin: 0;
  font-weight: 600;
}

.git-sheet {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  padding: 1rem;
  align-items: start;
}

.git-log {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.15rem 0.85rem;
  border-left: 1.5px solid var(--ink);
}

.git-log li {
  position: relative;
  margin: 0;
  padding: 0.4rem 0;
  font-weight: 600;
}

.git-log li + li {
  font-weight: 500;
}

.git-dot {
  position: absolute;
  left: calc(-0.85rem - 4.5px);
  top: 0.72rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.git-dot.is-open {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.git-path {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.git-diff {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.git-diff code {
  font-size: inherit;
}

.diff-del {
  color: var(--ink-mute);
}

.diff-add {
  color: var(--ink);
  font-weight: 600;
}

.heading-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.heading-row h2 {
  margin: 0;
}

.feature-copy ul,
.spec-copy ul,
ul.spec-copy,
.side-card ul,
.price-card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-copy li,
.spec-copy li,
ul.spec-copy li,
.side-card li,
.price-card li {
  position: relative;
  padding-left: 1rem;
  margin: 0.45rem 0;
  color: var(--ink-soft);
}

.feature-copy li::before,
.spec-copy li::before,
ul.spec-copy li::before,
.side-card li::before,
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.35rem;
  height: 1px;
  background: var(--ink-mute);
}

.tool-index {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
}

.tool-index a {
  display: grid;
  grid-template-columns: 3rem 11rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.tool-index a:hover .tool-name {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.tool-name {
  font-weight: 600;
}

.tool-job {
  color: var(--ink-soft);
}

.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.tab {
  min-height: 40px;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-mute);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tab.is-on {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.code-sample {
  margin: 0;
  padding: 1.15rem 1.2rem;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--code);
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.code-sample code {
  font-size: inherit;
  color: inherit;
}

.price-strip,
.pricing-grid,
.rate-grid,
.include-grid {
  display: grid;
  gap: 1rem;
}

.price-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.75rem;
}

.price-strip a,
.price-card,
.rate,
.include,
.side-card,
.auth-banner,
.draft {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-strip a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

.price-strip a:hover {
  border-color: var(--ink);
}

.price-name,
.rate p,
.include p,
.price-note,
.frame-bar,
.small {
  color: var(--ink-mute);
}

.price-num,
.price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.price-num {
  font-size: 2.4rem;
  line-height: 1.1;
}

.price {
  margin: 0.2rem 0 0.4rem;
  font-size: 2.75rem;
  line-height: 1;
}

.price span,
.price-num span,
.price-meta {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-mute);
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.3rem 1.3rem;
}

.price-card .btn {
  margin-top: auto;
}

.price-card ul {
  margin-bottom: 1.25rem;
}

.compare-wrap {
  margin-top: 1.5rem;
  padding: 0.75rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.975rem;
}

.compare th,
.compare td {
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-weight: 500;
  background: var(--surface);
}

.compare th:first-child,
.compare td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  font-weight: 600;
  min-width: 15rem;
  border-right: 1px solid var(--line);
}

.compare thead th {
  color: var(--ink-mute);
  font-size: 0.8125rem;
  font-weight: 600;
}

.compare td.hi,
.compare th.hi {
  background: var(--accent-soft);
}

.compare tr.group th {
  position: static;
  text-align: left;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 0;
  border-right: 0;
  padding-top: 1.2rem;
  padding-bottom: 0.35rem;
}

.rate-grid,
.include-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.include-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rate,
.include {
  padding: 1.1rem 1.15rem 0.4rem;
}

.faq-list {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-button::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--ink-mute);
  border-bottom: 1.5px solid var(--ink-mute);
  transform: rotate(45deg);
  flex: none;
}

.faq-item.is-open .faq-button::after {
  transform: rotate(225deg);
  margin-top: 0.3rem;
}

.faq-answer {
  display: none;
  padding: 0 0 1rem;
  max-width: 42rem;
  color: var(--ink-soft);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.closer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  padding-top: 0.5rem;
}

.closer p {
  margin-bottom: 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

.page-hero {
  padding: 3.75rem 0 0.5rem;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.7rem);
  max-width: 18ch;
}

.feature-row,
.spec-block {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  padding: 3.4rem 0;
  border-top: 1px solid var(--line);
}

.feature-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.feature-row.is-flip .feature-copy {
  order: 2;
}

.spec-block {
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
  gap: 1.25rem;
  align-items: start;
}

.side-card,
.auth-banner {
  padding: 1.25rem 1.3rem;
}

.side-card .btn {
  margin-top: 0.35rem;
}

.address {
  margin: 0 0 1.25rem;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.address a {
  color: var(--ink);
  text-decoration: none;
}

.address a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field-required {
  font-weight: 500;
  color: var(--ink-mute);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.draft {
  padding: 0.9rem 1rem;
}

.draft-label {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-mute);
}

.draft pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.form-status {
  margin: 0;
  color: var(--ink-soft);
}

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-col strong {
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-nav .btn {
    margin: 0.35rem 0 0;
  }

  .hero-grid,
  .split,
  .feature-row,
  .spec-block,
  .contact-layout,
  .pricing-grid,
  .price-strip,
  .rate-grid,
  .footer-grid,
  .git-sheet {
    grid-template-columns: 1fr;
  }

  .feature-row.is-flip .feature-copy,
  .feature-row.is-flip .frame {
    order: 0;
  }

  .feature-row.is-flip .frame {
    order: 1;
  }

  .include-grid {
    grid-template-columns: 1fr;
  }

  .closer {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 2rem));
  }

  .tool-index a {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .tool-job {
    grid-column: 2;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
}

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

  .btn:active {
    transform: none;
  }
}
