/* ==========================================================================
   Valence Virtual Services — virtual receptionists and websites
   Design system + page styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surface */
  --bg:          #06070A;
  --bg-2:        #0A0C12;
  --card:        rgba(255, 255, 255, 0.024);
  --card-hover:  rgba(255, 255, 255, 0.045);
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Type */
  --text:   #F4F6FB;
  --text-2: #B6BECF;
  --muted:  #7C859B;  /* ~5.5:1 on --bg */
  --faint:  #6E7789;  /* ~4.5:1 on --bg — decorative meta labels only */

  /* Accent */
  --accent:      #4C6FFF;
  --accent-soft: #7C93FF;
  --violet:      #8B5CF6;
  --live:        #00D9C0;
  --warn:        #FFB020;

  --grad: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
  --grad-text: linear-gradient(120deg, #FFFFFF 0%, #C9D2FF 45%, #8FA6FF 100%);

  /* Shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 40px);
  --header-h: 72px;

  /* Fonts */
  --f-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(76, 111, 255, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

.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;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(72px, 11vw, 132px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 92px); }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.h3 { font-size: clamp(1.25rem, 2.1vw, 1.5rem); letter-spacing: -0.025em; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-text {
  background: linear-gradient(120deg, var(--accent-soft), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  color: var(--text-2);
  line-height: 1.6;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft));
}
.section-head--center .eyebrow::before { display: none; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.28s var(--ease),
              background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset,
              0 10px 30px -10px rgba(76, 111, 255, 0.75);
}
.btn--primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset,
              0 18px 44px -12px rgba(76, 111, 255, 0.95);
}

.btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.24); }

.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   6. Decorative background layers
   -------------------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.aurora::before {
  width: 640px; height: 640px;
  top: -260px; left: 50%;
  transform: translateX(-58%);
  background: radial-gradient(circle, rgba(76,111,255,0.55), transparent 68%);
  animation: drift 22s var(--ease) infinite alternate;
}
.aurora::after {
  width: 520px; height: 520px;
  top: 40px; right: -160px;
  background: radial-gradient(circle, rgba(139,92,246,0.42), transparent 68%);
  animation: drift2 18s var(--ease) infinite alternate;
}

@keyframes drift {
  from { transform: translate(-58%, 0) scale(1); }
  to   { transform: translate(-42%, 60px) scale(1.14); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, 80px) scale(1.18); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 78%);
}

.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 22%, var(--line-strong) 78%, transparent);
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(6, 7, 10, 0.78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  flex: none;
}
.logo__mark {
  width: 32px; height: 32px;
  flex: none;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}
.logo:hover .logo__mark {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 14px rgba(76, 111, 255, 0.55));
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  /* 10px, not 13px: the longer wordmark left the header 21px over its content
     box at every desktop width. Six links x 6px reclaims most of it. */
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.055); }

.header__cta { display: flex; align-items: center; gap: 12px; flex: none; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.header__phone svg { width: 15px; height: 15px; color: var(--live); }
.header__phone:hover { color: var(--text); background: rgba(255,255,255,0.055); }

/* Mobile menu */
.burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s;
}
.burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), top 0.2s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: rgba(8, 9, 13, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gut) 26px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav.is-open { display: flex; animation: slideDown 0.3s var(--ease); }
.mobile-nav a {
  padding: 14px 4px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav a.mobile-nav__btn { border-bottom: 0; }
.mobile-nav .btn { margin-top: 16px; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 104px));
  padding-bottom: clamp(72px, 10vw, 120px);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 26px;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(0, 217, 192, 0.6);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 217, 192, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(0, 217, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 217, 192, 0); }
}

.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 52ch; margin-bottom: 34px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.86rem;
  color: var(--muted);
  list-style: none;
  padding: 0;
}
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 15px; height: 15px; color: var(--live); flex: none; }

/* --- Live call demo card --- */
.demo {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
    var(--bg-2);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.09) inset,
    0 40px 90px -30px rgba(0,0,0,0.85),
    0 0 100px -50px rgba(76,111,255,0.6);
  overflow: hidden;
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.demo__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--live);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 217, 192, 0.1);
  border: 1px solid rgba(0, 217, 192, 0.26);
}
.demo__live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.demo__meta {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--faint);
  margin-left: auto;
}

.demo__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.demo__wave i {
  width: 2.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  animation: wave 1.1s ease-in-out infinite;
}
.demo__wave i:nth-child(1) { height: 6px;  animation-delay: 0s; }
.demo__wave i:nth-child(2) { height: 13px; animation-delay: 0.12s; }
.demo__wave i:nth-child(3) { height: 18px; animation-delay: 0.24s; }
.demo__wave i:nth-child(4) { height: 10px; animation-delay: 0.36s; }
.demo__wave i:nth-child(5) { height: 15px; animation-delay: 0.48s; }
@keyframes wave { 0%,100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

.demo__body {
  padding: 22px 18px 18px;
  min-height: 322px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.bubble {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: var(--r);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: bubbleIn 0.42s var(--ease) backwards;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bubble__who {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 5px;
  opacity: 0.65;
}

.bubble--caller {
  align-self: flex-start;
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--text-2);
}
.bubble--ai {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(76,111,255,0.22), rgba(139,92,246,0.18));
  border: 1px solid rgba(124,147,255,0.34);
  border-bottom-right-radius: 4px;
  color: var(--text);
}
.bubble--ai .bubble__who { color: var(--accent-soft); opacity: 1; }

.typing { display: inline-flex; gap: 4px; align-items: center; padding: 3px 0; }
.typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
  animation: dot 1.3s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes dot { 0%,60%,100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.demo__result {
  margin: 4px 18px 18px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid rgba(0,217,192,0.28);
  background: rgba(0,217,192,0.07);
  display: flex;
  align-items: flex-start;
  gap: 11px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.demo__result.is-shown { opacity: 1; transform: translateY(0); }
.demo__result svg { width: 18px; height: 18px; color: var(--live); flex: none; margin-top: 2px; }
.demo__result strong { display: block; font-size: 0.88rem; margin-bottom: 2px; }
.demo__result span { font-size: 0.81rem; color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   9. Industry strip
   -------------------------------------------------------------------------- */
.strip {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,0.014);
  padding-block: 30px;
}
.strip__label {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}
.strip__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
}
.strip__items li {
  padding: 8px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.strip__items li:hover {
  border-color: rgba(124,147,255,0.45);
  color: var(--text);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   10. Generic card
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--card-hover);
  transform: translateY(-3px);
}

.card__icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(124,147,255,0.28);
  background: linear-gradient(135deg, rgba(76,111,255,0.2), rgba(139,92,246,0.12));
  margin-bottom: 17px;
}
.card__icon svg { width: 20px; height: 20px; color: var(--accent-soft); }

.card h3 { font-size: 1.03rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   11. Cost-of-missed-calls calculator
   -------------------------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(76,111,255,0.13), transparent 62%),
    var(--bg-2);
}

.calc__field { margin-bottom: 24px; }
.calc__field:last-of-type { margin-bottom: 8px; }

.calc__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
}
.calc__val {
  font-family: var(--f-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 3px 10px;
  min-width: 84px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #C9D2FF);
  border: 2px solid var(--accent);
  box-shadow: 0 3px 12px rgba(76,111,255,0.6);
  cursor: grab;
  transition: transform 0.16s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.14); }
input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #C9D2FF);
  border: 2px solid var(--accent);
  box-shadow: 0 3px 12px rgba(76,111,255,0.6);
  cursor: grab;
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.1); }

.calc__out {
  text-align: center;
  padding: clamp(26px, 3.5vw, 38px) 24px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,176,32,0.24);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,176,32,0.12), transparent 70%),
    rgba(255,255,255,0.02);
}
.calc__out-label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.calc__big {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--warn);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.calc__sub { font-size: 0.87rem; color: var(--muted); margin-bottom: 22px; }
.calc__note {
  font-size: 0.82rem;
  color: var(--text-2);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}
.calc__note strong { color: var(--text); }
.calc__disclaimer {
  margin-top: 20px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

/* --------------------------------------------------------------------------
   12. Steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 9px; }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.62; }
.step__time {
  display: inline-block;
  margin-top: 15px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--faint);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   13. Feature grid
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
}

/* --------------------------------------------------------------------------
   14. Scenario tabs
   -------------------------------------------------------------------------- */
.scenarios {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.tablist { display: flex; flex-direction: column; gap: 10px; }

.tab {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 17px 19px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease),
              transform 0.28s var(--ease);
}
.tab:hover { border-color: var(--line-strong); background: var(--card-hover); }
.tab[aria-selected="true"] {
  border-color: rgba(124,147,255,0.5);
  background: linear-gradient(135deg, rgba(76,111,255,0.14), rgba(139,92,246,0.07));
  transform: translateX(4px);
}
.tab__icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line);
  flex: none;
  transition: background 0.28s, border-color 0.28s;
}
.tab__icon svg { width: 17px; height: 17px; color: var(--text-2); }
.tab[aria-selected="true"] .tab__icon {
  background: rgba(76,111,255,0.24);
  border-color: rgba(124,147,255,0.42);
}
.tab[aria-selected="true"] .tab__icon svg { color: var(--accent-soft); }
.tab__text strong { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 3px; }
.tab__text span { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }

.transcript {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)), var(--bg-2);
  padding: 24px;
  min-height: 360px;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,0.8);
}
.transcript__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.transcript__head i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); flex: none;
}
.transcript__lines { display: flex; flex-direction: column; gap: 15px; }
.tline {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  font-size: 0.91rem;
  line-height: 1.58;
  /* No opacity:0 here. The keyframes provide the hidden start state via
     animation-fill-mode: backwards, so if animations never run (disabled,
     unsupported, frozen) the text is still readable instead of invisible. */
  animation: fadeUp 0.4s var(--ease) backwards;
}
.tline__who {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding-top: 4px;
  color: var(--faint);
}
.tline--ai .tline__who { color: var(--accent-soft); }
.tline--ai .tline__text { color: var(--text); }
.tline__text { color: var(--text-2); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.transcript__outcome {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--live);
  animation: fadeUp 0.4s var(--ease) backwards;
}
.transcript__outcome svg { width: 16px; height: 16px; flex: none; }

/* --------------------------------------------------------------------------
   15. Pricing
   -------------------------------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.plan--featured {
  border-color: rgba(124,147,255,0.46);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(76,111,255,0.16), transparent 65%),
    rgba(255,255,255,0.032);
  box-shadow: 0 26px 70px -34px rgba(76,111,255,0.6);
}
.plan--featured:hover { box-shadow: 0 34px 84px -34px rgba(76,111,255,0.78); }

.plan__tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--grad);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 8px 22px -8px rgba(76,111,255,0.9);
}

.plan__name { font-size: 1.1rem; margin-bottom: 5px; }
.plan__for { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; min-height: 42px; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 6px;
}
.plan__price b {
  font-family: var(--f-display);
  font-size: 2.7rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan__price span { font-size: 0.88rem; color: var(--muted); }
/* Setup fee is pricing information, not decoration — keep it fully readable. */
.plan__setup { font-size: 0.8rem; color: var(--muted); margin-bottom: 24px; }

.plan .btn { margin-bottom: 24px; }

.plan__feats { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.plan__feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.5;
}
.plan__feats svg { width: 15px; height: 15px; color: var(--live); flex: none; margin-top: 4px; }
.plan__feats li em { font-style: normal; color: var(--text); font-weight: 600; }

.pricing__foot {
  margin-top: 30px;
  text-align: center;
  font-size: 0.87rem;
  color: var(--muted);
}
.pricing__foot strong { color: var(--text-2); }

/* --------------------------------------------------------------------------
   16. Founder note
   -------------------------------------------------------------------------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  padding: clamp(30px, 4vw, 48px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 60% 100% at 0% 50%, rgba(139,92,246,0.12), transparent 62%),
    var(--bg-2);
}
.founder blockquote {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.028em;
  text-wrap: pretty;
}
.founder blockquote p + p { margin-top: 16px; }
.founder__mark {
  width: 34px; height: 34px;
  color: rgba(124,147,255,0.45);
  margin-bottom: 18px;
}
.founder__who {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.founder__who strong { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 2px; }

.promises { display: flex; flex-direction: column; gap: 14px; list-style: none; padding: 0; }
.promises li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.028);
}
.promises svg { width: 18px; height: 18px; color: var(--live); flex: none; margin-top: 2px; }
.promises strong { display: block; font-size: 0.93rem; margin-bottom: 3px; }
.promises span { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   17. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
}
.faq__q:hover { color: var(--accent-soft); }
.faq__q i {
  position: relative;
  width: 15px; height: 15px;
  flex: none;
}
.faq__q i::before, .faq__q i::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq__q i::before { top: 7px; left: 0; width: 15px; height: 1.5px; }
.faq__q i::after  { left: 7px; top: 0; width: 1.5px; height: 15px; }
.faq__q[aria-expanded="true"] i::after { transform: rotate(90deg); opacity: 0; }

.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s var(--ease);
}
.faq__a > div {
  padding: 0 4px 24px;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.68;
  max-width: 66ch;
}
.faq__a p + p { margin-top: 12px; }

/* --------------------------------------------------------------------------
   18. Final CTA + contact
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 80% 130% at 50% 0%, rgba(76,111,255,0.22), transparent 62%),
    var(--bg-2);
  padding: clamp(40px, 6vw, 72px) clamp(26px, 5vw, 60px);
  text-align: center;
}
.cta .grid-lines { opacity: 0.55; }
.cta__inner { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }
.cta h2 { margin-bottom: 18px; }
.cta .lead { margin-bottom: 34px; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  text-align: left;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease),
              transform 0.28s var(--ease);
}
.contact-card:hover {
  border-color: rgba(124,147,255,0.5);
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
}
.contact-card__ic {
  width: 40px; height: 40px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(76,111,255,0.24), rgba(139,92,246,0.14));
  border: 1px solid rgba(124,147,255,0.3);
}
.contact-card__ic svg { width: 18px; height: 18px; color: var(--accent-soft); }
.contact-card small {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 3px;
}
.contact-card strong {
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.cta__fine { font-size: 0.85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 52px 34px;
  background: var(--bg-2);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.footer__blurb {
  margin-top: 16px;
  font-size: 0.89rem;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.62;
}
.footer h4 {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a, .footer ul li { font-size: 0.89rem; color: var(--text-2); transition: color 0.2s; }
.footer ul a:hover { color: var(--accent-soft); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  font-size: 0.83rem;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   20. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero .lead { max-width: 60ch; }
  .demo { max-width: 520px; }
  .calc { grid-template-columns: 1fr; }
  .scenarios { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1040px) {
  /* Nav + phone + CTA no longer fit on one line — collapse to the burger. */
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .header__cta .btn--primary { display: none; }
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .demo__body { min-height: 280px; padding: 18px 14px 14px; }
  .bubble { max-width: 92%; font-size: 0.87rem; }
  .tline { grid-template-columns: 1fr; gap: 3px; }
  .tline__who { padding-top: 0; }
  .hero__actions .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .contact-cards { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   22. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .bubble, .tline, .transcript__outcome, .demo__result { opacity: 1; }
}

@media print {
  .header, .mobile-nav, .aurora, .grid-lines, .demo { display: none; }
  body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   23. Legal pages (privacy, terms)
   -------------------------------------------------------------------------- */
.legal-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(44px, 7vw, 76px));
  padding-bottom: clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.legal-hero__inner { position: relative; z-index: 1; }
.legal-hero h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: 14px; }
.legal-hero p { color: var(--text-2); max-width: 60ch; font-size: 1rem; }
.legal-meta {
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.legal {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(72px, 10vw, 120px);
}

.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc h2 {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 15px;
}
.legal-toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.legal-toc a { font-size: 0.85rem; color: var(--text-2); transition: color 0.2s; }
.legal-toc a:hover { color: var(--accent-soft); }

.legal-body h2 {
  font-size: 1.22rem;
  margin: 42px 0 14px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal-body > h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1rem; margin: 26px 0 10px; }
.legal-body p, .legal-body li { color: var(--text-2); font-size: 0.95rem; line-height: 1.72; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { padding-left: 20px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.legal-body dl { margin-bottom: 16px; }
.legal-body dt { color: var(--text); font-weight: 600; font-size: 0.93rem; margin-top: 14px; }
.legal-body dd { margin: 4px 0 0; color: var(--text-2); font-size: 0.93rem; line-height: 1.7; }

.callout {
  border: 1px solid rgba(255, 176, 32, 0.3);
  background: rgba(255, 176, 32, 0.07);
  border-radius: var(--r);
  padding: 18px 20px;
  margin: 24px 0;
}
.callout strong { display: block; color: var(--warn); margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 36px; }
  .legal-toc {
    position: static;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }
  .legal-toc ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; }
}

.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: var(--muted); transition: color 0.2s; }
.footer__legal a:hover { color: var(--accent-soft); }

/* --------------------------------------------------------------------------
   24. Lead form
   -------------------------------------------------------------------------- */
.lead-form {
  text-align: left;
  margin-bottom: 30px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-2);
}
.field label .req { color: var(--accent-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.24); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(76, 111, 255, 0.18);
}

/* Native select needs its own arrow once appearance is stripped. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C859B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
}
.field select option { background: var(--bg-2); color: var(--text); }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #FF6B6B;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14);
}

.field-error {
  font-size: 0.78rem;
  color: #FF8F8F;
  min-height: 0;
}

/* Honeypot — hidden from people, visible to bots that fill everything in. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r);
  font-size: 0.89rem;
  line-height: 1.55;
  display: none;
}
.form-status.is-shown { display: block; }
.form-status--ok {
  border: 1px solid rgba(0, 217, 192, 0.3);
  background: rgba(0, 217, 192, 0.08);
  color: var(--text);
}
.form-status--err {
  border: 1px solid rgba(255, 176, 32, 0.32);
  background: rgba(255, 176, 32, 0.08);
  color: var(--text);
}
.form-status a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

.or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 22px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   25. 404
   -------------------------------------------------------------------------- */
.notfound {
  position: relative;
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.notfound__inner { position: relative; z-index: 1; max-width: 540px; }
.notfound__code {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 20px;
}
.notfound h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 16px; }
.notfound p { color: var(--text-2); margin-bottom: 30px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Footer gained a fourth column with the vertical pages — two-up on tablet. */
@media (max-width: 1000px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   26. Mobile refinements
   Verified at 375x812. Touch and readability only — the layout already
   collapses correctly at the breakpoints above.
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {

  /* iOS Safari zooms the whole viewport whenever a focused field is under
     16px, so tapping the form made the page jump. Exactly 16px stops it. */
  .field input,
  .field select,
  .field textarea { font-size: 16px; }

  /* The slider track is 6px tall: fine for a cursor, far too thin for a thumb.
     Padding grows the hit area to 40px while background-clip keeps the visible
     track exactly as it was. */
  input[type="range"] {
    height: 40px;
    padding-block: 17px;
    background-clip: content-box;
  }

  /* Footer links were 17px tall — too tight to hit reliably. */
  .footer ul { gap: 2px; }
  .footer ul a { display: block; padding-block: 11px; }

  /* The mono meta labels bottom out near 10px, unreadable on a phone. */
  .eyebrow { font-size: 0.78rem; }
  .strip__label, .footer h4 { font-size: 0.76rem; }
  .tline__who, .bubble__who { font-size: 0.7rem; }
  .demo__meta, .demo__live { font-size: 0.72rem; }
  .transcript__head, .calc__out-label { font-size: 0.75rem; }
  .plan__tag, .contact-card small { font-size: 0.7rem; }
  .step__time { font-size: 0.78rem; }
  .footer__bottom { font-size: 0.86rem; }
  .card p, .plan__feats li { font-size: 0.92rem; }
}

/* The two-column footer rule added when the fourth column landed sits later in
   this file than the single-column rule in section 21, so it was winning on
   phones purely by source order. Restated here, last, so order stops mattering. */
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
}

/* Secondary hero line introducing the website service. Self-contained spacing so
   it can be dropped in or removed without touching .hero .lead, which the
   landing pages share. */
.hero__also {
  margin: -10px 0 30px;
  padding-left: 14px;
  border-left: 2px solid rgba(124, 147, 255, 0.45);
  font-size: 0.97rem;
  color: var(--text-2);
  max-width: 46ch;
}
.hero__also a {
  color: var(--accent-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The longer "Valence AI Services" wordmark (203px, up from ~108) plus a sixth
   nav item overflow the header before the burger breakpoint at 1040px. Drop the
   header phone number first — it is still in the contact section, the footer and
   the mobile menu — rather than collapsing the whole nav 160px early. */
@media (max-width: 1200px) {
  .header__phone { display: none; }
}

/* --------------------------------------------------------------------------
   27. Live demo call
   Uses the teal "live" accent rather than the blue CTA gradient, so a real
   working phone line reads as different in kind from the sales buttons.
   -------------------------------------------------------------------------- */
.demo-call {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  padding: clamp(26px, 4vw, 38px);
  margin-bottom: clamp(34px, 5vw, 48px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(0, 217, 192, 0.3);
  background:
    radial-gradient(ellipse 70% 130% at 0% 0%, rgba(0, 217, 192, 0.1), transparent 62%),
    var(--bg-2);
}

.demo-call__ic {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(0, 217, 192, 0.32);
  background: rgba(0, 217, 192, 0.1);
}
.demo-call__ic svg { width: 25px; height: 25px; color: var(--live); }

.demo-call__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--live);
  margin-bottom: 14px;
}
.demo-call__label i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(0, 217, 192, 0.6);
  animation: pulse 2.4s infinite;
}

.demo-call h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 12px;
}
.demo-call__body > p {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.62;
  max-width: 58ch;
  margin-bottom: 22px;
}
.demo-call__fine {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  /* The icon costs a whole column on a narrow screen; the number matters more. */
  .demo-call { grid-template-columns: 1fr; }
  .demo-call .btn { width: 100%; }
}

/* The two facts a caller needs before dialling — that it is virtual, and that
   nothing is recorded — sit in the fine print, so lift them out of the muted
   colour rather than leaving them to disappear. */
.demo-call__fine strong { color: var(--text-2); font-weight: 600; }

/* --------------------------------------------------------------------------
   28. Toast
   Feedback for the desktop tel: fallback. Only ever created by JS, so there is
   no markup for it anywhere in the HTML.
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  z-index: 300;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 192, 0.35);
  background: rgba(10, 12, 18, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
