/* Bot Studio — night, lime, calm hero, full-bleed close. */
:root {
  --bg: #070908;
  --surface: #121614;
  --text: #f4f6f2;
  --text-2: #9aa396;
  --line: rgba(244, 246, 242, 0.12);
  --line-2: rgba(244, 246, 242, 0.24);
  --accent: #c8f24a;
  --ink: #101408;
  --day: #e7f6df;
  --day-2: #f7fbf4;
  --gutter: max(clamp(20px, 5vw, 72px), env(safe-area-inset-left), env(safe-area-inset-right));
  --sec-y: clamp(88px, 10vw, 140px);
  --nav-h: 72px;
  --max: 1200px;
  --r-card: 28px;
  --pill: 999px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --p: 0;
  --line-p: 0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); scrollbar-color: #243024 var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--accent); }
strong { font-weight: 500; }
::selection { background: var(--accent); color: var(--ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: var(--gutter); top: -120px; z-index: 80;
  background: var(--accent); color: var(--ink);
  padding: 8px 12px; border-radius: 10px; font-weight: 500;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }
.wrap { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; }

.h2 {
  font-size: clamp(2rem, 1.1rem + 2.8vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}
.h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 42ch; text-wrap: pretty; }
.body { font-size: 1rem; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 8px 18px; border-radius: var(--pill);
  font-size: 1rem; font-weight: 500; line-height: 1; white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color 280ms var(--ease), color 280ms var(--ease), transform 200ms var(--ease);
}
.btn .ico, .ico { width: 16px; height: 16px; flex-shrink: 0; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #d7ff6a; }
  .btn-ink:hover { background: #1c2414; }
  .btn-ghost:hover { background: rgba(244, 246, 242, 0.06); }
}

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center;
  background: rgba(7, 9, 8, 0.45);
  transition: background-color 400ms var(--ease), backdrop-filter 400ms var(--ease);
}
.nav.is-solid {
  background: rgba(7, 9, 8, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 -1px 0 var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav.is-solid { background: var(--bg); backdrop-filter: none; }
}
.nav-inner {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto; display: flex; align-items: center; gap: 16px;
}
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: none; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--pill); font-size: 0.875rem; font-weight: 500; color: var(--text-2);
  transition: color 280ms var(--ease), background-color 280ms var(--ease);
}
.nav-links a[aria-current="true"] { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--text); background: rgba(244, 246, 242, 0.06); }
}
.nav-cta { display: none; margin-left: 8px; font-size: 0.875rem; }
.nav-toggle {
  margin-left: auto; width: 44px; height: 44px; border-radius: var(--pill);
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line);
}
.burger { width: 18px; height: 12px; position: relative; display: block; }
.burger span {
  position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--text); border-radius: 1px;
  transition: transform 400ms var(--ease), opacity 280ms var(--ease);
}
.burger span:nth-child(1) { transform: translateY(0); }
.burger span:nth-child(2) { transform: translateY(5px); }
.burger span:nth-child(3) { transform: translateY(10px); }
.nav.is-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { opacity: 0; }
.nav.is-open .burger span:nth-child(3) { transform: translateY(5px) rotate(-45deg); }
@media (min-width: 1040px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile[hidden] { display: none !important; }
.mobile {
  position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top)) 0 0 0; z-index: 39;
  background: rgba(7, 9, 8, 0.94);
  backdrop-filter: blur(20px);
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 4px; overscroll-behavior: none;
}
.mobile a {
  display: flex; align-items: center; min-height: 52px;
  font-size: 1.25rem; font-weight: 500; border-bottom: 1px solid var(--line);
}
.mobile .btn { margin-top: 20px; width: 100%; border-bottom: 0; }
html.is-live .mobile a { opacity: 0; transform: translateY(24px); }
html.is-live .mobile.is-open a {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
html.is-live .mobile.is-open a:nth-child(1) { transition-delay: 0ms; }
html.is-live .mobile.is-open a:nth-child(2) { transition-delay: 60ms; }
html.is-live .mobile.is-open a:nth-child(3) { transition-delay: 120ms; }
html.is-live .mobile.is-open a:nth-child(4) { transition-delay: 180ms; }
html.is-live .mobile.is-open a:nth-child(5) { transition-delay: 240ms; }
body.menu-open { overflow: hidden; }

.sec { padding: var(--sec-y) 0; overflow: clip; }
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .h2 { margin-bottom: 16px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 36px) 0 72px;
  overflow: clip;
}
.glow {
  position: absolute;
  right: 6%;
  top: 16%;
  width: min(640px, 58vw);
  height: min(640px, 58vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 242, 74, 0.2), transparent 68%);
  pointer-events: none;
}
html.is-live .glow { animation: glow-in 1.6s var(--ease) both; }
@keyframes glow-in {
  from { opacity: 0.25; }
  to { opacity: 1; }
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 48px;
  align-items: center;
  width: min(100% - (var(--gutter) * 2), var(--max));
}
.hero h1 {
  font-size: clamp(2.6rem, 0.8rem + 4vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.048em;
  font-weight: 500;
  text-wrap: balance;
  margin-bottom: 18px;
}
.hero .lede { margin-bottom: 26px; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-meta {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em;
  color: var(--text-2); max-width: 42ch;
}
html.is-live .hero-intro { opacity: 0; transform: translateY(16px); }
html.is-live.hero-ready .hero-intro {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
html.is-live.hero-ready .device-slot { transition-delay: 140ms; }

.device-slot { width: min(100%, 400px); justify-self: end; }
.device {
  position: relative;
  width: 100%;
  background: rgba(12, 18, 13, 0.92);
  border: 1px solid rgba(244, 246, 242, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 24px 60px rgba(0, 0, 0, 0.28);
  border-radius: 32px;
  padding: 14px;
}
.device-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; }
.device-top img { width: 28px; height: auto; }
.device-id strong { display: block; font-size: 0.9375rem; letter-spacing: -0.02em; }
.presence {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.6875rem; color: var(--text-2);
}
.presence i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); display: block; }
.device-time { margin-left: auto; font-family: var(--mono); font-size: 0.75rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.thread { display: flex; flex-direction: column; gap: 8px; min-height: 180px; padding: 4px; }
.msg { max-width: 94%; padding: 11px 13px; border-radius: 20px; font-size: 0.9375rem; line-height: 1.4; }
.msg.in { align-self: flex-start; background: #1a241c; border-bottom-left-radius: 6px; }
.msg.out {
  align-self: flex-end; background: #142616;
  border: 1px solid rgba(200, 242, 74, 0.35); border-bottom-right-radius: 6px;
}
.tag {
  display: block; margin-top: 8px; font-family: var(--mono);
  font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.chip {
  align-self: center; max-width: 100%; text-align: center;
  background: rgba(200, 242, 74, 0.14); border-radius: var(--pill); font-size: 0.8125rem;
}
.ops {
  margin-top: 8px; padding: 12px 14px; border-radius: 20px;
  background: rgba(7, 9, 8, 0.72); border: 1px solid var(--line); display: grid; gap: 6px;
}
.ops p {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-2);
}
.ops span { color: var(--accent); }

/* Tagline */
.tagline { padding: clamp(96px, 14vw, 180px) 0; background: #050706; }
.tagline-text {
  font-size: clamp(2.4rem, 0.6rem + 5vw, 5.25rem);
  line-height: 0.94; letter-spacing: -0.048em; font-weight: 500; max-width: 11em;
}

/* Catalog */
.rows { display: grid; grid-template-columns: 1fr; }
@media (min-width: 800px) { .rows { grid-template-columns: 1fr 1fr; column-gap: 64px; } }
.rows > div {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.row-k {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.row-v { font-size: clamp(1.15rem, 1rem + 0.4vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.35; }

/* Packages */
.dawn { background: var(--day); color: var(--ink); color-scheme: light; }
.dawn .lede, .dawn .price-desc, .dawn .price-setup, .dawn .price-note { color: #3e4d3c; }
.dawn .eyebrow { color: #3e4d3c; }
.dawn em {
  color: inherit;
  background-image: linear-gradient(transparent 62%, var(--accent) 62% 90%, transparent 90%);
}
.dawn :focus-visible { outline-color: var(--ink); }
.prices {
  display: grid; gap: 16px;
}
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.price {
  background: #fff; color: var(--ink);
  border-radius: var(--r-card); padding: 28px 24px 24px;
  display: flex; flex-direction: column; min-width: 0;
  box-shadow: 0 16px 40px rgba(16, 28, 16, 0.05);
}
.price.is-hot { background: var(--accent); box-shadow: none; }
.price-top { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: 18px; }
.kicker { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; color: #3e4d3c; }
.price.is-hot .kicker, .price.is-hot .price-setup, .price.is-hot .price-desc, .price.is-hot .price-month small { color: rgba(16, 20, 8, 0.72); }
.price-badge {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: var(--accent); border-radius: var(--pill); padding: 6px 10px;
}
.price-name { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 12px; }
.price-month {
  font-size: 2.5rem; line-height: 1; letter-spacing: -0.045em; font-weight: 700;
  font-variant-numeric: tabular-nums; margin-bottom: 8px;
}
.price-month span, .price-month small { font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.price-setup { font-family: var(--mono); font-size: 0.75rem; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.price-desc { font-size: 0.9375rem; margin-bottom: 20px; min-height: 3em; }
.price ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; line-height: 1.4; }
.price li .ico { margin-top: 2px; }
.price .btn { width: 100%; }
.dawn .btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(16, 20, 8, 0.2); }
@media (hover: hover) and (pointer: fine) {
  .dawn .btn-ghost:hover { background: rgba(16, 20, 8, 0.04); }
}
.price-note { margin-top: 28px; font-size: 0.875rem; max-width: 62ch; }

/* Steps */
.steps {
  --line-p: 0; display: grid; gap: 28px; position: relative; margin: 0; padding: 0;
}
html:not(.is-live) .steps { --line-p: 1; }
.steps::before, .steps::after {
  content: ""; position: absolute; top: 15px; left: 16px; height: 1px; background: var(--line);
  width: calc((100% - 48px) * 2 / 3 + 48px);
}
.steps::after {
  background: var(--accent); transform: scaleX(var(--line-p)); transform-origin: left center;
  transition: transform 900ms var(--ease);
}
.step { position: relative; min-width: 0; }
.step-n {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg);
  box-shadow: 0 0 0 1.5px var(--accent); color: var(--accent);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 759px) {
  .steps::before, .steps::after { top: 0; bottom: 0; left: 15px; width: 1px; height: auto; }
  .steps::after { transform: scaleY(var(--line-p)); transform-origin: top center; }
  .step { padding-left: 56px; }
  .step-n { position: absolute; left: 0; top: 0; margin: 0; }
}

/* FAQ */
.faq { max-width: 760px; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.faq h3 { font-size: inherit; font-weight: inherit; }
.faq-q {
  width: 100%; min-height: 56px; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; font-size: 1rem; font-weight: 500;
}
.faq-q .ico { color: var(--text-2); transition: transform 400ms var(--ease); }
.faq-q[aria-expanded="true"] .ico { transform: rotate(180deg); }
.faq-a { padding: 0 20px 20px; }
.faq-a p { color: var(--text-2); line-height: 1.6; max-width: 62ch; }

/* Full-bleed close */
.band {
  background: var(--accent); color: var(--ink);
  padding: clamp(96px, 14vw, 180px) 0;
  text-align: center;
}
.band h2 {
  font-size: clamp(2.6rem, 1rem + 4.4vw, 5.25rem);
  line-height: 0.94; letter-spacing: -0.048em; font-weight: 500;
  color: var(--ink); max-width: 12em; margin: 0 auto 20px;
}
.band p { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); max-width: 36ch; margin: 0 auto 32px; color: rgba(16, 20, 8, 0.78); }
.band .hero-actions { justify-content: center; }
.btn-band { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(16, 20, 8, 0.35); }
@media (hover: hover) and (pointer: fine) {
  .btn-band:hover { background: rgba(16, 20, 8, 0.06); }
}

.footer { border-top: 1px solid var(--line); padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); background: var(--bg); }
.footer-grid { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 760px) { .footer-grid { flex-direction: row; justify-content: space-between; } }
.footer-brand img { height: 20px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 28ch; color: var(--text-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: var(--pill); font-size: 0.875rem; color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.legal-block { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-block h2 { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.legal-block p { font-size: 0.875rem; color: var(--text-2); max-width: 70ch; line-height: 1.6; }
.footer-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--text-2); }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }

.wa-float {
  position: fixed; z-index: 45;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(16, 20, 8, 0.2);
}
.wa-float .ico { width: 26px; height: 26px; }
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { background: #d7ff6a; }
}

html.is-live.js-ready .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
html.is-live.js-ready .reveal.is-in { opacity: 1; transform: none; }

html:not(.is-live) .hero-intro { opacity: 1; transform: none; }

.miss {
  min-height: 100svh; display: grid; align-content: center; justify-items: start;
  padding: 48px var(--gutter); max-width: 760px;
}
.miss .h2 { margin: 12px 0 16px; }

@media (max-width: 860px) {
  .hero { min-height: 0; padding-bottom: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .device-slot { justify-self: center; width: min(100%, 380px); }
  .glow { right: 50%; top: 8%; transform: translateX(50%); width: 88vw; height: 88vw; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .device { border-radius: 24px; padding: 10px; }
  .msg { font-size: 0.875rem; }
  .rows > div { grid-template-columns: 1fr; gap: 6px; }
  .wa-float { width: 52px; height: 52px; }
}
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
}
