/* RecommendAI — redesign v2 */

@font-face {
  font-family: "Geologica";
  src: url("/v2/fonts/geologica-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  src: url("/v2/fonts/geologica-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD;
}
@font-face {
  font-family: "Golos Text";
  src: url("/v2/fonts/golos-text-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("/v2/fonts/golos-text-cyrillic-500-normal.woff2") format("woff2");
  font-weight: 500; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("/v2/fonts/golos-text-cyrillic-600-normal.woff2") format("woff2");
  font-weight: 600; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("/v2/fonts/golos-text-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("/v2/fonts/golos-text-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("/v2/fonts/golos-text-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* the line: deep teal field */
  --field: #0b3531;
  --field-2: #114640;
  --field-line: #2a5d57;
  --on-field: #eef4f0;
  --on-field-muted: #a8c4bd;

  /* the signal: brand yellow */
  --signal: #f2c94c;
  --signal-hover: #f8d86f;
  --on-signal: #1b1a10;

  /* light surfaces, cool and green-tinted */
  --ground: #f1f4f0;
  --surface: #ffffff;
  --surface-2: #e8eee9;
  --ink: #15201d;
  --ink-2: #47554f;
  --ink-3: #66746e;
  --line: #d6dfd8;
  --teal: #00796e;
  --teal-soft: #dcefe9;
  --error: #96273a;
  --footer: #08201d;

  --display: "Geologica", "Golos Text", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 11vw, 140px);
  --header-h: 68px;

  color-scheme: light;
  accent-color: var(--teal);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #9fb3ac var(--ground);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  font-feature-settings: "kern", "lnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--teal);
}
::selection { background: var(--signal); color: var(--on-signal); }

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero :focus-visible, .header :focus-visible, .contact :focus-visible, .site-footer :focus-visible {
  outline-color: var(--signal);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-s);
  background: var(--signal); color: var(--on-signal); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.icon { width: 18px; height: 18px; flex: none; }

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

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 16px/1.2 var(--text); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.button:active { transform: scale(0.97); }
.button .icon { transition: transform 200ms var(--ease-out); }

.button-primary { background: var(--signal); color: var(--on-signal); }
.button-ghost { border-color: #4f7a74; color: var(--on-field); }
.button-dark { background: var(--ink); color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover { background: var(--signal-hover); }
  .button-primary:hover .icon { transform: translate(2px, -2px); }
  .button-ghost:hover { border-color: var(--on-field); }
  .button-dark:hover { background: #24332e; }
}

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

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--field);
  color: var(--on-field);
  transition: box-shadow 200ms ease;
}
.header[data-scrolled] { box-shadow: 0 1px 0 var(--field-line), 0 8px 24px -12px rgb(0 0 0 / 0.45); }

.head {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}

.logo {
  font: 700 21px/1 var(--display); letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap; margin-right: auto;
}
.logo b { font-weight: 700; color: var(--signal); }
.logo b:first-child { margin-right: 2px; }

.site-menu { display: flex; align-items: center; gap: 28px; }
.site-menu nav { display: flex; gap: 4px; }
.site-menu nav a {
  padding: 8px 12px; border-radius: 999px;
  color: var(--on-field-muted); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-menu nav a:hover { color: var(--on-field); background: var(--field-2); }
}

.account-actions { display: flex; align-items: center; gap: 8px; }
.account-action {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.account-action:active { transform: scale(0.97); }
.account-action:not(.account-register) { border: 1px solid #4f7a74; }
.account-register { background: var(--signal); color: var(--on-signal); }
@media (hover: hover) and (pointer: fine) {
  .account-action:not(.account-register):hover { border-color: var(--on-field); }
  .account-register:hover { background: var(--signal-hover); }
}

.menu-toggle {
  display: none; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid #4f7a74; border-radius: 12px;
  background: transparent; color: var(--on-field); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.menu-toggle:active { transform: scale(0.95); }
.menu-toggle[aria-expanded="true"] { background: var(--field-2); }
.menu-toggle-icon { position: relative; width: 18px; height: 12px; }
.menu-toggle-icon::before, .menu-toggle-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform 200ms var(--ease-out), top 200ms var(--ease-out);
}
.menu-toggle-icon::before { top: 1px; }
.menu-toggle-icon::after { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .head { gap: 12px; }
  .menu-toggle { display: grid; order: 2; }
  .site-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 12px var(--gutter) 24px;
    background: var(--field);
    border-bottom: 1px solid var(--field-line);
    box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.5);
  }
  .site-menu nav { flex-direction: column; gap: 0; }
  .site-menu nav a {
    padding: 14px 4px; border-radius: 0; font-size: 18px; color: var(--on-field);
    border-bottom: 1px solid var(--field-line);
  }
  .account-actions { gap: 10px; }
  .account-action { flex: 1; justify-content: center; min-height: 48px; }

  .menu-ready .site-menu {
    transform-origin: top right;
    transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s linear 150ms;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
  }
  .menu-ready .menu-toggle[aria-expanded="true"] + .site-menu {
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
    opacity: 1; transform: none; visibility: visible;
  }
  body:not(.menu-ready) .site-menu { position: static; padding: 0 0 16px; box-shadow: none; border: 0; }
  body:not(.menu-ready) .head { flex-wrap: wrap; }
}

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

.hero {
  background: var(--field);
  color: var(--on-field);
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  font-size: 15px; font-weight: 500; color: var(--on-field-muted);
}
.live-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
}
.live-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--signal);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 650;
}
.hero h1 span {
  display: block;
  font-weight: 350;
  color: var(--on-field-muted);
}
.hero-lede {
  max-width: 34em;
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: #d3e2dd;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.benefits {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 40px;
}
.benefits li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--field-line); border-radius: 999px;
  font-size: 14px; color: #d3e2dd;
}
.benefits li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal);
}
.hero-note { display: block; margin-top: 24px; font-size: 13px; color: var(--on-field-muted); }

/* hero entrance — once, on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .demo {
    animation: rise 700ms var(--ease-out) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 50ms; }
  .hero-copy > :nth-child(3) { animation-delay: 110ms; }
  .hero-copy > :nth-child(4) { animation-delay: 150ms; }
  .hero-copy > :nth-child(5) { animation-delay: 200ms; }
  .hero-copy > :nth-child(6) { animation-delay: 230ms; }
  .demo { animation-name: rise-card; animation-duration: 800ms; animation-delay: 140ms; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .demo { animation: fade 300ms ease both; }
  .live-dot::after { animation: none; opacity: 0; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise-card { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Demo call (driven by /site.js) ---------- */

.demo {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.55), 0 2px 6px rgb(0 0 0 / 0.12);
}
.demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo h2 { font-size: 1.35rem; letter-spacing: -0.02em; }
.sample {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-3);
}
.sample::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: 0.6; }
.demo-hint { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

.choices {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  margin-top: 18px; padding: 4px;
  border-radius: 14px; background: var(--surface-2);
}
.choices button {
  min-height: 42px; padding: 6px 10px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.choices button:active { transform: scale(0.97); }
.choices button[aria-pressed="true"] {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 10px -4px rgb(0 0 0 / 0.15);
}
@media (hover: hover) and (pointer: fine) {
  .choices button[aria-pressed="false"]:hover { color: var(--ink); }
}

.call {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.callHead {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.phone {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; background: var(--teal); color: #fff;
}
.phone svg { width: 18px; height: 18px; }
.callWho { min-width: 0; }
.callWho strong { display: block; font-size: 15px; }
.callWho small { display: block; font-size: 13px; color: var(--ink-3); }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-left: auto; }
.wave i {
  width: 3px; height: 100%; border-radius: 3px; background: var(--teal);
  transform: scaleY(0.55); transform-origin: center;
}
.wave i:nth-child(2n) { opacity: 0.7; }

.messages { display: grid; gap: 12px; padding: 16px; background: var(--ground); }
.message { max-width: 86%; }
.message small { display: block; margin: 0 0 4px 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.message p {
  padding: 11px 14px;
  border-radius: 4px 16px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px; line-height: 1.5;
}
.message.reply { justify-self: end; }
.message.reply small { text-align: right; margin: 0 2px 4px 0; color: var(--teal); }
.message.reply p {
  border-radius: 16px 4px 16px 16px;
  background: var(--teal); border-color: var(--teal); color: #fff;
}

.callResult {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.check {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 50%; background: var(--signal); color: var(--on-signal);
}
.check svg { width: 16px; height: 16px; }
.callResult strong { display: block; font-size: 15px; }
.callResult small { display: block; font-size: 13px; color: var(--ink-3); }

/* ---------- Voices (driven by /voice-demo.js) ---------- */

.voices {
  background: var(--signal);
  color: var(--on-signal);
  padding: clamp(48px, 6vw, 80px) 0;
}
.voices-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.voices h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.05; letter-spacing: -0.03em;
}
.voices-copy p { margin-top: 12px; font-size: 17px; color: #4a4120; }

.voices-panel {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 40px -22px rgb(60 45 0 / 0.55);
}
.demo-voice-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.demo-voice-fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.demo-voice-fields select {
  appearance: none;
  min-width: 0;
  width: 100%;
  min-height: 48px; padding: 0 40px 0 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315201d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  cursor: pointer;
  transition: border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .demo-voice-fields select:hover { border-color: #9fb3ac; }
}

.demo-voice-player { display: flex; align-items: center; gap: 16px; }
.demo-play {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 22px 0 8px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer; flex: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.demo-play:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .demo-play:hover { background: #24332e; } }
.demo-play-icon {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: var(--signal);
}
.demo-play-icon::before, .demo-play-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--on-signal);
  transition: clip-path 200ms var(--ease-out), transform 200ms var(--ease-out);
}
/* play: one triangle made of two halves; pause: two bars */
.demo-play-icon::before {
  width: 7px; height: 14px; transform: translate(-4px, -50%);
  clip-path: polygon(0 0, 100% 25%, 100% 75%, 0 100%);
}
.demo-play-icon::after {
  width: 7px; height: 14px; transform: translate(3px, -50%);
  clip-path: polygon(0 25%, 100% 50%, 100% 50%, 0 75%);
}
.demo-play[aria-pressed="true"] .demo-play-icon::before {
  transform: translate(-6px, -50%); clip-path: polygon(0 0, 70% 0, 70% 100%, 0 100%);
}
.demo-play[aria-pressed="true"] .demo-play-icon::after {
  transform: translate(1px, -50%); clip-path: polygon(0 0, 70% 0, 70% 100%, 0 100%);
}

.demo-voice-meter { flex: 1; min-width: 0; display: grid; gap: 8px; }
.demo-eq { display: flex; align-items: center; gap: 3px; height: 40px; }
.demo-eq i {
  flex: 1; height: 100%; max-width: 6px; border-radius: 3px;
  background: var(--teal);
  transform: scaleY(var(--level, 0.3)); transform-origin: center;
}
.demo-play[aria-pressed="false"] ~ .demo-voice-meter .demo-eq i { background: #b7c8c2; }
.demo-voice-meter progress {
  appearance: none; width: 100%; height: 4px; border: 0; border-radius: 4px;
  background: var(--surface-2); overflow: hidden;
}
.demo-voice-meter progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 4px; }
.demo-voice-meter progress::-webkit-progress-value { background: var(--teal); border-radius: 4px; }
.demo-voice-meter progress::-moz-progress-bar { background: var(--teal); border-radius: 4px; }
.demo-voice-time { min-width: 3ch; font-size: 14px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.demo-voice-error { font-size: 14px; color: var(--error); }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section h2, .contact h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
}
.section h2 span, .contact h2 span { display: block; font-weight: 350; color: var(--teal); }
.section-lead { max-width: 36em; font-size: 18px; color: var(--ink-2); }

/* Features: a call travelling through three stages */

.track {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: none;
}
.track::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 14px);
  opacity: 0.45;
}
.track li { position: relative; }
.track-icon {
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 28px;
  border-radius: 50%; background: var(--surface); color: var(--teal);
  border: 1.5px solid var(--teal);
  box-shadow: 0 0 0 8px var(--ground);
}
.track-icon svg { width: 24px; height: 24px; }
.track h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.02em; max-width: 14em; }
.track p { margin-top: 12px; color: var(--ink-2); max-width: 34em; }

.handoff {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px 72px; align-items: center;
  margin-top: clamp(64px, 8vw, 104px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-l);
  background: var(--field);
  color: var(--on-field);
}
.handoff h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; }
.handoff-text p { margin-top: 16px; color: #d3e2dd; max-width: 32em; }

.intake-card {
  padding: 22px 24px 8px;
  border-radius: var(--radius-m);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.6);
  transform: rotate(-1.2deg);
}
.intake-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.intake-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--field); color: var(--signal); font: 700 13px/1 var(--display);
}
.intake-head strong { font-size: 16px; }
.intake-head small {
  margin-left: auto; padding: 3px 10px; border-radius: 999px;
  background: var(--teal-soft); color: #005c53; font-size: 12px; font-weight: 600;
}
.intake-card dl { margin: 0; }
.intake-card dl > div {
  display: grid; grid-template-columns: 9.5em 1fr; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.intake-card dl > div:last-child { border-bottom: 0; }
.intake-card dt { font-size: 14px; color: var(--ink-3); }
.intake-card dd { margin: 0; font-weight: 500; }

/* Industries */

.industries { background: var(--surface); }
.industry-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 32px);
}
.industry-card { grid-column: span 6; }
.industry-card:nth-child(1), .industry-card:nth-child(4) { grid-column: span 7; }
.industry-card:nth-child(2), .industry-card:nth-child(3) { grid-column: span 5; }
.industry-photo {
  height: clamp(220px, 27vw, 360px);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 22px;
}
.industry-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .industry-card:hover .industry-photo img { transform: scale(1.03); }
}
.industry-card h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }
.industry-card p { margin-top: 10px; max-width: 36em; color: var(--ink-2); }

/* Launch */

.launch-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px clamp(40px, 7vw, 104px); align-items: start;
}
.launch-copy { position: sticky; top: calc(var(--header-h) + 40px); }
.launch-copy .section-lead { margin-top: 20px; }
.launch-copy .button { margin-top: 32px; }
.steps { counter-reset: step; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 64px 1fr; column-gap: 20px;
  padding: 28px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 18px; background: var(--field); color: var(--signal);
  font: 600 1.9rem/1 var(--display);
}
.steps h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; align-self: end; }
.steps p { margin-top: 6px; color: var(--ink-2); }

/* Pricing (driven by /pricing.js) */

.pricing { background: var(--surface); }
.pricing-top .section-head { margin-bottom: 32px; }
.pricing-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-bottom: 32px;
}
.segmented {
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin: 0; padding: 4px; min-inline-size: 0;
  border: 0; border-radius: 999px; background: var(--surface-2);
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.segmented em {
  font-style: normal; font-size: 12.5px; padding: 2px 8px; border-radius: 999px;
  background: var(--signal); color: var(--on-signal);
}
.segmented input:checked + span {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 10px -4px rgb(0 0 0 / 0.15);
}
.segmented input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

.pricing-number {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 12px 18px 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.pricing-number input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch {
  position: relative; width: 44px; height: 26px; border-radius: 999px;
  background: #c3cfc9;
  transition: background-color 200ms ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 220ms var(--ease-out);
}
.pricing-number input:checked ~ .switch { background: var(--teal); }
.pricing-number input:checked ~ .switch::after { transform: translateX(18px); }
.pricing-number input:focus-visible ~ .switch { outline: 2px solid var(--teal); outline-offset: 3px; }
.pricing-number:has(input:checked) { border-color: var(--teal); background: #f4faf8; }
.pricing-number-text { font-size: 15px; font-weight: 600; line-height: 1.35; }
.pricing-explanation { display: block; font-size: 13.5px; font-weight: 400; color: var(--ink-3); }
.pricing-number small { font-size: 14px; font-weight: 600; color: var(--teal); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .pricing-number:hover { border-color: #9fb3ac; }
}

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan {
  display: flex; flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--radius-l);
  background: var(--ground);
  border: 1px solid transparent;
  transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .plan:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgb(11 53 49 / 0.45); }
}
.plan h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.plan-minutes { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.plan-minutes b {
  display: block; margin-bottom: 2px;
  font: 600 2.5rem/1 var(--display); letter-spacing: -0.03em; color: var(--ink);
}
.pricing-cost {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
  min-height: 112px;
}
.pricing-cost del { display: block; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font: 600 1.85rem/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-price span { font: 500 1.2rem/1 var(--display); color: var(--ink-2); }
.pricing-cost small { display: block; font-size: 13.5px; color: var(--ink-3); }
.pricing-cost .plan-total { margin-top: 2px; color: var(--teal); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-description { margin-top: 16px; font-size: 15px; color: var(--ink-2); flex: 1; }
.plan-action {
  margin-top: 24px; width: 100%;
  background: var(--ink); color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .plan-action:hover { background: var(--teal); }
}

.pricing-details {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px;
}
.pricing-note {
  padding: 28px; border-radius: var(--radius-l); border: 1px solid var(--line);
}
.pricing-note h3 { font-size: 1.15rem; margin-bottom: 16px; }
.pricing-includes { display: flex; flex-wrap: wrap; gap: 8px; }
.pricing-includes li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--ground);
  font-size: 14.5px; font-weight: 500;
}
.pricing-includes li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: var(--teal);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pricing-extra { background: var(--field); color: var(--on-field); border-color: var(--field); }
.pricing-extra p { color: #d3e2dd; }
.pricing-extra strong { display: block; margin-bottom: 4px; font: 600 1.35rem/1.25 var(--display); color: var(--signal); }

/* FAQ */

.faq-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px clamp(40px, 6vw, 96px); align-items: start;
}
.faq h2 { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0;
  font: 600 1.2rem/1.35 var(--display); letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
  transition: color 200ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat,
    var(--surface);
  border: 1px solid var(--line);
  transition: transform 250ms var(--ease-out), background-color 200ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--teal); }
}
.faq-answer p { padding: 0 64px 26px 0; color: var(--ink-2); max-width: 40em; }
.faq-answer a { color: var(--teal); font-weight: 500; }

@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    height: 0; overflow: clip; opacity: 0;
    transition: height 280ms var(--ease-out), opacity 200ms ease, content-visibility 280ms allow-discrete;
  }
  .faq details[open]::details-content { height: auto; opacity: 1; }
  @media (prefers-reduced-motion: reduce) {
    .faq details::details-content { transition: opacity 200ms ease, content-visibility 200ms allow-discrete; }
  }
}

/* Contact */

.contact {
  background: var(--field);
  color: var(--on-field);
  padding: var(--section) 0;
  text-align: center;
}
.contact-inner { display: grid; justify-items: center; }
.contact h2 { max-width: 15em; }
.contact h2 span { color: var(--signal); }
.contact p { margin-top: 20px; max-width: 34em; font-size: 18px; color: #d3e2dd; }
.contact .button { margin-top: 36px; }

/* Footer */

.site-footer { background: var(--footer); color: #b3c7c1; padding: 64px 0 28px; font-size: 15px; border-top: 1px solid var(--field-line); }
.site-footer .logo { color: var(--on-field); display: inline-block; margin-bottom: 16px; }
.site-footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer-brand p + p { margin-top: 6px; }
.site-footer strong { color: var(--on-field); font-weight: 600; }
.site-footer h2 { font: 600 13px/1.4 var(--text); color: var(--on-field-muted); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; transition: color 200ms ease; }
.site-footer-brand a:not(.logo) { text-decoration: underline; text-decoration-color: #3d5e58; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: #fff; } }
.site-footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid #1d3934; color: #87a29b; }

/* Cookie notice (created by /cookie-settings.js) */

.cookie-notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  max-width: calc(100% - 32px); width: 440px;
  padding: 14px 14px 14px 20px;
  border-radius: var(--radius-m);
  background: var(--ink); color: #dbe6e2;
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.5);
  font-size: 14.5px;
  transition: opacity 400ms ease, transform 400ms ease;
}
@starting-style { .cookie-notice { opacity: 0; transform: translateY(100%); } }
.cookie-notice p { flex: 1; }
.cookie-notice a { color: #fff; }
.cookie-notice .button { min-height: 42px; padding: 0 18px; background: var(--signal); color: var(--on-signal); }

/* Form feedback (from /form-feedback.js), kept for parity */
.field-error { display: block; margin-top: 6px; font-size: 14px; color: var(--error); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-grid, .voices-grid, .section-head, .handoff, .launch-grid, .faq-grid { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: start; }
  .launch-copy, .faq h2 { position: static; }
  .track { grid-template-columns: 1fr; gap: 32px; }
  .track::before {
    top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 14px);
  }
  .track li { padding-left: 80px; }
  .track-icon { position: absolute; left: 0; top: 0; margin: 0; }
  .intake-card { transform: none; }
  .pricing-details { grid-template-columns: 1fr; }
  .site-footer-main { grid-template-columns: 1fr 1fr; }
  .site-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .industry-card, .industry-card:nth-child(n) { grid-column: 1 / -1; }
  .industry-photo { height: auto; aspect-ratio: 3 / 2; }
  .pricing-controls { flex-direction: column; align-items: stretch; }
  .segmented { display: grid; }
  .steps li { grid-template-columns: 48px 1fr; padding: 22px; column-gap: 16px; }
  .steps li::before { width: 48px; height: 48px; border-radius: 14px; font-size: 1.4rem; }
  .faq-answer p { padding-right: 0; }
  .faq summary { font-size: 1.08rem; padding: 20px 0; }
}

@media (max-width: 560px) {
  .actions .button { width: 100%; }
  .choices { grid-template-columns: 1fr; }
  .choices button { min-height: 44px; }
  .demo-voice-fields { grid-template-columns: minmax(0, 1fr); }
  .demo-play { padding-right: 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-cost { min-height: 0; }
  .pricing-number { grid-template-columns: auto 1fr; }
  .pricing-number small { grid-column: 2; }
  .intake-card dl > div { grid-template-columns: 1fr; gap: 2px; }
  .site-footer-main { grid-template-columns: 1fr; }
  .cookie-notice { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; flex-wrap: wrap; }
  .account-action { font-size: 16px; }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
}

@media (max-width: 380px) {
  .logo { font-size: 19px; }
  .demo-voice-player { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .demo-play { grid-column: 1 / -1; justify-self: start; }
}

/* Secondary business terms in the hero and pricing introduction. */
.business-note { display: block; margin-top: 12px; font-size: 14px; font-weight: 400; line-height: 1.55; }
