/* Autom8 — site styles
   One family (Schibsted Grotesk), black ground, baby-blue accent.
   Selectors are kept to single classes so spacing rules never fight. */

:root {
  --black: #000000;
  --surface: #0b1015;
  --surface-2: #111820;
  --line: #1e2a35;
  --white: #ffffff;
  --muted: #a3afbb;
  --dim: #5e6b78;
  --blue: #a6d8ff;
  --blue-strong: #cbe8ff;
  --blue-wash: rgba(166, 216, 255, 0.08);
  --blue-glow: rgba(166, 216, 255, 0.18);

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.75rem, 9vw, 8.5rem);
  --fs-h1: clamp(2.5rem, 5.6vw, 4.75rem);
  --fs-h2: clamp(2rem, 3.8vw, 3.125rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.4vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  color-scheme: dark;
  --r-panel: 22px;
  --r-tile: 14px;
  --r-chip: 8px;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --section: clamp(88px, 12vw, 168px);
  --header-h: 88px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--blue); color: var(--black); }

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

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}

.logo {
  display: inline-flex; align-items: baseline;
  font-weight: 800; font-size: 1.375rem; letter-spacing: -0.04em;
  text-decoration: none;
}
.logo img { height: 74px; width: auto; }
.footer-about .logo img { height: 84px; }
@media (max-width: 600px) { :root { --header-h: 76px; } .logo img { height: 56px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  text-decoration: none; color: var(--muted);
  padding: 10px 14px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500;
  transition: color 0.15s, background-color 0.15s;
}
.nav-link:hover { color: var(--white); }
.nav-link[aria-current="page"] { color: var(--white); background: var(--surface-2); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.menu-btn {
  display: none;
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--white);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--black);
  padding: 24px var(--gutter) 120px;
  display: none; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  text-decoration: none; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a[aria-current="page"] { color: var(--blue); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--black); }
.btn-primary:hover { background: var(--blue-strong); box-shadow: 0 0 0 6px var(--blue-glow); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }

.text-link {
  color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; font-weight: 600;
}
.text-link:hover { color: var(--blue-strong); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* "You can have this" — marks site features that are also Autom8 products */
.yours {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 500; color: var(--blue);
  padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--blue-wash); border: 1px solid rgba(166, 216, 255, 0.22);
}
.yours::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

/* ---------- Type helpers ---------- */

.display { font-size: var(--fs-display); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; }
.display-quiet { color: var(--dim); }
.h1 { font-size: var(--fs-h1); letter-spacing: -0.04em; font-weight: 800; }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.035em; }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.55; max-width: 36em; }
.lead strong { color: var(--white); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.measure { max-width: 62ch; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(56px, 8vw, 104px); }
.section-ruled { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }

.split {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start;
}
.split-sticky { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 20px; }

/* ---------- Page intro (inner pages) ---------- */

.page-intro { padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(48px, 7vw, 96px); }
.page-intro-grid { display: grid; gap: 28px; justify-items: start; }
.page-intro-grid > * { max-width: 900px; }
.crumb { color: var(--muted); font-size: 0.9375rem; font-weight: 500; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(48px, 8vw, 112px); padding-bottom: clamp(72px, 10vw, 136px); overflow-x: clip; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: clamp(40px, 6vw, 96px); row-gap: clamp(36px, 5vw, 64px); align-items: start;
}
.hero-title { grid-column: 1 / -1; }
.hero-copy { padding-top: 8px; }
.hero-copy { display: grid; gap: 32px; }
.hero-title > span { display: block; }
.hero-note { color: var(--muted); font-size: 0.9375rem; }

/* Feed: the signature moment */
.feed {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 22px;
  box-shadow: 0 40px 120px -40px rgba(166, 216, 255, 0.22);
}
.feed::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(166, 216, 255, 0.35), transparent 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.feed-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 4px 4px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.feed-title { font-weight: 600; font-size: 0.9375rem; }
.feed-counter { text-align: right; line-height: 1.2; }
.feed-counter strong { display: block; font-size: 1.75rem; letter-spacing: -0.03em; color: var(--blue); font-variant-numeric: tabular-nums; }
.feed-counter span { font-size: 0.75rem; color: var(--muted); }

.feed-list { display: grid; }
.feed-item {
  display: grid; grid-template-columns: 52px 1fr 28px; gap: 12px; align-items: start;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.feed-item:last-child { border-bottom: 0; }
.feed-time { font-size: 0.8125rem; color: var(--dim); font-variant-numeric: tabular-nums; padding-top: 2px; }
.feed-task { font-weight: 600; font-size: 0.9875rem; line-height: 1.35; }
.feed-result {
  font-size: 0.875rem; color: var(--muted); line-height: 1.4; margin-top: 4px;
  transition: color 0.4s;
}
.feed-state {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px dashed var(--dim);
  display: grid; place-items: center;
  transition: background-color 0.35s, border-color 0.35s, transform 0.35s;
}
.feed-state svg { width: 14px; height: 14px; opacity: 0; transition: opacity 0.25s 0.1s; color: var(--black); }

.feed-item.is-done .feed-state { background: var(--blue); border: 1.5px solid var(--blue); transform: scale(1.05); }
.feed-item.is-done .feed-state svg { opacity: 1; }
.feed-item.is-done .feed-result { color: var(--blue); }

.feed-item.is-pending .feed-result { color: var(--dim); }

.feed-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px 2px; flex-wrap: wrap; }

/* ---------- Problem strip ---------- */

.leaks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.leak { background: var(--black); padding: clamp(24px, 3vw, 40px); display: grid; gap: 12px; align-content: start; }
.leak-figure { font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.leak p { color: var(--muted); margin: 0; }
.source { font-size: 0.8125rem; color: var(--dim); margin-top: 16px; }

/* ---------- Service rows ---------- */

.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.service-name { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; transition: color 0.15s; }
.service-desc { color: var(--muted); margin: 0; }
.service-go {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background-color 0.15s, border-color 0.15s;
}
.service-go svg { width: 18px; height: 18px; }
.service-row:hover .service-name { color: var(--blue); }
.service-row:hover .service-go { background: var(--blue); border-color: var(--blue); color: var(--black); }

/* ---------- Steps (a real sequence) ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); display: grid; gap: 10px; align-content: start; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -15px; left: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--black); border: 2px solid var(--blue); color: var(--blue);
  display: grid; place-items: center; font-size: 0.8125rem; font-weight: 700;
}
.step p { color: var(--muted); margin: 0; }
.steps-v { grid-template-columns: 1fr; gap: 36px; }
.steps-v .step { padding-top: 0; padding-left: 48px; border-top: 0; }
.steps-v .step::before { top: -2px; }

/* ---------- Industry tiles ---------- */

.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry {
  display: grid; gap: 14px; align-content: start;
  padding: 28px; border-radius: var(--r-tile);
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: border-color 0.15s;
}
.industry:hover { border-color: var(--blue); }
.industry-pain { color: var(--muted); margin: 0; font-size: 0.9875rem; }
.industry-fix { color: var(--blue); font-size: 0.9375rem; font-weight: 600; margin-top: auto; }

/* ---------- Proof ---------- */

.proof { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: clamp(28px, 4vw, 48px); display: grid; gap: 28px; align-content: space-between;
}
.quote blockquote { margin: 0; font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; }
.quote figcaption { color: var(--muted); font-size: 0.9375rem; }
.quote figcaption strong { color: var(--white); display: block; font-weight: 600; }
.quote-small blockquote { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); }

.result-stack { display: grid; gap: 16px; }
.result {
  border-radius: var(--r-panel); border: 1px solid var(--line); padding: 28px;
  display: grid; gap: 6px;
}
.result-figure { font-size: clamp(2.25rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.04em; color: var(--blue); line-height: 1; }
.result p { margin: 0; color: var(--muted); }

/* ---------- Showcase: features on this site ---------- */

.showcase {
  border-radius: var(--r-panel); border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 100% 0%, rgba(166, 216, 255, 0.10), transparent 55%), var(--surface);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.showcase-list { display: grid; gap: 0; }
.showcase-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.showcase-item:last-child { border-bottom: 0; }
.showcase-item span { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Service detail (services page) ---------- */

.svc { padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 56px); }
.svc-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-head { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 96px); }
.svc-body { display: grid; gap: 32px; }
.svc-points { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-points li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.svc-points li::before {
  content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%;
  border: 2px solid var(--blue);
}
.svc-points strong { display: block; font-weight: 600; }
.svc-points span { color: var(--muted); }
.svc-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.8125rem; color: var(--muted); padding: 6px 12px; border-radius: var(--r-chip); background: var(--surface-2); border: 1px solid var(--line); }

/* Mock UI pieces used to show the product */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: 20px; display: grid; gap: 10px;
}
.mock-label { font-size: 0.8125rem; color: var(--dim); }
.bubble {
  max-width: 85%; padding: 12px 16px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.45;
}
.bubble-in { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; justify-self: start; }
.bubble-out { background: var(--blue); color: var(--black); border-bottom-right-radius: 6px; justify-self: end; }
.bubble-meta { font-size: 0.75rem; color: var(--dim); justify-self: end; }

.subnav {
  position: sticky; top: var(--header-h); z-index: 40; background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; text-decoration: none; color: var(--muted); font-size: 0.9375rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
}
.subnav a:hover { color: var(--white); background: var(--surface-2); }

/* ---------- Pricing ---------- */

.pricing-statement {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.3; letter-spacing: -0.025em; font-weight: 500;
  max-width: 30em;
}
.pricing-statement p { margin-bottom: 0.9em; }
.pricing-statement p:last-child { margin-bottom: 0; }
.pricing-statement .muted { color: var(--muted); }

.factor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.factor { background: var(--black); padding: clamp(24px, 3vw, 36px); display: grid; gap: 8px; align-content: start; }
.factor p { margin: 0; color: var(--muted); }

.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.include { display: grid; gap: 8px; }
.include p { margin: 0; color: var(--muted); }
.include-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-wash); border: 1px solid rgba(166, 216, 255, 0.22); display: grid; place-items: center; color: var(--blue); margin-bottom: 8px; }
.include-icon svg { width: 20px; height: 20px; }

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

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-answer { padding: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* ---------- Final CTA ---------- */

.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-panel); border: 1px solid var(--line);
  padding: clamp(40px, 7vw, 96px);
  background:
    radial-gradient(80% 120% at 0% 100%, rgba(166, 216, 255, 0.16), transparent 60%),
    var(--surface);
  display: grid; gap: 28px; justify-items: start;
}
.cta-band .h1 { max-width: 14em; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.field-hint { font-size: 0.8125rem; color: var(--dim); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--white);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; min-height: 52px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { min-height: 120px; resize: vertical; }
.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% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-glow); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem;
  transition: all 0.15s;
}
.check input:checked + span { background: var(--blue-wash); border-color: var(--blue); color: var(--blue); }
.check input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }

.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(24px, 4vw, 44px); }
.form-panel .input, .form-panel .select, .form-panel .textarea, .form-panel .check span { background: var(--black); }
.form-success { display: none; gap: 16px; }
.form-success.is-shown { display: grid; }
.success-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: var(--black); display: grid; place-items: center; }
.success-mark svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px) 40px; margin-top: var(--section); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-about { display: grid; gap: 16px; align-content: start; max-width: 34ch; }
.footer-about p { color: var(--muted); margin: 0; }
.footer-col h2 { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--white); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.8125rem; }

/* ---------- Chat widget (demo of the AI live chat product) ---------- */

.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--white); color: var(--black); border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.9375rem;
  box-shadow: 0 16px 40px -12px rgba(166, 216, 255, 0.45);
}
.chat-launch svg { width: 20px; height: 20px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 3px rgba(57, 217, 138, 0.25); }

.chat {
  position: fixed; right: 20px; bottom: 84px; z-index: 61;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(166, 216, 255, 0.08);
  display: none; flex-direction: column; overflow: hidden;
}
.chat.is-open { display: flex; animation: chat-in 0.22s ease-out; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: 0.9875rem; }
.chat-head span { font-size: 0.8125rem; color: var(--muted); }
.chat-close { width: 40px; height: 40px; border-radius: 50%; background: transparent; border: 1px solid var(--line); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.chat-close svg { width: 16px; height: 16px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-log .bubble { max-width: 88%; }
.chat-log .bubble-in { align-self: flex-start; }
.chat-log .bubble-out { align-self: flex-end; }
.chat-typing { align-self: flex-start; color: var(--dim); font-size: 0.875rem; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.chat-quick button {
  font: inherit; font-size: 0.875rem; color: var(--blue); background: var(--blue-wash);
  border: 1px solid rgba(166, 216, 255, 0.25); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px;
}
.chat-quick button:hover { border-color: var(--blue); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form .input { min-height: 44px; padding: 10px 14px; background: var(--black); }
.chat-send { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--black); border: 0; cursor: pointer; display: grid; place-items: center; }
.chat-send svg { width: 18px; height: 18px; }
.chat-note { padding: 0 18px 12px; font-size: 0.75rem; color: var(--dim); }

/* Mobile sticky CTA */
.mobile-bar { display: none; }

/* ---------- Concept document ---------- */

.doc { display: grid; gap: clamp(64px, 9vw, 120px); }
.doc-section { display: grid; gap: 28px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.doc-table th { color: var(--muted); font-weight: 500; }
.doc-table td:first-child { font-weight: 600; white-space: nowrap; }
.doc-table td { color: var(--muted); }
.doc-table td:first-child, .doc-table td strong { color: var(--white); }
.table-scroll { overflow-x: auto; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.swatch { border: 1px solid var(--line); border-radius: var(--r-tile); overflow: hidden; }
.swatch-chip { height: 96px; }
.swatch-info { padding: 12px 14px; font-size: 0.8125rem; color: var(--muted); }
.swatch-info strong { display: block; color: var(--white); font-size: 0.9375rem; }
.type-specimen { display: grid; gap: 20px; border-top: 1px solid var(--line); }
.type-row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.type-row span { color: var(--dim); font-size: 0.8125rem; }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.rule { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.rule p { margin: 0; color: var(--muted); }
.wire {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile);
  padding: 20px; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; overflow-x: auto; white-space: pre;
  font-family: ui-monospace, Menlo, monospace;
}

/* ---------- Motion ---------- */

.hero-in { opacity: 0; transform: translateY(14px); animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero-in-2 { animation-delay: 0.12s; }
.hero-in-3 { animation-delay: 0.24s; }
.hero-in-4 { animation-delay: 0.4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
  .hero-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .industries { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }

  .hero-grid, .split, .svc-grid, .proof, .showcase { grid-template-columns: 1fr; }
  .split-sticky, .svc-head { position: static; }
  .leaks { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr auto; }
  .service-desc { grid-column: 1 / -1; grid-row: 2; }
  .includes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .rules { grid-template-columns: 1fr; }

  /* Sticky booking bar replaces the header CTA on small screens */
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { flex: 1; }
  body:has(.mobile-bar) { padding-bottom: 80px; }
  .chat-launch { bottom: 16px; right: 16px; padding: 0 16px; }
  body:has(.mobile-bar) .chat-launch { bottom: 92px; }
  .chat-launch-text { display: none; }
  .chat { right: 16px; left: 16px; width: auto; bottom: 16px; height: calc(100vh - 100px); z-index: 70; }
}

@media (max-width: 600px) {
  :root { --fs-body: 1rem; }
  .industries, .steps, .includes, .factor-grid, .form-row, .swatches { grid-template-columns: 1fr; }
  .feed { padding: 16px; margin-inline: -4px; }
  .feed-item { grid-template-columns: 44px 1fr 26px; gap: 10px; }
  .feed-item-extra { display: none; }
  .cta-row .btn { width: 100%; }
  .type-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .doc-table td:first-child { white-space: normal; }
}

/* ---------- Premium motion layer ---------- */

:root { --ease: cubic-bezier(0.2, 0.7, 0.2, 1); }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.22s ease both; }
::view-transition-new(root) { animation: vt-in 0.38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Scroll progress, drawn along the header's bottom edge */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--blue); transform-origin: left; transform: scaleX(0);
}

/* Hero atmosphere: drifting glow and a faint dot field */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 1500px; height: 1300px; right: -460px; top: -480px;
  background: radial-gradient(closest-side, rgba(166, 216, 255, 0.27), rgba(166, 216, 255, 0.09) 55%, transparent);
  animation: drift 20s ease-in-out infinite alternate;
}
/* Second, softer glow drifting the other way so the left side isn't flat black */
.hero-grid { position: relative; }
.hero-grid::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 1100px; height: 900px; left: -420px; top: 140px;
  background: radial-gradient(closest-side, rgba(166, 216, 255, 0.13), transparent);
  animation: drift-alt 26s ease-in-out infinite alternate;
}
@keyframes drift-alt { to { transform: translate(180px, -120px) scale(1.12); } }

/* Faint fixed haze behind every page */
body { overflow-x: clip; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 88% 8%, rgba(166, 216, 255, 0.07), transparent 70%),
    radial-gradient(55% 45% at 4% 92%, rgba(166, 216, 255, 0.05), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(166, 216, 255, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(85% 75% at 70% 40%, #000, transparent 78%);
  mask-image: radial-gradient(85% 75% at 70% 40%, #000, transparent 78%);
}
@keyframes drift { to { transform: translate(-220px, 160px) scale(1.18); } }

/* Headline build: words rise, line one fades back once line two lands */
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.rise { display: inline-block; transform: translateY(110%); animation: rise-in 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise-in { to { transform: none; } }
.hero-title.is-split .display-quiet { color: var(--white); animation: fade-back 1.4s ease 1.25s forwards; }
@keyframes fade-back { to { color: var(--dim); } }

/* Feed: live dot, tilt and counter pulse */
.feed-title { display: inline-flex; align-items: center; gap: 10px; }
.feed-title::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  animation: live 2.4s ease-out infinite;
}
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(166, 216, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(166, 216, 255, 0); } }
.feed { transition: transform 0.6s var(--ease); will-change: transform; }
.feed-counter strong { transition: text-shadow 0.4s; }
.feed-counter.is-ticking strong { text-shadow: 0 0 18px rgba(166, 216, 255, 0.7); }

/* Cursor light on panels */
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(166, 216, 255, 0.09), transparent 60%);
  opacity: 0; transition: opacity 0.35s;
}
.spot:hover::after { opacity: 1; }

/* Primary button: sheen on hover, magnetic offset set from script */
.btn-primary { position: relative; overflow: hidden; transition: background-color 0.15s, box-shadow 0.2s, transform 0.35s var(--ease); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform 0.75s var(--ease); }

/* Service rows: underline sweep and a small shift */
.service-row { position: relative; }
.service-row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.service-row:hover::after { transform: scaleX(1); }
.service-name { transition: color 0.15s, transform 0.5s var(--ease); }
.service-row:hover .service-name { transform: translateX(8px); }

/* Scroll reveal: only applied by script to content below the first screen */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Chat launcher: one ring to draw the eye */
.chat-launch.is-calling { animation: call 1.6s ease-out 2; }
@keyframes call { 0% { box-shadow: 0 16px 40px -12px rgba(166, 216, 255, 0.45), 0 0 0 0 rgba(166, 216, 255, 0.6); } 100% { box-shadow: 0 16px 40px -12px rgba(166, 216, 255, 0.45), 0 0 0 18px rgba(166, 216, 255, 0); } }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-grid::before, .feed-title::before { animation: none; }
  .rise { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .hero-title.is-split .display-quiet { color: var(--dim); }
}

/* ---------- Hero chat demo ---------- */

.demo-id { display: flex; align-items: center; gap: 12px; }
.demo-avatar {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: var(--black);
  display: grid; place-items: center; font-weight: 800; font-size: 0.875rem; letter-spacing: -0.02em;
}
.demo-avatar::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%;
  background: #39d98a; border: 2px solid var(--surface);
}
.demo-name { font-weight: 600; font-size: 0.9875rem; line-height: 1.25; }
.demo-status { font-size: 0.8125rem; color: var(--muted); }

.demo-log {
  height: 420px; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 10px; padding: 18px 2px 12px;
  -webkit-mask-image: linear-gradient(transparent, #000 44px);
  mask-image: linear-gradient(transparent, #000 44px);
}
.demo-log::-webkit-scrollbar { display: none; }
.demo-msg { display: flex; }
.demo-msg[hidden] { display: none; }
.demo-msg.is-me { justify-content: flex-end; }
.demo-msg .bubble { max-width: 86%; }
.demo-msg.is-new { animation: msg-in 0.45s var(--ease) both; transform-origin: left bottom; }
.demo-msg.is-me.is-new { transform-origin: right bottom; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } }

.demo-typing {
  display: inline-flex; gap: 5px; align-items: center; padding: 15px 16px;
  border-radius: 18px; border-bottom-left-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.demo-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite; }
.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.demo-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.demo-slot {
  font-size: 0.8125rem; font-weight: 500; padding: 6px 10px; border-radius: var(--r-chip);
  border: 1px solid var(--line); background: var(--black); color: var(--white);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.demo-slot.is-picked { background: var(--blue); color: var(--black); border-color: var(--blue); }

.booking-card {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  max-width: 86%; padding: 14px 16px; border-radius: 18px; border-bottom-left-radius: 6px;
  background: var(--blue-wash); border: 1px solid rgba(166, 216, 255, 0.35);
}
.booking-card .success-mark { width: 30px; height: 30px; }
.booking-card .success-mark svg { width: 15px; height: 15px; }
.booking-card strong { display: block; font-weight: 600; color: var(--blue); }
.booking-card span { display: block; font-size: 0.875rem; color: var(--muted); line-height: 1.45; }

.demo-composer {
  display: flex; align-items: center; gap: 10px; margin-top: 6px;
  padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--black); border: 1px solid var(--line);
}
.demo-input {
  flex: 1; min-width: 0; min-height: 34px; display: flex; align-items: center;
  font-size: 0.9375rem; color: var(--dim); white-space: nowrap; overflow: hidden;
}
.demo-input.is-typing { color: var(--white); }
.demo-input.is-typing::after { content: ""; flex: none; width: 2px; height: 1.1em; margin-left: 2px; background: var(--blue); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.demo-send {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--dim); transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.demo-send svg { width: 16px; height: 16px; }
.demo-send.is-ready { background: var(--blue); color: var(--black); transform: scale(1.08); }

.demo-replay {
  background: none; border: 0; padding: 8px 0; cursor: pointer; font: inherit; font-size: 0.875rem; font-weight: 600;
  color: var(--blue); text-decoration: underline; text-underline-offset: 4px;
}
.demo-replay:hover { color: var(--blue-strong); }

@media (max-width: 600px) {
  .demo-log { height: 380px; }
  .demo .feed-top { flex-wrap: wrap; }
}

/* Living background canvas (drawn by main.js), behind everything on every page */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
body.has-field::after { display: none; }
