/* ============================================================
   Aivobot marketing site — design tokens
   ============================================================ */

:root {
  /* light (default / un-stamped) */
  --ink: #14171A;
  --ink-soft: #2B2F2C;
  --paper: #F2F3F1;
  --surface: #FFFFFF;
  --muted: #6B7169;
  --line: #DEDFD9;
  --accent: #F2B705;
  --accent-ink: #1B1F1D;
  --accent-soft: #FBEAB8;
  --success: #2E7D5B;
  --shadow: 0 1px 0 rgba(20, 23, 26, 0.06);

  /* fixed (theme-invariant) — for components that are deliberately always
     a dark panel regardless of site theme: call panel, CTA band, featured
     plan card. Never redefined in a media or [data-theme] block. */
  --panel-bg: #14171A;
  --panel-fg: #F2F3F1;
  --panel-muted: #B9BCB6;
  --panel-border: #33372F;
  --panel-accent: #F2B705;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F2F3F1;
    --ink-soft: #D8DAD6;
    --paper: #14171A;
    --surface: #1A1D1F;
    --muted: #9AA09A;
    --line: #2C302D;
    --accent: #F2B705;
    --accent-ink: #14171A;
    --accent-soft: #3A3211;
    --success: #4FAE84;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --ink: #F2F3F1;
  --ink-soft: #D8DAD6;
  --paper: #14171A;
  --surface: #1A1D1F;
  --muted: #9AA09A;
  --line: #2C302D;
  --accent: #F2B705;
  --accent-ink: #14171A;
  --accent-soft: #3A3211;
  --success: #4FAE84;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .dot--live { animation: pulse 2.2s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: #E5AC03; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--block { width: 100%; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.logo .dot { width: 7px; height: 7px; margin-bottom: 4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.current { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--ink);
}

.nav-primary { display: flex; align-items: center; gap: 28px; }

@media (max-width: 860px) {
  .nav-primary { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav.is-open .nav-primary {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 24px;
    gap: 4px;
  }
  .nav.is-open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .nav.is-open .nav-links a { padding: 10px 0; width: 100%; }
  .nav.is-open .nav-actions {
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 75%);
  mask-image: linear-gradient(180deg, black, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.98;
  margin-top: 18px;
}
.hero h1 .accent { color: var(--accent); -webkit-text-stroke: 0; }

.hero p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--muted);
}

/* load-in sequence: only for users who haven't asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-col > * {
    opacity: 0;
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero-col > *:nth-child(1) { animation-delay: 0.02s; }
  .hero-col > *:nth-child(2) { animation-delay: 0.10s; }
  .hero-col > *:nth-child(3) { animation-delay: 0.20s; }
  .hero-col > *:nth-child(4) { animation-delay: 0.30s; }
  .hero-col > *:nth-child(5) { animation-delay: 0.38s; }
  .call-panel-wrap {
    opacity: 0;
    animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.22s;
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* waveform panel */
.call-panel-wrap {
  position: relative;
}
.call-panel-wrap::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(closest-side, rgba(242, 183, 5, 0.22), transparent);
  z-index: 0;
}
.call-panel {
  position: relative;
  z-index: 1;
  background: var(--panel-bg);
  color: var(--panel-fg);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 20px 60px -25px rgba(20,23,26,0.5), 0 0 90px -30px rgba(242, 183, 5, 0.35);
}
.call-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--panel-muted);
  margin-bottom: 22px;
}
.call-panel-head .live { color: var(--panel-accent); display: inline-flex; align-items: center; gap: 6px; }

.waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 84px;
  margin-bottom: 22px;
}
.waveform span {
  flex: 1;
  background: var(--panel-accent);
  border-radius: 2px;
  opacity: 0.85;
}
@media (prefers-reduced-motion: no-preference) {
  .waveform span { animation: wave 1.6s ease-in-out infinite; }
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.transcript {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--panel-muted);
  border-top: 1px solid var(--panel-border);
  padding-top: 16px;
}
.transcript .who { color: var(--panel-accent); }

/* ---------- section headings ---------- */

.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ---------- ruled feature list (tariff-board style) ---------- */

.tariff-list { border-top: 1px solid var(--line); }
.tariff-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.tariff-row:hover { background: var(--surface); }
@media (max-width: 700px) {
  .tariff-row { grid-template-columns: 1fr; gap: 12px; }
}
.tariff-row h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tariff-row p { margin: 0; color: var(--muted); max-width: 60ch; }

.tariff-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
:root:not([data-theme="light"]) .tariff-icon,
:root[data-theme="dark"] .tariff-icon { color: var(--accent); }
.tariff-icon svg { width: 18px; height: 18px; }

/* ---------- language strip ---------- */

.lang-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lang-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
}
.lang-chip .native { font-family: "Work Sans", sans-serif; margin-right: 6px; }
.lang-chip--more { color: var(--muted); border-style: dashed; }

/* ---------- mini pricing cards (landing teaser) ---------- */

.mini-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 820px;
}
@media (max-width: 700px) {
  .mini-plans { grid-template-columns: 1fr; }
}
.mini-plan {
  background: var(--surface);
  padding: 24px;
}
.mini-plan .mono {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mini-plan .mini-price {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin-top: 10px;
}
.mini-plan .mini-price small {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}
.mini-plan p.detail { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* ---------- numbered steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--surface);
  padding: 32px 28px;
}
.step .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.step h3 { font-size: 22px; margin-top: 14px; }
.step p { color: var(--muted); margin-top: 12px; }

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 980px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
}

.plan {
  background: var(--surface);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan--featured { background: var(--panel-bg); color: var(--panel-fg); }
.plan--featured .plan-name,
.plan--featured .price small,
.plan--featured .plan-desc { color: var(--panel-muted); }
.plan--featured .price { color: var(--panel-fg); }
.plan--featured .plan-feats li { border-color: var(--panel-border); color: var(--panel-fg); }
.plan--featured .plan-feats li::before { color: var(--panel-accent); }

.plan-badge {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.plan-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-desc { font-size: 14px; color: var(--muted); margin-top: 6px; min-height: 40px; }

.price {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 40px;
  margin-top: 18px;
  line-height: 1;
}
.price small {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.plan-feats {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  flex: 1;
}
.plan-feats li {
  font-size: 14.5px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
}
.plan-feats li:first-child { border-top: none; }
.plan-feats li::before {
  content: "—";
  color: var(--accent);
  flex: none;
}

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line); max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { font-size: 17px; text-transform: none; font-family: "Work Sans", sans-serif; font-weight: 600; }
.faq-item p { color: var(--muted); margin: 10px 0 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--panel-bg);
  color: var(--panel-fg);
}
.cta-band .wrap { padding: 64px 24px; text-align: center; }
.cta-band h2 { color: var(--panel-fg); font-size: clamp(28px, 4vw, 40px); }
.cta-band p { color: var(--panel-muted); margin-top: 14px; }
.cta-band .hero-actions { justify-content: center; margin-top: 28px; }
.cta-band .btn--ghost { color: var(--panel-fg); border-color: var(--panel-border); }
.cta-band .btn--ghost:hover { border-color: var(--panel-fg); }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); padding: 32px; }
.contact-card .eyebrow { margin-bottom: 14px; }
.contact-card h3 { font-size: 22px; margin-bottom: 10px; }
.contact-card p { color: var(--muted); margin: 0 0 20px; }

/* ---------- footer ---------- */

.footer { padding: 56px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 32ch; }
.footer h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { text-decoration: none; font-size: 14.5px; color: var(--ink-soft); }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- generic page hero (non-home) ---------- */

.page-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); margin-top: 16px; }
.page-hero p.lede { font-size: 18px; color: var(--muted); max-width: 60ch; margin-top: 18px; }

/* skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

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