/* Third Coast Voice. Colors are tokens on :root and are redefined for dark
   mode twice: under prefers-color-scheme (OS default, unless the visitor
   picked light) and under [data-theme="dark"] (the header toggle). Add new
   colors here, not as hex values in component rules. */

:root {
  --bg: #f6f9fb;
  --bg-alt: #eaf2f7;
  --surface: #ffffff;
  --ink: #0b2232;
  --muted: #4b6475;
  --line: #d5e2ea;
  --lake: #0a7fae;
  --lake-strong: #075f84;
  --lake-soft: #d9eef7;
  --beacon: #f0a024;
  --beacon-soft: #fff1d9;
  --go: #19a974;
  --danger: #c2452d;
  --deep: #08202f;
  --deep-2: #0d2d41;
  --on-deep: #e7f2f8;
  --on-deep-muted: #9dbccd;
  --shadow: 0 10px 30px rgba(8, 32, 47, .08), 0 2px 6px rgba(8, 32, 47, .05);
  --shadow-lg: 0 30px 60px rgba(8, 32, 47, .18);
  --radius: 18px;
  --font-head: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061923;
    --bg-alt: #0a2130;
    --surface: #0e2a3b;
    --ink: #e6f1f7;
    --muted: #9ab4c4;
    --line: #1e4258;
    --lake: #4cc3ec;
    --lake-strong: #7fd5f3;
    --lake-soft: #10384d;
    --beacon: #ffb547;
    --beacon-soft: #3a2a10;
    --go: #3ad29a;
    --danger: #ff8a70;
    --deep: #041119;
    --deep-2: #0a2232;
    --on-deep: #e7f2f8;
    --on-deep-muted: #9dbccd;
    --shadow: 0 10px 30px rgba(0, 0, 0, .3);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #061923;
  --bg-alt: #0a2130;
  --surface: #0e2a3b;
  --ink: #e6f1f7;
  --muted: #9ab4c4;
  --line: #1e4258;
  --lake: #4cc3ec;
  --lake-strong: #7fd5f3;
  --lake-soft: #10384d;
  --beacon: #ffb547;
  --beacon-soft: #3a2a10;
  --go: #3ad29a;
  --danger: #ff8a70;
  --deep: #041119;
  --deep-2: #0a2232;
  --on-deep: #e7f2f8;
  --on-deep-muted: #9dbccd;
  --shadow: 0 10px 30px rgba(0, 0, 0, .3);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  text-wrap: balance;
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
/* A page title in a section head (faq.html) takes the section heading size. */
.section-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
p { margin: 0 0 1em; }
a { color: var(--lake); }
img, svg { display: block; }

.accent { color: var(--lake); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
}
.skip-link:focus { top: 12px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--lake); color: #fff; }
:root[data-theme="dark"] .btn--primary { color: #04202e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { color: #04202e; } }
.btn--primary:hover { background: var(--lake-strong); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--lake); color: var(--lake); }
.btn--small { padding: .6em 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font: 800 1.15rem/1 var(--font-head); letter-spacing: 0; word-spacing: .06em; white-space: nowrap; }
.brand-voice { color: var(--lake); }
.brand-letter { display: inline-block; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.is-current, .main-nav a[aria-current] {
  color: var(--ink);
  text-decoration: underline 2px var(--beacon); text-underline-offset: 8px;
}
.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 10px 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .header-call { display: none; }
  .container { padding: 0 16px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--lake) 18%, transparent), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, color-mix(in srgb, var(--beacon) 12%, transparent), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--lake-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7fae' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow);
}
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--go); }
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--go); opacity: 0;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-visual { position: relative; }
.now-card {
  position: relative; z-index: 2;
  background: var(--deep); color: var(--on-deep);
  border-radius: 24px; padding: 28px 28px 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.now-card::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--beacon) 45%, transparent), transparent 65%);
  animation: beam 6s ease-in-out infinite;
}
@keyframes beam { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
.now-card__label { margin: 0; color: var(--on-deep-muted); font-size: .9rem; position: relative; }
.now-card__time { margin: 2px 0 0; font: 800 clamp(3rem, 6vw, 4.2rem)/1 var(--font-head); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; position: relative; }
.now-card__day { margin: 6px 0 18px; color: var(--on-deep-muted); position: relative; }
.now-card__msg {
  margin: 0; padding: 14px 16px; border-radius: 14px; position: relative;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  font-size: .98rem;
}
.now-card__msg strong { color: var(--beacon); }

/* The feed box stays four cards tall (js/main.js sets its height). New
   cards slide the list down inside it, so the page never moves. */
.call-feed { position: relative; z-index: 1; margin: -14px 10px 0; padding: 30px 8px 30px; clip-path: inset(0 -60px); }
.call-feed__list { list-style: none; margin: 0; padding: 0; will-change: transform; }
.call-feed li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; margin-bottom: 10px;
  box-shadow: var(--shadow);
  font-size: .9rem;
  animation: feed-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.call-feed li.is-leaving { animation: feed-out .4s ease both; }
@keyframes feed-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes feed-out { to { opacity: 0; } }
.feed__time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.feed__what { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed__tag { font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.feed__tag--urgent { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.feed__tag--booked { background: var(--lake-soft); color: var(--lake-strong); }
.feed__tag--message { background: var(--beacon-soft); color: color-mix(in srgb, var(--beacon) 60%, var(--ink)); }
.feed__tag--answered { background: color-mix(in srgb, var(--go) 15%, transparent); color: color-mix(in srgb, var(--go) 70%, var(--ink)); }

@media (max-width: 920px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-head--light p:last-child { color: var(--on-deep-muted); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lake); margin-bottom: 10px;
}
.section--deep .eyebrow { color: var(--beacon); }
.section--deep .accent, .section--deep h2 { color: var(--on-deep); }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Scroll reveal: only hides content once JS has confirmed it can show it. */
.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.has-js .reveal.is-visible { opacity: 1; transform: none; }

/* Demo */
.demo__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.demo-tab {
  text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 14px;
  background: var(--deep-2); color: var(--on-deep);
  border: 1px solid rgba(255, 255, 255, .08);
  font: inherit;
  transition: border-color .2s ease, background-color .2s ease;
}
.demo-tab:hover { border-color: rgba(255, 255, 255, .25); }
.demo-tab[aria-selected="true"] { border-color: var(--beacon); background: color-mix(in srgb, var(--beacon) 12%, var(--deep-2)); }
.demo-tab__kind { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--beacon); }
.demo-tab__title { display: block; font: 700 1.02rem/1.25 var(--font-head); margin: 4px 0 2px; }
.demo-tab__when { display: block; font-size: .82rem; color: var(--on-deep-muted); }
.demo__about { max-width: 760px; margin: -8px 0 28px; color: var(--on-deep-muted); }
@media (max-width: 900px) {
  .demo__tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 24px; padding: 0 16px 6px; }
  .demo-tab { flex: 0 0 78%; max-width: 280px; scroll-snap-align: start; }
}

.demo__stage { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .demo__stage { grid-template-columns: 1fr; gap: 24px; } }

.phone {
  position: relative; width: 100%; max-width: 380px; margin: 0 auto;
  height: 680px; display: flex; flex-direction: column;
  background: #0f1a22; border-radius: 46px; padding: 14px;
  box-shadow: 0 0 0 2px #2a3a46, 0 40px 80px rgba(0, 0, 0, .5);
}
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #000; border-radius: 0 0 16px 16px; z-index: 3; }
.phone__status, .phone__header, .phone__screen, .phone__controls { background: #f4f7f9; color: #0b2232; }
.phone__status { display: flex; justify-content: space-between; padding: 12px 26px 4px; border-radius: 34px 34px 0 0; font-size: .82rem; font-weight: 600; }
.phone__icons { display: flex; gap: 3px; align-items: flex-end; }
.phone__icons i { width: 4px; background: #0b2232; border-radius: 1px; }
.phone__icons i:nth-child(1) { height: 5px; }
.phone__icons i:nth-child(2) { height: 8px; }
.phone__icons i:nth-child(3) { height: 11px; }
.phone__header { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #dfe8ee; }
.phone__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0f8fbf, #0a3a57); color: #fff; font: 700 .95rem var(--font-head); flex: none; }
.phone__name { margin: 0; font-weight: 700; line-height: 1.2; }
.phone__state { margin: 0; font-size: .82rem; color: #4b6475; font-variant-numeric: tabular-nums; }
.phone__state.is-live { color: #138a5e; }
.phone__live { margin-left: auto; display: flex; gap: 3px; align-items: center; height: 22px; opacity: 0; transition: opacity .3s; }
.phone__live.is-on { opacity: 1; }
.phone__live i { width: 3px; height: 6px; border-radius: 2px; background: #0a7fae; }
.phone__live.is-speaking i { animation: eq .9s ease-in-out infinite; }
.phone__live.is-speaking.is-caller i { background: #8a9aa5; }
.phone__live i:nth-child(2) { animation-delay: .15s !important; }
.phone__live i:nth-child(3) { animation-delay: .3s !important; }
.phone__live i:nth-child(4) { animation-delay: .45s !important; }
.phone__live i:nth-child(5) { animation-delay: .6s !important; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 20px; } }

.phone__screen { flex: 1; overflow: hidden; position: relative; }
.phone__ring {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  background: #f4f7f9; transition: opacity .4s;
}
.phone__ring[hidden] { display: none; }
.phone__ring.is-gone { opacity: 0; pointer-events: none; }
.phone__ring svg { width: 34px; height: 34px; fill: #fff; position: absolute; }
.phone__ring::before { content: ""; width: 76px; height: 76px; border-radius: 50%; background: #19a974; position: absolute; }
.phone__ring span { position: absolute; width: 76px; height: 76px; border-radius: 50%; border: 2px solid #19a974; opacity: 0; }
.phone__ring.is-ringing span { animation: ring 1.8s ease-out infinite; }
.phone__ring.is-ringing span:nth-child(2) { animation-delay: .6s; }
.phone__ring.is-ringing span:nth-child(3) { animation-delay: 1.2s; }
.phone__ring.is-ringing::before { animation: wiggle 1.2s ease-in-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-10deg); } 20%, 40% { transform: rotate(10deg); } 50% { transform: rotate(0); } }

.transcript {
  list-style: none; margin: 0; padding: 16px 14px 24px;
  height: 100%; overflow-y: auto; scroll-behavior: smooth;
  display: flex; flex-direction: column; gap: 8px;
  scrollbar-width: thin;
}
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: .92rem; line-height: 1.45; animation: bubble .35s cubic-bezier(.2, .8, .2, 1) both; }
.msg__who { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; opacity: .75; }
.msg--agent { align-self: flex-start; background: #0a7fae; color: #fff; border-bottom-left-radius: 6px; }
.msg--caller { align-self: flex-end; background: #fff; color: #0b2232; border: 1px solid #dfe8ee; border-bottom-right-radius: 6px; }
.msg--typing { display: flex; gap: 4px; padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; animation: dots 1s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes bubble { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.sys {
  align-self: center; display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 600; color: #4b6475;
  background: #e6eef3; padding: 5px 12px; border-radius: 999px;
  animation: bubble .35s ease both;
}
.sys::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f0a024; }
.sys--ok::before { background: #19a974; }

.phone__controls {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 16px; border-radius: 0 0 34px 34px; border-top: 1px solid #dfe8ee;
}
.ctl {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  border: 1px solid #d5e2ea; background: #fff; color: #0b2232;
  display: grid; place-items: center; cursor: pointer;
}
.ctl svg { width: 18px; height: 18px; fill: currentColor; }
#demoRestart svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ctl--play { width: 48px; height: 48px; background: #0a7fae; border-color: #0a7fae; color: #fff; }
.ctl--play .i-pause { display: none; }
.ctl--play.is-playing .i-play { display: none; }
.ctl--play.is-playing .i-pause { display: block; }
.progress { flex: 1; height: 6px; border-radius: 3px; background: #dfe8ee; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: #0a7fae; border-radius: 3px; transition: width .3s linear; }

@media (max-width: 420px) {
  .phone { height: 600px; border-radius: 38px; padding: 10px; }
  .phone__status { border-radius: 28px 28px 0 0; }
  .phone__controls { border-radius: 0 0 28px 28px; }
}

.backstage {
  background: var(--deep-2); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px; padding: 26px 26px 24px; min-height: 100%;
}
.backstage__eyebrow { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-muted); }
.backstage__biz { margin: 6px 0 6px; font: 800 1.5rem/1.2 var(--font-head); }
.backstage__meta { margin: 0 0 20px; color: var(--on-deep-muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.plan-chip { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--on-deep); }
.plan-chip--advanced { background: color-mix(in srgb, var(--beacon) 25%, transparent); color: #ffd590; }

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .1); }
.step {
  position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px;
  padding: 0 0 16px; opacity: .3; transition: opacity .4s ease;
}
.step.is-done, .step.is-active { opacity: 1; }
.step__dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--deep-2); border: 2px solid rgba(255, 255, 255, .25);
  position: relative; z-index: 1;
}
.step.is-active .step__dot { border-color: var(--beacon); box-shadow: 0 0 0 4px color-mix(in srgb, var(--beacon) 25%, transparent); }
.step.is-done .step__dot { background: #19a974; border-color: #19a974; }
.step.is-done .step__dot::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.step__title { margin: 2px 0 2px; font-weight: 700; font-size: .98rem; }
.step__detail { margin: 0; color: var(--on-deep-muted); font-size: .88rem; }

.result { margin-top: 8px; animation: bubble .5s ease both; }
.result[hidden] { display: none; }
.result-card { background: #fff; color: #0b2232; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); margin-bottom: 14px; }
.result-card:last-child { margin-bottom: 0; }
.result-card__bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #eaf2f7; font-size: .78rem; font-weight: 700; color: #4b6475; letter-spacing: .04em; text-transform: uppercase; }
.result-card__bar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.result-card__body { padding: 14px 16px 16px; font-size: .9rem; }
.result-card__subject { font-weight: 700; margin: 0 0 8px; }
.result-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.result-card dt { color: #4b6475; }
.result-card dd { margin: 0; }
.result-card__summary { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #e3ebf0; color: #33495a; }
.sms { display: flex; flex-direction: column; gap: 4px; }
.sms__from { font-size: .75rem; color: #4b6475; }
.sms__bubble { align-self: flex-start; background: #e9e9ee; border-radius: 18px 18px 18px 6px; padding: 9px 14px; max-width: 92%; }
.cal { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center; }
.cal__date { border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid #d5e2ea; }
.cal__month { background: #c2452d; color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 0; text-transform: uppercase; }
.cal__day { font: 800 1.3rem/1.6 var(--font-head); }
.cal p { margin: 0; }
.cal__title { font-weight: 700; }
.cal__meta { color: #4b6475; font-size: .86rem; }

.demo__note { margin: 28px 0 0; color: var(--on-deep-muted); font-size: .88rem; text-align: center; }

/* Demo line callout */
.callout { padding: 56px 0; background: linear-gradient(120deg, var(--lake-strong), var(--lake)); color: #fff; }
:root[data-theme="dark"] .callout { background: linear-gradient(120deg, #0b4f6e, #0a7fae); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .callout { background: linear-gradient(120deg, #0b4f6e, #0a7fae); } }
.callout-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.callout .eyebrow { color: #ffe1a8; }
.callout h2 { color: #fff; margin-bottom: .3em; }
.callout p { max-width: 40em; margin: 0; color: rgba(255, 255, 255, .88); }
.callout-number {
  display: inline-flex; align-items: center; gap: 14px; flex: none;
  padding: 18px 28px; border-radius: 999px;
  background: #fff; color: #08202f; text-decoration: none;
  font: 800 1.6rem/1 var(--font-head); letter-spacing: -0.01em;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
  transition: transform .15s ease;
}
.callout-number:hover { transform: translateY(-2px) scale(1.02); }
.callout-number svg { width: 28px; height: 28px; fill: #19a974; animation: wiggle 2.4s ease-in-out infinite; }
@media (max-width: 820px) {
  .callout-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .callout-number { font-size: 1.35rem; padding: 16px 22px; }
}

/* How it works: a numbered timeline, not cards. A line joins the numbers,
   across on wide screens and down the left side on narrow ones. */
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how__step { position: relative; }
.how__step p { color: var(--muted); margin: 0; font-size: .97rem; max-width: 22em; }
.how__num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 20px;
  background: var(--beacon); color: #3b2500; font: 800 1.3rem var(--font-head);
  transition: box-shadow .25s ease, transform .25s ease;
}
/* Hovering a step makes its number glow, like the plan cards. */
.how__step:hover .how__num {
  box-shadow: 0 0 28px 8px color-mix(in srgb, var(--beacon) 60%, transparent);
  transform: scale(1.06);
}
.how__step:not(:last-child)::after {
  content: ""; position: absolute; top: 25px; left: 52px; right: -40px; height: 2px;
  background: linear-gradient(90deg, var(--beacon), var(--lake));
  opacity: .45;
}
@media (max-width: 860px) {
  .how { grid-template-columns: 1fr; gap: 32px; }
  .how__step { padding-left: 76px; min-height: 52px; }
  .how__num { position: absolute; left: 0; top: 0; margin: 0; }
  .how__step:not(:last-child)::after {
    top: 52px; left: 25px; right: auto; bottom: -32px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--beacon), var(--lake));
  }
}

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 2px solid var(--line); border-radius: 22px;
  padding: 30px 26px 26px; box-shadow: var(--shadow);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.plan:hover, .plan:focus-within {
  border-color: var(--lake);
  box-shadow: 0 0 48px 4px color-mix(in srgb, var(--beacon) 45%, transparent), var(--shadow);
}
.plan:hover .btn--ghost, .plan:focus-within .btn--ghost { background: var(--lake); border-color: var(--lake); color: #fff; }
:root[data-theme="dark"] .plan:hover .btn--ghost, :root[data-theme="dark"] .plan:focus-within .btn--ghost { color: #04202e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plan:hover .btn--ghost, :root:not([data-theme="light"]) .plan:focus-within .btn--ghost { color: #04202e; }
}
.plan h3 { font-size: 1.5rem; margin-bottom: .2em; }
.plan__for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.plan__price { margin: 0 0 16px; color: var(--muted); }
.plan__amount { font: 800 2.8rem/1 var(--font-head); color: var(--ink); letter-spacing: -0.03em; }
.plan__amount--text { font-size: 2rem; }
.plan__terms { list-style: none; padding: 14px 0; margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; }
.plan__terms li { padding: 3px 0; color: var(--muted); }
.plan__terms strong { color: var(--ink); }
.plan__plus { font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.plan__features { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan__features li { position: relative; padding: 5px 0 5px 28px; font-size: .94rem; }
.plan__features li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--lake-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7fae' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 30px; } .plan__for { min-height: 0; } }

/* Estimator */
.estimator {
  margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; box-shadow: var(--shadow);
}
.estimator__head p { color: var(--muted); }
.estimator__body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.range { display: block; margin-bottom: 22px; }
.range__label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.range__label output { color: var(--lake); font-variant-numeric: tabular-nums; }
.range input { width: 100%; accent-color: var(--lake); height: 28px; }
.estimator__minutes { font-size: 1rem; color: var(--muted); margin-bottom: 14px; }
.estimator__minutes span { font: 800 2.2rem/1 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.estimator__bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 104px 1fr 80px; gap: 12px; align-items: center; }
.bar__name { font-weight: 600; white-space: nowrap; }
.bar__track { height: 14px; border-radius: 7px; background: var(--bg-alt); overflow: hidden; position: relative; }
.bar__fill { display: block; height: 100%; width: 0; border-radius: 7px; background: var(--lake); transition: width .35s ease, background-color .35s ease; }
.bar.is-over .bar__fill { background: var(--beacon); }
.bar__cost { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar.is-best .bar__name::after { content: " \2713"; color: var(--go); }
.estimator__note { margin: 16px 0 0; color: var(--muted); font-size: .95rem; min-height: 3em; }
@media (max-width: 820px) { .estimator { padding: 22px 18px; } .estimator__body { grid-template-columns: 1fr; gap: 12px; } .bar { grid-template-columns: 96px 1fr 64px; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 700 1.1rem/1.35 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 1.6rem/1 var(--font-body); color: var(--lake); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; max-width: 46em; }
.faq__more { margin-top: 32px; text-align: center; color: var(--muted); }
.plans-trial { max-width: 46em; margin: 32px auto 0; text-align: center; color: var(--muted); }
.plans-trial strong { color: var(--ink); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy p { color: var(--muted); }
.contact-alt a { font-weight: 700; }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  box-shadow: var(--shadow);
}
.form-row { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.form-row--half { grid-column: span 1; }
.form-row label { font-weight: 600; font-size: .92rem; }
.form-row input, .form-row select, .form-row textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; width: 100%;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--lake); outline-offset: 0; border-color: var(--lake); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: .95rem; min-height: 1.5em; }
.form-status.is-ok { color: var(--go); }
.form-status.is-error { color: var(--danger); }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .contact-form { grid-template-columns: 1fr; padding: 20px; } .form-row--half { grid-column: 1 / -1; } }

/* Footer */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 48px; }
.footer-brand p { margin: 12px 0 0; color: var(--muted); font-size: .92rem; max-width: 280px; }
.footer-brand .footer-copyright { font-size: .82rem; margin-top: 14px; max-width: none; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 40px; }
.footer-nav a, .footer-meta a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-nav a:hover, .footer-meta a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-meta { display: grid; gap: 6px; text-align: right; }
.footer-meta p { margin: 0; }
@media (max-width: 760px) { .footer-meta { text-align: left; } }
.brand--footer .brand-mark { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .has-js .reveal { opacity: 1; transform: none; }
}
