/* =====================================================================
   CL2R ADVISORY — "CLAUDE CODE" DESIGN SYSTEM
   Warm paper canvas · clay accent · editorial serif · terminal detail
   Palette follows the Anthropic brand values:
     #141413 ink · #FAF9F5 paper · #D97757 clay · #6A9BCC blue · #788C5D green
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENS
--------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* — surfaces — */
  --paper:        #FAF9F5;
  --paper-sunk:   #F0EEE6;
  --surface:      #FFFFFF;
  --surface-2:    #F6F5EF;

  /* — ink — */
  --ink:          #141413;
  --ink-2:        #43423E;
  --ink-3:        #73726B;
  --ink-4:        #A5A39A;

  /* — lines — */
  --line:         #E6E4DA;
  --line-2:       #D7D4C7;

  /* — accents — */
  --clay:         #D97757;
  --clay-deep:    #B75C3D;
  --on-clay:      #FFFFFF;
  --clay-tint:    #F7EAE3;
  --clay-line:    #EBC7B4;
  --blue:         #6A9BCC;
  --blue-tint:    #E7EEF6;
  --moss:         #788C5D;
  --moss-tint:    #EAEEE2;

  /* — always-dark terminal — */
  --term-bg:      #1B1A19;
  --term-bg-2:    #232220;
  --term-line:    #37352F;
  --term-ink:     #E9E7DF;
  --term-dim:     #8B887E;
  --term-clay:    #E08A6B;
  --term-moss:    #A3B884;
  --term-blue:    #8FB4DA;

  /* — type — */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* — layout — */
  --wrap:      1160px;
  --wrap-text: 760px;
  --nav-h:     68px;
  --rail-h:    52px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-1: 0 1px 2px rgba(20,20,19,.05), 0 1px 1px rgba(20,20,19,.04);
  --shadow-2: 0 4px 20px rgba(20,20,19,.07), 0 1px 3px rgba(20,20,19,.05);
  --shadow-3: 0 18px 50px rgba(20,20,19,.12), 0 4px 12px rgba(20,20,19,.06);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Dark theme — the Claude app's dark surfaces */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #262624;
    --paper-sunk: #1F1E1D;
    --surface:    #30302E;
    --surface-2:  #383836;

    --ink:        #F4F3EE;
    --ink-2:      #D2D0C6;
    --ink-3:      #A19F96;
    --ink-4:      #7C7A72;

    --line:       #403F3B;
    --line-2:     #4C4B46;

    --clay:       #E08A6B;
    --clay-deep:  #EFA98D;
    --on-clay:    #1B1A19;
    --clay-tint:  rgba(217,119,87,.13);
    --clay-line:  rgba(217,119,87,.34);
    --blue:       #8FB4DA;
    --blue-tint:  rgba(106,155,204,.13);
    --moss:       #A3B884;
    --moss-tint:  rgba(120,140,93,.15);

    --shadow-1: 0 1px 2px rgba(0,0,0,.3);
    --shadow-2: 0 4px 20px rgba(0,0,0,.34);
    --shadow-3: 0 18px 50px rgba(0,0,0,.46);
  }
}

:root[data-theme="dark"] {
  --paper:      #262624;
  --paper-sunk: #1F1E1D;
  --surface:    #30302E;
  --surface-2:  #383836;

  --ink:        #F4F3EE;
  --ink-2:      #D2D0C6;
  --ink-3:      #A19F96;
  --ink-4:      #7C7A72;

  --line:       #403F3B;
  --line-2:     #4C4B46;

  --clay:       #E08A6B;
  --clay-deep:  #EFA98D;
  --on-clay:    #1B1A19;
  --clay-tint:  rgba(217,119,87,.13);
  --clay-line:  rgba(217,119,87,.34);
  --blue:       #8FB4DA;
  --blue-tint:  rgba(106,155,204,.13);
  --moss:       #A3B884;
  --moss-tint:  rgba(120,140,93,.15);

  --shadow-1: 0 1px 2px rgba(0,0,0,.3);
  --shadow-2: 0 4px 20px rgba(0,0,0,.34);
  --shadow-3: 0 18px 50px rgba(0,0,0,.46);
}

/* ---------------------------------------------------------------------
   2. RESET & BASE
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--rail-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-variant-ligatures: common-ligatures;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--clay); color: #fff; }

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

/* ---------------------------------------------------------------------
   3. TYPE
--------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.06; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.65rem); line-height: 1.12; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.125rem; line-height: 1.3; }
h5 { font-size: .9375rem; }

p { text-wrap: pretty; }
p + p { margin-top: .9rem; }

strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.mark { color: var(--clay); font-weight: 600; }

.u-mono { font-family: var(--mono); }
.u-sans { font-family: var(--sans); }
.u-center { text-align: center; }
.u-muted { color: var(--ink-3); }
.u-sm { font-size: .9375rem; }
.u-xs { font-size: .875rem; }

/* Eyebrow / section label — mono, the Claude Code tell */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clay);
  flex: none;
}
.eyebrow--plain::before { display: none; }
.eyebrow--muted { color: var(--ink-3); }
.eyebrow--muted::before { background: var(--ink-4); }

/* ---------------------------------------------------------------------
   4. LAYOUT
--------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--sm { padding: clamp(2.75rem, 5.5vw, 4.5rem) 0; }
.section--sunk { background: var(--paper-sunk); }
.section--edge { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head p { margin-top: .9rem; color: var(--ink-3); font-size: 1.0625rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.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: 1.25rem; }
.row     { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------------------------------------------------------------------
   5. NAV
--------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}

/* Brand — the CL2R Advisory logo, in a light and a dark-background variant */
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand-logo { height: 44px; width: auto; }
.brand--footer { margin-right: 0; }
.brand--footer .brand-logo { height: 56px; }

.brand-logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo--light { display: none; }
  :root:not([data-theme="light"]) .brand-logo--dark  { display: block; }
}
:root[data-theme="dark"] .brand-logo--light { display: none; }
:root[data-theme="dark"] .brand-logo--dark  { display: block; }
:root[data-theme="light"] .brand-logo--light { display: block; }
:root[data-theme="light"] .brand-logo--dark  { display: none; }

.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none;
}
.nav-link {
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: .5rem .7rem;
  border-radius: var(--r-sm);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.is-active { color: var(--clay); }

.nav-tools { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }

.nav-burger { display: none; }

/* ---------------------------------------------------------------------
   6. ANCHOR RAIL (in-page sub-nav)
--------------------------------------------------------------------- */
.rail {
  position: sticky; top: var(--nav-h); z-index: 80;
  height: var(--rail-h);
  background: color-mix(in srgb, var(--paper-sunk) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.rail-inner {
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex; align-items: center; gap: .25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.rail-inner::-webkit-scrollbar { display: none; }
.rail-link {
  flex: none;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .02em;
  color: var(--ink-3);
  padding: .4rem .65rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.rail-link:hover { color: var(--ink); background: var(--surface); }
.rail-link.is-active { color: var(--clay); background: var(--clay-tint); }

/* ---------------------------------------------------------------------
   7. BUTTONS
--------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  padding: .78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform .14s var(--ease), background .16s var(--ease),
              border-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: .9em; }

/* --on-clay flips per theme: white on the light-theme clay, ink on the
   lighter dark-theme clay, so the label stays legible either way. */
.btn-primary { background: var(--clay); color: var(--on-clay); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--clay-deep); box-shadow: var(--shadow-2); }

.btn-outline {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--clay); color: var(--clay); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }

.btn-sm { padding: .55rem .85rem; font-size: .8125rem; border-radius: var(--r-sm); }
.btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Chip row of in-page jumps */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .38rem .8rem;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.chip:hover { border-color: var(--clay); color: var(--clay); }

/* ---------------------------------------------------------------------
   8. CARDS
--------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex; flex-direction: column;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.card > h3, .card > h4 { margin-bottom: .6rem; }
.card p { color: var(--ink-2); }

.card--flat { background: transparent; box-shadow: none; }
.card--flat:hover { box-shadow: none; }
.card--clay { background: var(--clay-tint); border-color: var(--clay-line); }
.card--clay:hover { border-color: var(--clay); }
.card--tight { padding: 1.25rem; }

.card-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--clay-tint);
  color: var(--clay);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  flex: none;
}
.card-icon--blue { background: var(--blue-tint); color: var(--blue); }
.card-icon--moss { background: var(--moss-tint); color: var(--moss); }

/* numbered index used on step / phase cards */
.idx {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: .55rem;
  display: block;
}

/* ---------------------------------------------------------------------
   9. LISTS
--------------------------------------------------------------------- */
.ticks { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); }
.ticks li > i, .ticks li > svg { flex: none; margin-top: .32em; color: var(--clay); font-size: .8em; }
.ticks--moss li > i { color: var(--moss); }
.ticks--muted li > i { color: var(--ink-4); }

.deflist { list-style: none; display: flex; flex-direction: column; gap: 1.05rem; }
.deflist li { display: flex; gap: .85rem; align-items: flex-start; }
.deflist i { flex: none; margin-top: .35em; color: var(--clay); font-size: .875rem; }

/* Compact 2-column layout for short, list-like entries (e.g. credentials) */
.deflist--2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 1rem;
}
.deflist--2col li { font-size: .9375rem; }

/* ---------------------------------------------------------------------
   10. TERMINAL — always dark, the Claude Code signature
--------------------------------------------------------------------- */
.terminal {
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--term-ink);
}
.terminal-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem .9rem;
  background: var(--term-bg-2);
  border-bottom: 1px solid var(--term-line);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: #4A4842; flex: none; }
.terminal-dot:nth-child(1) { background: #E0685B; }
.terminal-dot:nth-child(2) { background: #E0B44F; }
.terminal-dot:nth-child(3) { background: #7FB069; }
.terminal-title {
  margin-left: .5rem;
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--term-dim);
}
.terminal-body {
  padding: 1.1rem 1.15rem 1.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #4A4842 transparent;
}
.terminal-body::-webkit-scrollbar { height: 8px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: #46443E; border-radius: 4px; }
.terminal-code { display: block; min-width: max-content; }

.t-prompt { color: var(--term-moss); }
.t-cmd    { color: var(--term-ink); }
.t-dim    { color: var(--term-dim); }
.t-clay   { color: var(--term-clay); }
.t-blue   { color: var(--term-blue); }
.t-ok     { color: var(--term-moss); }

.t-line {
  display: block;
  white-space: pre;
  opacity: 0;
  animation: t-in .32s var(--ease) forwards;
}
.t-ind { padding-left: 1.7em; }
@keyframes t-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.t-caret {
  display: inline-block;
  width: .55em; height: 1.05em;
  background: var(--term-clay);
  vertical-align: -.18em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Small inline code */
code.inline {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1em .38em;
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   11. HERO
--------------------------------------------------------------------- */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 88% -8%, var(--clay-tint), transparent 68%),
    radial-gradient(700px 340px at -6% 4%, var(--blue-tint), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .lede { max-width: 40ch; }

.crumbs {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 1.5rem;
}
.crumbs a:hover { color: var(--clay); }
.crumbs span[aria-current] { color: var(--ink-2); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin: 1.75rem 0 1.5rem; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.fact-k {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.fact-v {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .3rem;
}

/* ---------------------------------------------------------------------
   12. PRICING
--------------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.6rem;
  display: flex; flex-direction: column;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.price-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.price-card.is-featured {
  border-color: var(--clay);
  box-shadow: var(--shadow-2);
}
.price-flag {
  position: absolute; top: -11px; left: 1.6rem;
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--clay);
  color: var(--on-clay);
  padding: .28rem .6rem;
  border-radius: 999px;
}
.price-tier {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: .6rem;
}
.price-card h3 { margin-bottom: .9rem; }
.price-amt {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
  display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap;
}
.price-amt .from { font-size: .95rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price-unit {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .5rem;
}
.price-desc { font-size: .9375rem; color: var(--ink-3); margin: 1rem 0 1.25rem; }
.price-card .ticks { margin-bottom: 1.75rem; }
.price-card .btn { margin-top: auto; }

/* Feature banner (portfolio / retainer) */
.banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 3vw, 2.25rem);
}
.banner--clay { background: var(--clay-tint); border-color: var(--clay-line); }
.banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

/* ---------------------------------------------------------------------
   13. STEPPER / PHASE TIMELINE
--------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; }
.step {
  position: relative;
  padding: 1.5rem 1.25rem 1.5rem 0;
}
.step::before {
  content: "";
  position: absolute; top: 1.9rem; left: 0; right: 0;
  height: 1px; background: var(--line);
}
.step:last-child::before { right: 40%; }
.step-num {
  position: relative;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--clay-line);
  color: var(--clay);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  z-index: 1;
}
/* the connector line must not show through the numbered disc */
.section--sunk .step-num { background: var(--paper-sunk); }
.step h4 { margin-bottom: .45rem; }
.step p { font-size: .875rem; color: var(--ink-3); }

.steps--7 { grid-template-columns: repeat(7, minmax(0,1fr)); }
.steps--7 .step { padding: 1.4rem .75rem 0 0; }
.steps--7 .step h4 { font-size: .9375rem; line-height: 1.3; }

.phases { display: flex; flex-direction: column; }
.phase {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: background .2s var(--ease);
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase:hover { background: var(--surface-2); }
.phase-tag {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
  padding-top: .28rem;
}
.phase h4 { margin-bottom: .35rem; }
.phase p { font-size: .9375rem; color: var(--ink-3); max-width: 74ch; }

/* ---------------------------------------------------------------------
   14. SPLIT FEATURE
--------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
/* Mirror the split: narrow aside on the left, main column on the right */
.split--rev { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split--rev > :first-child { order: 2; }

.quote {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--clay);
  padding: .2rem 0 .2rem 1.15rem;
  margin: 1.5rem 0;
}

.badges { display: flex; flex-wrap: wrap; gap: .45rem; }
.badge {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .3rem .6rem;
}

/* ---------------------------------------------------------------------
   15. COMPARE
--------------------------------------------------------------------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
.compare-card { padding: 1.75rem; border-radius: var(--r-lg); border: 1px solid var(--line); }
.compare-card.is-them { background: var(--paper-sunk); }
.compare-card.is-us { background: var(--surface); border-color: var(--clay-line); }
.compare-head {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1.25rem;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.compare-card.is-them .compare-head { color: var(--ink-3); }
.compare-card.is-us .compare-head { color: var(--clay); }

/* ---------------------------------------------------------------------
   16. FAQ (native accordion)
--------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay); }
.faq summary::after {
  content: "+";
  position: absolute; right: .35rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--clay);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-body {
  padding: 0 2.5rem 1.4rem 0;
  font-size: .9688rem;
  color: var(--ink-2);
  max-width: 82ch;
}
.faq-cols { columns: 2; column-gap: 3rem; }
.faq-cols > details { break-inside: avoid; }

/* ---------------------------------------------------------------------
   17. FORMS
--------------------------------------------------------------------- */
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.info-card {
  display: flex; gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.info-card + .info-card { margin-top: .875rem; }
.info-card.is-clay { background: var(--clay-tint); border-color: var(--clay-line); }
.info-card-icon {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--clay);
  font-size: .9375rem;
}
.info-card.is-clay .info-card-icon { background: var(--clay); color: var(--on-clay); }
.info-card h4 { font-size: 1rem; margin-bottom: .3rem; }
.info-card p { font-size: .875rem; color: var(--ink-3); }
.info-card a:not(.btn) { color: var(--clay); }
.info-card a:not(.btn):hover { text-decoration: underline; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-1);
}
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.label {
  display: block;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .45rem;
}
.input, .select, .textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: .9375rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: .7rem .85rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--clay);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--clay-tint);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A5A39A' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.2rem;
}
.form-note { font-size: .8125rem; color: var(--ink-3); margin-top: 1rem; line-height: 1.55; }
.form-note a { color: var(--clay); }

/* ---------------------------------------------------------------------
   17b. PROSE — long-form article body (blog posts)
--------------------------------------------------------------------- */
.prose { max-width: var(--wrap-text); margin-inline: auto; }
.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-top: 2.75rem;
  margin-bottom: .85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin: 1.35rem 0;
}
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clay);
}
.prose strong { color: var(--ink); }

/* ---------------------------------------------------------------------
   18. CTA
--------------------------------------------------------------------- */
.cta {
  background: var(--term-bg);
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(680px 320px at 50% -10%, rgba(217,119,87,.24), transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { color: #F7F5EE; max-width: 20ch; margin-inline: auto; }
.cta p { color: #B4B1A7; margin: 1rem auto 0; max-width: 56ch; }
.cta .eyebrow { color: var(--term-clay); justify-content: center; }
.cta .eyebrow::before { background: var(--term-clay); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.9rem; }
.cta .btn-outline { background: transparent; border-color: #46443E; color: #EDEBE3; }
.cta .btn-outline:hover { border-color: var(--term-clay); color: var(--term-clay); }
.cta .btn-primary { background: var(--clay); color: #1B1A19; }
.cta .btn-primary:hover { background: #E58F71; }

/* ---------------------------------------------------------------------
   19. FOOTER
--------------------------------------------------------------------- */
.footer {
  background: var(--paper-sunk);
  border-top: 1px solid var(--line);
  padding: clamp(2.75rem, 5vw, 4rem) 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer-brand p { font-size: .9375rem; color: var(--ink-3); margin-top: .9rem; max-width: 38ch; }
.footer h5 {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: .9rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer ul a { font-family: var(--sans); font-size: .875rem; color: var(--ink-2); }
.footer ul a:hover { color: var(--clay); }
.footer-social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.footer-social a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink-3);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer-social a:hover { color: var(--clay); border-color: var(--clay); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  color: var(--ink-4);
}
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a:hover { color: var(--clay); }

/* ---------------------------------------------------------------------
   20. STICKY MOBILE CTA
--------------------------------------------------------------------- */
.dock {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  gap: .5rem;
  padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.dock .btn { flex: 1; }

/* ---------------------------------------------------------------------
   21. REVEAL
--------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.stagger > * { transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .t-line { opacity: 1; animation: none; }
  .t-caret { animation: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------------
   22. RESPONSIVE
--------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lede { max-width: 62ch; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .banner-grid { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card.is-featured { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .step::before { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .faq-cols { columns: 1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: calc(var(--nav-h) + 12px); }
  body { font-size: 1rem; }

  .nav-burger { display: grid; }
  /* the sticky dock already carries the CTA — keep the bar uncrowded */
  .nav-tools > .btn { display: none; }
  .nav-inner { gap: .75rem; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1rem;
    box-shadow: var(--shadow-2);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: .75rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }

  .rail { display: none; }

  .grid-2, .grid-3, .grid-4, .compare, .steps, .field-row { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: .35rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .dock { display: flex; }
  .footer { padding-bottom: 5.5rem; }

  .hero-facts { gap: 1.25rem; }
  .terminal { font-size: .6875rem; }
}

@media print {
  .nav, .rail, .dock, .cta, .footer-social { display: none; }
  body { background: #fff; color: #000; }
}
