/* ── CUSTOMER SURFACE COMPONENTS ────────────────────────────────────────────
   The marketing and order vocabulary shared by landing.html, order.html,
   portal.html and the auth pages. Kept out of styles.css on purpose: that file
   carries the console's product tokens and primitives, and a customer page
   must never inherit console chrome (or the other way round).

   Loaded after styles.css, before a page's own <style>, so a page-local rule
   always wins a tie. Tokens only — no palette of its own, no :root block, and
   nothing here may hard-code a colour that styles.css already names.

   PREMIUM LAYER: Double-bezel cards, magnetic interactions, fluid motion,
   spatial rhythm — all within the frozen DM Sans / teal / off-white language. */

:root {
  /* Premium motion tokens — cubic-bezier spring physics */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-snappy: cubic-bezier(0.2, 0, 0, 1);
  --ease-gentle: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 500ms;
  --dur-enter: 700ms;
  /* Shadow depth scale — layered, diffused, never harsh */
  --sh-card: 0 2px 8px rgba(24,24,27,.06), 0 1px 2px rgba(24,24,27,.04);
  --sh-card-hover: 0 12px 32px rgba(24,24,27,.1), 0 4px 12px rgba(24,24,27,.06);
  --sh-raised: 0 20px 48px rgba(24,24,27,.12), 0 8px 16px rgba(24,24,27,.08);
  --sh-inner: inset 0 1px 1px rgba(255,255,255,.6), inset 0 -1px 1px rgba(0,0,0,.03);
  --sh-focus: 0 0 0 3px color-mix(in oklch, var(--teal) 25%, transparent);
  /* Radii — exaggerated squircle for premium feel */
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 9999px;
  /* Button-in-button trailing icon shell */
  --icon-shell-bg: color-mix(in oklch, var(--surface) 90%, transparent);
  --icon-shell-border: color-mix(in oklch, var(--border) 50%, transparent);
}

/* Dark-mode shadow adjustments */
html.dark {
  --sh-card: 0 2px 8px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.25);
  --sh-card-hover: 0 12px 32px rgba(0,0,0,.45), 0 4px 12px rgba(0,0,0,.3);
  --sh-raised: 0 20px 48px rgba(0,0,0,.55), 0 8px 16px rgba(0,0,0,.4);
  --sh-inner: inset 0 1px 1px rgba(255,255,255,.08), inset 0 -1px 1px rgba(0,0,0,.2);
  --sh-focus: 0 0 0 3px color-mix(in oklch, var(--teal) 35%, transparent);
  --icon-shell-bg: color-mix(in oklch, var(--surface2) 80%, transparent);
  --icon-shell-border: color-mix(in oklch, var(--border) 40%, transparent);
}

/* ── PAGE SHELL ───────────────────────────────────────────────────────────
   One measure for every customer page: 1080px of reading width, 24px gutters,
   and generous bottom padding so the last card never sits on the viewport edge. */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 160px;
}

/* Marketing sections — massive vertical rhythm (high-end-visual-design §4.C) */
.section.variant-marketing {
  padding-block: 0;
  margin-bottom: 120px;
  opacity: 0;
  transform: translateY(16px);
}
.section.variant-marketing.in-view {
  animation: sectionEnter var(--dur-enter) var(--ease-gentle) forwards;
}
@keyframes sectionEnter {
  to { opacity: 1; transform: translateY(0); }
}

/* Landing and order both lead with the same three-part opening: a mono
   eyebrow, a tight h1, and one paragraph that does the selling. */
.eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin: 0 0 16px;
  opacity: 0.85;
}

/* h1 in styles.css is tuned for the console's page headers. Customer copy is a
   tighter measure and a smaller step down, so it gets its own scale. */
.wrap h1 {
  font-size: clamp(32px, 4.8vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  max-width: 20ch;
  text-wrap: balance;
  font-weight: 700;
}

.lede {
  color: var(--ink2);
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.65;
  max-width: 58ch;
  margin: 0 0 28px;
  font-weight: 400;
}

.sub {
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 66ch;
  margin: 0 0 32px;
}

/* ── BRAND + NAV ──────────────────────────────────────────────────────────
   Shared by every page that carries the wordmark. The nav bar is chrome, not
   content: it hands the screen straight to the page below it. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-snappy);
}
.logo:hover { opacity: 0.7; text-decoration: none; }
.logo:active { transform: scale(0.98); }
.logo small {
  color: var(--ink3);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

/* Inline (not block) so the auth pages can centre it with text-align. */
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex: none;
  object-fit: cover;
  vertical-align: middle;
  transition: transform var(--dur-base) var(--ease-spring), filter var(--dur-base) var(--ease-spring);
}
.logo:hover .logo-mark { transform: rotate(-2deg) scale(1.05); filter: drop-shadow(0 4px 12px color-mix(in oklch, var(--teal) 30%, transparent)); }

.nav-bar.variant-marketing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  position: relative;
}
.nav-bar.variant-marketing::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--teal) 20%, transparent), transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-gentle);
}
.nav-bar.variant-marketing:hover::after { opacity: 1; }

.nav-bar.variant-marketing .logo-mark { width: 26px; height: 26px; border-radius: 8px; }
.nav-bar.variant-marketing .links {
  display: flex;
  align-items: center;
  gap: 4px 20px;
  font-size: 13px;
}
.nav-bar.variant-marketing .btn { padding: 10px 16px; font-size: 13px; }
.nav-bar.variant-marketing #themeBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid var(--border);
  transition: all var(--dur-fast) var(--ease-spring);
}
.nav-bar.variant-marketing #themeBtn:hover {
  background: var(--surface);
  border-color: var(--teal-b);
  transform: rotate(15deg) scale(1.05);
}
.nav-bar.variant-marketing #themeBtn:active { transform: rotate(15deg) scale(0.95); }

.nav-link {
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 4px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease-spring);
  position: relative;
}
.nav-link::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease-spring);
  transform: translateX(-50%);
}
.nav-link:hover {
  color: var(--teal-ink);
  border-bottom-color: transparent;
}
.nav-link:hover::before { width: 100%; }
.nav-link:focus-visible { outline: none; border-bottom-color: var(--teal); }

/* Compact nav (shared/nav.js): below 640px the section links move into a
   <details> panel and the bar keeps brand, theme toggle and CTA. The panel is
   hidden above 640px, where nav.js never opens it. */
.nav-menu { display: none; }
.nav-bar.variant-marketing.nav-compact .nav-menu {
  display: block;
  position: relative;
  z-index: 60;
  order: 3;
}
.nav-bar.variant-marketing.nav-compact .links {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-left: auto;
}
.nav-bar.variant-marketing.nav-compact .nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--ink2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  transition: all var(--dur-fast) var(--ease-spring);
}
.nav-bar.variant-marketing.nav-compact .nav-burger::-webkit-details-marker { display: none; }
.nav-bar.variant-marketing.nav-compact .nav-burger:hover {
  color: var(--ink);
  border-color: var(--teal-b);
  background: var(--surface);
  transform: rotate(90deg);
}
.nav-bar.variant-marketing.nav-compact .nav-burger:active { transform: rotate(90deg) scale(0.95); }
.nav-bar.variant-marketing.nav-compact .nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-raised);
  animation: panelEnter var(--dur-enter) var(--ease-spring) forwards;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}
@keyframes panelEnter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.nav-bar.variant-marketing.nav-compact .nav-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-ink);
  transition: all var(--dur-fast) var(--ease-spring);
}
.nav-bar.variant-marketing.nav-compact .nav-panel a:hover {
  background: var(--teal-lt);
  color: var(--teal-ink);
  transform: translateX(4px);
}
.nav-bar.variant-marketing.nav-compact .nav-panel a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Staggered reveal for panel links */
.nav-bar.variant-marketing.nav-compact .nav-panel a:nth-child(1) { animation-delay: 50ms; }
.nav-bar.variant-marketing.nav-compact .nav-panel a:nth-child(2) { animation-delay: 80ms; }
.nav-bar.variant-marketing.nav-compact .nav-panel a:nth-child(3) { animation-delay: 110ms; }
.nav-bar.variant-marketing.nav-compact .nav-panel a:nth-child(4) { animation-delay: 140ms; }
.nav-bar.variant-marketing.nav-compact .nav-panel a:nth-child(5) { animation-delay: 170ms; }

/* Touch targets: 38px controls are fine under a mouse and too small under a
   thumb, so coarse pointers get the 44px treatment. */
@media (pointer: coarse) {
  .nav-bar.variant-marketing #themeBtn,
  .nav-bar.variant-marketing.nav-compact .nav-burger { width: 44px; height: 44px; }
  .nav-link { padding: 12px 4px; }
}

/* ── HERO ─────────────────────────────────────────────────────────────────*/
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroEnter var(--dur-enter) var(--ease-spring) forwards;
}
@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}
.hero > *:first-child { animation-delay: 100ms; }
.hero > *:last-child { animation-delay: 200ms; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

/* The deal, in brief: five rows of fact next to the pitch. Same markup as the
   order summary's rows, so `.row`/`.k`/`.v` are shared. */
.proof {
  /* Double-bezel: outer shell */
  position: relative;
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 1.5px;
  box-shadow: var(--sh-card);
  overflow: hidden;
}
.proof::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--teal) 15%, transparent), transparent);
  -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.proof > * {
  /* Inner core */
  position: relative;
  background: var(--surface);
  border-radius: calc(var(--r-2xl) - 1.5px);
  padding: 24px 28px;
  box-shadow: var(--sh-inner);
}
.proof:hover {
  box-shadow: var(--sh-card-hover);
  transition: box-shadow var(--dur-slow) var(--ease-gentle);
}
.proof:hover::before { opacity: 1; }

/* ── SECTIONS + STEPS ─────────────────────────────────────────────────────
   styles.css pads .section like a console block; on a marketing page the
   rhythm comes from the space between sections, not inside them. */
.section.variant-marketing {
  padding-block: 0;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(16px);
}
.section.variant-marketing.in-view {
  animation: sectionEnter var(--dur-enter) var(--ease-gentle) forwards;
}
@keyframes sectionEnter {
  to { opacity: 1; transform: translateY(0); }
}
.section.variant-marketing h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  font-weight: 700;
}
.section.variant-marketing > .sub {
  margin-bottom: 40px;
}

.steps.variant-marketing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
  padding-left: 0;
}
.step {
  /* Double-bezel step card */
  position: relative;
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5px;
  box-shadow: var(--sh-card);
  transition: all var(--dur-slow) var(--ease-gentle);
}
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--teal) 12%, transparent), transparent);
  -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}
.step > * {
  position: relative;
  background: var(--surface);
  border-radius: calc(var(--r-xl) - 1.5px);
  padding: 24px;
  box-shadow: var(--sh-inner);
  border-left: 3px solid var(--teal-b);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-card-hover);
}
.step:hover::before { opacity: 1; }
.step h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.step h3::before {
  counter-increment: step;
  content: counter(step) ". ";
  color: var(--teal-ink);
  font-family: var(--mono);
  font-weight: 600;
}
.step p { margin: 0; color: var(--ink2); font-size: 14.5px; line-height: 1.6; }

/* ── STATUS LOOKUP ────────────────────────────────────────────────────────*/
.status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px 20px;
  box-shadow: var(--sh-card);
  transition: all var(--dur-base) var(--ease-gentle);
}
.status:hover { box-shadow: var(--sh-card-hover); }
.status .form-input { flex: 1; min-width: 220px; }
.status .btn { margin-left: auto; }

/* ── PRICE TABLE ─────────────────────────────────────────────────────────
   styles.css owns `.table` inside the console, where the table element itself
   carries the class. Here the class sits on the scrolling wrapper. */
.table.variant-marketing {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-top: 8px;
  box-shadow: var(--sh-card);
}
.table.variant-marketing table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table.variant-marketing th,
.table.variant-marketing td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  word-break: normal;
  transition: background var(--dur-fast) var(--ease-snappy);
}
.table.variant-marketing th {
  font: 500 12px/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  background: var(--bg2);
  white-space: nowrap;
}
.table.variant-marketing tbody tr {
  opacity: 0;
  transform: translateX(-10px);
}
.table.variant-marketing tbody tr.in-view {
  animation: rowEnter var(--dur-base) var(--ease-spring) forwards;
}
.table.variant-marketing tbody tr:nth-child(1).in-view { animation-delay: 50ms; }
.table.variant-marketing tbody tr:nth-child(2).in-view { animation-delay: 80ms; }
.table.variant-marketing tbody tr:nth-child(3).in-view { animation-delay: 110ms; }
.table.variant-marketing tbody tr:nth-child(4).in-view { animation-delay: 140ms; }
.table.variant-marketing tbody tr:nth-child(5).in-view { animation-delay: 170ms; }
@keyframes rowEnter {
  to { opacity: 1; transform: translateX(0); }
}
.table.variant-marketing tbody tr:last-child td { border-bottom: 0; }
.table.variant-marketing tbody tr:hover { background: var(--bg2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── FOOTER ───────────────────────────────────────────────────────────────*/
.foot {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 13px;
  color: var(--ink2);
  margin-top: 24px;
}
.foot a { color: var(--ink3); transition: color var(--dur-fast) var(--ease-snappy); }
.foot a:hover { color: var(--teal-ink); }

/* ── CARDS, ROWS, MONEY ───────────────────────────────────────────────────
   `.card` in styles.css is a flex shell with no chrome (the console composes
   it with .double-bezel). Customer cards supply their own double-bezel surface. */
.card {
  /* Double-bezel card */
  position: relative;
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5px;
  box-shadow: var(--sh-card);
  transition: all var(--dur-slow) var(--ease-gentle);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--teal) 10%, transparent), transparent);
  -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}
.card > * {
  position: relative;
  background: var(--surface);
  border-radius: calc(var(--r-xl) - 1.5px);
  padding: 22px;
  box-shadow: var(--sh-inner);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-card-hover);
}
.card:hover::before { opacity: 0.8; }

.card h2 {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 0 0 16px;
}

/* Portal change-request form: label, control, label, control… */
.card > .k { margin: 12px 0 0; }
.card > .k:first-child { margin-top: 0; }
.card > .btn { align-self: flex-start; margin-top: 16px; }

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: all var(--dur-fast) var(--ease-snappy);
}
.row:last-of-type { border-bottom: 0; }
.row .k { color: var(--ink3); font-weight: 500; }
.row .v {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border2);
}
.total .k { font-weight: 500; font-size: 15px; color: var(--ink2); }
.total .v { font: 600 24px/1 var(--sans); letter-spacing: -0.02em; color: var(--ink); }

.fine {
  font-size: 12.5px;
  color: var(--ink3);
  line-height: 1.6;
  margin: 0;
}

/* ── ORDER LAYOUT ─────────────────────────────────────────────────────────
   Form on the left, a sticky summary on the right. The rail is sticky only as
   a direct child of .cols: portal.html has its own `.rail` (a progress rail)
   and must never inherit the sticky behaviour. */
.price-strip {
  /* Double-bezel price strip */
  position: relative;
  background: color-mix(in oklch, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5px;
  margin-bottom: 28px;
  box-shadow: var(--sh-card);
}
.price-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(90deg, color-mix(in oklch, var(--teal) 18%, transparent), transparent 60%);
  -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
}
.price-strip > * {
  position: relative;
  background: var(--surface);
  border-radius: calc(var(--r-xl) - 1.5px);
  padding: 16px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  box-shadow: var(--sh-inner);
}
.price-strip .amt { font: 500 26px/1.1 var(--sans); letter-spacing: -0.02em; color: var(--ink); }
.price-strip .amt small { font-size: 15px; color: var(--ink3); letter-spacing: 0; font-weight: 400; }
.price-strip .sep { color: var(--ink5); }
.price-strip .note { color: var(--ink3); font-size: 13.5px; margin-left: auto; max-width: 56ch; }

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.cols > .rail {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 18px;
  align-self: start;
  opacity: 0;
  transform: translateX(20px);
}
.cols > .rail.in-view {
  animation: railEnter var(--dur-slow) var(--ease-gentle) forwards;
}
@keyframes railEnter {
  to { opacity: 1; transform: translateX(0); }
}

/* Nothing is built yet: the note under the summary, said quietly. */
.hold {
  background: var(--bg2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink2);
  border: 1px solid var(--border);
}

/* Provider charges to the customer's own card — disclosure, not an error. */
.warn {
  background: var(--gold-lt);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink2);
}
.warn ul { margin: 8px 0 0; padding-left: 20px; font-size: 12.5px; }
.warn li { margin: 4px 0; }

/* ── FORM VOCABULARY (order.html) ─────────────────────────────────────────
   Every control the order form emits, styled once from the tokens. Fields sit
   in a single column: the values are long (keys, project ids), so a two-up
   layout would only make them wrap. */
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 36px;
  min-width: 0;
}
fieldset > legend {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0;
  margin: 0 0 6px;
  color: var(--ink);
}
.legend-note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink3);
  max-width: 62ch;
  margin: 0 0 20px;
}
.fields { display: grid; gap: 22px; }

.field { display: grid; gap: 8px; }
.field > label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  transition: color var(--dur-fast) var(--ease-snappy);
}
.field:focus-within > label { color: var(--teal-ink); }
.req { color: var(--red); margin-left: 4px; font-size: 1.2em; line-height: 1; vertical-align: -2px; }

.field > input,
.field > select,
.field > textarea,
.field .secret input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  transition: all var(--dur-base) var(--ease-spring);
  box-shadow: var(--sh-card);
}
.field > textarea { min-height: 100px; resize: vertical; }
.field .mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }

.field > input:hover,
.field > select:hover,
.field > textarea:hover,
.field .secret input:hover {
  border-color: var(--border2);
  box-shadow: var(--sh-card-hover);
}

.field > input:focus,
.field > select:focus,
.field > textarea:focus,
.field .secret input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--sh-focus);
  background: var(--surface);
  transform: translateY(-1px);
}

/* An invalid field is marked twice: a ring on the control and the sentence
   below it. Colour alone is never the only signal. */
.field[data-bad] > input,
.field[data-bad] > select,
.field[data-bad] > textarea,
.field[data-bad] .secret input,
.field[data-bad] .choice {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.field[data-bad] > input:focus,
.field[data-bad] > select:focus,
.field[data-bad] > textarea:focus,
.field[data-bad] .secret input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--red) 25%, transparent);
}

.hint {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink3);
  transition: opacity var(--dur-fast) var(--ease-snappy);
}
.err { font-size: 13px; line-height: 1.55; color: var(--red); font-weight: 500; }
.err:empty { display: none; }

/* Password-style fields: masked by default, revealed by the button beside
   them. The input flexes, the toggle never shrinks. */
.secret { display: flex; gap: 10px; align-items: stretch; }
.secret input { flex: 1; min-width: 0; }
.toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  padding: 0 14px;
  font: 500 13px/1 var(--sans);
  color: var(--teal-ink);
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-spring);
}
.toggle:hover { border-color: var(--teal); background: var(--surface); color: var(--teal); transform: scale(1.02); }
.toggle:active { transform: scale(0.98); }
.toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* A command the customer runs themselves. The button copies; it never runs. */
.cmd-label { font-size: 13px; color: var(--ink3); margin: 0 0 8px; }
.cmd {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 10px 12px;
  transition: all var(--dur-base) var(--ease-gentle);
}
.cmd:hover { border-color: var(--border2); background: var(--surface); }
.cmd code {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--ink);
  background: var(--surface);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.cmd button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font: 500 13px/1 var(--sans);
  color: var(--teal-ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-spring);
}
.cmd button:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-lt); transform: translateX(2px); }
.cmd button:active { transform: translateX(1px) scale(0.98); }
.cmd button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--teal-ink);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-spring);
}
.guide-link::after {
  content: "→";
  font-size: 1.1em;
  transition: transform var(--dur-base) var(--ease-spring);
  display: inline-block;
}
.guide-link:hover { color: var(--teal); text-decoration: none; }
.guide-link:hover::after { transform: translateX(4px); }
.guide-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.backline { display: inline-flex; align-items: center; gap: 8px; color: var(--ink3); font-size: 13px; }
.backline:hover { color: var(--teal-ink); }

/* Numbered how-to inside a field (manifest-owned steps), not the landing's
   four-up step grid. */
.field .steps {
  list-style: decimal;
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink2);
  counter-reset: none;
}
.field .steps li { opacity: 0; transform: translateX(-8px); }
.field .steps li.in-view { animation: stepEnter var(--dur-base) var(--ease-spring) forwards; }
.field .steps li:nth-child(1).in-view { animation-delay: 40ms; }
.field .steps li:nth-child(2).in-view { animation-delay: 70ms; }
.field .steps li:nth-child(3).in-view { animation-delay: 100ms; }
.field .steps li:nth-child(4).in-view { animation-delay: 130ms; }
@keyframes stepEnter { to { opacity: 1; transform: translateX(0); } }

/* A radio group is a list of cards: the whole card is the target, and the
   checked one is the only one that carries the accent. */
.choices { display: grid; gap: 12px; }
.choice {
  /* Double-bezel choice card */
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 1.5px;
  background: color-mix(in oklch, var(--bg) 95%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-spring);
  box-shadow: var(--sh-card);
}
.choice::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--teal) 15%, transparent), transparent);
  -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-gentle);
}
.choice > * {
  position: relative;
  background: var(--surface);
  border-radius: calc(var(--r-xl) - 1.5px);
  padding: 16px;
  flex: 1;
  min-width: 0;
  box-shadow: var(--sh-inner);
}
.choice:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-card-hover);
  border-color: var(--teal-b);
}
.choice:hover::before { opacity: 0.8; }
.choice:has(input:checked) {
  border-color: var(--teal);
  box-shadow: var(--sh-focus), var(--sh-card-hover);
  background: var(--teal-lt);
}
.choice:has(input:checked)::before {
  opacity: 1;
  background: linear-gradient(135deg, color-mix(in oklch, var(--teal) 30%, transparent), color-mix(in oklch, var(--teal) 10%, transparent));
}
html.dark .choice:has(input:checked) {
  background: color-mix(in oklch, var(--teal) 22%, var(--surface));
  border-color: var(--teal);
}
html.dark .choice:has(input:checked)::before {
  background: linear-gradient(135deg, color-mix(in oklch, var(--teal) 45%, transparent), color-mix(in oklch, var(--teal) 25%, transparent));
}
.choice input { margin-top: 4px; accent-color: var(--teal); transform: scale(1.1); }
.choice .opt { font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.choice .price {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--teal-ink);
}
.choice .why { font-size: 13px; line-height: 1.55; color: var(--ink2); margin-top: 6px; }
.choice .trade { font-size: 12.5px; line-height: 1.55; color: var(--ink3); margin-top: 3px; }

/* What the pick costs at the provider — disclosure under the control. */
.opt-note { font-size: 13px; line-height: 1.55; color: var(--ink3); margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--border); }

/* Consent is legally the most important text on the page, so it gets real
   line-height and a 13px floor, never 11px fine print. */
.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink2);
  padding: 4px 0;
}
.consent input { margin-top: 4px; accent-color: var(--teal); transform: scale(1.15); }
.consent-cost {
  display: block;
  margin-top: 8px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
  color: var(--ink3);
  font-size: 13px;
  line-height: 1.6;
}

/* Place order: the one primary action on the page, sized to be unmistakable
   next to the notes above it. — Magnetic button with nested icon pattern */
.submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font: 600 16px/1.2 var(--sans);
  color: var(--text-on-filled);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-spring);
  box-shadow: var(--sh-card);
  position: relative;
  overflow: hidden;
}
.submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-gentle);
}
.submit:hover {
  background: var(--teal-ink);
  border-color: var(--teal-ink);
  transform: translateY(-2px);
  box-shadow: var(--sh-card-hover);
}
.submit:hover::before { opacity: 1; }
.submit:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--sh-card);
}
.submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.submit:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

/* Submit failed: one banner at the top of the form, close to the button that
   caused it. */
.banner {
  display: block;
  margin-bottom: 22px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: var(--r-xl);
  border: 1px solid var(--red);
  background: var(--red-lo);
  color: var(--red);
  box-shadow: var(--sh-card);
  animation: bannerEnter var(--dur-slow) var(--ease-spring) forwards;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
}
@keyframes bannerEnter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.banner ul { margin: 10px 0 0; padding-left: 22px; font-size: 13px; }
.banner li { margin: 5px 0; }

/* ── SUCCESS ─────────────────────────────────────────────────────────────
   The screen after "Place order": what happened, what happens next, and the
   id to keep. */
.done {
  max-width: 640px;
  margin: 24px auto 0;
  display: grid;
  gap: 18px;
  justify-items: start;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: doneEnter var(--dur-enter) var(--ease-spring) forwards;
}
@keyframes doneEnter {
  to { opacity: 1; transform: translateY(0); }
}
.done h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
.tick {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-lt);
  border: 1px solid var(--green-b);
  color: var(--green);
  box-shadow: var(--sh-card);
  animation: tickPop var(--dur-slow) var(--ease-spring) forwards;
  transform: scale(0);
}
@keyframes tickPop {
  50% { transform: scale(1.15); }
  to { transform: scale(1); }
}
.tick svg { width: 28px; height: 28px; }
.orderid {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 14px;
  word-break: break-all;
  user-select: all;
  background: var(--bg2);
  border: 1px dashed var(--border2);
  border-radius: var(--r-xl);
  transition: all var(--dur-base) var(--ease-spring);
}
.orderid:hover { border-style: solid; border-color: var(--teal-b); background: var(--surface); }

/* ── CARD CHROME FOR PORTAL BLOCKS ────────────────────────────────────────*/
.lp-card {
  /* Double-bezel portal card */
  position: relative;
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5px;
  box-shadow: var(--sh-card);
  transition: all var(--dur-slow) var(--ease-gentle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--teal) 10%, transparent), transparent);
  -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}
.lp-card > * {
  position: relative;
  background: var(--surface);
  border-radius: calc(var(--r-xl) - 1.5px);
  padding: 24px;
  box-shadow: var(--sh-inner);
  flex: 1;
}
.lp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card-hover);
}
.lp-card:hover::before { opacity: 0.8; }
.lp-card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.lp-card p { margin: 0; color: var(--ink2); font-size: 14.5px; line-height: 1.6; }

/* Form control for the marketing surfaces (landing status, portal selects). */
.form-input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  transition: all var(--dur-base) var(--ease-spring);
  box-shadow: var(--sh-card);
}
.form-input:hover { border-color: var(--border2); box-shadow: var(--sh-card-hover); }
.form-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--sh-focus);
  background: var(--surface);
  transform: translateY(-1px);
}

/* Credential inputs the portal adds to a decommission block. */
.lp-field {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  transition: all var(--dur-base) var(--ease-spring);
}
.lp-field:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--sh-focus);
  background: var(--surface);
}

/* ── LOADING ──────────────────────────────────────────────────────────────*/
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: var(--r-xl);
  color: transparent;
  user-select: none;
  pointer-events: none;
}
@keyframes shimmer {
  from { background-position: -200px 0; }
  to { background-position: calc(200px + 100%) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background: var(--surface2); }
}

/* ── FOCUS ────────────────────────────────────────────────────────────────
   One ring for every interactive thing on a customer page. Visible on both
   themes because it uses the accent, not a tint. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── REVEAL ANIMATIONS ────────────────────────────────────────────────────
   Sections arrive once as they enter the viewport, in scroll order. Reduced
   motion gets them visible and still; the <noscript> block on the page covers
   a browser that never runs the observer at all. `opacity: 0` must never be
   the only thing keeping content away from a user. */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: opacity var(--dur-enter) var(--ease-gentle),
              transform var(--dur-enter) var(--ease-gentle),
              filter var(--dur-enter) var(--ease-gentle);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* Stagger delays for reveal children */
.reveal.stagger-1 { transition-delay: 0ms; }
.reveal.stagger-2 { transition-delay: 80ms; }
.reveal.stagger-3 { transition-delay: 160ms; }
.reveal.stagger-4 { transition-delay: 240ms; }
.reveal.stagger-5 { transition-delay: 320ms; }
.reveal.stagger-6 { transition-delay: 400ms; }

/* ── SMALL SCREENS ───────────────────────────────────────────────────────*/
@media (max-width: 960px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cols > .rail { position: static; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-bottom: 56px; }
  .wrap { padding: 0 20px 100px; }
  .price-strip > * { padding: 14px 18px; }
}

@media (max-width: 860px) {
  .section.variant-marketing { margin-bottom: 56px; }
  .section.variant-marketing h2 { font-size: 24px; }
  .steps.variant-marketing { grid-template-columns: 1fr; gap: 16px; }
  .proof > * { padding: 20px; }
  .card > * { padding: 18px; }
  .choice > * { padding: 14px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px 80px; }
  .wrap h1 { font-size: 30px; }
  .lede { font-size: 16px; margin-bottom: 20px; }
  .sub { font-size: 14.5px; }
  .section.variant-marketing { margin-bottom: 48px; }
  .section.variant-marketing h2 { font-size: 22px; }
  .steps.variant-marketing { grid-template-columns: 1fr; gap: 14px; }
  .proof > * { padding: 16px; }
  .card > * { padding: 16px; }
  .choice > * { padding: 12px; }
  .status { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
  .status .form-input { min-width: 0; }
  .status .btn { width: 100%; }
  .foot { gap: 8px 18px; font-size: 12.5px; padding-top: 20px; }
  .price-strip > * { padding: 12px 16px; }
  .price-strip .note { margin-left: 0; max-width: none; }
  .nav-bar.variant-marketing { padding: 14px 0; margin-bottom: 28px; }
  .submit { padding: 14px 20px; font-size: 15px; }
  .fields { gap: 18px; }
  .field > input,
  .field > select,
  .field > textarea,
  .field .secret input { padding: 11px 13px; font-size: 16px; } /* 16px prevents iOS zoom */
  .toggle { width: 44px; padding: 0 12px; }
  .cmd { padding: 8px 10px; }
  .cmd code { font-size: 12.5px; padding: 5px 8px; }
  .cmd button { padding: 7px 12px; font-size: 12.5px; }
  /* Prevent horizontal overflow on order form */
  .cols { gap: 20px; }
  .cols > .rail { gap: 14px; }
  .field > input,
  .field > select,
  .field > textarea,
  .field .secret input { max-width: 100%; box-sizing: border-box; }
  .choice { max-width: 100%; box-sizing: border-box; }
  .price-strip > * { max-width: 100%; box-sizing: border-box; }
}