/* ============================================================
   Lineworks — sample site by Even Ground Studio
   Fonts: Fraunces Variable (display), Public Sans Variable (body),
   IBM Plex Mono (utility / tabular figures)
   ============================================================ */

@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/fraunces-variable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/fraunces-variable-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Public Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/public-sans-variable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/ibm-plex-mono-600.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  --paper: #F3F4F2;
  --ink: #1B1C17;
  --panel: #1E2420;
  --signal: #FF6B2C;
  --wire: #2D6A5A;
  --line: #DADBD6;

  --ink-soft: rgba(27, 28, 23, 0.64);
  --ink-faint: rgba(27, 28, 23, 0.4);
  --paper-dim: rgba(27, 28, 23, 0.045);
  --panel-soft: rgba(243, 244, 242, 0.72);
  --panel-faint: rgba(243, 244, 242, 0.5);
  --signal-soft: rgba(255, 107, 44, 0.14);
  --wire-soft: rgba(62, 134, 115, 0.16);

  --font-display: 'Fraunces Variable', ui-serif, Georgia, serif;
  --font-body: 'Public Sans Variable', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --wrap: 1180px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, dt { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--wire);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 500;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 480; letter-spacing: -0.01em; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  min-height: 48px;
  transition: transform 0.35s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn--signal { background: var(--ink); color: var(--paper); }
.btn--signal:hover { background: var(--wire); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); width: 100%; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--small { padding: 10px 20px; min-height: 40px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) {
  .btn { will-change: transform; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(243, 244, 242, 0.86);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand__mark { color: var(--ink); display: inline-flex; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.main-nav {
  display: none;
  gap: 28px;
  margin-left: 12px;
  font-size: 14.5px;
}
.main-nav a { color: var(--ink-soft); transition: color 0.2s; position: relative; }
.main-nav a:hover { color: var(--ink); }
.site-header .btn { display: none; }

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-nav.is-open { max-height: 420px; }
.mobile-nav a {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav__cta { color: var(--ink); font-weight: 700; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .site-header .btn { display: inline-flex; margin-left: auto; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 48px 0 64px; }
.hero__inner {
  display: grid;
  gap: 40px;
}
@media (min-width: 980px) {
  .hero { padding: 72px 0 96px; }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 32px; }
}
.hero__headline {
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.07;
  margin: 0 0 20px;
}
.hero__sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__meta { font-size: 13.5px; color: var(--ink-faint); max-width: 40ch; }

.hero__visual { display: flex; justify-content: center; }

/* ---------- phone shell (shared component) ---------- */
.phone-shell {
  width: 266px;
  aspect-ratio: 9 / 18.5;
  min-height: 0;
  background: var(--panel);
  border-radius: 38px;
  padding: 14px;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(27, 28, 23, 0.35), 0 0 0 1px rgba(27,28,23,0.06);
}
.phone-shell__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 18px;
  background: var(--panel);
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-shell__notch::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px;
  height: 5px;
  top: 7px;
  background: rgba(243,244,242,0.12);
  border-radius: 4px;
}
.phone-shell__screen {
  background: linear-gradient(180deg, #262D27, #1C211C);
  border-radius: 26px;
  height: 100%;
  padding: 36px 16px 18px;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-wrap: break-word;
}
.phone-status { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--panel-soft); margin-bottom: 18px; }
.phone-status__sig { color: var(--wire); }
.phone-screen-title { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--panel-faint); margin-bottom: 10px; }
.call-log { display: flex; flex-direction: column; gap: 10px; }
.call-log li { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid rgba(243,244,242,0.08); padding-bottom: 9px; }
.call-log__name { font-size: 13.5px; font-weight: 600; }
.call-log__meta { font-size: 11.5px; color: var(--panel-faint); font-family: var(--font-mono); }
.phone-live-ticker {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--wire);
  padding-top: 12px;
}
.phone-live-ticker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wire); box-shadow: 0 0 0 0 var(--wire-soft); animation: pulseDot 2.2s infinite; }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(62,134,115,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(62,134,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,134,115,0); }
}

/* ---------- story phone states ---------- */
.phone-shell--story { margin: 0 auto; }
.story-incoming { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; gap: 6px; }
.story-incoming__label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--panel-faint); }
.story-incoming__number { font-family: var(--font-mono); font-size: 17px; color: var(--paper); margin: 6px 0 2px; }
.story-incoming__place { font-size: 12px; color: var(--panel-faint); margin-bottom: 18px; }
.story-incoming__ring {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid var(--signal);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--signal);
}
.story-incoming__ring::before, .story-incoming__ring::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--signal);
  animation: ringPulse 1.6s infinite;
}
.story-incoming__ring::after { animation-delay: 0.5s; }
@keyframes ringPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }

.story-ivr, .story-active, .story-ai {
  display: flex; flex-direction: column; height: 100%; gap: 10px;
}
.story-ivr__menu { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.story-ivr__opt { font-size: 10.5px; padding: 7px 8px; border-radius: 9px; background: rgba(243,244,242,0.06); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.story-ivr__opt.is-picked { background: var(--signal-soft); color: var(--signal); font-weight: 600; }
.story-ivr__picked-mark { font-family: var(--font-mono); font-size: 9px; white-space: nowrap; }

@media (min-width: 900px) {
  .story-ivr__opt { font-size: 12.5px; padding: 9px 10px; }
  .story-ivr__picked-mark { font-size: 11px; }
}

.story-active__role { font-size: 13px; color: var(--panel-faint); margin-bottom: 4px; }
.story-active__who { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.story-active__dots { display: flex; gap: 6px; }
.story-active__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--panel-faint); }
.story-active__dots span.is-live { background: var(--signal); animation: pulseDot 1s infinite; }

.story-ai__badge { align-self: flex-start; font-family: var(--font-mono); font-size: 10.5px; padding: 5px 10px; border-radius: 999px; background: var(--wire-soft); color: var(--wire); margin-bottom: 10px; }
.story-ai__line { font-size: 12.5px; color: var(--panel-soft); line-height: 1.5; }

/* ============================================================
   SIGNATURE: call story pinned section
   ============================================================ */
.call-story { background: var(--paper); padding-top: 64px; }
.call-story__intro { max-width: 720px; padding-bottom: 36px; }
.call-story__intro h2 { font-size: clamp(27px, 5vw, 40px); line-height: 1.16; margin-bottom: 16px; }
.call-story__sub { color: var(--ink-soft); font-size: 16px; max-width: 54ch; }

.call-story__pin { position: relative; }
.call-story__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: calc(68px + 4px) 0 12px;
  min-height: 100vh;
  box-sizing: border-box;
}
.call-story__phone-col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.call-story__route-col { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 330px; }

.phone-shell--story { width: 122px; }

.call-waveform {
  width: 100%;
  max-width: 260px;
  background: var(--panel);
  border-radius: var(--radius-s);
  padding: 7px 12px 6px;
}
.call-waveform canvas { width: 100%; height: 26px; }
.call-waveform__readout { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; font-family: var(--font-mono); }
.call-timer { color: var(--paper); font-size: 13px; letter-spacing: 0.02em; }
.call-status { color: var(--signal); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }

.route-tree { width: auto; max-height: 220px; height: auto; color: var(--line); overflow: visible; margin: 0 auto; }
.route-path { fill: none; stroke: var(--line); stroke-width: 2.2; transition: stroke 0.4s var(--ease); }
.route-path.is-active { stroke: var(--wire); }
.route-node rect { fill: var(--paper); stroke: var(--line); stroke-width: 1.6; transition: stroke 0.4s var(--ease), fill 0.4s var(--ease); }
.route-node text { font-family: var(--font-body); font-size: 13px; fill: var(--ink); text-anchor: middle; font-weight: 600; }
.route-node__sub, .route-node__title { font-weight: 500; }
.route-node__sub { font-size: 11px; fill: var(--ink-faint); font-family: var(--font-mono); }
.route-node__title { font-size: 14px; text-anchor: start; }
.route-node.is-active rect { stroke: var(--wire); stroke-width: 2.4; }
.route-node.is-active .route-node__sub { fill: var(--wire); }
.route-node--ring text:not(.route-node__title) { text-anchor: start; fill: var(--ink-soft); font-size: 12.5px; font-weight: 400; }
.ring-person circle { fill: var(--ink-faint); transition: fill 0.3s; }
.ring-person.is-ringing circle { fill: var(--signal); animation: pulseDot 1s infinite; }
.ring-person.is-ringing text { fill: var(--ink); font-weight: 600; }
.route-node--ai.is-active rect { fill: var(--wire-soft); }

.transcript-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  min-height: 60px;
  opacity: 0.35;
  transition: opacity 0.4s var(--ease);
}
.transcript-card.is-active { opacity: 1; }
.transcript-card__label { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--signal); margin-bottom: 5px; }
.transcript-card__text { font-size: 12px; line-height: 1.45; min-height: 5.8em; }
.transcript-card__text::after { content: ''; display: inline-block; width: 2px; height: 1em; background: var(--signal); margin-left: 2px; vertical-align: -2px; animation: blinkCursor 1s step-end infinite; }

@keyframes blinkCursor { 50% { opacity: 0; } }

.summary-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.summary-card.is-active { opacity: 1; transform: translateY(0); }
.summary-card__label { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wire); margin-bottom: 6px; }
.summary-card dl { display: flex; flex-direction: column; gap: 5px; }
.summary-card dl > div { display: flex; flex-direction: row; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.summary-card dt { font-size: 9.5px; color: var(--ink-faint); font-family: var(--font-mono); flex: 0 0 auto; }
.summary-card dd { font-size: 12px; font-weight: 600; margin: 0; }

@media (min-width: 900px) {
  .call-story__stage {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 68px 0 0;
  }
  .call-story__phone-col { flex: 0 0 260px; gap: 20px; }
  .phone-shell--story { width: 260px; }
  .call-story__route-col { flex: 1 1 auto; max-width: 820px; gap: 16px; }
  .call-waveform { max-width: 100%; padding: 14px 16px 12px; }
  .call-waveform canvas { height: 56px; }
  .call-timer { font-size: 15px; }
  .call-status { font-size: 11.5px; }
  .route-tree { width: 100%; max-height: none; }
  .transcript-card, .summary-card { padding: 16px 20px; border-radius: var(--radius-m); }
  .transcript-card { min-height: 92px; }
  .transcript-card__text { font-size: 14.5px; }
  .summary-card dd { font-size: 14px; }
}

@media (min-width: 1200px) {
  .call-story__phone-col { flex-basis: 290px; }
  .phone-shell--story { width: 290px; }
}

body.reduced-motion .call-story__stage { min-height: auto; flex-direction: column; padding: 28px 0 56px; }
body.reduced-motion .call-story__route-col { max-width: 100%; }
body.reduced-motion .transcript-card,
body.reduced-motion .summary-card { opacity: 1; transform: none; }

/* ============================================================
   SECTION HEAD (shared)
   ============================================================ */
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.18; margin-bottom: 14px; }
.section-head__sub { color: var(--ink-soft); font-size: 16px; }
.section-head--on-dark h2 { color: var(--paper); }

/* ============================================================
   PLANS
   ============================================================ */
.plans { padding: 88px 0; }

.seat-slider {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px 26px 22px;
  margin-bottom: 40px;
}
.seat-slider__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.seat-slider__row label { font-weight: 600; font-size: 15px; }
.seat-slider__row output { font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--wire); }
#seatRange {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  margin: 10px 0 10px;
  min-height: 44px;
  padding: 19px 0;
  background-clip: content-box;
}
#seatRange::-webkit-slider-thumb {
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: background 0.2s;
}
#seatRange::-webkit-slider-thumb:hover { background: var(--wire); }
#seatRange::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line); cursor: pointer;
}
.seat-slider__scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); padding: 0 2px; }
.seat-slider__tier { margin-top: 14px; font-size: 13.5px; color: var(--wire); font-weight: 600; }

.plan-grid { display: grid; gap: 20px; margin-bottom: 24px; }
.plan-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.plan-card--featured { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.plan-card--featured .plan-card__desc { color: var(--panel-soft); }
.plan-card--featured ul li { border-color: rgba(243,244,242,0.12); }
.plan-card--featured ul li::before { color: var(--wire); }
.plan-card--featured .plan-card__unit, .plan-card--featured .plan-card__total { color: var(--panel-faint); }
.plan-card h3 { font-size: 22px; margin-bottom: 8px; }
.plan-card__desc { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; min-height: 2.4em; }
.plan-card__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-card__amount { font-family: var(--font-mono); font-size: 40px; font-weight: 600; }
.plan-card__amount::before { content: '$'; font-size: 22px; vertical-align: top; margin-right: 1px; }
.plan-card__unit { font-size: 13.5px; color: var(--ink-faint); }
.plan-card__total { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); margin-bottom: 22px; }
.plan-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan-card li { font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line); padding-left: 18px; position: relative; }
.plan-card li::before { content: '\2022'; color: var(--wire); position: absolute; left: 0; font-weight: 700; }
.plan-grid__note { font-size: 13px; color: var(--ink-faint); text-align: center; }

@media (min-width: 740px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } .plan-card--featured { transform: translateY(-10px); } }

/* ============================================================
   PORTING
   ============================================================ */
.porting { padding: 88px 0; background: var(--paper-dim); }
.porting-steps { display: grid; gap: 28px; }
.porting-steps li { position: relative; padding-left: 56px; }
.porting-steps__index {
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.porting-steps h3 { font-size: 18px; margin-bottom: 6px; }
.porting-steps p { color: var(--ink-soft); font-size: 15px; max-width: 56ch; }

@media (min-width: 820px) { .porting-steps { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; } }

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 88px 0; }
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.feature-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
  transition: border-color 0.25s, transform 0.3s var(--ease);
}
.feature-card:hover { border-color: var(--ink); }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

@media (min-width: 680px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   RELIABILITY
   ============================================================ */
.reliability { padding: 88px 0; background: var(--panel); color: var(--paper); }
.fact-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); margin-bottom: 36px; }
.fact-card__num { font-family: var(--font-mono); font-size: clamp(32px, 5vw, 46px); font-weight: 600; color: var(--wire); font-variant-numeric: tabular-nums; }
.fact-card__label { font-size: 13.5px; color: var(--panel-soft); margin-top: 6px; max-width: 24ch; }
.reliability__note { color: var(--panel-soft); font-size: 14.5px; max-width: 64ch; border-top: 1px solid rgba(243,244,242,0.15); padding-top: 24px; }

@media (min-width: 740px) { .fact-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   START / CONVERSION
   ============================================================ */
.start { padding: 88px 0; }
.start__inner { display: grid; gap: 40px; }
.start__copy h2 { font-size: clamp(27px, 4.6vw, 38px); margin-bottom: 16px; }
.start__copy p { color: var(--ink-soft); font-size: 16px; max-width: 46ch; }

.start-form {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.start-form__grid { display: grid; gap: 16px; }
.start-form__row { display: flex; flex-direction: column; gap: 7px; }
.start-form label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.start-form input {
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
  min-height: 44px;
  transition: border-color 0.2s;
}
.start-form input:focus { border-color: var(--ink); }
.start-form__note { font-size: 12.5px; color: var(--ink-faint); text-align: center; }
.start-form__note.is-success { color: var(--wire); font-weight: 600; }

@media (min-width: 640px) { .start-form__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .start__inner { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }

/* ============================================================
   FOOTER + SAMPLE PILL
   ============================================================ */
.site-footer { background: var(--ink); color: var(--panel-soft); padding: 60px 0 0; }
.site-footer__inner { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(243,244,242,0.12); }
.site-footer .brand { color: var(--paper); margin-bottom: 12px; }
.site-footer__brand p { font-size: 13.5px; max-width: 32ch; color: var(--panel-faint); }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer__nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--panel-faint); margin-bottom: 14px; font-family: var(--font-mono); }
.site-footer__nav a { display: block; font-size: 14px; padding: 6px 0; color: var(--panel-soft); }
.site-footer__nav a:hover { color: var(--wire); }
.site-footer__bottom { padding: 22px 0 28px; font-size: 12.5px; color: var(--panel-faint); }
.site-footer__bottom a { text-decoration: underline; text-decoration-color: rgba(243,244,242,0.3); }

@media (min-width: 740px) { .site-footer__inner { grid-template-columns: 1.2fr 2fr; } }

.sample-pill {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.4);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.sample-pill:hover { background: var(--wire); color: var(--paper); transform: translateY(-2px); }

/* ============================================================
   SplitText lines
   ============================================================ */
.split-line { overflow: hidden; display: block; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* contrast pass (Even Ground, 11-02): green on the dark panels */
.phone-shell, .call-waveform, .transcript-card, .summary-card, [class*="phone"], [class*="panel"] { --wire: #72BCA5; }
