/* ==========================================================================
   Penlid design system
   Premium stationery palette: ink, paper, gold leaf, verdigris.
   Deliberately not the purple-gradient AI-SaaS look.
   ========================================================================== */

:root {
  /* --- Core palette --- */
  --ink-900: #0b0c0e;
  --ink-800: #14161a;
  --ink-700: #1d2026;
  --ink-600: #2a2e37;
  --ink-500: #3d434f;
  --ink-400: #5a6170;
  --ink-300: #838b9a;
  --ink-200: #b4bac5;
  --ink-100: #dcdfe5;
  --ink-050: #eef0f3;

  --paper: #fbfaf7;
  --paper-warm: #f5f2ec;
  --paper-edge: #e8e3d9;

  /* Gold leaf — the signature accent */
  --gold-600: #8a6d28;
  --gold-500: #a8853a;
  --gold-400: #c8a45c;
  --gold-300: #dcc189;
  --gold-200: #ecdcb8;
  --gold-050: #faf4e6;

  /* Verdigris — data, verified, measured */
  --verde-600: #1f6f5c;
  --verde-500: #2fa98c;
  --verde-400: #52c3a7;
  --verde-100: #d6f1e8;

  /* Signal colours */
  --rust-500: #c05621;
  --rust-100: #fbe8dc;
  --crimson-500: #b3384a;
  --crimson-100: #fadfe3;

  /* --- Semantic tokens (light) --- */
  --bg: var(--paper);
  --bg-raised: #ffffff;
  --bg-sunken: var(--paper-warm);
  --bg-inverse: var(--ink-900);
  --border: var(--paper-edge);
  --border-strong: #d6cfc0;
  --text: var(--ink-900);
  /* One step darker than the obvious choice: ink-300 as subtle text lands at
     3.28:1 on paper, under the 4.5:1 AA floor for text at this size. */
  --text-muted: var(--ink-500);
  --text-subtle: var(--ink-400);
  --text-inverse: var(--paper);
  --accent: var(--gold-500);
  --accent-hover: var(--gold-600);
  --accent-bg: var(--gold-050);
  --data: var(--verde-600);
  --data-bg: var(--verde-100);

  /* --- Type --- */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
                  Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace,
               "Cascadia Mono", Consolas, "Courier New", monospace;

  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.81rem + 0.14vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.18vw, 1.09rem);
  --step-1:  clamp(1.19rem, 1.13rem + 0.29vw, 1.37rem);
  --step-2:  clamp(1.41rem, 1.32rem + 0.46vw, 1.73rem);
  --step-3:  clamp(1.68rem, 1.54rem + 0.70vw, 2.18rem);
  --step-4:  clamp(2.00rem, 1.78rem + 1.06vw, 2.74rem);
  --step-5:  clamp(2.38rem, 2.05rem + 1.58vw, 3.45rem);
  --step-6:  clamp(2.83rem, 2.35rem + 2.31vw, 4.35rem);

  /* --- Space --- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 12, 14, 0.05),
               0 1px 3px rgba(11, 12, 14, 0.04);
  --shadow: 0 2px 4px rgba(11, 12, 14, 0.04),
            0 6px 16px rgba(11, 12, 14, 0.07);
  --shadow-lg: 0 4px 8px rgba(11, 12, 14, 0.05),
               0 16px 40px rgba(11, 12, 14, 0.11);

  --measure: 68ch;
  --container: 1180px;
  --container-tight: 760px;

  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
  --dur: 200ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--ink-900);
    --bg-raised: var(--ink-800);
    --bg-sunken: #08090a;
    --bg-inverse: var(--paper);
    --border: var(--ink-700);
    --border-strong: var(--ink-600);
    --text: #f2f0ec;
    /* Shifted a step lighter than the light-mode ramp: on a near-black
       background, ink-400 lands at 3.15:1, under the 4.5:1 AA floor. */
    --text-muted: var(--ink-200);
    --text-subtle: var(--ink-300);
    --text-inverse: var(--ink-900);
    --accent: var(--gold-400);
    --accent-hover: var(--gold-300);
    --accent-bg: rgba(200, 164, 92, 0.10);
    --data: var(--verde-400);
    --data-bg: rgba(47, 169, 140, 0.14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  --bg: var(--ink-900);
  --bg-raised: var(--ink-800);
  --bg-sunken: #08090a;
  --bg-inverse: var(--paper);
  --border: var(--ink-700);
  --border-strong: var(--ink-600);
  --text: #f2f0ec;
  --text-muted: var(--ink-200);
  --text-subtle: var(--ink-300);
  --text-inverse: var(--ink-900);
  --accent: var(--gold-400);
  --accent-hover: var(--gold-300);
  --accent-bg: rgba(200, 164, 92, 0.10);
  --data: var(--verde-400);
  --data-bg: rgba(47, 169, 140, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

:where(a):focus-visible,
:where(button):focus-visible,
:where(input):focus-visible,
:where(textarea):focus-visible,
:where(select):focus-visible,
:where([tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------- type -- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.018em;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }
p, li { max-width: var(--measure); }

a { color: inherit; text-decoration-color: var(--ink-200); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--accent); }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.9em; }
code:not(pre code) {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  padding: 0.12em 0.38em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
pre {
  background: var(--ink-900);
  color: #e8e6e1;
  padding: var(--sp-5);
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.55;
  border: 1px solid var(--ink-700);
}
:root[data-theme="dark"] pre { background: var(--bg-sunken); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) pre { background: var(--bg-sunken); }
}

.lede {
  font-size: var(--step-1);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 58ch;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
}
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); font-size: var(--step--1); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------- layout -- */

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-tight { width: min(100% - 2.5rem, var(--container-tight)); margin-inline: auto; }

.section { padding-block: var(--sp-9); }
.section-sm { padding-block: var(--sp-7); }
.section-sunken { background: var(--bg-sunken); border-block: 1px solid var(--border); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.stack-sm > * + * { margin-top: var(--sp-2); }

.row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: var(--sp-4); align-items: center; justify-content: space-between; flex-wrap: wrap; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.center { text-align: center; }
.center p, .center .lede { margin-inline: auto; }

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.72em 1.35em;
  border-radius: var(--radius);
  font-weight: 550;
  font-size: var(--step--1);
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink-900);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--ink-700); box-shadow: var(--shadow); }
:root[data-theme="dark"] .btn-primary { background: var(--gold-400); color: var(--ink-900); }
:root[data-theme="dark"] .btn-primary:hover { background: var(--gold-300); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: var(--gold-400); color: var(--ink-900); }
  :root:not([data-theme="light"]) .btn-primary:hover { background: var(--gold-300); }
}

.btn-secondary {
  background: var(--bg-raised);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--text-muted); box-shadow: var(--shadow-sm); }

.btn-ghost { color: var(--text-muted); padding-inline: 0.75em; }
.btn-ghost:hover { color: var(--text); background: var(--bg-sunken); }

.btn-lg { font-size: var(--step-0); padding: 0.85em 1.7em; }
.btn-sm { font-size: var(--step--2); padding: 0.55em 0.95em; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* -------------------------------------------------------------- cards -- */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.card-pad-lg { padding: var(--sp-6); }
.card-hover { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }

.card-feature h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.card-feature p { color: var(--text-muted); font-size: var(--step--1); }

/* -------------------------------------------------------------- badge -- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.04em;
  padding: 0.3em 0.7em;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  color: var(--text-muted);
  white-space: nowrap;
}
.badge-accent { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.badge-data { background: var(--data-bg); border-color: var(--data); color: var(--data); }
.badge-new { background: var(--rust-100); border-color: var(--rust-500); color: var(--rust-500); }

/* --------------------------------------------------------------- nav --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); padding-block: var(--sp-3); }
.nav-links { display: flex; align-items: center; gap: var(--sp-5); }
.nav-links a {
  text-decoration: none;
  font-size: var(--step--1);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; }
.brand-mark { width: 1.6rem; height: 1.6rem; flex: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
  padding-block: var(--sp-7) var(--sp-6);
  margin-top: var(--sp-9);
}
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1.6fr repeat(auto-fit, minmax(9rem, 1fr)); }
.footer-col h3 { font-family: var(--font-body); font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-subtle); margin-bottom: var(--sp-3); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li + li { margin-top: var(--sp-2); }
.footer-col a { font-size: var(--step--1); color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }

/* ------------------------------------------------------------- forms --- */

.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-size: var(--step--1); font-weight: 550; }
.field .hint { font-size: var(--step--2); color: var(--text-subtle); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.68em 0.85em;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.input::placeholder { color: var(--text-subtle); }
.textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }

.input-group { display: flex; gap: var(--sp-2); }
.input-group .input { flex: 1; min-width: 0; }
@media (max-width: 560px) { .input-group { flex-direction: column; } }

/* -------------------------------------------------------------- table -- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-raised); }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-subtle); background: var(--bg-sunken); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.tick { color: var(--data); font-weight: 600; }
.cross { color: var(--text-subtle); }

/* ------------------------------------------------------------- utils --- */

.hr { border: none; border-top: 1px solid var(--border); margin-block: var(--sp-6); }
.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: -9999px; top: 0; z-index: 100;
  background: var(--ink-900); color: var(--paper); padding: 0.7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.hidden { display: none !important; }

/* ==========================================================================
   Page components
   ========================================================================== */

/* reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- hero -- */

.hero { padding-block: var(--sp-9) var(--sp-8); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 40% 40% -20%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 13%, transparent), transparent 100%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: var(--sp-8); grid-template-columns: 1.08fr 0.92fr; align-items: start; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: var(--sp-7); } }

.hero h1 { font-size: var(--step-6); }
.hero-check { margin-top: var(--sp-2); max-width: 34rem; }
.hero-check .subtle { margin-top: var(--sp-3); max-width: 46ch; }

.hero-trust { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.hero-trust li { font-size: var(--step--1); color: var(--text-muted); display: flex; gap: 0.55rem; align-items: baseline; }

/* measurement panel */
.hero-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: var(--sp-5);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }

.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.metric { display: grid; gap: 0.2rem; }
.metric-label { font-size: var(--step--2); color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.08em; }
.metric-value { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; font-variant-numeric: tabular-nums; }
.metric-unit { font-size: 0.5em; color: var(--text-muted); margin-left: 0.1em; }
.metric-ci { font-size: var(--step--2); color: var(--text-subtle); }
.metric-up { color: var(--data); }

.engine-bars { display: grid; gap: var(--sp-3); }
.engine-bar { display: grid; grid-template-columns: 6.4rem 1fr 2.8rem; gap: var(--sp-3); align-items: center; font-size: var(--step--1); }
.engine-bar .bar { height: 7px; background: var(--bg-sunken); border-radius: 100px; overflow: hidden; border: 1px solid var(--border); }
.engine-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold-300)); border-radius: 100px; }
.engine-bar b { text-align: right; font-weight: 500; color: var(--text-muted); font-size: var(--step--2); }

.panel-foot { border-top: 1px solid var(--border); padding-top: var(--sp-4); }
.panel-foot p { max-width: none; }

/* ---------------------------------------------------------------- stats -- */

.stat-grid { margin-top: var(--sp-7); }
.stat-card { text-align: center; display: grid; gap: var(--sp-3); justify-items: center; }
.stat-num { font-family: var(--font-display); font-size: var(--step-5); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-card p { font-size: var(--step--1); color: var(--text-muted); max-width: 30ch; }
.stat-card cite { font-style: normal; font-size: var(--step--2); color: var(--text-subtle); font-family: var(--font-mono); }

.form-error {
  font-size: var(--step--1);
  color: var(--rust-500);
  background: var(--rust-100);
  border: 1px solid var(--rust-500);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
}
.form-ok {
  font-size: var(--step--1);
  color: var(--data);
  background: var(--data-bg);
  border: 1px solid var(--data);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
}

.callout {
  margin-top: var(--sp-7);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
}
.callout p { max-width: 76ch; color: var(--text-muted); }
.callout strong { color: var(--text); }

/* ----------------------------------------------------------------- loop -- */

.loop-grid { margin-top: var(--sp-7); }
.loop-num {
  display: block; font-family: var(--font-mono); font-size: var(--step--2);
  color: var(--accent); letter-spacing: 0.14em; margin-bottom: var(--sp-3);
}

/* ----------------------------------------------------------- automation -- */

.auto-grid { display: grid; gap: var(--sp-7); grid-template-columns: 1fr 0.92fr; align-items: start; }
@media (max-width: 940px) { .auto-grid { grid-template-columns: 1fr; } }

.check-list, .rail-list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.check-list li { position: relative; padding-left: 1.7rem; color: var(--text-muted); font-size: var(--step--1); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -0.05em;
  color: var(--data); font-weight: 700;
}
.auto-card h4 { margin-bottom: var(--sp-4); }
.rail-list li { padding-left: 1.1rem; position: relative; color: var(--text-muted); font-size: var(--step--1); }
.rail-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.rail-list strong { color: var(--text); }

/* -------------------------------------------------------------- pricing -- */

.price-preview { margin-top: var(--sp-7); }
.price-preview h3 { font-size: var(--step-3); margin-block: var(--sp-3) var(--sp-2); }
.price-preview .card { display: grid; gap: var(--sp-3); align-content: start; }
.price-preview .btn { justify-self: start; margin-top: var(--sp-2); }
.price-featured { border-color: var(--accent); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ cta -- */

.cta-band { background: var(--bg-sunken); border-top: 1px solid var(--border); }
.cta-band h2 { font-size: var(--step-4); }

/* ------------------------------------------------------------- progress -- */

.progress-track {
  height: 8px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold-300));
  border-radius: 100px;
  transition: width 600ms var(--ease);
}

/* --------------------------------------------------------------- table --- */

table td .subtle { display: inline-block; margin-top: 0.15rem; }

/* -------------------------------------------------------------- pricing -- */

.plan-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.plan-toggle button {
  padding: 0.45em 1.1em;
  border-radius: 100px;
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--text-muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.plan-toggle button[aria-pressed="true"] {
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.plans { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-top: var(--sp-7); align-items: start; }
.plan { display: grid; gap: var(--sp-4); align-content: start; position: relative; }
.plan-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-flag {
  position: absolute; top: -0.7rem; left: var(--sp-5);
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.08em;
  background: var(--accent); color: var(--ink-900);
  padding: 0.2em 0.65em; border-radius: 100px; text-transform: uppercase;
}
.plan-name { font-family: var(--font-display); font-size: var(--step-2); }
.plan-price { display: flex; align-items: baseline; gap: 0.3rem; }
.plan-price .amount { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price .per { font-size: var(--step--1); color: var(--text-muted); }
.plan-meter { font-size: var(--step--1); color: var(--text-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: var(--sp-3); }
.plan ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.plan ul li { position: relative; padding-left: 1.45rem; font-size: var(--step--1); color: var(--text-muted); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--data); font-weight: 700; }
.plan ul li.off { color: var(--text-subtle); }
.plan ul li.off::before { content: "—"; color: var(--text-subtle); font-weight: 400; }
.plan .btn { justify-self: stretch; }
