/* VoltexAI shared styles. Brand tokens from VoltexAI_Brand_Identity.md section 3. */
:root {
  --bg: #080810;
  --blue: #00BFFF;
  --lime: #CFFF00;
  --white: #FFFFFF;
  /* proposed in brand doc, pending Adrian's approval */
  --surface: #0F0F1A;
  --border: #1E1E2E;
  --muted: #A0A0B0;

  --blue-soft: rgba(0, 191, 255, 0.12);
  --blue-line: rgba(0, 191, 255, 0.35);
  --radius: 18px;
  --gutter: 16px;
  --max: 1180px;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
/* grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* grid and flex children may shrink below their content width (prevents sideways scroll on small phones) */
.wrap > *, .wrap > * > * { min-width: 0; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}
.hl { color: var(--blue); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue-line);
  background: var(--blue-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

/* ---------- Buttons. Lime lives on .btn-lime only. ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  padding: 10px 26px;
  text-align: center;
  line-height: 1.2;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-lime { background: var(--lime); color: var(--bg); }
.btn-lime:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(207, 255, 0, 0.25); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-block { width: 100%; }

/* Nav CTA is outline while another lime button is on screen (one lime per viewport). */
.nav-cta.is-quiet { background: transparent; color: var(--white); border-color: var(--blue-line); box-shadow: none; }
.nav-cta.is-quiet:hover { border-color: var(--blue); color: var(--blue); }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-family: var(--display); font-size: 26px; letter-spacing: 0.06em; line-height: 1; padding-top: 3px; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--white); }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
@media (max-width: 440px) {
  .nav .btn { font-size: 13px; padding: 0 12px; }
  .nav .btn .arrow { display: none; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 21px; }
}
@media (max-width: 370px) { .brand span { display: none; } }

/* ---------- Sections ---------- */
section { position: relative; padding: 80px 0; }
[id] { scroll-margin-top: 80px; }
@media (min-width: 768px) { section { padding: 120px 0; } }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .display { font-size: clamp(44px, 7vw, 84px); margin-top: 18px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 18px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---------- Phone mock (faceless UI graphic) ---------- */
.phone {
  position: relative;
  width: 280px;
  max-width: 100%;
  aspect-ratio: 9 / 18.5;
  margin: 0 auto;
  border-radius: 42px;
  background: #05050b;
  border: 1px solid #2a2a3d;
  box-shadow: 0 0 0 8px #0c0c16, 0 0 0 9px #22223a, 0 30px 80px rgba(0, 191, 255, 0.18);
  overflow: hidden;
  font-size: 14px;
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; border-radius: 20px; background: #000; z-index: 3;
}
.phone-screen { position: absolute; inset: 0; padding: 54px 18px 22px; display: flex; flex-direction: column; }
.ph-call, .ph-sms { position: absolute; inset: 0; padding: 60px 18px 24px; display: flex; flex-direction: column; }
.ph-call { align-items: center; text-align: center; animation: callPhase 9s infinite; }
.ph-sms { opacity: 0; animation: smsPhase 9s infinite; }
.ph-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ph-number { font-family: var(--display); font-size: 34px; margin-top: 10px; letter-spacing: .03em; }
.ph-sub { color: var(--muted); font-size: 13px; }
.ph-ring {
  position: relative; width: 92px; height: 92px; margin: 34px auto 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue-soft); border: 1px solid var(--blue-line);
}
.ph-ring::before, .ph-ring::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--blue);
  animation: ring 1.6s ease-out infinite;
}
.ph-ring::after { animation-delay: .8s; }
.ph-ring svg { width: 36px; height: 36px; color: var(--blue); }
.ph-status {
  margin-top: auto; padding: 12px 14px; border-radius: 14px; width: 100%;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; text-align: left;
}
.ph-status b { color: var(--blue); font-weight: 600; }
.ph-status .dots::after { content: "..."; animation: dots 1.2s steps(4) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
.ph-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.ph-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; }
.ph-head strong { display: block; font-size: 14px; }
.ph-head small { color: var(--muted); font-size: 11px; }
.bubble {
  background: #14142a; border: 1px solid var(--blue-line); border-radius: 16px 16px 16px 4px;
  padding: 12px 14px; line-height: 1.45; font-size: 13px; opacity: 0; transform: translateY(8px);
  animation: bubbleIn 9s infinite;
}
.bubble + .bubble { margin-top: 10px; animation-name: bubbleIn2; }
.bubble b { color: var(--blue); font-weight: 600; }
.bubble .row { display: flex; justify-content: space-between; gap: 8px; }
.bubble .row span:first-child { color: var(--muted); }
.ph-time { text-align: center; color: var(--muted); font-size: 11px; margin-bottom: 10px; }

@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }
@keyframes callPhase { 0%, 48% { opacity: 1; } 53%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes smsPhase { 0%, 50% { opacity: 0; } 55%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bubbleIn { 0%, 55% { opacity: 0; transform: translateY(8px); } 60%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes bubbleIn2 { 0%, 66% { opacity: 0; transform: translateY(8px); } 71%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- Logo arc glow ---------- */
.glow-mark { position: relative; display: inline-block; }
.glow-mark img { position: relative; border-radius: 50%; z-index: 1; }
.glow-mark::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,191,255,0.28), transparent 65%);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

/* ---------- Tiers ---------- */
.tiers { display: grid; gap: 18px; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { display: flex; flex-direction: column; }
.tier h3 { font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; margin: 0; }
.tier .line { color: var(--blue); font-weight: 600; margin: 8px 0 20px; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tier li { position: relative; padding-left: 26px; color: #d8d8e2; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}
.tier.featured { border-color: var(--blue-line); box-shadow: 0 0 0 1px var(--blue-line), 0 20px 60px rgba(0,191,255,.08); }
.tier .tag { align-self: flex-start; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.tiers-foot { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.tiers-foot p { margin: 0; font-size: 18px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; }
.faq details[open] { border-color: var(--blue-line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 30px; color: var(--blue); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: #cfcfda; padding-bottom: 20px; margin: 0; }

/* ---------- Legal ---------- */
.legal { padding: 64px 0; border-top: 1px solid var(--border); }
.legal h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0 0 16px; }
.legal ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; max-width: 820px; }
.legal .draft { font-size: 12px; color: var(--muted); margin-top: 16px; opacity: .8; }

/* ---------- Lead form ---------- */
.lead { position: relative; }
.lead h3 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; margin: 0 0 6px; }
.lead .sub { color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.steps-ind { display: flex; gap: 8px; margin-bottom: 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.steps-ind span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.steps-ind span::before { content: attr(data-n); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); font-size: 11px; letter-spacing: 0; }
.steps-ind span.on { color: var(--white); }
.steps-ind span.on::before { border-color: var(--blue); color: var(--blue); }
.steps-ind i { flex: 1; max-width: 28px; height: 1px; background: var(--border); align-self: center; }
.field-grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .field-grid { grid-template-columns: 1fr 1fr; } .field-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #d8d8e2; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #0a0a14; color: var(--white);
  border: 1px solid var(--border); border-radius: 12px;
  font: inherit; font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #ff6b6b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 13px; color: var(--muted); margin: 14px 0 18px; }
.form-msg { font-size: 14px; margin-top: 12px; min-height: 1.2em; }
.form-msg.err { color: #ff8a8a; }
.dev-note {
  font-size: 13px; border: 1px dashed var(--blue-line); background: var(--blue-soft);
  color: #cdefff; border-radius: 10px; padding: 10px 12px; margin-bottom: 16px;
}
.booking-step[hidden], .form-step[hidden], .done-step[hidden] { display: none; }

/* Time picker (fed by the n8n booking webhook) */
.slot-picker { min-height: 180px; margin-bottom: 20px; }
.slot-status { color: var(--muted); font-size: 15px; }
.slot-status:empty { display: none; }
.slot-days {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.slot-day, .slot-time {
  font: inherit; cursor: pointer; color: var(--white);
  background: #0a0a14; border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.slot-day { flex: none; min-width: 74px; padding: 10px 12px; text-align: center; line-height: 1.2; }
.slot-day small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.slot-day strong { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; }
.slot-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot-time { min-height: 48px; font-size: 15px; font-weight: 600; }
.slot-day:hover, .slot-time:hover { border-color: var(--blue-line); }
.slot-day[aria-pressed="true"], .slot-time[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.slot-day[aria-pressed="true"] small { color: var(--blue); }
.confirm-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link-btn { background: none; border: 0; padding: 8px 0; margin-top: 6px; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.link-btn:hover { color: var(--blue); }
.done-step h3 { color: var(--white); }
.done-when { font-family: var(--display); font-size: 34px; line-height: 1.05; color: var(--blue); margin: 10px 0 14px; }
.done-step:focus { outline: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr auto; align-items: end; } }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--blue); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer .brand { margin-bottom: 12px; color: var(--white); }

/* ---------- Legal pages ---------- */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(56px, 10vw, 96px); margin: 18px 0 10px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.05; margin: 40px 0 10px; }
.doc p, .doc li { color: #d8d8e2; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; margin: 0 0 1em; }
.doc .note { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--muted); }
.doc .back { display: inline-block; margin-top: 40px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  /* show the end state of the phone story */
  .ph-call { opacity: 0; }
  .ph-sms, .bubble { opacity: 1; transform: none; }
}
