/* ==========================================================================
   AI Tech Studio — styles.css
   Dark-first, "engineered precision". Hairlines, not shadows.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #08090A;
  --surface:       #0E0F11;
  --card:          rgba(255, 255, 255, 0.04);
  --border:        #1E2024;
  --text:          #EDEDEF;
  --muted:         #8A8F98;
  --accent:        #6366F1;
  --accent-2:      #22D3EE;
  --gradient:      linear-gradient(135deg, #6366F1, #22D3EE);
  --badge:         #FFB020;
  --success:       #34D399;

  /* Derived shades (contrast-safe companions to --accent) */
  --border-hover:  #2E3138;
  --accent-text:   #A5ACFA;  /* accent as text on dark: >= 4.5:1 */
  --accent-btn:    #5B5FEF;  /* accent as solid fill under white text: >= 4.5:1 */

  --font-display:  "Space Grotesk", "Space Grotesk Fallback", sans-serif;
  --font-body:     "Inter", "Inter Fallback", sans-serif;
  --font-mono:     "JetBrains Mono", "JetBrains Mono Fallback", monospace;
}

/* ---------- Size-adjusted font fallbacks (no layout shift) ---------- */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 98%;
  descent-override: 29%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Courier New");
  size-adjust: 108%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

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

* {
  margin: 0;
}

html {
  scroll-padding-top: 88px;
  color-scheme: dark; /* native form controls (select popups, scrollbars) render dark */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

.section {
  padding-block: 64px;
}

.section-alt {
  background: var(--surface);
}

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}

@media (min-width: 960px) {
  .section {
    padding-block: 96px;
  }
}

/* ---------- Type patterns ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
}

.section-head {
  margin-bottom: 48px;
}

.mono {
  font-family: var(--font-mono);
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Card recipe ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-btn);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--accent-text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.btn-ghost:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--accent-btn);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 12px;
}

/* ---------- Full-page noise overlay ---------- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* ---------- Sticky nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 10, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 64px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: none;
}

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

.nav-cta {
  display: none;
  padding: 8px 20px;
  font-size: 14px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: rgba(8, 9, 10, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
}

.mobile-menu-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 8px 0;
}

.mobile-menu-links .btn {
  margin-top: 8px;
  padding: 10px 24px;
}

@media (min-width: 640px) {
  .nav-cta {
    display: inline-flex;
  }
}

@media (min-width: 960px) {
  .nav-inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .nav-links {
    display: flex;
    gap: 32px;
  }

  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
  }

  .nav-links a:hover {
    color: var(--text);
  }

  .nav-toggle,
  .mobile-menu {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 80px 64px;
}

@media (min-width: 960px) {
  .hero {
    padding-block: 128px 112px;
  }
}

/* Grid overlay — hero + contact only, masked toward edges */
.hero::before,
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 25%, transparent 78%);
}

.contact {
  position: relative;
  overflow: hidden;
}

/* Aurora — hero only */
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
}

.aurora-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -80px;
  background: radial-gradient(circle, #6366F1 0%, transparent 70%);
}

.aurora-2 {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -120px;
  background: radial-gradient(circle, #8B5CF6 0%, transparent 70%);
}

.aurora-3 {
  width: 380px;
  height: 380px;
  bottom: -160px;
  left: 30%;
  background: radial-gradient(circle, #2DD4BF 0%, transparent 70%);
}

.aurora-4 {
  width: 320px;
  height: 320px;
  bottom: -120px;
  right: 15%;
  background: radial-gradient(circle, #EC4899 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

/* The console <pre> has a wide min-content size; without this it blows out
   the grid column on small screens and the hero clips its own text. */
.hero-inner > * {
  min-width: 0;
}

.hero-visual {
  max-width: 100%;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 55fr 45fr;
    gap: 64px;
  }
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-micro {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Build console (signature element) ---------- */
.console {
  background: #0B0C0E;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  justify-self: center;
}

@media (min-width: 960px) {
  .console {
    justify-self: end;
  }
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--border-hover);
}

.console-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.console-screen {
  margin: 0;
  padding: 20px 24px;
  min-height: 192px; /* reserves exactly six 25.2px lines — no shift while typing */
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
}

/* .c-line spans stay inline — the <pre>'s literal newlines break the lines */
.c-prompt,
.c-dim {
  color: var(--muted);
}

.c-ok {
  color: var(--accent-text);
}

.c-live {
  color: var(--success);
}


/* ---------- Services bento ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.tile:hover {
  border-color: var(--border-hover);
}

.tile-index {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.tile-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.tile-line {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.tile-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.tile-time {
  font-size: 12px;
  color: var(--muted);
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile-flagship {
    grid-column: span 2;
  }
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
  }

  .tile {
    grid-column: span 3;
    padding: 32px;
  }

  .tile-flagship {
    grid-column: span 6;
  }
}

/* ---------- Why: comparison card ---------- */
.why-lead {
  max-width: 720px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr;
}

.compare-col {
  padding: 32px 24px;
}

.compare-col + .compare-col {
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }

  .compare-col {
    padding: 48px;
  }

  .compare-col + .compare-col {
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

.compare-head {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--muted);
}

.compare-head.grad-text {
  color: transparent;
}

.compare-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
}

.mark {
  font-family: var(--font-mono);
  flex: none;
}

.mark-x {
  color: var(--muted);
}

.mark-check {
  color: var(--accent-text);
}

/* ---------- Who it's for ---------- */
.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.who-card {
  padding: 32px;
}

.who-card:hover {
  border-color: var(--border-hover);
}

.who-name {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.who-copy {
  color: var(--muted);
}

@media (min-width: 640px) {
  .who-grid {
    grid-template-columns: 1fr 1fr;
  }

  .who-card-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 48px;
    align-items: start;
    padding-block: 24px;
  }

  .who-card-wide .who-name {
    margin-bottom: 0;
    font-size: 18px;
    white-space: nowrap;
  }
}

/* ---------- Process steps ---------- */
.process-row {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Connecting hairline behind the step numbers */
.process-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 1px;
  background: var(--border);
}

.process-step {
  position: relative;
  padding-left: 48px;
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.step-name {
  font-size: 18px;
  margin-bottom: 8px;
  padding-top: 4px;
}

.step-copy {
  font-size: 15px;
  color: var(--muted);
}

.process-note {
  margin-top: 48px;
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 960px) {
  .process-row {
    flex-direction: row;
    gap: 32px;
  }

  .process-row::before {
    top: 15px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }

  .process-step {
    flex: 1;
    padding-left: 0;
    padding-top: 48px;
  }

  .step-num {
    top: 0;
  }
}

/* ---------- Bundles ---------- */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.plan {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 32px;
}

.plan:hover {
  border-color: var(--border-hover);
}

.plan-featured {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.badge {
  position: absolute;
  top: -11px;
  left: 32px;
  padding: 3px 12px;
  background: var(--badge);
  color: #08090A;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-name {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.plan-line {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.plan-includes {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--border);
}

.plan-includes li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.plan-time {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

.plan-cta {
  margin-top: auto;
}

@media (min-width: 960px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .plan-featured {
    transform: translateY(-8px);
  }
}

/* ---------- FAQ accordions ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  border-radius: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.chevron {
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}

.faq-item[open] .chevron {
  transform: rotate(-135deg);
}

.faq-body {
  padding: 0 24px 20px;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Contact ---------- */
.contact-inner {
  position: relative;
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .contact-inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

.contact-card {
  padding: 32px;
  background: rgba(14, 15, 17, 0.85);
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field select option {
  background-color: var(--surface);
  color: var(--text);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%238A8F98' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field.invalid input,
.field.invalid textarea {
  border-color: #F87171;
}

.field-error {
  margin-top: 8px;
  font-size: 14px;
  color: #F8A5A5;
}

.form-submit {
  width: 100%;
}

.form-success {
  color: var(--success);
  font-size: 18px;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
  background: var(--bg);
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.footer-links a:hover,
.footer-email:hover {
  color: var(--text);
}

.footer-email {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.footer-legal {
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 960px) {
  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Chat widget ---------- */
.chat-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-launcher {
  padding: 12px 20px;
  font-size: 15px;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(540px, calc(100dvh - 96px));
  background: #0B0C0E;
  overflow: hidden;
}

.chat-panel[hidden] {
  display: none;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.chat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.chat-sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.chat-close {
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--accent-btn);
  color: #fff;
}

.chat-msg-bot {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
}

/* A message typed by a real person taking over from Telegram */
.chat-msg-human {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
}

.chat-msg-error {
  align-self: flex-start;
  border: 1px solid var(--border);
  color: #F8A5A5;
  font-size: 14px;
}

.chat-typing {
  align-self: flex-start;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 6px 14px;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.chat-send {
  flex: none;
  padding: 10px 16px;
}

.chat-send[disabled] {
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 639px) {
  .chat-widget {
    right: 12px;
    bottom: 12px;
  }
}

/* ---------- Motion (everything gated) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .btn {
    transition: transform 200ms ease, background-color 200ms ease;
  }

  .btn:hover {
    transform: scale(1.02);
  }

  .card {
    transition: border-color 200ms ease, transform 200ms ease;
  }

  .tile:hover,
  .who-card:hover,
  .plan:not(.plan-featured):hover {
    transform: translateY(-2px);
  }

  .aurora {
    animation: aurora-drift 60s ease-in-out infinite alternate;
  }

  @keyframes aurora-drift {
    to {
      transform: translate3d(4%, -3%, 0) rotate(6deg);
    }
  }

  .chevron {
    transition: transform 200ms ease;
  }

  /* Scroll reveals — hidden state only when JS is on AND motion is allowed;
     reduced motion / no-JS gets everything visible and static. */
  .js [data-reveal],
  .js [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
  }

  .js [data-reveal].is-visible,
  .js [data-reveal-group] > .is-visible {
    opacity: 1;
    transform: none;
  }

}

.btn:hover {
  background: var(--accent);
}
