/* Frontli — site.css
   One stylesheet. Tokens, then layout, then components, then motion.
   Palette is jade on cool paper, with a near-black ink for dark sections.
   Nothing here depends on a framework. */

/* --- Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Ink and paper. Cool greys, not warm. */
  --ink:        #0C1116;
  --ink-2:      #4C5864;
  --ink-3:      #71808D;
  --paper:      #FFFFFF;
  --paper-cool: #F5F7F8;
  --paper-deep: #EDF1F2;
  --line:       #E1E7EA;
  --line-soft:  #EEF2F4;

  /* Jade. Signals a live, answered line. */
  --jade:       #0E7C5A;
  --jade-hover: #0A6349;
  --jade-lift:  #14966D;
  --jade-tint:  #E7F4EF;
  --jade-line:  #C4E3D7;

  /* Dark surface for the hero and closing sections. */
  --night:      #081210;
  --night-2:    #0E1C18;
  --night-line: rgba(255, 255, 255, 0.10);
  --night-ink:  #AFC3BC;

  /* Amber, used only for urgency markers in product UI. */
  --amber:      #B45309;
  --amber-tint: #FEF3E2;

  /* Type */
  --font-display: 'Instrument Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Scale */
  --step--2: 0.8125rem;
  --step--1: 0.9rem;
  --step-0:  1.0625rem;
  --step-1:  1.3125rem;
  --step-2:  1.75rem;
  --step-3:  2.375rem;
  --step-4:  3.25rem;
  --step-5:  4.25rem;

  /* Geometry */
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  18px;
  --radius-xl:  26px;
  --radius-pill: 999px;
  --space:   clamp(4.5rem, 10vw, 8.5rem);
  --measure: 66ch;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --maxw:    1240px;
  --header-h: 68px;

  /* Elevation, tinted with the ink so shadows stay in palette */
  --shadow-xs: 0 1px 2px rgba(12, 17, 22, 0.05);
  --shadow-sm: 0 1px 2px rgba(12, 17, 22, 0.04), 0 2px 8px rgba(12, 17, 22, 0.05);
  --shadow-md: 0 2px 6px rgba(12, 17, 22, 0.05), 0 10px 26px rgba(12, 17, 22, 0.08);
  --shadow-lg: 0 6px 14px rgba(12, 17, 22, 0.06), 0 28px 64px rgba(12, 17, 22, 0.13);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.034em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.6vw, var(--step-5)); line-height: 1.01; letter-spacing: -0.042em; }
h2 { font-size: clamp(1.875rem, 4.4vw, var(--step-3)); }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.024em; line-height: 1.28; }
h4 { font-size: var(--step-0); font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; }

p, li { max-width: var(--measure); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--jade-hover); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Layout --------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--space); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--cool { background: var(--paper-cool); }
.section--night { background: var(--night); color: #fff; }
.section--night h1, .section--night h2, .section--night h3, .section--night h4 { color: #fff; }
.section--night p { color: var(--night-ink); }
.section--night a { color: #fff; }

.grid { display: grid; gap: clamp(1.5rem, 3.5vw, 2.5rem); }
@media (min-width: 900px) {
  .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)); }
  .grid--6-6 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid--7-5 { grid-template-columns: 7fr 5fr; align-items: start; }
  .grid--5-7 { grid-template-columns: 5fr 7fr; align-items: start; }
  .grid--5-7 .order-first { order: -1; }
}
@media (min-width: 620px) and (max-width: 899px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stack > * + * { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* --- Type utilities ------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin: 0 0 1.1rem;
}
.section--night .eyebrow { color: #7FA698; }
.eyebrow--jade { color: var(--jade); }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.section--night .lede { color: var(--night-ink); }

.small { font-size: var(--step--1); color: var(--ink-2); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); max-width: 60ch; }
.section-head p { color: var(--ink-2); }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.008em;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease), box-shadow 200ms var(--ease),
              transform 200ms var(--ease);
}
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, var(--jade-lift) 0%, var(--jade) 64%);
  color: #fff;
  border-color: var(--jade-hover);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #118A64 0%, var(--jade-hover) 64%);
  color: #fff;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover { border-color: var(--ink-3); box-shadow: var(--shadow-sm); transform: translateY(-1px); }

.section--night .btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.section--night .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  box-shadow: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem 0.5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.btn-link::after { content: "\2192"; font-size: 0.95em; line-height: 1; transition: transform 180ms var(--ease); }
.btn-link:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-1px); color: var(--ink); }
.btn-link:hover::after { transform: translateX(3px); }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.logo-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px var(--jade-tint);
  flex: none;
}
.section--night .logo, .site-footer .logo { color: var(--ink); }

.nav { display: none; gap: 1.75rem; }
@media (min-width: 980px) { .nav { display: flex; align-items: center; } }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 480;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--jade); }

.header-cta { display: none; }
@media (min-width: 980px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  cursor: pointer;
}
@media (min-width: 980px) { .nav-toggle { display: none; } }

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  padding: var(--gutter);
  display: none;
  flex-direction: column;
}
.mobile-panel.is-open { display: flex; }
.mobile-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.mobile-panel nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-panel nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-panel .btn { margin-top: 2rem; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(60% 55% at 22% 12%, rgba(20, 150, 109, 0.22) 0%, transparent 62%),
    radial-gradient(48% 48% at 88% 6%, rgba(14, 124, 90, 0.17) 0%, transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { color: var(--night-ink); max-width: 50ch; margin-top: 1.5rem; }
.hero .eyebrow { color: #7FA698; }

.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; padding: 0; }
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: none;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.8125rem;
  line-height: 1.2;
  color: #CBDDD6;
}
.hero-chips li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--jade-lift);
  flex: none;
}

/* --- Call transcript panel ------------------------------------------------ */

.callpanel {
  border: 1px solid var(--night-line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.018) 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.callpanel-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 13px 18px;
  border-bottom: 1px solid var(--night-line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8FB3A7;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--jade-lift);
  flex: none;
  box-shadow: 0 0 0 0 rgba(20, 150, 109, 0.6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20, 150, 109, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(20, 150, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 150, 109, 0); }
}
.callpanel-tag {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  color: #8FB3A7;
  letter-spacing: 0.08em;
}
.callpanel-body { padding: 1.25rem 1.25rem 1rem; display: flex; flex-direction: column; gap: 0.9rem; }

.turn { display: flex; gap: 0.75rem; max-width: none; }
.turn-who {
  flex: none;
  width: 58px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6F9287;
}
.turn-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #DCE9E4;
  max-width: none;
  margin: 0;
}
.turn--agent .turn-who { color: var(--jade-lift); }
.turn--agent .turn-text { color: #fff; }

.callpanel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem 1.25rem;
  border-top: 1px solid var(--night-line);
  margin-top: 0.25rem;
}
.datachip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 5px 11px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #CBDDD6;
}
.datachip b { color: #6F9287; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.62rem; }

/* --- Agent cards ---------------------------------------------------------- */

.agentcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 240ms var(--ease), transform 240ms var(--ease), border-color 240ms var(--ease);
  overflow: hidden;
}
.agentcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--jade) 0%, var(--jade-lift) 100%);
  opacity: 0.9;
}
.agentcard:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #D2DBDF; }
.agentcard-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.agentmark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--jade-tint);
  border: 1px solid var(--jade-line);
  color: var(--jade);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.agentcard h3 { margin: 0 0 0.1rem; }
.agentcard .role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
}
.agentcard .btn-link { margin-top: auto; align-self: flex-start; }
.agentcard-body { margin-bottom: 1.5rem; }

/* --- Cards, panels, callouts ---------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 240ms var(--ease), transform 240ms var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin: 0; }
.card p { color: var(--ink-2); font-size: 0.9375rem; margin: 0; }
.card-foot { margin-top: auto; padding-top: 1.25rem; }

.panel {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}
.panel--tint { background: var(--jade-tint); border-color: var(--jade-line); }
.panel--flat { box-shadow: none; background: var(--paper-cool); }

.callout {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.notice {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--jade-line);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: var(--jade-tint);
  font-size: 0.9375rem;
  color: var(--ink);
}
.notice p { margin: 0; max-width: none; }
.notice strong { font-weight: 600; }

/* --- Lists ---------------------------------------------------------------- */

.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.8rem; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.44em;
  width: 15px; height: 8px;
  border-left: 1.9px solid var(--jade);
  border-bottom: 1.9px solid var(--jade);
  border-radius: 1px;
  transform: rotate(-45deg) scale(0.72);
  transform-origin: 30% 60%;
}
.section--night .tick-list li::before { border-color: var(--jade-lift); }

.cross-list { list-style: none; padding: 0; margin: 0; }
.cross-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.8rem; color: var(--ink-2); }
.cross-list li::before,
.cross-list li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 13px;
  height: 1.8px;
  background: var(--ink-3);
  border-radius: 2px;
}
.cross-list li::before { transform: rotate(45deg); }
.cross-list li::after { transform: rotate(-45deg); }

.spec-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.spec-list li {
  display: grid;
  gap: 0.15rem 1.5rem;
  max-width: none;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.spec-list li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .spec-list li { grid-template-columns: 11rem 1fr; align-items: baseline; } }
.spec-list--tight li { padding: 0.6rem 0; }
.spec-list--tight li:first-child { border-top: none; }
@media (min-width: 640px) { .spec-list--tight li { grid-template-columns: 7rem 1fr; } }
.spec-k {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.spec-v { color: var(--ink); }

/* --- Steps ---------------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 900px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { background: var(--paper); padding: 1.75rem 1.5rem; }
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--jade-tint);
  color: var(--jade);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
}
.step h3 { font-size: var(--step-0); margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--ink-2); margin: 0; }

/* --- Stats ---------------------------------------------------------------- */

.stats { display: grid; gap: 1.75rem; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat .stat-figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.375rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat .stat-sub { font-size: 0.55em; font-weight: 400; color: var(--ink-2); letter-spacing: -0.01em; }
.stat .stat-label {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* --- Pricing -------------------------------------------------------------- */

.price-fig {
  margin: 0.35rem 0 1.1rem;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.price-unit {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
}
.price-add { list-style: none; margin: 0 0 1.25rem; padding: 1rem 0 0; border-top: 1px solid var(--line); }
.price-add li { max-width: none; margin-bottom: 0.4rem; font-size: 0.9375rem; color: var(--ink-2); }
.price-add strong { color: var(--ink); font-weight: 600; }
.panel--featured { border-color: var(--jade); border-width: 1.5px; background: var(--jade-tint); }

/* --- Tables --------------------------------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 620px; }
caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-bottom: 1rem;
}
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border-bottom-color: var(--ink);
}
tbody th { font-weight: 550; color: var(--ink); }
td { color: var(--ink-2); }
td.figure, th.figure { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.table-note { margin-top: 1.25rem; font-size: var(--step--1); color: var(--ink-2); }

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

.faq { border-top: 1px solid var(--line); max-width: 54rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--jade);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 24px; }
.faq .answer p:first-child { font-weight: 550; color: var(--ink); }
.faq .answer p { color: var(--ink-2); }

/* --- Forms ---------------------------------------------------------------- */

.form-grid { display: grid; gap: 1.1rem; }
.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.label-opt { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.75rem; opacity: 0.85; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--jade);
  box-shadow: 0 0 0 3px var(--jade-tint);
}
.field textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Footer --------------------------------------------------------------- */

.site-footer { background: var(--paper-cool); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact-h { margin-top: 1.75rem; }
.footer-contact { margin: 0 0 0.5rem; max-width: none; }
.footer-contact a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-meta {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* --- Breadcrumbs ---------------------------------------------------------- */

.crumbs { padding-top: 1.75rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.crumbs li { color: var(--ink-3); max-width: none; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* --- Sticky mobile CTA ---------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  z-index: 40;
  display: flex;
}
.sticky-cta .btn { flex: 1; box-shadow: var(--shadow-lg); }
@media (min-width: 980px) { .sticky-cta { display: none; } }

/* --- Motion --------------------------------------------------------------- */

.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

@keyframes fr-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.js-reveal .hero-copy > *,
.js-reveal .hero-aside {
  opacity: 0;
  animation: fr-rise 720ms var(--ease) forwards;
}
.js-reveal .hero-copy > *:nth-child(1) { animation-delay: 60ms; }
.js-reveal .hero-copy > *:nth-child(2) { animation-delay: 140ms; }
.js-reveal .hero-copy > *:nth-child(3) { animation-delay: 220ms; }
.js-reveal .hero-copy > *:nth-child(4) { animation-delay: 300ms; }
.js-reveal .hero-copy > *:nth-child(5) { animation-delay: 380ms; }
.js-reveal .hero-aside { animation-delay: 300ms; }

.js-reveal .callpanel-body .turn,
.js-reveal .callpanel-foot .datachip {
  opacity: 0;
  animation: fr-rise 520ms var(--ease) forwards;
  animation-delay: calc(560ms + var(--i, 0) * 180ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .hero-copy > *,
  .js-reveal .hero-aside,
  .js-reveal .callpanel-body .turn,
  .js-reveal .callpanel-foot .datachip { opacity: 1; animation: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .live-dot { animation: none; }
  .btn:hover, .card:hover, .agentcard:hover, .btn-link:hover { transform: none; }
}
