/* ================================================
   NeuraCon: Design System & Styles
   ================================================ */

/* ---- CSS Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paper and ink */
  --paper: #F5F1E8;
  --paper-2: #ECE6D8;
  --ink: #17160F;
  --blue: #2540E0;
  --blue-dark: #1B2FB0;
  --marker: #FFDC5E;
  --green: #12835A;

  /* Card tints */
  --tint-blue: #DFE5FF;
  --tint-mint: #D9EEDF;
  --tint-sand: #F0E4C4;
  --tint-peach: #FADFCD;
  --tint-lilac: #E7DFF6;

  /* Scoped colours (redefined inside .is-dark) */
  --bg-primary: var(--paper);
  --bg-secondary: var(--paper-2);
  --bg-card: #FFFDF8;
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(23, 22, 15, 0.03);
  --bg-glass-border: rgba(23, 22, 15, 0.12);
  --line: rgba(23, 22, 15, 0.12);
  --line-strong: rgba(23, 22, 15, 0.24);
  --text-primary: var(--ink);
  --text-secondary: #4A483F;
  --text-muted: #6B685D;
  --text-accent: var(--blue);

  /* Legacy names used by the inner pages */
  --accent-blue: #2540E0;
  --accent-purple: #6B4FD8;
  --accent-teal: #12835A;
  --accent-pink: #D6336C;
  --gradient-primary: linear-gradient(135deg, #2540E0, #6B4FD8);
  --gradient-glow: linear-gradient(135deg, #DFE5FF, #E7DFF6);

  /* Typography */
  --font-main: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', cursive;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --section-gap: clamp(72px, 10vw, 128px);
  --container-width: 1180px;
  --border-radius: 14px;
  --border-radius-sm: 8px;
  --border-radius-lg: 22px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark scope: flips the scoped colours for ink-coloured blocks */
.is-dark {
  --bg-card: #24231B;
  --bg-card-hover: #2B2A21;
  --line: rgba(245, 241, 232, 0.14);
  --line-strong: rgba(245, 241, 232, 0.28);
  --text-primary: #F5F1E8;
  --text-secondary: #CFCBBE;
  --text-muted: #A19D90;
  --text-accent: var(--marker);
  --green: #6FD9A8;
  color: var(--text-primary);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

ul, ol { list-style: none; }

button { font: inherit; color: inherit; }

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

.is-dark :focus-visible,
.cta-inner :focus-visible { outline-color: var(--marker); }

::selection {
  background: var(--marker);
  color: var(--ink);
}

/* Legacy particle canvas on inner pages */
#particles-canvas { display: none; }

/* ---- Utility ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  transition: top var(--transition-fast);
}

.skip-link:focus { top: 16px; }

.i {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---- Headings ---- */
.section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 4.8vw, 3.5rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin-bottom: 20px;
  text-wrap: balance;
}

/* Second half of a two-part heading sits back in a quieter tone */
.section-title em {
  font-style: normal;
  color: var(--text-muted);
}

.gradient-text {
  color: var(--blue);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---- Cards (shared with inner pages) ---- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast);
}

.glass-card:hover {
  border-color: var(--line-strong);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover { background: var(--blue); }

.btn-primary .i { transition: transform var(--transition-fast); }
.btn-primary:hover .i { transform: translateX(3px); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.is-dark .btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.is-dark .btn-primary:hover { background: var(--marker); }

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.btn-block { width: 100%; }

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.navbar.scrolled {
  background: rgba(245, 241, 232, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.navbar-logo img {
  width: 38px;
  height: 38px;
}

.navbar-logo span {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 14px;
  font-size: 0.9688rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-login {
  padding: 10px 14px;
  font-size: 0.9688rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-login:hover { color: var(--text-primary); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ---- Shared status bits ---- */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1FA971;
  animation: ping 2.4s ease-out infinite;
  flex-shrink: 0;
}

.run-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 5px 12px;
  border: 1.5px solid var(--text-primary);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.chips-sm li {
  padding: 3px 10px;
  border-width: 1px;
  border-color: var(--line-strong);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Voice waveform (bars injected by script.js) */
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}

.wave i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleY(var(--h, 0.4));
  animation: wave 1.1s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

.wave-lg { height: 44px; }

/* Handwritten margin notes */
.hand-note,
.plan-badge {
  font-family: var(--font-hand);
  font-weight: 600;
  line-height: 1;
}

/* ---- Hero ---- */
.hero {
  padding: 150px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
}

.launch-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 12px;
  margin-bottom: 28px;
  background: var(--marker);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  transform: rotate(-2deg);
  transition: transform var(--transition-fast);
}

.launch-tag:hover { transform: rotate(0deg); }

.launch-tag .dot { background: var(--ink); animation: none; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.97;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  text-wrap: balance;
}

/* Highlighter stroke behind the promise */
.hero-title em {
  font-style: normal;
  white-space: nowrap;
  background: linear-gradient(100deg, transparent 0.5%, var(--marker) 2.5%, var(--marker) 97%, transparent 99.5%) no-repeat;
  background-size: 100% 44%;
  background-position: 0 86%;
  padding: 0 0.08em;
  margin: 0 -0.08em;
}

.hero-sub {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 32px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 52px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 0;
}

.hero-facts > div {
  padding: 0 28px;
  border-left: 1.5px solid var(--ink);
}

.hero-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dt {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.hero-facts dd {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hero-facts dd.is-text {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 2.3;
}

/* ---- Agent run panel ---- */
.run-wrap {
  position: relative;
}

.hand-note {
  position: absolute;
  top: -50px;
  left: -6px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 1.625rem;
  color: var(--blue);
  transform: rotate(-4deg);
}

.hand-note svg {
  width: 46px;
  height: 34px;
  margin-top: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.run {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--ink);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 60px -30px rgba(23, 22, 15, 0.35);
  transform: rotate(1.2deg);
  overflow: hidden;
}

.run-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--paper-2);
  border-bottom: 1.5px solid var(--ink);
}

.run-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.run-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tint-peach);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  flex-shrink: 0;
}

.run-lead-info {
  flex: 1;
  min-width: 0;
}

.run-lead-info strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.run-lead-info span {
  display: block;
  font-size: 0.8438rem;
  color: var(--text-muted);
}

.score {
  text-align: right;
  flex-shrink: 0;
}

.score-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}

.run:not(.is-animated) .score-num,
.run.is-scored .score-num {
  color: var(--green);
}

.score-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.run-steps {
  padding: 8px 20px 4px;
}

.run-step {
  display: grid;
  grid-template-columns: 60px 22px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  align-items: start;
}

.run-step time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

.run-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tint-mint);
  color: var(--green);
}

.run-ico .i {
  width: 12px;
  height: 12px;
  stroke-width: 2.75;
}

.run-step.is-call .run-ico {
  background: var(--tint-blue);
  color: var(--blue);
}

.run-body b {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 22px;
}

.run-body > span {
  display: block;
  font-size: 0.8438rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tag {
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--tint-blue);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 20px;
}

.run-body .wave {
  margin: 8px 0 10px;
}

.run.is-scored .run-body .wave i {
  animation-play-state: paused;
  background: var(--line-strong);
}

.say {
  padding: 9px 13px;
  margin-bottom: 6px;
  border-radius: 4px 14px 14px 14px;
  background: var(--paper);
}

.say.is-lead {
  margin-left: 28px;
  border-radius: 14px 4px 14px 14px;
  background: var(--tint-blue);
}

.who {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.say p {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.run figcaption {
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Step-by-step playback (class added by script.js) */
.run.is-animated [data-step] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.run.is-animated [data-step].is-on {
  opacity: 1;
  transform: none;
}

/* ---- Integrations strip ---- */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: 88px;
  padding: 26px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.logos-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.logos ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
}

.logos li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 600;
}

/* ---- Sections ---- */
.section {
  padding: var(--section-gap) 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 56px;
}

.section-head.is-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.is-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Problem ---- */
.problem {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--line-strong);
}

.problem:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.problem-n {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.problem h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.problem p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ---- Agents ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.agent {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--tint-sand);
  border-radius: var(--border-radius-lg);
}

.agent:nth-child(1) { background: var(--tint-blue); }
.agent:nth-child(2) { background: var(--tint-sand); }
.agent:nth-child(3) { background: var(--tint-mint); }
.agent:nth-child(4) { background: var(--tint-peach); }
.agent:nth-child(5) { background: var(--tint-lilac); }

.agent-voice {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
  gap: 36px;
}

.agent-voice .agent-copy,
.agent-voice .agent-visual {
  flex: 1;
  min-width: 0;
}

.agent-role {
  display: block;
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.agent h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.agent-voice h3 {
  font-size: 2.5rem;
}

.agent p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}

.agent-copy .chips {
  margin-top: 22px;
}

.agent > .agent-visual {
  margin-top: auto;
  padding-top: 28px;
}

.call-card,
.visit,
.agent > .agent-visual > .meter-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
}

.call-card {
  padding: 18px 20px;
  box-shadow: 0 14px 30px -18px rgba(23, 22, 15, 0.4);
  transform: rotate(-1deg);
}

.call-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.call-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.call-card .wave {
  margin: 14px 0 12px;
}

.call-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.call-line span { color: var(--text-muted); }
.call-line b { font-weight: 600; text-align: right; }

.meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(23, 22, 15, 0.12);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ink);
}

.meter-scale {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 8px 0 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.meter-scale b {
  margin-left: auto;
  margin-right: 8%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.bubble {
  max-width: 92%;
  padding: 11px 15px;
  border-radius: 16px 16px 16px 4px;
  background: var(--bg-card);
  font-size: 0.875rem;
  line-height: 1.45;
}

.attach {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.attach span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--bg-card);
  font-size: 0.78rem;
  font-weight: 500;
}

.attach .i {
  width: 14px;
  height: 14px;
}

.visit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.visit-date {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  flex-shrink: 0;
}

.visit-date span {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--marker);
  line-height: 1;
  margin-top: 9px;
}

.visit-date b {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 9px;
}

.visit-info b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.visit-info span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.bars {
  display: grid;
  gap: 10px;
}

.bar {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.bar i {
  height: 12px;
  border-radius: 3px;
  background: var(--ink);
}

.bar:nth-child(2) i { opacity: 0.55; }
.bar:nth-child(3) i { opacity: 0.28; }

.bars-note {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- Timeline ---- */
#how-it-works {
  background: var(--paper-2);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
}

.timeline li {
  position: relative;
  padding-top: 36px;
}

.timeline li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--ink);
}

.timeline li:nth-child(-n+2)::before {
  background: var(--ink);
}

.timeline-t {
  display: inline-block;
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-t.is-hot {
  padding: 2px 9px;
  border-radius: 5px;
  background: var(--marker);
  color: var(--ink);
  transform: rotate(-2deg);
}

.timeline h3 {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.timeline p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---- Control (ink block) ---- */
#control {
  --bg-card: #24231B;
  --line: rgba(245, 241, 232, 0.14);
  --line-strong: rgba(245, 241, 232, 0.28);
  --text-primary: #F5F1E8;
  --text-secondary: #CFCBBE;
  --text-muted: #A19D90;
  --text-accent: var(--marker);
  background: var(--ink);
  color: var(--text-primary);
}

.control {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.control .section-head {
  margin-bottom: 0;
  position: sticky;
  top: 108px;
}

.control-list li {
  display: flex;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.control-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.control-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--marker);
  color: var(--ink);
  flex-shrink: 0;
}

.control-list h3 {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.control-list p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ---- Pricing ---- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  background: var(--bg-card);
  border: 1.5px solid var(--ink);
  border-radius: var(--border-radius-lg);
}

.plan.is-featured {
  --bg-card: var(--ink);
  --line: rgba(245, 241, 232, 0.16);
  --text-primary: #F5F1E8;
  --text-secondary: #CFCBBE;
  --text-muted: #A19D90;
  --green: #6FD9A8;
  color: var(--text-primary);
  transform: translateY(-12px);
  box-shadow: 0 30px 50px -30px rgba(23, 22, 15, 0.6);
}

.plan.is-featured .btn-primary {
  background: var(--marker);
  color: var(--ink);
}

.plan.is-featured .btn-primary:hover { background: #FFFFFF; }

.plan-badge {
  position: absolute;
  top: 26px;
  right: 24px;
  font-size: 1.4375rem;
  color: var(--marker);
  transform: rotate(-4deg);
}

.plan h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-for {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 28px 0 24px;
}

.plan-price .amt {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-price .per,
.plan-price .from {
  font-size: 1rem;
  color: var(--text-muted);
}

.plan-list {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.plan-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9688rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.plan-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 5px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.plan-list li.plan-plus {
  padding-left: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.plan-list li.plan-plus::before { display: none; }

.plans-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ---- CTA / Waitlist ---- */
.cta-section {
  padding: 0 0 var(--section-gap);
}

.cta-inner {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 24px;
  border-radius: 32px;
  background: var(--blue);
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

.cta-inner .section-label { color: var(--marker); }

.cta-inner .section-title {
  font-size: clamp(2.25rem, 5.6vw, 4.25rem);
}

.cta-inner .section-title em { color: #BBC6FF; }

.cta-inner .section-subtitle {
  margin: 0 auto 32px;
  color: #DCE2FF;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: box-shadow var(--transition-fast);
}

.waitlist-form input::placeholder { color: #6B685D; }

.waitlist-form input:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--marker);
}

.waitlist-form .btn-primary {
  min-height: 52px;
  background: var(--ink);
  color: #FFFFFF;
}

.waitlist-form .btn-primary:hover {
  background: var(--marker);
  color: var(--ink);
}

.waitlist-error {
  min-height: 22px;
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #FFD9D9;
}

.waitlist-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--marker);
}

.waitlist-success.show { display: flex; }

/* ---- Footer ---- */
.footer {
  padding: 64px 0 32px;
  border-top: 1.5px solid var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9688rem;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.55;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.9688rem;
  font-weight: 500;
  color: var(--text-primary);
}

.footer-col a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 0.85rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---- Login Page ---- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 44px 36px;
  border: 1.5px solid var(--ink);
  border-radius: var(--border-radius-lg);
  text-align: center;
}

.login-card:hover { border-color: var(--ink); }

.login-card .navbar-logo {
  display: flex;
}

.login-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--marker);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  transform: rotate(-2deg);
  margin-bottom: 20px;
}

.login-form-group {
  margin-bottom: 12px;
}

.login-form-group input {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
}

.login-form-group input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-submit {
  width: 100%;
  margin-top: 8px;
}

.login-message {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.login-message strong { color: var(--text-primary); }

.login-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.login-back:hover { color: var(--text-primary); }

/* ---- Animations ---- */
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(31, 169, 113, 0.5); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(31, 169, 113, 0); }
}

@keyframes wave {
  from { transform: scaleY(calc(var(--h, 0.4) * 0.35)); }
  to { transform: scaleY(var(--h, 0.4)); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 64, 224, 0.35); }
  50% { box-shadow: 0 0 0 16px rgba(37, 64, 224, 0); }
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out),
    border-color var(--transition-fast), background-color var(--transition-fast);
}

.reveal.visible {
  opacity: 1;
  translate: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    translate: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 88px;
  }

  .run-wrap {
    max-width: 600px;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent { grid-column: span 1; }
  .agent-voice { grid-column: span 2; }

  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline li {
    padding: 0 0 36px 40px;
  }

  .timeline li:last-child { padding-bottom: 0; }

  .timeline li::before { top: 3px; }

  .timeline p { max-width: 520px; }

  .control {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .control .section-head { position: static; }

  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin: 0 auto;
  }

  .plan.is-featured { transform: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .hamburger { display: flex; }

  .nav-login { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: var(--paper);
    border-bottom: 1.5px solid var(--ink);
  }

  .nav-links.mobile-open { display: flex; }

  .nav-links a {
    padding: 14px 8px;
    font-size: 1.0625rem;
  }

  .navbar .container { gap: 8px; }

  .nav-cta { margin-left: auto; }

  .problem {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 28px 0;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .navbar-logo span { font-size: 1.1875rem; }

  .navbar .btn-sm {
    padding: 0 14px;
    font-size: 0.875rem;
  }

  .hero { padding-top: 116px; }

  .hero-actions .btn { flex: 1 1 auto; }

  .hero-facts > div { padding: 0 20px; }

  .hero-facts > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    flex-basis: 100%;
  }

  .hand-note { font-size: 1.4375rem; }

  .run { transform: none; }

  .run-bar,
  .run-lead { padding-left: 16px; padding-right: 16px; }

  .run-steps { padding: 8px 16px 4px; }

  .run figcaption { padding-left: 16px; padding-right: 16px; }

  .run-step {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .run-step time { display: none; }

  .say.is-lead { margin-left: 16px; }

  .logos {
    margin-top: 56px;
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head { margin-bottom: 40px; }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-voice {
    grid-column: span 1;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .agent { padding: 26px; }

  .agent-voice h3 { font-size: 2rem; }

  .waitlist-form { flex-direction: column; }

  .cta-inner { border-radius: 24px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
