/* Gold Cauldron — goldcauldron.com
   Built on Jacson's design system v1 (tokens inlined from design-system/tokens.css,
   [data-brand="goldcauldron"] dark palette). */

@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ds-font-sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ds-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ds-font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --ds-text-2xs: 11px; --ds-leading-2xs: 16px;
  --ds-text-xs: 12px;  
  --ds-text-sm: 14px;  --ds-leading-sm: 20px;
  --ds-text-md: 16px;  --ds-leading-md: 24px;
  --ds-text-lg: 18px;  --ds-leading-lg: 28px;
  --ds-text-xl: 24px;  --ds-leading-xl: 32px;
  --ds-text-2xl: 32px; --ds-leading-2xl: 38px;
  --ds-text-3xl: 48px; --ds-leading-3xl: 50px;
  --ds-text-4xl: 64px; --ds-leading-4xl: 66px;
  --ds-text-5xl: 88px; --ds-leading-5xl: 90px;

  --ds-weight-medium: 500;
  --ds-weight-semibold: 600;
  --ds-weight-display: 640;
  --ds-weight-bold: 700;
  --ds-tracking-display: -0.025em;
  --ds-tracking-tight: -0.015em;
  --ds-tracking-eyebrow: 0.16em;

  --ds-space-1: 4px; --ds-space-2: 8px; --ds-space-3: 12px; --ds-space-4: 16px;
  --ds-space-5: 20px; --ds-space-6: 24px; --ds-space-8: 32px; --ds-space-10: 40px;
  --ds-space-12: 48px; --ds-space-16: 64px; --ds-space-24: 96px;
  --ds-container: 1120px;
  --ds-gutter: 24px;

  --ds-radius-sm: 6px; --ds-radius-md: 8px; --ds-radius-lg: 12px;
  --ds-radius-2xl: 24px; --ds-radius-pill: 999px;

  --ds-control-lg: 44px;

  --ds-duration-instant: 80ms;
  --ds-duration-fast: 150ms;
  --ds-duration-base: 220ms;
  --ds-duration-slow: 360ms;
  --ds-duration-reveal: 700ms;
  --ds-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ds-reveal-distance: 16px;
}

[data-brand="goldcauldron"] {
  --ds-bg: #0B0A08;
  --ds-surface: #15130F;
  --ds-surface-2: #1D1A15;
  --ds-hover: #26221B;
  --ds-line: #2A251E;
  --ds-line-strong: #3D362B;
  --ds-text: #FAF7F0;
  --ds-text-2: #CFC7B8;
  --ds-text-3: #8C8475;
  --ds-accent: #F59E0B;
  --ds-accent-hover: #FBBF24;
  --ds-accent-soft: rgba(245, 158, 11, 0.12);
  --ds-accent-text: #FBBF24;
  --ds-on-accent: #1A1205;
  --ds-glow: rgba(245, 158, 11, 0.45);
  --ds-glow-ink: rgba(0, 0, 0, 0.5);
  --ds-danger: #F87171;
  --ds-danger-soft: rgba(248, 113, 113, 0.12);
  --ds-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
  --ds-shadow-hero: 0 0 0 1px rgba(255, 240, 210, 0.08), 0 30px 70px -24px rgba(0, 0, 0, 0.8);
  --ds-shadow-float: 0 0 0 1px rgba(255, 240, 210, 0.08), 0 16px 32px -8px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  font-size: var(--ds-text-md);
  line-height: var(--ds-leading-md);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(245, 158, 11, 0.32); color: var(--ds-text); }
:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--ds-container) + 2 * var(--ds-gutter)); margin: 0 auto; padding: 0 var(--ds-gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--ds-font-mono); font-feature-settings: "zero" 0; letter-spacing: 0; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--ds-radius-md);
  background: var(--ds-accent); color: var(--ds-on-accent); font-weight: var(--ds-weight-medium);
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  display: block;
  font-family: var(--ds-font-mono);
  font-size: var(--ds-text-2xs); line-height: var(--ds-leading-2xs);
  text-transform: uppercase; letter-spacing: var(--ds-tracking-eyebrow);
  color: var(--ds-text-3);
}
.display {
  font-size: var(--ds-text-3xl); line-height: 1.04;
  font-weight: var(--ds-weight-display); letter-spacing: var(--ds-tracking-display);
  text-wrap: balance;
}
.h2 {
  font-size: var(--ds-text-2xl); line-height: var(--ds-leading-2xl);
  font-weight: var(--ds-weight-semibold); letter-spacing: var(--ds-tracking-display);
  text-wrap: balance;
}
.h3 { font-size: var(--ds-text-lg); line-height: var(--ds-leading-lg); font-weight: var(--ds-weight-semibold); letter-spacing: -0.005em; }
.lead { font-size: var(--ds-text-lg); line-height: var(--ds-leading-lg); color: var(--ds-text-2); }
/* The one accent phrase per headline: Instrument Serif italic, gold. */
.accent {
  font-family: var(--ds-font-serif); font-style: italic; font-weight: 400;
  font-size: 1.08em; line-height: 0; letter-spacing: 0;
  color: var(--ds-accent-text);
  padding-right: 0.04em;
}
@media (min-width: 640px) {
  .display { font-size: var(--ds-text-4xl); }
  .h2 { font-size: 40px; line-height: 44px; }
}
@media (min-width: 1024px) {
  .display { font-size: var(--ds-text-5xl); line-height: var(--ds-leading-5xl); }
  .h2 { font-size: var(--ds-text-3xl); line-height: var(--ds-leading-3xl); }
}

/* ---------- Buttons (DS .ds-btn) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-2);
  min-height: var(--ds-control-lg); padding: 0 var(--ds-space-5);
  border-radius: var(--ds-radius-md); border: 1px solid var(--ds-line-strong);
  background: var(--ds-surface); color: var(--ds-text);
  font: var(--ds-weight-medium) var(--ds-text-sm)/var(--ds-leading-sm) var(--ds-font-sans);
  white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background var(--ds-duration-fast) var(--ds-ease-out), border-color var(--ds-duration-fast) var(--ds-ease-out), color var(--ds-duration-fast) var(--ds-ease-out), box-shadow var(--ds-duration-fast) var(--ds-ease-out), transform var(--ds-duration-instant) var(--ds-ease-out);
}
.btn:hover { background: var(--ds-hover); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; border-radius: var(--ds-radius-md); }
.btn[disabled] { cursor: progress; opacity: 0.8; }
.btn--lg { min-height: 48px; padding: 0 var(--ds-space-6); font-size: var(--ds-text-md); }
.btn--primary {
  border-color: transparent; background: var(--ds-accent); color: var(--ds-on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 var(--ds-glow-ink), 0 1px 2px var(--ds-glow-ink), 0 16px 40px -16px var(--ds-glow);
}
.btn--primary:hover { background: var(--ds-accent-hover); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--ds-text-2); }
.btn--ghost:hover { background: var(--ds-hover); color: var(--ds-text); }
.btn .mono { font-size: 0.92em; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  border-bottom: 1px solid transparent;
  transition: background var(--ds-duration-base) var(--ds-ease-out), border-color var(--ds-duration-base) var(--ds-ease-out);
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(11, 10, 8, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--ds-line);
}
.site-header.is-open {
  /* backdrop-filter would become the containing block of the fixed sheet, collapsing it to the header's height */
  background: var(--ds-bg); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nav { height: 100%; display: flex; align-items: center; gap: var(--ds-space-2); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: var(--ds-weight-semibold); font-size: 17px; letter-spacing: -0.01em; color: var(--ds-text);
  white-space: nowrap; margin-right: auto;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: var(--ds-text-sm); font-weight: var(--ds-weight-medium); color: var(--ds-text-2);
  border-radius: var(--ds-radius-sm);
  transition: color var(--ds-duration-fast) var(--ds-ease-out);
}
.nav-links a:hover { color: var(--ds-text); }
.nav-text { display: none; }
.nav-cta { padding: 0 14px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin-right: -8px;
  align-items: center; justify-content: center;
  border: 0; border-radius: var(--ds-radius-md); background: transparent; color: var(--ds-text); cursor: pointer;
}
.js .menu-toggle { display: inline-flex; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-menu { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.sheet {
  position: fixed; inset: 64px 0 0; z-index: 49;
  padding: var(--ds-space-4) var(--ds-gutter) var(--ds-space-8);
  background: rgba(11, 10, 8, 0.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  overflow-y: auto;
}
.sheet[hidden] { display: none; }
.sheet.is-open { animation: sheet-in var(--ds-duration-base) var(--ds-ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }
.sheet ul { display: grid; gap: 2px; }
.sheet ul a {
  display: flex; align-items: center; min-height: 52px; padding: 0 var(--ds-space-2);
  font-size: var(--ds-text-xl); font-weight: var(--ds-weight-semibold); letter-spacing: var(--ds-tracking-tight);
  border-bottom: 1px solid var(--ds-line);
}
.sheet .btn { width: 100%; margin-top: var(--ds-space-6); }

@media (max-width: 379px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
  .brand { margin-right: 0; flex: 1 0 0; }
  .nav-actions { flex: 1 0 0; display: flex; justify-content: flex-end; gap: var(--ds-space-2); }
  .nav-text { display: inline-flex; }
  .js .menu-toggle { display: none; }
  .sheet { display: none !important; }
}

/* ---------- Sections ---------- */
.section { padding: var(--ds-space-16) 0; }
.section + .section { border-top: 1px solid var(--ds-line); }
.section-head { max-width: 720px; margin-bottom: var(--ds-space-10); }
.section-head .eyebrow { margin-bottom: var(--ds-space-4); }
.section-head .lead { margin-top: var(--ds-space-4); }
@media (min-width: 1024px) {
  .section { padding: var(--ds-space-24) 0; }
  .section-head { margin-bottom: var(--ds-space-12); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--ds-space-10) 0 var(--ds-space-16); }
.hero-grid { display: grid; gap: var(--ds-space-12); align-items: center; }
.hero-copy .eyebrow { margin-bottom: var(--ds-space-5); }
.hero-copy .lead { margin-top: var(--ds-space-6); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--ds-space-3); margin-top: var(--ds-space-8); }
.micro { margin-top: var(--ds-space-6); font-size: var(--ds-text-sm); line-height: var(--ds-leading-sm); color: var(--ds-text-3); }
.hero-visual { position: relative; isolation: isolate; }
.hero-visual::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; width: 140%; aspect-ratio: 1.4; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(245, 158, 11, 0.20), rgba(245, 158, 11, 0.06) 55%, transparent);
}
.window {
  position: relative; overflow: hidden;
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  border: 1px solid var(--ds-line);
  box-shadow: var(--ds-shadow-hero);
}
/* Operations feed illustration (pure HTML/CSS) */
.ops { margin: 0; }
.ops-bar {
  display: flex; align-items: center; gap: var(--ds-space-3);
  height: 44px; padding: 0 var(--ds-space-4);
  border-bottom: 1px solid var(--ds-line); background: var(--ds-surface-2);
}
.ops-dots { display: inline-flex; gap: 6px; }
.ops-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ds-line-strong); }
.ops-title { font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-sm); }
.ops-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 var(--ds-text-xs)/1 var(--ds-font-mono); color: var(--ds-text-2); text-transform: uppercase; letter-spacing: .08em; }
.ops-live i { width: 7px; height: 7px; border-radius: 50%; background: #FCD34D; box-shadow: 0 0 0 3px rgba(252, 211, 77, .16); }
.ops-feed { list-style: none; margin: 0; padding: var(--ds-space-2) 0; }
.ops-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--ds-space-3); align-items: center;
  padding: 10px var(--ds-space-4);
}
.ops-row + .ops-row { border-top: 1px solid rgba(42, 37, 30, .7); }
.ops-icon {
  width: 36px; height: 36px; border-radius: var(--ds-radius-md); display: grid; place-items: center;
  background: var(--ds-surface-2); border: 1px solid var(--ds-line); color: var(--ds-accent-text);
}
.ops-icon svg { width: 18px; height: 18px; }
.ops-main { display: grid; gap: 2px; min-width: 0; }
.ops-tag { font-size: var(--ds-text-2xs); line-height: var(--ds-leading-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ds-text-3); }
.ops-text { font-size: var(--ds-text-sm); line-height: var(--ds-leading-sm); color: var(--ds-text); }
.ops-side { display: grid; justify-items: end; gap: 4px; }
.ops-time { font-size: var(--ds-text-2xs); color: var(--ds-text-3); white-space: nowrap; }
.ops-pill {
  font: 600 var(--ds-text-2xs)/1 var(--ds-font-sans); padding: 4px 8px; border-radius: var(--ds-radius-pill);
  background: var(--ds-accent-soft); color: var(--ds-accent-text); white-space: nowrap;
}
.ops-pill[data-tone="paid"], .ops-pill[data-tone="booked"] { background: rgba(74, 222, 128, .12); color: #4ADE80; }
@media (prefers-reduced-motion: no-preference) {
  .js .ops-row { animation: ops-in var(--ds-duration-slow) var(--ds-ease-out) both; animation-delay: calc(300ms + var(--i) * 260ms); }
  @keyframes ops-in { from { opacity: 0; transform: translateY(8px); } }
}
@media (max-width: 639px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .ops-row:nth-child(n+7) { display: none; }
  .ops-row { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 10px var(--ds-space-3); }
  .ops-icon { width: 32px; height: 32px; }
}
@media (min-width: 1024px) {
  .hero { padding: var(--ds-space-16) 0 var(--ds-space-24); }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--ds-space-8); }
  .hero-copy { padding: var(--ds-space-8) 0; }
  .window { width: 560px; }
}
@media (min-width: 1280px) { .window { width: 600px; } }

/* ---------- Trades (tabs) ---------- */
.tablist { display: none; }
.js .tablist {
  display: flex; flex-wrap: wrap; gap: var(--ds-space-2); margin-bottom: var(--ds-space-6);
}
.tab {
  flex: none; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ds-line-strong); border-radius: var(--ds-radius-pill);
  background: transparent; color: var(--ds-text-2);
  font-size: var(--ds-text-sm); font-weight: var(--ds-weight-medium); cursor: pointer;
  transition: background var(--ds-duration-fast) var(--ds-ease-out), color var(--ds-duration-fast) var(--ds-ease-out), border-color var(--ds-duration-fast) var(--ds-ease-out), transform var(--ds-duration-instant) var(--ds-ease-out);
}
.tab:hover { color: var(--ds-text); background: var(--ds-hover); }
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--ds-text); border-color: var(--ds-text); color: var(--ds-bg); }
.tab:focus-visible { outline-offset: 2px; border-radius: var(--ds-radius-pill); }
.panels { display: grid; gap: var(--ds-space-4); }
.panel {
  display: grid; gap: var(--ds-space-6);
  padding: var(--ds-space-6);
  border: 1px solid var(--ds-line); border-radius: var(--ds-radius-2xl);
  background: var(--ds-surface);
}
.panel-title { font-size: var(--ds-text-lg); font-weight: var(--ds-weight-semibold); }
.js .panel-title { display: none; }
.js .panels { gap: 0; }
.js .panel {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity var(--ds-duration-base) var(--ds-ease-out), visibility 0s linear var(--ds-duration-base);
}
.js .panel.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.panel .eyebrow { margin-bottom: var(--ds-space-3); }
.panel p:not(.eyebrow) { font-size: var(--ds-text-xl); line-height: var(--ds-leading-xl); font-weight: var(--ds-weight-medium); letter-spacing: var(--ds-tracking-tight); text-wrap: pretty; }
.panel .pain p:not(.eyebrow) { color: var(--ds-text-2); }
.panel .outcome { padding-top: var(--ds-space-6); border-top: 1px solid var(--ds-line); }
.panel .outcome .eyebrow { color: var(--ds-accent-text); }
@media (min-width: 768px) {
  .panel { grid-template-columns: 1fr 1fr; gap: var(--ds-space-10); padding: var(--ds-space-10); }
  .panel-title { grid-column: 1 / -1; }
  .panel .outcome { padding: 0 0 0 var(--ds-space-10); border-top: 0; border-left: 1px solid var(--ds-line); }
}

/* ---------- Cards (problems, steps, quotes) ---------- */
.card-grid { display: grid; gap: var(--ds-space-4); }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: var(--ds-space-6);
  background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-radius-2xl);
  box-shadow: var(--ds-shadow-sm);
  transition: transform var(--ds-duration-slow) var(--ds-ease-out), border-color var(--ds-duration-fast) var(--ds-ease-out);
}
@media (hover: hover) { .card:hover { transform: translateY(-2px); border-color: var(--ds-line-strong); } }
@media (min-width: 640px) { .card { padding: var(--ds-space-8); } }
.problem { display: flex; flex-direction: column; }
.problem .h3 { font-size: var(--ds-text-xl); line-height: var(--ds-leading-xl); letter-spacing: var(--ds-tracking-tight); }
.problem > p { margin-top: var(--ds-space-3); color: var(--ds-text-2); }
.problem .fix { margin-top: auto; padding-top: var(--ds-space-6); }
.problem .fix::before { content: ""; display: block; height: 1px; background: var(--ds-line); margin-bottom: var(--ds-space-5); }
.problem .fix .eyebrow { color: var(--ds-accent-text); margin-bottom: var(--ds-space-2); }
.problem .fix p { color: var(--ds-text); }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; gap: var(--ds-space-4); list-style: none; padding: 0; }
.tile {
  position: relative; padding: var(--ds-space-6);
  border-radius: var(--ds-radius-2xl); border: 1px solid var(--ds-line); background: var(--ds-surface);
  transition: transform var(--ds-duration-fast) var(--ds-ease-out), border-color var(--ds-duration-fast) var(--ds-ease-out);
}
@media (hover: hover) { .tile:hover { transform: translateY(-2px); border-color: var(--ds-line-strong); } }
.icon-well {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--ds-space-5);
  border-radius: var(--ds-radius-lg); background: var(--ds-surface-2); border: 1px solid var(--ds-line); color: var(--ds-accent-text);
}
.icon-well svg { width: 20px; height: 20px; }
.tile .h3 { font-size: var(--ds-text-lg); line-height: var(--ds-leading-lg); letter-spacing: -0.01em; }
.tile p { margin-top: var(--ds-space-2); color: var(--ds-text-2); font-size: 15px; line-height: 23px; }
.tile p a { color: var(--ds-accent-text); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.section-head .lead { margin-top: var(--ds-space-4); max-width: 640px; }
.before { font-size: var(--ds-text-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ds-text-3); margin-right: 4px; }

/* ---------- How it works ---------- */
.steps { position: relative; display: grid; gap: var(--ds-space-8); counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 20px; top: 20px; bottom: 20px; width: 1px; background: var(--ds-line-strong);
}
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: var(--ds-space-5); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--ds-radius-pill);
  background: var(--ds-bg); border: 1px solid var(--ds-line-strong);
  font-size: var(--ds-text-xs); color: var(--ds-accent-text);
}
.step .h3 { padding-top: 6px; }
.step p { margin-top: var(--ds-space-2); color: var(--ds-text-2); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--ds-space-8); }
  .steps::before { left: 40px; right: 0; top: 20px; bottom: auto; width: auto; height: 1px; }
  .step { grid-template-columns: 1fr; gap: var(--ds-space-6); }
  .step .h3 { padding-top: 0; }
}

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: var(--ds-space-8); }
.quote blockquote p {
  font-size: var(--ds-text-lg); line-height: var(--ds-leading-lg); font-weight: var(--ds-weight-medium);
  letter-spacing: -0.005em; text-wrap: pretty;
}
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { display: flex; align-items: center; gap: var(--ds-space-3); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-semibold); color: var(--ds-text); }
.quote figcaption::before { content: ""; width: 24px; height: 1px; background: var(--ds-accent); }
@media (min-width: 640px) { .quote blockquote p { font-size: 20px; line-height: 30px; } }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: var(--ds-space-4); max-width: 920px; }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { display: flex; flex-direction: column; padding: var(--ds-space-8); }
.plan--featured { border-color: rgba(245, 158, 11, 0.7); }
@media (hover: hover) { .plan--featured:hover { border-color: var(--ds-accent); } }
.plan-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-3); min-height: 28px; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--ds-radius-pill); background: var(--ds-accent-soft); color: var(--ds-accent-text);
  font-family: var(--ds-font-mono); font-size: var(--ds-text-2xs); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}
.plan-desc { margin-top: var(--ds-space-2); color: var(--ds-text-2); min-height: 48px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: var(--ds-space-6); }
.price-amount { font-size: var(--ds-text-3xl); line-height: 1; font-weight: var(--ds-weight-bold); letter-spacing: var(--ds-tracking-display); font-variant-numeric: tabular-nums; }
.price-unit { font-size: var(--ds-text-sm); color: var(--ds-text-3); }
.checks { display: grid; gap: var(--ds-space-3); margin: var(--ds-space-8) 0; padding-top: var(--ds-space-6); border-top: 1px solid var(--ds-line); }
.checks li { display: flex; gap: var(--ds-space-3); }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ds-accent); }
.plan .btn { margin-top: auto; width: 100%; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: var(--ds-space-10); }
.faq-layout .section-head { margin: 0; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: 4fr 7fr; gap: var(--ds-space-16); } }
.faq { border-top: 1px solid var(--ds-line); }
.faq details { border-bottom: 1px solid var(--ds-line); interpolate-size: allow-keywords; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-4);
  min-height: 64px; padding: var(--ds-space-4) 0;
  font-size: var(--ds-text-lg); line-height: var(--ds-leading-md); font-weight: var(--ds-weight-semibold);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ds-accent-text); }
.plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: var(--ds-radius-pill); border: 1px solid var(--ds-line-strong); }
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px;
  background: currentColor; border-radius: 1px;
  transition: transform var(--ds-duration-base) var(--ds-ease-out);
}
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
.faq details::details-content {
  height: 0; overflow: clip;
  transition: height var(--ds-duration-slow) var(--ds-ease-out), content-visibility var(--ds-duration-slow) allow-discrete;
}
.faq details[open]::details-content { height: auto; }
.faq .answer { padding: 0 var(--ds-space-10) var(--ds-space-6) 0; color: var(--ds-text-2); }
.faq .answer a { color: var(--ds-accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact { background: var(--ds-surface); border-top: 1px solid var(--ds-line); }
.contact-grid { display: grid; gap: var(--ds-space-10); }
.contact .display { font-size: 40px; line-height: 1.08; }
.contact-copy .lead { margin-top: var(--ds-space-5); }
.alt-line { margin-top: var(--ds-space-8); color: var(--ds-text-2); }
.alt-line a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ds-accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (min-width: 640px) { .contact .display { font-size: var(--ds-text-3xl); } }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--ds-space-16); align-items: start; }
  .contact .display { font-size: var(--ds-text-4xl); line-height: var(--ds-leading-4xl); }
  .contact-copy { position: sticky; top: 112px; }
}
.form-card { padding: var(--ds-space-6); background: var(--ds-bg); border: 1px solid var(--ds-line); border-radius: var(--ds-radius-2xl); box-shadow: var(--ds-shadow-float); }
@media (min-width: 640px) { .form-card { padding: var(--ds-space-8); } }
.lead-form { display: grid; gap: var(--ds-space-5); }
.field-row { display: grid; gap: var(--ds-space-5); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: var(--ds-space-2); font-size: var(--ds-text-sm); font-weight: var(--ds-weight-medium); color: var(--ds-text); }
.field .req { color: var(--ds-accent-text); }
.input {
  display: block; width: 100%; min-height: 44px; padding: 10px 14px;
  background: var(--ds-surface-2); color: var(--ds-text);
  border: 1px solid var(--ds-line-strong); border-radius: var(--ds-radius-md);
  font-size: var(--ds-text-md); line-height: var(--ds-leading-md);
  transition: border-color var(--ds-duration-fast) var(--ds-ease-out), box-shadow var(--ds-duration-fast) var(--ds-ease-out);
}
.input::placeholder { color: var(--ds-text-3); }
.input:hover { border-color: #4D4536; }
.input:focus { outline: none; border-color: var(--ds-accent); box-shadow: 0 0 0 2px var(--ds-accent); }
.input[aria-invalid="true"] { border-color: var(--ds-danger); }
textarea.input { min-height: 112px; resize: vertical; }
.form-note:empty { display: none; }
.notice { padding: 12px 14px; border-radius: var(--ds-radius-md); font-size: var(--ds-text-sm); line-height: var(--ds-leading-sm); }
.notice.error { background: var(--ds-danger-soft); color: #FCA5A5; border: 1px solid rgba(248, 113, 113, 0.3); }
.lead-form .btn { width: 100%; }
.consent { font-size: var(--ds-text-xs); line-height: 18px; color: var(--ds-text-3); }
.success { padding: var(--ds-space-8) 0; font-size: var(--ds-text-xl); line-height: var(--ds-leading-xl); font-weight: var(--ds-weight-semibold); letter-spacing: var(--ds-tracking-tight); }
.success:focus { outline: none; }
.success svg { width: 40px; height: 40px; margin-bottom: var(--ds-space-5); color: var(--ds-accent); }

/* ---------- Footer ---------- */
.site-footer { padding: var(--ds-space-16) 0 var(--ds-space-10); border-top: 1px solid var(--ds-line); }
.footer-grid { display: grid; gap: var(--ds-space-8); }
.footer-line { margin-top: var(--ds-space-3); max-width: 320px; color: var(--ds-text-2); font-size: var(--ds-text-sm); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--ds-space-1); margin-left: -12px; }
.footer-links a, .footer-text a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: var(--ds-text-sm); color: var(--ds-text-2); border-radius: var(--ds-radius-sm); }
.footer-links a:hover, .footer-text a:hover { color: var(--ds-text); }
.footer-text { font-size: var(--ds-text-sm); color: var(--ds-text-3); }
.footer-text a { padding: 0; color: var(--ds-text); }
.footer-bottom { margin-top: var(--ds-space-10); padding-top: var(--ds-space-6); border-top: 1px solid var(--ds-line); font-size: var(--ds-text-sm); color: var(--ds-text-3); }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr auto auto; align-items: start; gap: var(--ds-space-12); }
}

/* ---------- Legal pages ---------- */
.legal { padding: var(--ds-space-12) 0 var(--ds-space-24); }
.legal .container { max-width: calc(720px + 2 * var(--ds-gutter)); }
.legal .eyebrow { margin-bottom: var(--ds-space-4); }
.legal h2 { margin-top: var(--ds-space-10); font-size: var(--ds-text-xl); line-height: var(--ds-leading-xl); font-weight: var(--ds-weight-semibold); letter-spacing: var(--ds-tracking-tight); }
.legal p:not(.eyebrow), .legal li { color: var(--ds-text-2); font-size: 17px; line-height: 28px; }
.legal p:not(.eyebrow) { margin-top: var(--ds-space-4); }
.legal h3 { margin-top: var(--ds-space-8); font-size: var(--ds-text-lg); line-height: var(--ds-leading-lg); font-weight: var(--ds-weight-semibold); }
.legal ul, .legal ol { margin: var(--ds-space-4) 0 0; padding-left: 20px; display: grid; gap: var(--ds-space-2); }
.legal a { color: var(--ds-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.legal p.updated { margin-top: var(--ds-space-4); color: var(--ds-text-3); font-size: var(--ds-text-sm); }
.legal strong { color: var(--ds-text); font-weight: var(--ds-weight-semibold); }

/* ---------- Guides (long-form articles on the legal-page column) ---------- */
.guide h3 { margin-top: var(--ds-space-8); font-size: var(--ds-text-lg); line-height: var(--ds-leading-lg); font-weight: var(--ds-weight-semibold); }
.guide h2 + h3 { margin-top: var(--ds-space-6); }
.guide ol { margin: var(--ds-space-4) 0 0; padding-left: 24px; display: grid; gap: var(--ds-space-2); }
.guide em { font-style: italic; }
.guide p.guide-label {
  display: inline-block; margin-top: var(--ds-space-3); padding: 2px 10px;
  border: 1px solid var(--ds-line-strong); border-radius: var(--ds-radius-pill);
  font-family: var(--ds-font-mono); font-size: var(--ds-text-xs); line-height: var(--ds-leading-sm); color: var(--ds-accent-text);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); margin: 0 0 var(--ds-space-4); padding: 0; font-family: var(--ds-font-mono); font-size: var(--ds-text-xs); }
.breadcrumb li { color: var(--ds-text-3); font-size: inherit; line-height: var(--ds-leading-sm); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--ds-space-2); color: var(--ds-text-3); }
.legal .breadcrumb a { color: var(--ds-text-2); }
.table-wrap { margin-top: var(--ds-space-6); overflow-x: auto; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); background: var(--ds-surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: var(--ds-text-sm); line-height: var(--ds-leading-sm); }
.table-wrap th, .table-wrap td { padding: var(--ds-space-3) var(--ds-space-4); text-align: left; vertical-align: top; border-top: 1px solid var(--ds-line); color: var(--ds-text-2); }
.table-wrap thead th { border-top: 0; background: var(--ds-surface-2); color: var(--ds-text); font-weight: var(--ds-weight-semibold); white-space: nowrap; }
.table-wrap tbody th { color: var(--ds-text); font-weight: var(--ds-weight-semibold); }
.table-wrap--wide table { min-width: 960px; }
.table-wrap--wide td, .table-wrap--wide tbody th { min-width: 130px; }
.guide pre {
  margin-top: var(--ds-space-3); padding: var(--ds-space-4) var(--ds-space-5);
  background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg);
  white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--ds-font-mono); font-size: var(--ds-text-sm); line-height: var(--ds-leading-sm); color: var(--ds-text);
}
.guides-index .lead { margin-top: var(--ds-space-4); }
.guide-list { margin-top: var(--ds-space-10); display: grid; gap: var(--ds-space-4); }
.guides-index .guide-list { padding: 0; }
.guide-list .h3 { margin-top: 0; }
.guide-list .h3 a { color: var(--ds-text); text-decoration: none; }
.guide-list .h3 a:hover { color: var(--ds-accent-text); }
.guide-list .h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-list .card { position: relative; }

/* ---------- Reveals (hidden state only when JS is running) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(var(--ds-reveal-distance));
  transition: opacity var(--ds-duration-reveal) var(--ds-ease-out), transform var(--ds-duration-reveal) var(--ds-ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Hero headline: keep "run automatically." on one line beside the window */
@media (min-width: 1024px) { .hero .display { font-size: 68px; line-height: 70px; } }
@media (min-width: 1280px) { .hero .display { font-size: 76px; line-height: 78px; } }
@media (min-width: 360px) { .hero .display .accent { white-space: nowrap; } }
@media (max-width: 639px) { .hero .display { font-size: 42px; line-height: 46px; } }
