/* ============================================================================
   site.css — the public marketing site.

   System fonts only: the deployment's CSP forbids external assets, so the
   serif display face comes from whatever the OS has (Iowan Old Style on Mac,
   Palatino Linotype on Windows, Georgia elsewhere). Light and dark follow the
   OS. Mobile-first from 360px; nothing here may scroll the page sideways.
   ============================================================================ */

:root {
  color-scheme: light dark;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, Cambria, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --bg: #f6f3ec;
  --bg-2: #eee9df;
  --bg-glass: rgba(246, 243, 236, 0.84);
  --surface: #fffdf9;
  --surface-2: #f8f5ee;
  --ink: #16151d;
  --ink-2: #3b3946;
  --muted: #6b6878;
  --line: rgba(22, 21, 29, 0.12);
  --line-strong: rgba(22, 21, 29, 0.26);
  --accent: #4d44de;
  --accent-strong: #3b32c9;
  --accent-soft: rgba(77, 68, 222, 0.10);
  --accent-glow: rgba(77, 68, 222, 0.28);
  --accent-2: #2bb3ff;
  --ok: #1f9d55;
  --ok-glow: rgba(31, 157, 85, 0.5);
  --danger: #b42318;
  --code-bg: #15141b;
  --code-ink: #efece4;
  --shadow-card: 0 1px 2px rgba(22, 21, 29, 0.06), 0 14px 34px -18px rgba(22, 21, 29, 0.24);
  --shadow-float: 0 34px 70px -30px rgba(22, 21, 29, 0.45), 0 10px 24px -14px rgba(22, 21, 29, 0.25);
  --radius: 14px;
  --radius-lg: 24px;
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1017;
    --bg-2: #15161f;
    --bg-glass: rgba(15, 16, 23, 0.82);
    --surface: #171925;
    --surface-2: #1c1e2c;
    --ink: #f2f0e9;
    --ink-2: #d4d1c7;
    --muted: #9f9cb0;
    --line: rgba(242, 240, 233, 0.12);
    --line-strong: rgba(242, 240, 233, 0.26);
    --accent: #928cff;
    --accent-strong: #a8a3ff;
    --accent-soft: rgba(146, 140, 255, 0.14);
    --accent-glow: rgba(146, 140, 255, 0.3);
    --ok: #3fcf7a;
    --ok-glow: rgba(63, 207, 122, 0.5);
    --danger: #ff7b6b;
    --code-bg: #0b0c12;
    --code-ink: #ece9e0;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -18px rgba(0, 0, 0, 0.6);
    --shadow-float: 0 34px 70px -30px rgba(0, 0, 0, 0.8), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  }
}

/* ── base ──────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

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

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

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* ── type ──────────────────────────────────────────────────────────────── */

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.08rem; line-height: 1.3; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2vw, 2.9rem); }

.display {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
}
.display em { font-style: italic; color: var(--accent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.lead {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 22px 0 0;
}

.section { padding: clamp(56px, 8vw, 112px) 0; }
.section__head { max-width: 64ch; margin: 0 0 clamp(28px, 4vw, 48px); }
.section__head .sub { margin: 14px 0 0; color: var(--ink-2); font-size: 1.05rem; max-width: 56ch; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .sub { margin-inline: auto; }

/* ── buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px var(--accent-glow); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); background: var(--surface); }
.btn--ghost { background: transparent; color: var(--ink-2); padding-inline: 12px; }
.btn--ghost:hover { color: var(--ink); background: var(--accent-soft); }
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; white-space: nowrap; }
.btn--disabled { background: var(--bg-2); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

/* ── nav ───────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -26px rgba(0, 0, 0, 0.5); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-serif); font-size: 1.35rem; letter-spacing: -0.01em;
  min-width: 0;
}
.brand__light, .brand__dark { display: inline-flex; align-items: center; gap: 10px; }
.brand__dark { display: none; }
.brand__logo { height: 40px; width: auto; }
.brand__mark { width: 32px; height: 32px; border-radius: 8px; }
.brand__glyph {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem;
}
.brand__name { font-weight: 500; white-space: nowrap; }
@media (prefers-color-scheme: dark) {
  .brand__light { display: none; }
  .brand__dark { display: inline-flex; }
  .brand__dark--plate .brand__logo { background: #fff; padding: 3px 8px; border-radius: 8px; }
}

.nav__toggle { display: none; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block; padding: 6px 2px;
  color: var(--ink-2); font-size: 0.95rem; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.nav__actions { display: flex; gap: 8px; align-items: center; }

@media (max-width: 900px) {
  .nav__toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  }
  .nav__toggle svg { width: 22px; height: 22px; }
  .nav__cross { display: none; }
  .nav__toggle[aria-expanded="true"] .nav__burger { display: none; }
  .nav__toggle[aria-expanded="true"] .nav__cross { display: block; }

  .js .nav__menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px clamp(16px, 4vw, 40px) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card);
  }
  .js .nav.is-open .nav__menu { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links a:hover, .nav__links a[aria-current] { border-bottom-color: var(--line); }
  .nav__actions { flex-direction: column; align-items: stretch; padding-top: 12px; }
  .nav__actions .btn { width: 100%; }
  /* No JavaScript: the menu stays visible, wrapped under the brand. */
  html:not(.js) .nav__menu { flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 8px 0 12px; }
  html:not(.js) .nav__links { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  html:not(.js) .nav__links a { border-bottom: 0; padding: 6px 2px; font-size: 0.95rem; }
  html:not(.js) .nav__actions { flex-direction: row; padding: 0; }
  html:not(.js) .nav__row { flex-wrap: wrap; }
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(44px, 7vw, 96px) 0 clamp(36px, 5vw, 64px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 88% 8%, var(--accent-glow), transparent 62%),
    radial-gradient(700px 420px at 6% 96%, rgba(43, 179, 255, 0.14), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.75;
  background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  color: var(--muted); font-size: 0.9rem;
}
.hero__facts li { position: relative; padding-left: 14px; }
.hero__facts li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.hero__art { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero__art::before {
  content: ""; position: absolute; z-index: 0;
  width: min(100%, 400px); height: 620px; left: 50%; top: 0;
  transform: translateX(-50%) rotate(-5deg);
  border-radius: 30px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0.22;
}

.device {
  position: relative; z-index: 1;
  width: min(100%, 400px);
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.device__bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.device__dots { display: flex; gap: 6px; }
.device__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.device__live {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.device__live span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.device.is-ready .pulse { background: var(--ok); box-shadow: 0 0 0 0 var(--ok-glow); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(31, 157, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); }
}
.device__screen { position: relative; height: 576px; background: #fff; }
@media (max-width: 480px) { .device__screen { height: min(576px, 72vh); } }
.device__iframe { width: 100%; height: 100%; border: 0; background: transparent; }

.device__placeholder {
  height: 100%; display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 32px; color: #4a4858;
  background: linear-gradient(180deg, #fbfbfb, #f0f0f2);
}
.device__placeholder svg { width: 58px; height: 58px; margin: 0 0 16px; color: var(--accent); }
.device__placeholder-title { font-family: var(--font-serif); font-size: 1.4rem; color: #16151d; margin: 0 0 8px; }
.device__placeholder p { margin: 0; font-size: 0.93rem; max-width: 30ch; line-height: 1.5; }

.device__caption {
  position: relative; z-index: 1;
  margin: 16px 0 0; max-width: 400px;
  font-size: 0.88rem; color: var(--muted); text-align: center;
}

/* one orchestrated entrance; everything below the fold stays still */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__copy > :nth-child(1) { animation-delay: 0.04s; }
.hero__copy > :nth-child(2) { animation-delay: 0.12s; }
.hero__copy > :nth-child(3) { animation-delay: 0.2s; }
.hero__copy > :nth-child(4) { animation-delay: 0.28s; }
.hero__copy > :nth-child(5) { animation-delay: 0.36s; }
.hero__art { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.22s both; }

/* ── try it on your website ────────────────────────────────────────────── */

.try { padding: 8px 0 clamp(40px, 6vw, 80px); }
.try__card {
  position: relative; overflow: hidden;
  display: grid; gap: 22px;
  padding: clamp(22px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.try__card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
@media (min-width: 900px) {
  .try__card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
}
.try__text h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.try__text h2 em { color: var(--accent); font-style: italic; }
.try__text p { margin: 12px 0 0; color: var(--ink-2); font-size: 0.98rem; }
.try__form { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .try__form { flex-direction: row; } }
.try__input {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: 1rem;
  padding: 13px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
}
.try__input::placeholder { color: var(--muted); }
.try__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.try__input:read-only { opacity: 0.7; }
.try__status { grid-column: 1 / -1; margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.try__status:empty { display: none; }
.try__status.is-error { color: var(--danger); }
.try__status.is-ok { color: var(--ok); font-weight: 600; }
.try__progress { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
.try__bar { width: 40%; height: 100%; border-radius: 4px; background: var(--accent); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-120%); } to { transform: translateX(300%); } }

/* ── capabilities ──────────────────────────────────────────────────────── */

.caps-section { background: var(--bg-2); }
.caps { display: grid; gap: 1px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .caps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cap {
  background: var(--bg); padding: 26px 24px 28px;
  box-shadow: 0 0 0 1px var(--line);
  transition: background-color 0.2s ease;
}
.cap:hover { background: var(--surface); }
.cap__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.cap__icon svg { width: 22px; height: 22px; }
.cap h3 { margin: 0 0 8px; }
.cap p { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }

/* ── how it works ──────────────────────────────────────────────────────── */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.step { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.step__num {
  display: block; margin-bottom: 14px;
  font-family: var(--font-serif); font-style: italic; font-size: 3.6rem; line-height: 1; letter-spacing: -0.04em;
  color: var(--accent);
}
.step h3 { margin: 0 0 10px; font-size: 1.18rem; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

.snippet {
  margin-top: clamp(32px, 5vw, 56px);
  border-radius: var(--radius); overflow: hidden;
  background: var(--code-bg); color: var(--code-ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.snippet__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(239, 236, 228, 0.6);
}
.snippet__copy {
  font: inherit; font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0; text-transform: none;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: var(--code-ink); cursor: pointer;
}
.snippet__copy:hover { background: rgba(255, 255, 255, 0.08); }
.snippet__copy:focus-visible { outline-color: var(--code-ink); }
.snippet__code {
  margin: 0; padding: 18px 20px;
  overflow-x: auto; white-space: pre;
  font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.6; color: var(--code-ink);
}

/* ── pricing ───────────────────────────────────────────────────────────── */

.pricing { display: grid; gap: 28px; justify-items: center; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; border: 0;
  font: inherit; font-size: 0.92rem; font-weight: 600;
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.seg__btn.is-active { background: var(--ink); color: var(--bg); }
.seg__save { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.seg__btn.is-active .seg__save { background: rgba(255, 255, 255, 0.18); color: inherit; }

.plans__grid { width: 100%; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .plans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; } }
.plans__strip { width: 100%; }
.plans__empty { margin: 0; color: var(--muted); }

.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.plan--highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 26px 50px -26px var(--accent-glow); }
@media (min-width: 1100px) { .plan--highlight { transform: translateY(-8px); } }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
@media (prefers-color-scheme: dark) { .plan__badge { color: #0f1017; } }
.plan__name { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 700; margin: 0; }
.plan__tagline { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.price__amount { font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; }
.price__amount--text { font-size: 2.1rem; }
.price__per { color: var(--muted); font-size: 0.95rem; }
.price__alt { flex-basis: 100%; margin-top: 6px; color: var(--muted); font-size: 0.84rem; }
.price--year { display: none; }
[data-interval="year"] .price--month { display: none; }
[data-interval="year"] .price--year { display: flex; }

.plan__cta { width: 100%; }
.plan__features {
  list-style: none; margin: 4px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 10px;
  font-size: 0.92rem; color: var(--ink-2);
}
.plan__features li { display: flex; gap: 10px; align-items: flex-start; }
.check { flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.plan__limits {
  margin: auto 0 0; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.7; letter-spacing: 0.01em; color: var(--muted);
}

@media (min-width: 900px) {
  .plan--wide {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.5fr);
    grid-template-areas: "head price features" "cta cta features" "limits limits limits";
    align-items: center; column-gap: 32px; row-gap: 16px;
  }
  .plan--wide .plan__head { grid-area: head; }
  .plan--wide .plan__price { grid-area: price; }
  .plan--wide .plan__cta { grid-area: cta; width: auto; justify-self: start; }
  .plan--wide .plan__features { grid-area: features; border-top: 0; padding-top: 0; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan--wide .plan__limits { grid-area: limits; margin: 0; }
}

.byok {
  width: 100%;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius); border-left: 3px solid var(--accent);
  background: var(--accent-soft); color: var(--ink-2); font-size: 0.97rem;
}
.byok__icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.byok p { margin: 0; }
.byok strong { color: var(--ink); }
.pricing__note { margin: 0; font-size: 0.86rem; color: var(--muted); text-align: center; }

/* ── pricing page extras ───────────────────────────────────────────────── */

.page-head { padding: clamp(40px, 7vw, 90px) 0 clamp(24px, 3vw, 40px); text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); letter-spacing: -0.025em; line-height: 1.02; }
.page-head .lead { margin: 18px auto 0; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head--left { text-align: left; }
.page-head--left .lead { margin-inline: 0; }
.pricing-page .pricing-section { padding-top: clamp(16px, 2vw, 24px); }
.compare-section { padding-top: 0; }

.compare {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.compare__table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.92rem; }
.compare__table th, .compare__table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare__table thead th { font-weight: 700; font-size: 0.9rem; }
.compare__table tbody th { font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.compare__table tr:last-child td, .compare__table tr:last-child th { border-bottom: 0; }
.compare__table .is-highlight { background: var(--accent-soft); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq__list { max-width: 840px; border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px;
  font-family: var(--font-serif); font-size: 1.22rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon {
  flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}
.faq__icon svg { width: 12px; height: 12px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq__body { padding: 0 4px 22px; color: var(--ink-2); font-size: 0.98rem; max-width: 70ch; }
.faq__body p { margin: 0 0 10px; }
.faq__body p:last-child { margin: 0; }
.faq__body a { color: var(--accent); }

/* ── legal prose ───────────────────────────────────────────────────────── */

.legal-meta { margin: 14px 0 0; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.prose { max-width: 74ch; padding: 0 0 clamp(48px, 7vw, 96px); }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; overflow-wrap: anywhere; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose a { color: var(--accent); }
.prose strong { color: var(--ink); }

.toc { margin: 28px 0 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc h2 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 500; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 24px; font-size: 0.95rem; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.toc li { break-inside: avoid; margin: 0.2em 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { text-decoration: underline; color: var(--ink); }

/* ── footer ────────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(40px, 6vw, 72px) 0 28px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__tagline { margin: 14px 0 0; color: var(--ink-2); max-width: 36ch; }
.footer__note { margin: 10px 0 0; color: var(--muted); font-size: 0.86rem; max-width: 36ch; }
.footer__col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__h { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.footer__col a { color: var(--ink-2); font-size: 0.95rem; text-decoration: none; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; }
.footer__bottom p { margin: 0; }

/* ── WhatsApp button (tail.html; only with a WhatsApp number set) ──────── */

.wa-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 12px 28px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 18px 34px -12px rgba(0, 0, 0, 0.5); }
.wa-float:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
@media print { .wa-float { display: none; } }

/* ── motion preferences ────────────────────────────────────────────────── */

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