/* ===========================================================================
   Voicemax — design system
   Editorial ink-on-paper foundation with a single high-voltage signal accent.
   Type: Space Grotesk (display/UI) · Instrument Serif (editorial) · DM Mono (data)
   =========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Ink family — warm near-blacks */
  --ink:        #1d1d1d;
  --ink-raised: #252525;
  --ink-soft:   #2e2e2c;
  --ink-line:   rgba(232, 230, 224, 0.14);
  --ink-line-2: rgba(232, 230, 224, 0.28);

  /* Paper family — warm bone */
  --paper:      #e5e4e0;
  --paper-lift: #eeece7;
  --paper-max:  #f7f6f3;
  --rule:       rgba(29, 29, 29, 0.14);
  --rule-2:     rgba(29, 29, 29, 0.26);

  /* Signal — the one accent. Used for CTAs and live states. */
  --signal:      #cdf546;
  --signal-deep: #b6dd35;
  --signal-dim:  rgba(205, 245, 70, 0.16);

  /* Text roles */
  --on-paper:       #1d1d1d;
  --on-paper-muted: #5c5c56;
  --on-ink:         #efeee9;
  --on-ink-muted:   #a3a29b;

  /* Type */
  --font-sans:  'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono:  'DM Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Fluid scale — 320px → 1600px */
  --t-display: clamp(2.75rem, 1.1rem + 8.2vw, 8.5rem);
  --t-h1:      clamp(2.25rem, 1.2rem + 5.2vw, 5.25rem);
  --t-h2:      clamp(1.75rem, 1.1rem + 3.0vw, 3.5rem);
  --t-h3:      clamp(1.25rem, 1.0rem + 1.1vw, 1.875rem);
  --t-h4:      clamp(1.0625rem, 0.98rem + 0.5vw, 1.3125rem);
  --t-lead:    clamp(1.0625rem, 0.98rem + 0.62vw, 1.4375rem);
  --t-body:    clamp(0.9875rem, 0.95rem + 0.22vw, 1.0625rem);
  --t-small:   0.8125rem;
  --t-micro:   0.6875rem;

  /* Rhythm */
  --gutter:  clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --section: clamp(4.5rem, 2.5rem + 8vw, 10rem);
  --maxw:    82.5rem;   /* 1320px */
  --measure: 38rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.55s;

  --radius:    2px;
  --radius-lg: 4px;
}

/* --- 2. Reset ------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--on-paper);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

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

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

/* --- 3. Layout primitives ------------------------------------------------ */

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

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
:is(.section--ink, .hero, .cta-band) {
  background: var(--ink);
  color: var(--on-ink);
}
:is(.section--ink, .hero, .cta-band) .lead,
:is(.section--ink, .hero, .cta-band) .muted { color: var(--on-ink-muted); }
.section--lift { background: var(--paper-lift); }

/* --- Signal rings ---------------------------------------------------------
   The lime accent as line work, not light. Three hairline arcs radiate from
   one corner of an ink surface, like sound leaving a handset, with a faint
   flat tint inside the innermost. Hard edges, no blur, no blob. Each surface
   sets the origin (--ring-x/--ring-y) and the three radii (--r1..--r3). */
.hero::after,
.cta-band::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --ring-1: rgba(205, 245, 70, 0.34);
  --ring-2: rgba(205, 245, 70, 0.20);
  --ring-3: rgba(205, 245, 70, 0.11);
  --ring-fill: rgba(205, 245, 70, 0.05);
  background:
    radial-gradient(circle at var(--ring-x) var(--ring-y), var(--ring-fill) 0, var(--ring-fill) var(--r1), transparent var(--r1)),
    radial-gradient(circle at var(--ring-x) var(--ring-y), transparent calc(var(--r1) - 1.5px), var(--ring-1) calc(var(--r1) - 0.5px), var(--ring-1) calc(var(--r1) + 0.5px), transparent calc(var(--r1) + 1.5px)),
    radial-gradient(circle at var(--ring-x) var(--ring-y), transparent calc(var(--r2) - 1.5px), var(--ring-2) calc(var(--r2) - 0.5px), var(--ring-2) calc(var(--r2) + 0.5px), transparent calc(var(--r2) + 1.5px)),
    radial-gradient(circle at var(--ring-x) var(--ring-y), transparent calc(var(--r3) - 1.5px), var(--ring-3) calc(var(--r3) - 0.5px), var(--ring-3) calc(var(--r3) + 0.5px), transparent calc(var(--r3) + 1.5px));
}

.rule { height: 1px; background: var(--rule); border: 0; }
:is(.section--ink, .hero, .cta-band) .rule { background: var(--ink-line); }

.grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.stack > * + * { margin-top: 1.25rem; }
.stack--lg > * + * { margin-top: 2rem; }
.stack--sm > * + * { margin-top: 0.6rem; }

/* --- 4. Type ------------------------------------------------------------- */

.display {
  font-size: var(--t-display);
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-weight: 500;
}
.h1 { font-size: var(--t-h1); letter-spacing: -0.042em; }
.h2 { font-size: var(--t-h2); letter-spacing: -0.038em; }
.h3 { font-size: var(--t-h3); letter-spacing: -0.028em; }
.h4 { font-size: var(--t-h4); letter-spacing: -0.02em; line-height: 1.25; }

/* Editorial serif accent — used for a single emphasised phrase per heading. */
.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.42;
  letter-spacing: -0.018em;
  color: var(--on-paper-muted);
  max-width: 44ch;
}
.lead--wide { max-width: 60ch; }

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--on-paper-muted); line-height: 1.68; }
:is(.section--ink, .hero, .cta-band) .prose p { color: var(--on-ink-muted); }

.muted { color: var(--on-paper-muted); }
.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty; }

/* Eyebrow / kicker — mono, tracked out, with a signal tick. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-paper-muted);
  margin-bottom: 1.5rem;
}
:is(.section--ink, .hero, .cta-band) .eyebrow { color: var(--on-ink-muted); }
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow--dot::before {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 1;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* --- 5. Buttons ---------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper-max);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Primary — signal lime. The single loudest element on any page. */
.btn--signal {
  --btn-bg: var(--signal);
  --btn-fg: var(--ink);
  --btn-bd: var(--signal);
  font-weight: 600;
}
.btn--signal:hover { --btn-bg: var(--signal-deep); --btn-bd: var(--signal-deep); }

/* Secondary — outline that adapts to its surface. */
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--on-paper);
  --btn-bd: var(--rule-2);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper-max); --btn-bd: var(--ink); }
:is(.section--ink, .hero, .cta-band) .btn--ghost,
.site-header--ink .btn--ghost { --btn-fg: var(--on-ink); --btn-bd: var(--ink-line-2); }
:is(.section--ink, .hero, .cta-band) .btn--ghost:hover { --btn-bg: var(--paper-max); --btn-fg: var(--ink); --btn-bd: var(--paper-max); }

.btn--lg { padding: 1.15rem 2rem; font-size: 1rem; }
.btn--sm { padding: 0.65rem 1.15rem; font-size: 0.875rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.reassure {
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--on-paper-muted);
  letter-spacing: -0.01em;
  margin-top: 1.1rem;
}
:is(.section--ink, .hero, .cta-band) .reassure { color: var(--on-ink-muted); }

/* Text link with animated underline. */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease);
  padding-bottom: 2px;
}
.tlink:hover { background-size: 100% 1px; }

/* --- 6. Header ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header[data-scrolled='true'] { border-bottom-color: var(--rule); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  flex-shrink: 0;
}
.logo__mark { width: 22px; height: 23px; flex-shrink: 0; overflow: visible; }

/* Waveform mark — five bars running a slow equaliser. */
.wavemark rect {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
  animation: eq 1.7s var(--ease) infinite;
}
.wavemark rect:nth-child(1) { animation-delay: -0.95s; }
.wavemark rect:nth-child(2) { animation-delay: -0.40s; }
.wavemark rect:nth-child(3) { animation-delay: -1.25s; }
.wavemark rect:nth-child(4) { animation-delay: -0.20s; }
.wavemark rect:nth-child(5) { animation-delay: -0.70s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.42); }
  50%      { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .wavemark rect { animation: none; transform: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

.nav { display: none; }
@media (min-width: 62rem) { .nav { display: flex; align-items: center; gap: 0.25rem; } }

.nav__item { position: relative; }
/* Invisible bridge across the gap between trigger and panel. Without this the
   pointer leaves .nav__item mid-travel and the panel closes before you reach it. */
.nav__item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.75rem;
  pointer-events: none;
}
.nav__item:hover::after,
.nav__item[data-open='true']::after { pointer-events: auto; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  border-radius: 999px;
  color: var(--on-paper);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover,
.nav__item:hover > .nav__link,
.nav__item[data-open='true'] > .nav__link { background: rgba(29,29,29,0.06); }
.nav__link[aria-current='page'] { background: rgba(29,29,29,0.08); }
.nav__caret { width: 9px; height: 9px; opacity: 0.5; transition: transform .25s var(--ease); }
.nav__item:hover .nav__caret,
.nav__item[data-open='true'] .nav__caret { transform: rotate(180deg); }

/* Mega-menu panel */
.nav__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 25rem;
  max-width: min(30rem, calc(100vw - 2rem));
  padding: 0.6rem;
  background: var(--paper-max);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(29,29,29,0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .28s var(--ease), visibility .22s;
}
.nav__item:hover > .nav__panel,
.nav__item:focus-within > .nav__panel,
.nav__item[data-open='true'] > .nav__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav__panel-link {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  transition: background-color .18s var(--ease);
}
.nav__panel-link:hover { background: rgba(29,29,29,0.05); }
.nav__panel-title { display: block; font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.02em; }
.nav__panel-desc  { display: block; font-size: var(--t-small); color: var(--on-paper-muted); line-height: 1.45; margin-top: 0.15rem; }
.nav__panel-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.nav__panel-overview .nav__panel-desc { margin-top: 0.15rem; }
.nav__panel-overview svg { flex-shrink: 0; opacity: .4; transition: transform .25s var(--ease), opacity .2s; }
.nav__panel-overview:hover svg { opacity: 1; transform: translateX(3px); }

.header__cta { display: none; }
@media (min-width: 48rem) { .header__cta { display: inline-flex; } }

.header__login {
  display: none;
  padding: 0.55rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  border-radius: 999px;
  color: var(--on-paper);
  transition: background-color .2s var(--ease);
}
.header__login:hover { background: rgba(29,29,29,0.06); }
@media (min-width: 48rem) { .header__login { display: inline-flex; } }

/* Mobile menu */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem; height: 2.75rem;
  align-items: center;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
}
@media (min-width: 62rem) { .burger { display: none; } }
.burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--on-paper);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 4.5rem 0 0;
  z-index: 89;
  background: var(--paper);
  padding: 1.5rem var(--gutter) 3rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
}
.mobile-nav[data-open='true'] { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 62rem) { .mobile-nav { display: none; } }
.mobile-nav__group + .mobile-nav__group { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.mobile-nav__label {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-paper-muted);
  margin-bottom: 0.85rem;
  display: block;
}
.mobile-nav__link {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  padding: 0.45rem 0;
}

/* --- 7. Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(4rem, 2rem + 9vw, 8.5rem) clamp(4rem, 2rem + 8vw, 7.5rem);
  overflow: hidden;
}
/* Signal rings — see "Signal rings" below. Origin: top right corner. */
.hero { --ring-x: 100%; --ring-y: 0; --r1: 20rem; --r2: 32rem; --r3: 44rem; }
.hero::after { content: ''; }
.hero > * { position: relative; z-index: 1; }
/* Phones: smaller radii, origin nudged past the corner so the inner arcs sit
   above the headline instead of running through it. */
@media (max-width: 47.99rem) { .hero { --ring-x: calc(100% + 3rem); --ring-y: -3rem; --r1: 11rem; --r2: 18rem; --r3: 25rem; } }
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 64rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.hero h1 {
  font-size: clamp(2.25rem, 1.3rem + 4.2vw, 4.25rem);
  letter-spacing: -0.042em;
  margin-bottom: 1.5rem;
}
.hero .lead { color: var(--on-ink-muted); max-width: 46ch; }


/* --- 8. Live call panel (hero graphic) ----------------------------------- */

.callpanel {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
}

.callpanel__bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}
.callpanel__live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse 1.6s var(--ease) infinite;
}
.callpanel__timer { margin-left: auto; color: var(--signal); }

.callpanel__caller {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.75rem;
  padding: 1.15rem 1.15rem 0.5rem;
}
.callpanel__num  { font-size: 1.125rem; color: var(--on-ink); letter-spacing: -0.02em; }
.callpanel__note { font-size: var(--t-small); color: var(--on-ink-muted); }

/* --- Waveform ------------------------------------------------------------
   Bars centred on a horizontal axis, so they mirror like an audio editor. */

.vwave {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 5.5rem;
  padding: 0 1.15rem;
  margin: 0.5rem 0 1.1rem;
  overflow: hidden;
}
.vwave__bar {
  flex: 1 1 auto;
  min-width: 2px;
  background: var(--signal);
  border-radius: 2px;
  opacity: 0.5;
}
/* The right-hand bars are the live edge of the call. */
.vwave__bar--live {
  opacity: 0.95;
  animation: vlive 0.85s var(--ease) infinite alternate;
  transform-origin: center;
}
.vwave__bar--live:nth-child(7n+1) { animation-delay: -0.15s; }
.vwave__bar--live:nth-child(7n+3) { animation-delay: -0.42s; }
.vwave__bar--live:nth-child(7n+5) { animation-delay: -0.66s; }
@keyframes vlive { from { transform: scaleY(0.35); } to { transform: scaleY(1.15); } }

/* Slow sweep, so the trace reads as moving audio rather than a static chart. */
.vwave::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(205, 245, 70, 0.16), transparent);
  animation: vscan 3.6s linear infinite;
  pointer-events: none;
}
@keyframes vscan { from { transform: translateX(-100%); } to { transform: translateX(360%); } }

@media (prefers-reduced-motion: reduce) {
  .vwave::after { animation: none; opacity: 0; }
  .vwave__bar--live { animation: none; transform: none; }
}

/* --- Telemetry readout --------------------------------------------------- */

.callpanel__rows {
  margin: 0;
  border-top: 1px solid var(--ink-line);
}
.callpanel__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.72rem 1.15rem;
  border-bottom: 1px solid var(--ink-line);
  align-items: baseline;
}
.callpanel__row dt {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}
.callpanel__row dd {
  margin: 0;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
  color: var(--on-ink);
}

.callpanel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.95rem 1.15rem;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--on-ink-muted);
}
.callpanel__foot strong { color: var(--signal); font-weight: 500; }
.callpanel__ok {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--signal);
}
.callpanel__ok::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--signal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* --- 9. Proof strip ------------------------------------------------------ */

.proof {
  border-block: 1px solid var(--rule);
  background: var(--paper-lift);
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
}
@media (min-width: 48rem) { .proof__grid { grid-template-columns: repeat(3, 1fr); } }
/* Three cells in a two-column mobile grid: let the last one span the row. */
.proof__cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 48rem) { .proof__cell:last-child:nth-child(odd) { grid-column: auto; } }
.proof__cell {
  background: var(--paper-lift);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1rem, 0.5rem + 2vw, 2rem);
}
.proof__num {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  font-family: var(--font-mono);
}
.proof__label {
  font-size: var(--t-small);
  color: var(--on-paper-muted);
  margin-top: 0.6rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

/* --- 10. Cards ----------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: var(--paper-max);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-3px); border-color: var(--rule-2); box-shadow: 0 20px 44px -26px rgba(29,29,29,0.32); }
:is(.section--ink, .hero, .cta-band) .card { background: var(--ink-raised); border-color: var(--ink-line); }
:is(.section--ink, .hero, .cta-band) .card:hover { border-color: var(--ink-line-2); box-shadow: none; }

.card__idx {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  color: var(--on-paper-muted);
  display: block;
  margin-bottom: 1.1rem;
}
:is(.section--ink, .hero, .cta-band) .card__idx { color: var(--signal); }
.card__title { font-size: var(--t-h4); letter-spacing: -0.025em; margin-bottom: 0.6rem; line-height: 1.25; }
.card__body  { color: var(--on-paper-muted); font-size: 0.9375rem; line-height: 1.6; }
:is(.section--ink, .hero, .cta-band) .card__body { color: var(--on-ink-muted); }

/* Card that is a whole clickable link */
.card--link:hover .card__title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card__go {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--on-paper-muted);
}
.card--link:hover .card__go { color: var(--on-paper); }

/* --- 11. Editorial lists ------------------------------------------------- */

/* Numbered rows with hairline separators — used for process, tasks, impact. */
.rows { border-top: 1px solid var(--rule); }
:is(.section--ink, .hero, .cta-band) .rows { border-color: var(--ink-line); }
.row {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
:is(.section--ink, .hero, .cta-band) .row { border-color: var(--ink-line); }
@media (min-width: 48rem) {
  .row { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.35fr); }
}
.row__idx {
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--on-paper-muted);
  padding-top: 0.35rem;
}
:is(.section--ink, .hero, .cta-band) .row__idx { color: var(--signal); }
.row__title { font-size: var(--t-h3); letter-spacing: -0.03em; line-height: 1.15; }
.row__body  { color: var(--on-paper-muted); line-height: 1.6; }
:is(.section--ink, .hero, .cta-band) .row__body { color: var(--on-ink-muted); }

/* Tick list */
.ticks { display: grid; gap: 0.85rem; }
.tick {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.8rem;
  align-items: start;
  line-height: 1.55;
}
.tick__mark {
  width: 1.1rem; height: 1.1rem;
  margin-top: 0.22rem;
  flex-shrink: 0;
  color: var(--ink);
  background: var(--signal);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.tick__mark svg { width: 10px; height: 10px; }

/* Problem list — the "cost of doing nothing" framing */
.problems { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 42rem) { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .problems { grid-template-columns: repeat(3, 1fr); } }
.problem { background: var(--paper-max); padding: clamp(1.25rem, 1rem + 1vw, 1.85rem); }
.problem__title { font-size: 1rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 0.5rem; display: flex; gap: 0.55rem; align-items: baseline; }
.problem__title::before { content: '×'; color: #c0392b; font-size: 1.1em; line-height: 1; }
.problem__body { font-size: 0.9375rem; color: var(--on-paper-muted); line-height: 1.55; }

/* Pill list for integrations */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font-size: 0.875rem;
  letter-spacing: -0.015em;
  background: var(--paper-max);
}
:is(.section--ink, .hero, .cta-band) .pill { background: transparent; border-color: var(--ink-line-2); }

/* --- 12. Section headers ------------------------------------------------- */

.shead { margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); }
.shead--split { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 56rem) {
  .shead--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; }
}
.shead h2 { margin-bottom: 1rem; }

/* --- 14. FAQ (details/summary — crawlable, no JS) ------------------------ */

.faq { border-top: 1px solid var(--rule); }
:is(.section--ink, .hero, .cta-band) .faq { border-color: var(--ink-line); }
.faq__item { border-bottom: 1px solid var(--rule); }
:is(.section--ink, .hero, .cta-band) .faq__item { border-color: var(--ink-line); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  cursor: pointer;
  list-style: none;
  font-size: var(--t-h4);
  letter-spacing: -0.025em;
  font-weight: 500;
  line-height: 1.35;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  flex-shrink: 0;
  width: 1.4rem; height: 1.4rem;
  position: relative;
  margin-top: 0.15rem;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding-bottom: 1.5rem; color: var(--on-paper-muted); line-height: 1.65; max-width: 62ch; }
:is(.section--ink, .hero, .cta-band) .faq__a { color: var(--on-ink-muted); }

/* --- 15. CTA band -------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: var(--on-ink);
  position: relative;
  overflow: hidden;
}
.cta-band { --ring-x: 50%; --ring-y: 100%; --r1: 16rem; --r2: 28rem; --r3: 40rem; }
.cta-band::after { content: ''; }
@media (max-width: 47.99rem) { .cta-band { --r1: 10rem; --r2: 17rem; --r3: 24rem; } }
.cta-band__inner { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { font-size: var(--t-h2); margin-bottom: 1.25rem; }
.cta-band .lead { margin-inline: auto; color: var(--on-ink-muted); }
.cta-band .btn-row { justify-content: center; margin-top: 2.25rem; }

/* --- 16. Industry index -------------------------------------------------- */

.ind-search {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  background: var(--paper-max);
  font-size: 1rem;
  letter-spacing: -0.015em;
  transition: border-color .2s var(--ease);
}
.ind-search:focus { border-color: var(--ink); outline: none; }

/* Category blocks. The margin was previously an inline clamp() without spaces
   around the +, which is invalid CSS, so the groups ran into each other. */
.ind-group { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.ind-group:last-of-type { margin-bottom: 0; }
.ind-group__title { margin-bottom: 1.25rem; }

/* Hairlines are drawn per cell (outline into the 1px gap) rather than as a
   grid background, so a short final row leaves plain page, not grey slots. */
.ind-grid { display: grid; gap: 1px; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 40rem) and (max-width: 61.99rem) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 62rem) {
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  /* A short final row: let the last cell take the leftover columns. */
  .ind-cell:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .ind-cell:last-child:nth-child(3n + 2) { grid-column: span 2; }
}

.ind-cell {
  background: var(--paper-max);
  outline: 1px solid var(--rule);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background-color .2s var(--ease);
}
.ind-cell:hover { background: var(--paper-lift); }
.ind-cell:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; position: relative; z-index: 1; }
.ind-cell > span:first-child { min-width: 0; }
.ind-cell__name { display: block; font-size: 1.0625rem; letter-spacing: -0.025em; font-weight: 500; line-height: 1.3; }
.ind-cell__meta { display: block; font-family: var(--font-mono); font-size: var(--t-small); color: var(--on-paper-muted); margin-top: 0.25rem; }
.ind-cell__arrow { flex-shrink: 0; opacity: 0.35; transition: opacity .2s var(--ease), transform .3s var(--ease); }
.ind-cell:hover .ind-cell__arrow { opacity: 1; transform: translateX(3px); }
.ind-cell[hidden] { display: none; }

/* --- 19. Footer ---------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(3.5rem, 2rem + 5vw, 6rem) 2.5rem;
}
.site-footer__top {
  display: grid;
  gap: clamp(2.5rem, 1rem + 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-bottom: 1px solid var(--ink-line);
}
@media (min-width: 56rem) { .site-footer__top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr); } }

.footer-nav { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.footer-nav__label {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  margin-bottom: 1rem;
  display: block;
}
.footer-nav a { display: block; padding-block: 0.3rem; font-size: 0.9375rem; color: var(--on-ink); opacity: 0.82; transition: opacity .2s var(--ease); }
.footer-nav a:hover { opacity: 1; }

.site-footer__bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--on-ink-muted);
}
.site-footer__bottom a:hover { color: var(--on-ink); }

/* --- 20. Utilities ------------------------------------------------------- */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Scroll-reveal — progressive enhancement, visible by default without JS. */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-paper-muted);
}
:is(.section--ink, .hero, .cta-band) .mono-label { color: var(--on-ink-muted); }

/* --- Stack band ---------------------------------------------------------- */

.stack-band__intro {
  margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
}

/* On the home page this band sits directly under the hero, and both surfaces
   are ink. Without a divider the two run together as one dead stretch of dark,
   so where they actually touch, add a rule and halve the doubled padding. */
.hero + .stack-band {
  border-top: 1px solid var(--ink-line);
  padding-top: clamp(2.75rem, 1.5rem + 3vw, 4.5rem);
}
@supports selector(:has(*)) {
  .hero:has(+ .stack-band) { padding-bottom: clamp(2.75rem, 1.5rem + 3vw, 4.5rem); }
}
/* The marquee rows sit outside .wrap so they run edge to edge. */

/* --- Stack marquee ------------------------------------------------------- */

.stack-rows { display: grid; gap: 0.75rem; }

.mq {
  overflow: hidden;
  pointer-events: none;      /* decorative: never reacts to the cursor */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.mq__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
/* Each row is tripled, so one loop is exactly a third of the track. */
.mq--l .mq__track { animation: mq-left  46s linear infinite; }
.mq--r .mq__track { animation: mq-right 58s linear infinite; }
@keyframes mq-left  { from { transform: translateX(0);        } to { transform: translateX(-33.3333%); } }
@keyframes mq-right { from { transform: translateX(-33.3333%); } to { transform: translateX(0);        } }

@media (prefers-reduced-motion: reduce) {
  .mq__track { animation: none; }
  .mq { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.15rem 0.5rem 0.5rem;
  border: 1px solid var(--ink-line-2);
  border-radius: 999px;
  margin-right: 0.75rem;          /* spacing on the item, not the flex gap */
  background: rgba(232, 230, 224, 0.035);
  color: var(--on-ink);
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
/* Light chip behind each vendor mark. Several logos are dark or black on
   transparent and would disappear against the ink panel without it. */
.stack-pill__chip {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--paper-max);
  box-shadow: inset 0 0 0 1px rgba(29, 29, 29, 0.08);
}
.stack-pill__chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* --- 21. Live call (hero graphic) ---------------------------------------- */

/* --- Live call ----------------------------------------------------------- */

.lc {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
}

.lc__tabs { display: flex; border-bottom: 1px solid var(--ink-line); background: var(--ink); }
.lc__tab {
  position: relative;
  flex: 1 1 0;
  padding: 0.8rem 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.lc__tab + .lc__tab { border-left: 1px solid var(--ink-line); }
@media (max-width: 47.99rem) { .lc__tab { padding-inline: 0.25rem; letter-spacing: 0.06em; } }
.lc__tab:hover { color: var(--on-ink); background: rgba(232, 230, 224, 0.04); }
.lc__tab[aria-selected='true'] { color: var(--on-ink); }
.lc__tab:focus-visible { outline-offset: -3px; }
.lc__prog {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
}
.lc__tab.is-running .lc__prog { animation: lcprog var(--dur, 20s) linear forwards; }
@keyframes lcprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.lc__bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}
.lc__live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse 1.6s var(--ease) infinite;
}
.lc__panel.is-done .lc__live { animation: none; opacity: 0.6; }
.lc__status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc__timer { margin-left: auto; color: var(--signal); }

.lc__caller {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  padding: 1rem 1.15rem 0.25rem;
}
.lc__num  { font-size: 1.0625rem; color: var(--on-ink); letter-spacing: -0.02em; }
.lc__note { font-size: var(--t-small); color: var(--on-ink-muted); }

/* Waveform: flat when nobody is talking, lime when the agent speaks, bone
   when the caller does. */
.vwave--lc { height: 3.5rem; margin: 0.35rem 0 0.4rem; }
.vwave--lc .vwave__bar {
  opacity: 0.25;
  transform: scaleY(0.3);
  transform-origin: center;
  transition: opacity .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease);
}
.vwave--lc::after { opacity: 0; transition: opacity .3s; }
.lc__panel.is-speaking .vwave--lc::after { opacity: 1; }
.lc__panel.is-speaking .vwave__bar { opacity: 0.9; animation: vlive 0.7s var(--ease) infinite alternate; }
.lc__panel.is-speaking .vwave__bar:nth-child(2n)  { animation-delay: -0.12s; }
.lc__panel.is-speaking .vwave__bar:nth-child(3n)  { animation-delay: -0.31s; }
.lc__panel.is-speaking .vwave__bar:nth-child(5n)  { animation-delay: -0.48s; }
.lc__panel.is-speaking .vwave__bar:nth-child(7n)  { animation-delay: -0.6s; }
.lc__panel.is-speaking--caller .vwave__bar { background: var(--on-ink); }
html:not(.js) .vwave--lc .vwave__bar { opacity: 0.5; transform: none; }

.lc__lines {
  margin: 0;
  padding: 0.85rem 1.15rem 0.6rem;
  border-top: 1px solid var(--ink-line);
  display: grid;
  align-content: start;
  gap: 0.6rem;
  height: 12.75rem;              /* fixed so the hero never shifts while a call plays */
  overflow: hidden;
  scroll-behavior: smooth;
}
html:not(.js) .lc__lines { height: auto; }
.lc__line {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: baseline;
  font-size: 0.9375rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.lc__who {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lc__line--agent .lc__who { color: var(--signal); }
.lc__text { color: var(--on-ink); }
.lc__line--caller .lc__text { color: #cfcdc6; }
.js .lc__line:not(.is-on) { display: none; }
.js .lc__line.is-on { animation: lcin .4s var(--ease) both; }
@keyframes lcin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lc__actions {
  margin: 0;
  padding: 0.7rem 1.15rem;
  border-top: 1px solid var(--ink-line);
  display: grid;
  align-content: start;
  gap: 0.4rem;
  height: 6.6rem;                /* room for three actions, reserved up front */
  overflow: hidden;
}
html:not(.js) .lc__actions { height: auto; }
.lc__action {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: baseline;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}
.lc__k {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  white-space: nowrap;
}
.lc__k::before {
  content: '';
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--signal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='6' fill='%23000'/%3E%3Cpath d='M3.4 6.2l1.8 1.8 3.5-3.7' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='6' fill='%23000'/%3E%3Cpath d='M3.4 6.2l1.8 1.8 3.5-3.7' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.lc__v { color: var(--on-ink); }
.js .lc__action:not(.is-on) { visibility: hidden; }
.js .lc__action.is-on { animation: lcin .4s var(--ease) both; }

.lc__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--on-ink-muted);
}
.lc__foot strong { color: var(--signal); font-weight: 500; }
.lc__ok { color: var(--on-ink-muted); transition: color .3s var(--ease); }
.lc__panel.is-done .lc__ok, html:not(.js) .lc__ok { color: var(--signal); }

@media (max-width: 47.99rem) {
  .lc { border-radius: 12px; }
  .lc__lines { height: 11.5rem; }
  .lc__line { font-size: 0.9rem; }
}

/* ===========================================================================
   LOGIN — the bare shell.
   No header, no footer, no sticky bar: one card on ink, centred. The mark is
   the only branding, exactly as on the rest of the site but standing alone.
   =========================================================================== */

body.bare {
  background: var(--ink);
  color: var(--on-ink);
}

.login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.login__card {
  width: 100%;
  max-width: 23rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* the mark sits on ink here, so it takes the ink text role and centres */
.login .logo {
  color: var(--on-ink);
  align-self: center;
  margin-bottom: 2.75rem;
}

.login__title {
  font-size: var(--t-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.login__sub {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  margin: 0.4rem 0 2rem;
}

.login__field { margin-bottom: 1rem; }

.login__label {
  display: block;
  font-size: var(--t-small);
  color: var(--on-ink-muted);
  margin-bottom: 0.45rem;
}

.login__input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: var(--t-body);
  color: var(--on-ink);
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.login__input::placeholder { color: var(--on-ink-muted); opacity: .55; }
.login__input:focus {
  outline: none;
  border-color: var(--signal);
  background: var(--ink-soft);
}

.login__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

/* Empty until a sign-in attempt fills it. The slot is reserved so the card
   does not jump when the message lands. Signal-lime would read as success
   here, so the one error state gets its own warm red — the only colour on
   the site outside the ink/paper/signal system, and it earns it. */
.login__note {
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--on-ink-muted);
  margin: 1.5rem 0 0;
  min-height: 1.3em;
}
.login__note[data-state='error'] { color: #ff7a6b; }

.login__back {
  font-size: var(--t-small);
  color: var(--on-ink-muted);
  text-decoration: none;
  margin-top: 2.25rem;
  align-self: center;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.login__back:hover { color: var(--on-ink); border-bottom-color: var(--ink-line-2); }
