/* stater.sh shared styles. Colours, type, space, radii, shadows and motion come from
   /css/tokens.css by name only; never paste a value here. Class vocabulary: see the
   site spec (section 2.8). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/26px var(--font-sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1 { font: 700 clamp(30px, 4.5vw, 44px)/1.12 var(--font-display); letter-spacing: -0.01em; }
h2 { font: 700 clamp(24px, 3.2vw, 34px)/1.18 var(--font-display); letter-spacing: -0.005em; }
h3 { font: 600 18px/26px var(--font-sans); }
h4 { font: 600 16px/24px var(--font-sans); }
em { font-style: normal; font-weight: 600; }
strong, b { font-weight: 600; }
code, kbd, samp, pre { font-family: var(--font-mono); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4);
  background: var(--surface-raised); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

/* ---------- Layout ---------- */
.container, .container-narrow {
  width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}
.container { max-width: 1160px; }
.container-narrow { max-width: 760px; }
@media (min-width: 600px) { .container, .container-narrow { padding-inline: 24px; } }
@media (min-width: 1024px) { .container, .container-narrow { padding-inline: 32px; } }

.section { padding-block: 48px; }
@media (min-width: 900px) { .section { padding-block: 80px; } }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-head { padding-top: 48px; padding-bottom: var(--space-6); }
@media (min-width: 900px) { .page-head { padding-top: 72px; padding-bottom: var(--space-7); } }
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin-top: var(--space-4); }
.page-head .btn-row { margin-top: var(--space-5); }

.section-head { max-width: 720px; margin-bottom: var(--space-6); }
.section-head .lead { margin-top: var(--space-3); }

.grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.split { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); }
  .split-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split-reverse > :first-child { order: 2; }
  .split-reverse > :last-child { order: 1; }
}

.breadcrumbs { padding-top: var(--space-5); font-size: 14px; line-height: 20px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-1) 0; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--ink-muted); min-width: 0; }
.breadcrumbs li + li::before { content: "›"; padding-inline: var(--space-2); color: var(--ink-subtle); }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.breadcrumbs + .page-head { padding-top: var(--space-6); }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 var(--space-3);
  font: 700 12px/16px var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.display { font: 700 clamp(34px, 6vw, 56px)/1.08 var(--font-display); letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 680px; }
@media (max-width: 599px) { .lead { font-size: 17px; line-height: 26px; } }
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 14px; line-height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 15px/20px var(--font-sans);
  text-align: center; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-overlay); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
@media (max-width: 399px) {
  .btn-row .btn { width: 100%; white-space: normal; }
}

/* ---------- Links and icons ---------- */
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.link-more::after {
  content: "";
  width: 7px; height: 7px; flex: none;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 1px;
  transition: transform var(--duration-fast) var(--ease-standard);
}
.link-more:hover, .link-more:focus-visible { color: var(--accent-hover); text-decoration: underline; }
.link-more:hover::after { transform: translateX(2px) rotate(45deg); }
.card-foot .link-more, .link-list .link-more { min-height: 44px; }
.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }

.icon {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.125em;
  flex: none;
}

/* ---------- Cards and tiles ---------- */
.card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-width: 0;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.card-title { font: 600 18px/26px var(--font-sans); color: var(--ink); margin: 0; }
.card-body { color: var(--ink-muted); }
.card-meta { font-size: 14px; line-height: 20px; color: var(--ink-subtle); }
.card-foot {
  margin-top: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-5);
  position: relative; z-index: 1;
}
.card-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:hover { color: inherit; }
.card:has(.card-link:hover) { border-color: var(--line-strong); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.card-foot a, .card-foot button { position: relative; z-index: 1; }

.dom-tile { display: inline-flex; width: 32px; height: 32px; flex: none; border-radius: var(--radius-sm); }
.dom-tile img { width: 100%; height: 100%; }
.dom-tile-lg { width: 40px; height: 40px; }

.tag {
  display: inline-flex; align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--neutral-soft);
  color: var(--ink-muted);
  font: 500 12px/16px var(--font-sans);
  white-space: nowrap;
}
.tag-accent { background: var(--accent-soft); color: var(--accent); }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink); }
.status::before { content: ""; flex: none; width: 10px; height: 10px; }
.status-positive::before { background: var(--positive); border-radius: 50%; }
.status-caution::before { background: var(--caution); width: 12px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.status-critical::before { background: var(--critical); width: 11px; height: 11px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.status-info::before { border: 2px solid var(--info); border-radius: 50%; }
.status-neutral::before { border: 2px dashed var(--neutral); border-radius: 50%; }

/* ---------- Media ---------- */
.frame {
  margin: 0;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-width: 0;
}
.frame-bar {
  display: flex; align-items: center; gap: var(--space-3);
  height: 36px; padding: 0 var(--space-3);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.frame-dots { position: relative; flex: none; width: 8px; height: 8px; margin-right: 32px; border-radius: 50%; background: var(--line-strong); }
.frame-dots::before, .frame-dots::after {
  content: ""; position: absolute; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong);
}
.frame-dots::before { left: 14px; }
.frame-dots::after { left: 28px; }
.frame-url {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 400 12px/16px var(--font-mono); color: var(--ink-subtle);
}
.frame img { display: block; width: 100%; height: auto; }
.frame figcaption {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 14px; line-height: 20px; color: var(--ink-muted);
}

/* ---------- Prose ---------- */
.prose { overflow-wrap: anywhere; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font: 700 24px/32px var(--font-display); margin-top: 48px; }
.prose h3 { font: 600 18px/26px var(--font-sans); margin-top: var(--space-6); }
.prose h4 { font: 600 16px/24px var(--font-sans); margin-top: var(--space-5); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: var(--space-3); }
.prose p, .prose li { font-size: 16px; line-height: 26px; max-width: 72ch; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: var(--space-2); }
.prose li > ul, .prose li > ol { margin-top: var(--space-2); }
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { color: var(--accent-hover); }
.prose a.link-more, .prose a.heading-anchor { text-decoration: none; }
.prose strong { font-weight: 600; }
.prose em { font-style: normal; font-weight: 600; }
.prose blockquote { padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink-muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--space-6); }
.prose dl dt { font-weight: 600; }
.prose dl dd { margin: var(--space-1) 0 var(--space-3) 0; color: var(--ink-muted); }
.prose kbd {
  display: inline-block; padding: 0 6px; min-width: 1.6em; text-align: center;
  font: 500 0.85em/1.6 var(--font-mono);
  background: var(--surface-raised); border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: var(--radius-xs); color: var(--ink);
}
.prose :not(pre) > code {
  font: 400 0.9em/1 var(--font-mono);
  padding: 2px 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow-wrap: anywhere;
}
.prose table { margin: 0; }
.prose img { border-radius: var(--radius-md); border: 1px solid var(--line); }

/* Callouts */
.callout {
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.callout > * + * { margin-top: var(--space-2); }
.callout::before { content: ""; position: absolute; left: var(--space-4); top: calc(var(--space-4) + 8px); width: 10px; height: 10px; }
.callout-title { font-weight: 600; color: var(--ink); }
.callout-info { background: var(--info-soft); }
.callout-info::before { border: 2px solid var(--info); border-radius: 50%; }
.callout-positive { background: var(--positive-soft); }
.callout-positive::before { background: var(--positive); border-radius: 50%; }
.callout-caution { background: var(--caution-soft); }
.callout-caution::before { background: var(--caution); width: 12px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.callout-critical { background: var(--critical-soft); }
.callout-critical::before { background: var(--critical); width: 11px; height: 11px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* Code blocks */
.codeblock { position: relative; }
.codeblock pre {
  margin: 0;
  padding: var(--space-4);
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font: 400 14px/22px var(--font-mono);
  color: var(--ink);
  tab-size: 2;
}
.codeblock pre code { font: inherit; background: none; border: 0; padding: 0; white-space: pre; overflow-wrap: normal; }
.copy-btn {
  display: none;
  position: absolute; top: 5px; right: 5px; z-index: 1;
  min-height: 44px; min-width: 64px; padding: 0 12px;
  align-items: center; justify-content: center;
  background: var(--surface-raised); color: var(--ink-muted);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 600 13px/16px var(--font-sans);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.copy-btn:hover { color: var(--ink); border-color: var(--line-strong); }
html.js .copy-btn { display: inline-flex; }
/* The copy button sits in a strip above the first line, so a long line scrolled
   sideways never runs under it. */
html.js .codeblock pre { padding-top: 54px; }

/* Tables */
.table-wrap {
  position: relative; /* keeps .visually-hidden cell text inside the scroll box */
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  max-width: 100%;
}
.table-wrap table { border: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--surface); font-weight: 600; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
th[align="right"], td[align="right"] { text-align: right; }
th[align="center"], td[align="center"] { text-align: center; }
th[align="left"], td[align="left"] { text-align: left; }
caption { caption-side: top; text-align: left; padding: var(--space-3) 12px; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); /* solid: with no blur, a see-through header shows the text scrolling under it */
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-4); min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; border-radius: var(--radius-xs); }
.logo-svg { display: block; height: 26px; width: auto; }
.logo-upper { fill: var(--logo-upper); }
.logo-lower { fill: var(--logo-lower); }
.logo-word { fill: var(--logo-word); }
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 16px;
  background: var(--surface-raised); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 600 15px/20px var(--font-sans);
  cursor: pointer;
}
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--space-1); }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink-muted); text-decoration: none; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-standard);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links [data-nav][aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.nav-cta { min-height: 44px; margin-left: var(--space-3); }

@media (max-width: 899px) {
  html.js .nav-toggle { display: inline-flex; }
  html.js .nav { flex-wrap: nowrap; position: relative; }
  html.js .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-2) 16px var(--space-4);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  html.js .nav-links.open { display: flex; }
  html.js .nav-links a:not(.btn) { min-height: 48px; padding: 0 var(--space-2); border-bottom: 1px solid var(--line); border-radius: 0; }
  html.js .nav-links [data-nav][aria-current] { text-underline-offset: 6px; }
  html.js .nav-cta { margin: var(--space-4) 0 0; width: 100%; }
  html:not(.js) .nav { padding-block: var(--space-2); }
  html:not(.js) .nav-links { width: 100%; margin-inline: -12px; }
  html:not(.js) .nav-cta { margin-left: 12px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  html.js .nav-links { padding-inline: 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 0;
  padding: var(--space-7) 0 var(--space-5);
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 14px; line-height: 20px;
}
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); } }
.footer-brand { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; max-width: 320px; }
.footer-brand p { color: var(--ink-muted); }
.footer-brand p.subtle { color: var(--ink-subtle); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.footer-head { margin: 0 0 var(--space-1); font: 700 12px/16px var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.footer-col a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
@media (pointer: coarse), (max-width: 899px) { .footer-col a { min-height: 44px; } .footer-col { gap: 0; } }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-5);
  margin-top: var(--space-7); padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--ink-subtle);
}
.footer-bottom a { color: var(--ink-muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Page parts ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 56px; padding: var(--space-3) 0;
  font: 600 17px/24px var(--font-sans); color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 9px; height: 9px; margin-right: 6px;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--duration-base) var(--ease-standard);
}
.faq details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq-body { padding: 0 0 var(--space-5); color: var(--ink-muted); max-width: 72ch; }
.faq-body > * + * { margin-top: var(--space-3); }
.faq-body code { font: 400 0.9em/1 var(--font-mono); padding: 2px 5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xs); }

.cta-band {
  display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-6) var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .cta-band { padding: var(--space-7) var(--space-8); } }
.cta-band .lead { max-width: 640px; }

/* Plans */
.plans { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-width: 0;
}
.plan-name { margin: 0; font: 700 20px/28px var(--font-display); color: var(--ink); }
.plan-price { font: 700 26px/32px var(--font-display); color: var(--ink); }
.plan-limits { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 22px; }
.plan-list { list-style: none; padding: 0; margin: 0; color: var(--ink-muted); }
.plan-list li + li { margin-top: var(--space-2); }
.plan-cta { margin-top: auto; padding-top: var(--space-3); }
.plan-cta .btn { width: 100%; }

.plan-table { min-width: 640px; }
.plan-table th, .plan-table td { vertical-align: middle; }
.plan-table thead th { white-space: nowrap; }
.plan-table td { text-align: center; }
.plan-table th[scope="row"] { font-weight: 400; color: var(--ink); min-width: 220px; }
.plan-table thead th:not(:first-child) { text-align: center; font: 700 16px/22px var(--font-display); }
.plan-table .row-key th[scope="row"], .plan-table .row-key td { font-weight: 600; }
.plan-table th:first-child, .plan-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface-raised); }
.plan-table thead th:first-child { background: var(--surface); }
.plan-table .icon-tick { color: var(--accent); width: 18px; height: 18px; vertical-align: middle; }
.plan-table .group-row th { background: var(--surface); font: 700 12px/16px var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 599px) {
  .plan-table { min-width: 520px; font-size: 14px; line-height: 20px; }
  .plan-table th[scope="row"] { min-width: 0; width: 150px; }
  .plan-table th, .plan-table td { padding: 8px 10px; }
}

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 52px);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: var(--space-4); top: var(--space-4);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font: 700 20px/1 var(--font-display); color: var(--ink);
  background: var(--surface-raised);
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.steps h3 { font: 600 17px/24px var(--font-sans); }
.steps p { color: var(--ink-muted); margin-top: var(--space-1); }

/* Contents list on long pages */
.contents { margin-top: var(--space-5); }
.contents ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.contents a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  background: var(--surface-raised); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-full);
  font-size: 14px; line-height: 20px; font-weight: 500;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.contents a:hover { border-color: var(--line-strong); }
.contents img { width: 20px; height: 20px; border-radius: 4px; }
@media (pointer: coarse) { .contents a { min-height: 44px; } }

/* Bullet lists of facts on marketing pages */
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.facts li { position: relative; padding-left: 22px; max-width: 72ch; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.facts code, .card code { font: 400 0.9em/1 var(--font-mono); padding: 2px 5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xs); overflow-wrap: anywhere; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Small helpers used by the marketing pages ---------- */
.section-tight { padding-bottom: 48px; }
.plans-note { margin-top: var(--space-4); font-size: 15px; line-height: 22px; }
.link-list { margin-top: var(--space-4); }
.after-table { margin-top: var(--space-3); max-width: 72ch; }
.tax-note { margin-top: var(--space-6); max-width: 760px; }
.plan-table .dash { color: var(--ink-subtle); }
.feature-area h2 { scroll-margin-top: 80px; }
[id] { scroll-margin-top: 80px; }
.not-found { padding-bottom: 96px; }
@media (min-width: 900px) { .not-found { padding-top: 120px; padding-bottom: 160px; } }
