/* ============================================================
   WORKFLOW AI — Design System v2
   Editorial, restrained. Navy ink on warm paper.
   Type: Clash Display (headings) + General Sans (copy).
   Accent law: orange appears ONLY on primary CTAs
   (phone plate, solid buttons, one "most popular" badge).
   ============================================================ */

:root {
  --ink: #0d1f3c;
  --ink-deep: #081427;
  --ink-soft: #46536b;
  --ink-faint: #6b7689;
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --white: #fdfcfa;
  --orange: #ff5a1f;
  --orange-deep: #c73e0a;
  --good: #2e6b45;
  --bad: #8a3b34;
  --line: rgba(13, 31, 60, 0.12);
  --line-strong: rgba(13, 31, 60, 0.28);
  --line-light: rgba(246, 244, 239, 0.14);
  --line-light-strong: rgba(246, 244, 239, 0.32);
  --display: "Clash Display", "Segoe UI", Arial, sans-serif;
  --body: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --logo-font: "Barlow Condensed", "Arial Narrow", sans-serif;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- grain texture for dark surfaces ---------- */

.hero, .dark, .deep, .page-hero, footer.site, .cta-band {
  position: relative;
  isolation: isolate;
}
.hero::after, .dark::after, .deep::after, .page-hero::after, footer.site::after, .cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- type scale ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(42px, 6.2vw, 82px); }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.12; }

.lede {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.65;
  max-width: 58ch;
  color: var(--ink-soft);
  font-weight: 400;
}

.kicker {
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink-soft);
  flex: none;
}
.dark .kicker, .deep .kicker, .hero .kicker, .page-hero .kicker { color: rgba(246, 244, 239, 0.6); }
.dark .kicker::before, .deep .kicker::before, .hero .kicker::before, .page-hero .kicker::before { background: rgba(246, 244, 239, 0.45); }

/* accent word on dark heroes: outlined, not coloured */
.accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
}

/* ---------- layout ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.dark { background: var(--ink); color: var(--paper); }
.dark .lede { color: rgba(246, 244, 239, 0.72); }
.deep { background: var(--ink-deep); color: var(--paper); }

.section-head { display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: baseline; margin-bottom: clamp(44px, 6vw, 80px); }
.section-num {
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  padding-top: 6px;
}
.section-num::after { content: " /"; }
.dark .section-num, .deep .section-num { color: rgba(246, 244, 239, 0.45); }
.section-head h2 { max-width: 18ch; }
.section-head .lede { margin-top: 20px; }

.hairline-top { border-top: 1px solid var(--line); }
.dark .hairline-top, .deep .hairline-top { border-top-color: var(--line-light); }

/* retired: hazard stripes (kept as no-op for old markup) */
.hazard { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  min-height: 48px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-solid { background: var(--orange); border-color: var(--orange); color: var(--ink-deep); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dark .btn-solid:hover, .deep .btn-solid:hover, .hero .btn-solid:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn-ghost, .deep .btn-ghost, .hero .btn-ghost { color: var(--paper); border-color: rgba(246, 244, 239, 0.5); }
.dark .btn-ghost:hover, .deep .btn-ghost:hover, .hero .btn-ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- utility bar + header ---------- */

.utility {
  background: var(--ink-deep);
  color: rgba(246, 244, 239, 0.75);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.utility .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.utility a { color: var(--paper); text-decoration: none; font-weight: 600; }
.utility a:hover { text-decoration: underline; }
.utility .u-right { display: flex; gap: 20px; }

header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo svg { height: 38px; width: auto; }

nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a {
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 6px 1px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--ink); }
nav.main .btn { padding: 10px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  width: 48px;
  height: 44px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { left: 0; right: 0; top: -7px; }
.nav-toggle span::after { left: 0; right: 0; top: 7px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 20px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  nav.main .btn { margin-top: 16px; justify-content: center; }
  .utility .u-right span { display: none; }
}

/* ---------- hero (homepage) ---------- */

.hero { background: var(--ink); color: var(--paper); overflow: visible; }
.hero .wrap {
  padding-top: clamp(64px, 9vw, 130px);
  padding-bottom: clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { max-width: 12ch; margin-top: 22px; }
.hero .lede { margin: 26px 0 34px; color: rgba(246, 244, 239, 0.72); }
.hero-meta {
  grid-column: 1 / -1;
  margin-top: clamp(36px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-light);
}
.hero-meta div {
  padding: 20px 36px 0 0;
  margin-right: 36px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(246, 244, 239, 0.55);
}
.hero-meta div strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 2px;
}
.hero-meta div strong .accent { color: var(--paper); -webkit-text-stroke: 0; }

/* entrance */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .kicker, .hero h1, .hero .lede, .hero .btn-row, .hero .ticket, .hero-meta {
  animation: rise 0.8s var(--ease) both;
}
.hero h1 { animation-delay: 0.08s; }
.hero .lede { animation-delay: 0.16s; }
.hero .btn-row { animation-delay: 0.24s; }
.hero .ticket { animation-delay: 0.3s; }
.hero-meta { animation-delay: 0.4s; }

.ghost { display: none; }

/* dispatch ticket: the one overlapping object */
.ticket {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 0;
  max-width: 420px;
  justify-self: end;
  transform: rotate(1.2deg);
  box-shadow: 0 1px 0 rgba(8, 20, 39, 0.2), 0 24px 60px -30px rgba(8, 20, 39, 0.55);
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ticket-head .dot { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.ticket-head .dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.ticket-row { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ticket-row .k { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); padding-top: 3px; }
.ticket-row .v { color: var(--ink); line-height: 1.5; }
.ticket-foot { padding: 13px 20px; font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.ticket-foot::before { content: "✓"; font-weight: 700; color: var(--good); }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .ticket { justify-self: start; transform: rotate(0.8deg); margin-top: 8px; max-width: 460px; }
}

/* ---------- phone plate (primary CTA: orange allowed) ---------- */

.phone-plate { display: inline-block; text-decoration: none; }
.phone-plate .inner {
  background: var(--orange);
  color: var(--ink-deep);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: 0.01em;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.phone-plate:hover .inner { background: var(--paper); color: var(--ink); }
.phone-plate .tag {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-faint);
}
.hero .phone-plate .tag, .dark .phone-plate .tag, .deep .phone-plate .tag, .page-hero .phone-plate .tag { color: rgba(246, 244, 239, 0.6); }

/* ---------- grids & cells ---------- */

.grid { display: grid; gap: 0; border: 1px solid var(--line); }
.dark .grid, .deep .grid { border-color: var(--line-light); }

.cell { padding: clamp(24px, 3vw, 42px); border: 0 solid var(--line); background: transparent; transition: background-color 0.3s var(--ease); }
.dark .cell, .deep .cell { border-color: var(--line-light); }

/* staggered reveal for grid children */
.grid.reveal > * { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.grid.reveal.in > * { opacity: 1; transform: none; }
.grid.reveal.in > *:nth-child(2) { transition-delay: 0.07s; }
.grid.reveal.in > *:nth-child(3) { transition-delay: 0.14s; }
.grid.reveal.in > *:nth-child(4) { transition-delay: 0.21s; }
.grid.reveal.in > *:nth-child(5) { transition-delay: 0.28s; }
.grid.reveal.in > *:nth-child(6) { transition-delay: 0.35s; }
.grid.reveal.in > *:nth-child(7) { transition-delay: 0.42s; }
.grid.reveal.in > *:nth-child(8) { transition-delay: 0.49s; }
.grid.reveal.in > *:nth-child(9) { transition-delay: 0.56s; }

.pain-grid { grid-template-columns: repeat(2, 1fr); }
.pain-grid .cell { border-bottom-width: 1px; }
.pain-grid .cell:nth-child(odd) { border-right-width: 1px; }
.pain-grid .cell:nth-last-child(-n+2) { border-bottom-width: 0; }
.pain-num { font-family: var(--body); font-weight: 600; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.16em; }
.dark .pain-num, .deep .pain-num { color: rgba(246, 244, 239, 0.45); }
.pain-grid h3 { margin: 14px 0 12px; }
.pain-grid p { color: var(--ink-soft); font-size: 15.5px; }
.dark .pain-grid p { color: rgba(246, 244, 239, 0.7); }

@media (max-width: 760px) {
  .pain-grid { grid-template-columns: 1fr; }
  .pain-grid .cell { border-right-width: 0 !important; border-bottom-width: 1px !important; }
  .pain-grid .cell:last-child { border-bottom-width: 0 !important; }
}

/* services */
.svc-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.svc-feature .left { padding: clamp(28px, 4vw, 56px); }
.svc-feature .right {
  background: var(--white);
  color: var(--ink);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border-left: 1px solid var(--ink);
}
.svc-feature h3 { font-size: clamp(28px, 3.4vw, 44px); }
.svc-feature .left p { color: rgba(246, 244, 239, 0.74); margin-top: 16px; max-width: 52ch; font-size: 16px; }
.svc-feature .price { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 3.6vw, 48px); line-height: 1; }
.svc-feature .price small { font-size: 0.38em; font-weight: 500; letter-spacing: 0.04em; }
.svc-feature ul { margin-top: 20px; }
.svc-feature ul li { padding: 10px 0; border-top: 1px solid var(--line-light); font-size: 15px; color: rgba(246, 244, 239, 0.82); }
.svc-feature .right .btn { border-color: var(--ink); color: var(--ink); align-self: flex-start; }
.svc-feature .right .btn:hover { background: var(--ink); color: var(--paper); }
.svc-feature .right p { color: var(--ink-soft); }
@media (max-width: 860px) { .svc-feature { grid-template-columns: 1fr; } .svc-feature .right { border-left: 0; border-top: 1px solid var(--ink); } }

.svc-grid { grid-template-columns: repeat(3, 1fr); border-top-width: 0; }
.svc-grid .cell { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; text-decoration: none; display: block; }
.svc-grid .cell:nth-child(3n) { border-right: 0; }
.svc-grid .cell:nth-last-child(-n+3) { border-bottom: 0; }
.svc-grid .cell:hover { background: var(--white); }
.svc-grid h3 { font-size: 20px; margin: 16px 0 8px; }
.svc-grid p { font-size: 15px; color: var(--ink-soft); }
.svc-grid .svc-price { margin-top: 16px; display: inline-block; font-family: var(--body); font-weight: 600; font-size: 14px; color: var(--ink); letter-spacing: 0.02em; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.svc-grid .cell::after {
  content: "→";
  position: absolute;
  top: 24px;
  right: 26px;
  font-size: 18px;
  color: var(--line-strong);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.svc-grid .cell:hover::after { color: var(--ink); transform: translateX(4px); }
@media (max-width: 980px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .svc-grid .cell:nth-child(2n) { border-right: 0; }
  .svc-grid .cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .svc-grid .cell:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-grid .cell { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .svc-grid .cell:last-child { border-bottom: 0 !important; }
}

.icon-tile {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.icon-tile svg { width: 22px; height: 22px; stroke: currentColor; }

/* steps */
.steps { grid-template-columns: repeat(3, 1fr); }
.steps .cell { border-right: 1px solid var(--line-light); }
.steps .cell:last-child { border-right: 0; }
.step-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(246, 244, 239, 0.55);
}
.steps h3 { margin: 20px 0 12px; }
.steps p { color: rgba(246, 244, 239, 0.7); font-size: 15.5px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps .cell { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .steps .cell:last-child { border-bottom: 0; }
}

/* spec sheet */
.spec { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.spec-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.dark .spec-list li, .deep .spec-list li { border-top-color: var(--line-light); }
.spec-list li:last-child { border-bottom: 1px solid var(--line); }
.dark .spec-list li:last-child, .deep .spec-list li:last-child { border-bottom-color: var(--line-light); }
.spec-list .k { font-family: var(--body); font-weight: 600; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); padding-top: 4px; }
.dark .spec-list .k, .deep .spec-list .k { color: rgba(246, 244, 239, 0.5); }
.spec-list .v { color: var(--ink-soft); }
.dark .spec-list .v, .deep .spec-list .v { color: rgba(246, 244, 239, 0.72); }
@media (max-width: 860px) { .spec { grid-template-columns: 1fr; } .spec-list li { grid-template-columns: 110px 1fr; } }

/* stats */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-light); }
.stat-row > div { padding: clamp(20px, 3vw, 36px); border-right: 1px solid var(--line-light); }
.stat-row > div:last-child { border-right: 0; }
.stat-row strong { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4.5vw, 60px); line-height: 0.95; display: block; color: var(--paper); }
.stat-row span { font-size: 14px; color: rgba(246, 244, 239, 0.62); display: block; margin-top: 10px; line-height: 1.5; }
@media (max-width: 860px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row > div { border-bottom: 1px solid var(--line-light); }
  .stat-row > div:nth-child(2n) { border-right: 0; }
  .stat-row > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* founder / quote */
.founder { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.founder-card { border: 1px solid var(--line-strong); background: var(--white); padding: clamp(24px, 3vw, 42px); }
.founder-card .role { font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.founder-card h3 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 8px; }
.founder-card ul { margin-top: 18px; }
.founder-card li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.founder blockquote {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.founder blockquote .accent { color: var(--ink); -webkit-text-stroke: 0; border-bottom: 2px solid var(--ink); }
.founder cite { display: block; margin-top: 26px; font-family: var(--body); font-style: normal; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.tier { padding: clamp(24px, 3vw, 42px); border-right: 1px solid var(--line); display: flex; flex-direction: column; background: transparent; }
.tier:last-child { border-right: 0; }
.tier.popular { background: var(--ink); color: var(--paper); margin: -16px 0; padding-top: calc(clamp(24px, 3vw, 42px) + 16px); padding-bottom: calc(clamp(24px, 3vw, 42px) + 16px); border: 1px solid var(--ink); position: relative; }
.tier .badge { position: absolute; top: 0; right: 0; background: var(--orange); color: var(--ink-deep); font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 14px; }
.tier .t-name { font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.tier.popular .t-name { color: rgba(246, 244, 239, 0.6); }
.tier .t-price { font-family: var(--display); font-weight: 600; font-size: clamp(42px, 4.5vw, 60px); line-height: 1; margin: 14px 0 6px; }
.tier .t-price small { font-size: 0.32em; font-weight: 500; letter-spacing: 0.04em; }
.tier .t-min { font-size: 15px; color: var(--ink-soft); }
.tier.popular .t-min { color: rgba(246, 244, 239, 0.7); }
.tier ul { margin: 22px 0 28px; flex: 1; }
.tier li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tier.popular li { border-top-color: var(--line-light); }
.tier .btn { justify-content: center; }
@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
  .tier { border-right: 0; border-bottom: 1px solid var(--line); }
  .tier.popular { margin: 0; }
}

.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.addon-grid .cell { border-bottom: 1px solid var(--line); }
.addon-grid .cell:nth-child(odd) { border-right: 1px solid var(--line); }
.addon-grid .cell:nth-last-child(-n+2) { border-bottom: 0; }
.addon-grid h3 { font-size: 20px; }
.addon-grid .a-price { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--ink); margin: 8px 0 10px; }
.addon-grid p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 720px) {
  .addon-grid { grid-template-columns: 1fr; }
  .addon-grid .cell { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .addon-grid .cell:last-child { border-bottom: 0 !important; }
}

.bundle {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(24px, 3vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  isolation: isolate;
}
.bundle::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.bundle .b-price { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 4.5vw, 56px); line-height: 1; color: var(--paper); text-align: right; }
.bundle .b-price small { font-size: 0.34em; }
.bundle .b-save { font-size: 14.5px; color: rgba(246, 244, 239, 0.65); text-align: right; }
@media (max-width: 720px) { .bundle { grid-template-columns: 1fr; } .bundle .b-price, .bundle .b-save { text-align: left; } }

/* ---------- calculator ---------- */

.calc { border: 1px solid var(--line-strong); background: var(--white); padding: clamp(24px, 3.5vw, 48px); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.calc label { font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 10px; }
.calc output { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--ink); display: block; margin-top: 6px; }
.calc input[type="range"] { width: 100%; accent-color: #0d1f3c; height: 32px; cursor: pointer; }
.calc-result { margin-top: 32px; border-top: 1px solid var(--line-strong); padding-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calc-result .label { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); }
.calc-result strong { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4.5vw, 56px); line-height: 1; display: block; margin-top: 8px; }
.calc-result .lost strong { color: var(--bad); }
.calc-result .net strong { color: var(--good); }
@media (max-width: 760px) { .calc-row, .calc-result { grid-template-columns: 1fr; } }

/* ---------- ledger / mini-CRM ---------- */

.ledger-wrap { border: 1px solid var(--line-strong); background: var(--white); }
.ledger-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ledger-bar .file { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.ledger-bar .file svg { width: 16px; height: 16px; }
.ledger-bar .live { display: inline-flex; align-items: center; gap: 8px; }
.ledger-bar .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: pulse 2.4s ease-in-out infinite; }
.ledger-scroll { overflow-x: auto; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
table.ledger th, table.ledger td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.ledger th {
  font-family: var(--body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--paper-2);
}
table.ledger td { color: var(--ink-soft); }
table.ledger td.strong { color: var(--ink); font-weight: 500; white-space: normal; }
table.ledger tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; padding: 3px 9px; border: 1px solid var(--line-strong); }
.pill.yes { color: var(--good); border-color: rgba(46, 107, 69, 0.4); }
.pill.pos { color: var(--good); border-color: rgba(46, 107, 69, 0.4); }
.pill.neu { color: var(--ink-soft); }
.pill.urgent { color: var(--bad); border-color: rgba(138, 59, 52, 0.4); }
.col-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.col-tags span { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); border: 1px solid var(--line); padding: 5px 11px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 23px);
  letter-spacing: -0.01em;
  padding: 24px 48px 24px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--body);
  font-weight: 400;
  font-size: 28px;
  color: var(--ink-faint);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 0 28px; max-width: 70ch; color: var(--ink-soft); }

/* ---------- forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label.fl { font-family: var(--body); font-weight: 600; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 6px; }
input[type="text"], input[type="tel"], input[type="email"], textarea, select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 13px 14px;
  min-height: 48px;
  transition: border-color 0.25s var(--ease);
}
textarea { min-height: 140px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }

/* ---------- footer ---------- */

footer.site { background: var(--ink-deep); color: var(--paper); }
footer.site .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(48px, 6vw, 80px) 0 48px; }
footer.site h4 { font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246, 244, 239, 0.5); margin-bottom: 16px; }
footer.site ul li { padding: 5px 0; }
footer.site a { color: rgba(246, 244, 239, 0.78); text-decoration: none; font-size: 15px; transition: color 0.25s var(--ease); }
footer.site a:hover { color: var(--paper); text-decoration: underline; }
footer.site .blurb { font-size: 15px; color: rgba(246, 244, 239, 0.6); max-width: 38ch; margin-top: 16px; }
footer.site .bottom { border-top: 1px solid var(--line-light); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: rgba(246, 244, 239, 0.5); }
footer.site .bottom a { font-size: 13.5px; }
@media (max-width: 860px) { footer.site .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { footer.site .top { grid-template-columns: 1fr; } }

/* ---------- page hero (inner pages) ---------- */

.page-hero { background: var(--ink); color: var(--paper); }
.page-hero .lede { color: rgba(246, 244, 239, 0.74); }
.page-hero .wrap { padding-top: clamp(48px, 7vw, 100px); padding-bottom: clamp(48px, 7vw, 100px); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 72px); max-width: 16ch; }
.page-hero .lede { margin-top: 24px; }
.page-hero .kicker, .page-hero h1, .page-hero .lede, .page-hero .btn-row, .page-hero .crumbs { animation: rise 0.7s var(--ease) both; }
.page-hero h1 { animation-delay: 0.06s; }
.page-hero .lede { animation-delay: 0.12s; }
.page-hero .btn-row { animation-delay: 0.18s; }
.crumbs { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: rgba(246, 244, 239, 0.45); margin-bottom: 30px; }
.crumbs a { color: rgba(246, 244, 239, 0.45); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.crumbs span { color: rgba(246, 244, 239, 0.85); }

/* ---------- prose (blog) ---------- */

.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.5em; color: #313e57; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 1.7em 0 0.6em; }
.prose h3 { margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.5em 1.2em; }
.prose ul li { list-style: square; padding: 3px 0; color: #313e57; }
.prose ol li { list-style: decimal; padding: 3px 0; color: #313e57; }
.prose strong { font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 2px solid var(--ink); padding: 4px 0 4px 24px; margin: 1.7em 0; font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.4; }
.prose .callout { border: 1px solid var(--line-strong); background: var(--white); padding: 24px 28px; margin: 1.8em 0; }

/* ---------- CTA band (primary CTA: orange allowed) ---------- */

.cta-band { background: var(--orange); color: var(--ink-deep); }
.cta-band::after { opacity: 0.06; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding-top: clamp(44px, 5vw, 72px); padding-bottom: clamp(44px, 5vw, 72px); }
.cta-band h2 { max-width: 18ch; }
.cta-band p { margin-top: 14px; font-size: 16.5px; max-width: 52ch; }
.cta-band .kicker { color: rgba(8, 20, 39, 0.65); }
.cta-band .kicker::before { background: rgba(8, 20, 39, 0.5); }
.cta-band .btn { border: 1px solid var(--ink-deep); color: var(--ink-deep); background: transparent; }
.cta-band .btn:hover { background: var(--ink-deep); color: var(--paper); }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { left: 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.grid.reveal, .grid.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .grid.reveal > * { opacity: 1 !important; transform: none !important; }
}
