/* ==========================================================================
   Allion Build — page styles on top of website.css (the kit).
   Light theme: the kit's warm off-white, sand bands and navy text.
   Inter only, weights 400 / 500 / 600.
   ========================================================================== */

:root {
  --paper: #F9F8F5;            /* page and hero */
  --sand: #F0EEE9;             /* alternate bands (Human + AI, Why) */
  --white: #FFFFFF;
  --tint: #E8F2F8;             /* final call to action */
  --accent-words: #0B6FA4;     /* the two blue words in the hero headline (5.4:1 on paper) */
  --radius-card: 14px;
  --shadow-card: 0 1px 2px rgba(15, 30, 46, 0.04), 0 12px 32px -12px rgba(15, 30, 46, 0.12);
  --shadow-photo: 0 30px 60px -24px rgba(15, 30, 46, 0.28);
  --shadow-chip: 0 8px 24px -8px rgba(15, 30, 46, 0.22);
}

html { scroll-behavior: smooth; }
main > section, .final-cta { scroll-margin-top: 96px; }   /* section labels clear the sticky header */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: hidden; background: var(--paper); font-optical-sizing: auto; text-rendering: optimizeLegibility; }
h1, h2, h3, .pull { text-wrap: balance; }
p, li { text-wrap: pretty; }

.sprite { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 14px; border-radius: var(--radius-6); background: var(--white); color: var(--text); font-size: 15px; font-weight: 500; box-shadow: var(--shadow-card); }
.skip-link:focus { top: 12px; }

/* Desktop / phone copy variants */
.m-only, .m-only-inline { display: none; }

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 12px; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.display-m { margin: 0; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.025em; }
.accent-words { color: var(--accent-words); }
.lead strong, .split-head-copy strong, .final-lead strong { color: var(--text); font-weight: 600; }
.section-title { max-width: 820px; margin-bottom: 48px; }

/* ---------- Sections ---------- */
.section { background: var(--paper); }
.section-white { background: var(--white); }
.section-sand { background: var(--sand); }
.section-paper { background: var(--paper); }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn { transition: background .15s, border-color .15s, box-shadow .15s; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }

/* ---------- Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(249, 248, 245, 0.9); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }
.site-header { transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 1px 0 #E7E5DF, 0 4px 16px rgba(15, 30, 46, 0.04); }   /* added once the page scrolls */
.site-header .nav { border-bottom: 0; gap: 24px; }
.nav-logo { color: var(--text); text-decoration: none; }
.nav-links { white-space: nowrap; justify-content: flex-end; }   /* no header button, so the links sit on the right */
.nav-links a { position: relative; color: var(--text-2); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); }
.nav-links a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 1px; background: var(--text); }   /* the section on screen */
.site-header .btn-primary:hover { background: #00406A; }
/* Keyboard focus in the header: a 2px outline rather than the kit's soft ring */
.site-header :focus-visible { outline: 2px solid #005080; outline-offset: 3px; box-shadow: none; border-radius: 4px; }
.nav-menu-btn { border-color: var(--line-strong); color: var(--text); cursor: pointer; background: var(--white); }
.menu-sheet a[aria-current="true"] { color: var(--accent); }
.menu-sheet { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 20px; }
.menu-sheet[hidden] { display: none; }
.menu-sheet a:not(.btn) { min-height: 44px; display: flex; align-items: center; font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .menu-sheet { display: none; } }
/* Below 900px: links fold into a 44px menu button, and the header drops to 60px */
@media (max-width: 899px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .nav-menu-btn { display: grid; place-items: center; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero-split { position: relative; padding: 72px 0 96px; overflow: hidden;
  background: radial-gradient(600px 420px at 85% 30%, rgba(2, 170, 204, 0.10), transparent 70%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.hero-copy .display-xl { max-width: 640px; }
.hero-copy .lead { margin-top: 24px; max-width: 600px; font-size: 20px; line-height: 30px; }
.hero-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 0; padding: 0; }
.hero-checks li { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--text); }
.hero-checks svg { width: 15px; height: 15px; color: var(--accent); }
.hero-checks-short { margin: 16px 0 0; font-size: 15px; font-weight: 600; color: var(--accent); }

/* Photo cards with floating status chips */   /* the card sets the shape, whatever the photo's own size */
.ai-tile.sm { width: 22px; height: 22px; border-radius: 6px; }
.ai-tile.sm svg { width: 13px; height: 13px; }
.ai-tile svg { width: 18px; height: 18px; }
/* Every card sits 16px inside its photo */
@keyframes chip-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ---------- The film ---------- */
.film-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.film { margin: 0; }
.film-frame { position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--sand); box-shadow: var(--shadow-photo); }
.film-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0F1E2E; }
.film-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--white); color: var(--accent); cursor: pointer; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.35), 0 12px 30px rgba(15, 30, 46, 0.3); transition: transform .2s; }
.film-play:hover { transform: scale(1.06); }
.film-play svg { width: 26px; height: 26px; margin-left: 3px; }
.film-time { position: absolute; right: 14px; bottom: 14px; padding: 3px 8px; border-radius: 6px; background: rgba(15, 30, 46, 0.8); color: #fff; font-size: 13px; font-weight: 500; }
.film.playing .film-play, .film.playing .film-time { display: none; }
.film figcaption { margin-top: 14px; }
.film-copy .display-m { margin-bottom: 24px; }

/* ---------- Human + AI ---------- */
.media-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 80px; align-items: center; }
.media-copy .lead { margin-top: 20px; }
.check-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.check-grid li { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 22px; color: var(--text); }
.check-grid svg { flex: none; width: 15px; height: 15px; color: var(--accent); }
.pull { margin: 32px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }

/* ---------- Start with the problem ---------- */
.split-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.split-head-copy { margin: 0; font-size: 17px; line-height: 28px; color: var(--text-2); }
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.problem-list { display: flex; flex-direction: column; gap: 12px; }
.prompt-tile { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); text-align: left; cursor: pointer; font: 400 16px/24px var(--font); color: var(--text); box-shadow: 0 1px 2px rgba(15, 30, 46, 0.04);
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.prompt-tile:hover, .prompt-tile:focus-visible, .prompt-tile.is-example { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 80, 128, 0.10); }   /* the spreadsheets tile matches the example chat */
.prompt-tile:hover .tile-go { transform: translateX(3px); color: var(--accent); }
.tile-text { flex: 1; }
.tile-go { flex: none; width: 18px; height: 18px; color: var(--text-3); transition: transform .15s, color .15s; }
.tile-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.tile-icon svg { width: 20px; height: 20px; }
.example-chat { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-card); overflow: hidden; }
.example-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 13px; color: var(--text-3); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.example-body { display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.ex-you { align-self: flex-end; margin: 0; max-width: 85%; padding: 10px 14px; border-radius: 12px 12px 4px 12px; background: var(--accent-soft); color: var(--text); font-size: 15px; line-height: 22px; }
.ex-ai { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 23px; color: var(--text); }
.ex-ai p { margin: 0; }
.ex-ai .ai-tile { margin-top: 1px; }
.ex-questions { list-style: none; counter-reset: q; margin: 14px 0 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 14px; line-height: 20px; }
.ex-questions li { position: relative; padding-left: 32px; counter-increment: q; }
.ex-questions li::before { content: counter(q); position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); font-size: 12px; font-weight: 600; color: var(--text); }
.problem-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.problem-foot p { margin: 0; font-size: 17px; line-height: 26px; color: var(--text-2); }
.tap-hint { margin: 0; font-size: 16px; color: var(--text-2); }

/* ---------- How it works ---------- */
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.how-card { position: relative; display: flex; flex-direction: column; gap: 22px; }
.how-num { position: absolute; top: 12px; left: 12px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--white); color: var(--accent); font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(15, 30, 46, 0.15); font-variant-numeric: tabular-nums; }
.how-card:first-child .how-num { background: var(--accent); color: #fff; }
.how-card h3 { margin: 0 0 10px; font-size: 19px; line-height: 26px; font-weight: 600; color: var(--text); }
.how-card p { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-2); }

/* ---------- Why Allion Build ---------- */
.why-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 18px; }   /* equal rows, so titles line up across each row */
.why-card { display: flex; flex-direction: column; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-card); }
.why-card h3 { margin: 0 0 6px; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--text); }
.why-card p { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-2); }
.why-card .ai-tile { width: 40px; height: 40px; border-radius: 8px; }
.why-ai { background: radial-gradient(300px 200px at 100% 0%, rgba(2, 170, 204, 0.10), transparent 70%), var(--white); }

/* ---------- What could you build ---------- */
.what-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.what-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); box-shadow: 0 1px 2px rgba(15, 30, 46, 0.04); transition: border-color .15s, box-shadow .15s; }
.what-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.what-card h3 { margin: 0 0 6px; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text); }
.what-card p { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-2); }

/* ---------- Final call to action ---------- */
.final-cta { padding: 112px 0; border-top: 1px solid var(--line);
  background: radial-gradient(700px 360px at 50% 100%, rgba(2, 170, 204, 0.16), transparent 70%), radial-gradient(500px 300px at 10% 0%, rgba(0, 119, 182, 0.08), transparent 70%), var(--tint); }
.final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final-title { max-width: 900px; }
.final-lead { margin: 24px 0 0; max-width: 620px; }
.idea-box { max-width: 820px; margin-top: 40px; padding: 2px; background: linear-gradient(90deg, var(--ai-from-light), var(--ai-to-light));
  box-shadow: 0 0 0 6px rgba(2, 170, 204, 0.12), 0 24px 60px -20px rgba(0, 80, 128, 0.35); transition: box-shadow .2s; }
.idea-box:focus-within { box-shadow: 0 0 0 6px rgba(2, 170, 204, 0.24), 0 24px 60px -20px rgba(0, 80, 128, 0.35); }
.idea-box-inner { background: var(--white); padding: 20px 20px 14px; }
.idea-row { display: flex; gap: 14px; align-items: flex-start; }
.idea-box textarea { color: var(--text); font-size: 17px; line-height: 26px; padding-top: 1px; }
.idea-box textarea::placeholder { color: var(--text-3); }
.idea-box textarea:focus-visible { box-shadow: none; }
.idea-box-foot { border-top-color: var(--line); }
.idea-box-foot .note { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.idea-box-foot .note svg { width: 15px; height: 15px; color: var(--accent); }
.note-below { margin: 14px 0 0; font-size: 13px; line-height: 18px; color: var(--text-2); }

/* The conversation that replaces the idea box */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat { width: 100%; max-width: 760px; margin-top: 32px; padding: 24px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--white); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 20px; }
.chat[hidden], .chat-form[hidden], .chat-answer[hidden], .idea-box[hidden], .note-below[hidden] { display: none; }
.chat-log { display: flex; flex-direction: column; gap: 16px; }
.chat-you { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 12px 12px 4px 12px; background: var(--accent-soft); color: var(--text);
  font-size: 15px; line-height: 24px; overflow-wrap: anywhere; white-space: pre-wrap; animation: rise .4s ease backwards; }
.chat-ai { display: flex; gap: 12px; animation: rise .4s ease backwards; }
.chat-ai .ai-tile { width: 28px; height: 28px; }
.chat-ai-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 2px; }
.chat-text { margin: 0; font-size: 15px; line-height: 24px; color: var(--text); overflow-wrap: anywhere; }
.typing { display: inline-flex; gap: 5px; padding: 9px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
.chat-answer { display: flex; flex-direction: column; gap: 12px; padding-left: 40px; animation: rise .4s ease backwards; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-replies .chip { height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-6); background: var(--white); color: var(--text); font: 500 14px/1 var(--font); cursor: pointer; }
.quick-replies .chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.chat-reply { display: flex; gap: 8px; }
.chat-reply input, .field input { min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-6); background: var(--white); color: var(--text); font: 16px var(--font); }
.chat-reply input { flex: 1; }
.chat-reply input::placeholder { color: var(--text-3); }
.chat-reply input:focus-visible, .field input:focus-visible { border-color: var(--accent); }
.btn-send { width: 44px; padding: 0; }
.btn-send svg { width: 18px; height: 18px; }
.brief { margin: 4px 0 0; padding: 14px 16px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.brief dt { font-size: 13px; line-height: 22px; font-weight: 500; color: var(--text-3); }
.brief dd { margin: 0; font-size: 15px; line-height: 22px; color: var(--text); overflow-wrap: anywhere; }
.chat-form { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); animation: rise .4s ease backwards; }
.chat-form-title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-2); }
.chat-form .btn { align-self: flex-start; }
.chat-restart { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font); }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 32px; background: var(--white); border-top: 1px solid var(--line); }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-by { padding-left: 14px; border-left: 1px solid var(--line-strong); font-size: 14px; color: var(--text-2); }
.footer-by strong { font-weight: 600; color: var(--text); }
.footer-line { margin: 12px 0 0; font-size: 15px; color: var(--text-2); }
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 15px; color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero-grid, .film-grid, .media-grid, .split-head, .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-ui { max-width: 560px; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .why-bento { grid-template-columns: 1fr 1fr; }
  .what-grid { grid-template-columns: 1fr 1fr; }
  .final-cta { padding: 88px 0; }
}
@media (max-width: 767px) {
  .d-only, .d-only-inline { display: none !important; }
  .m-only { display: block; }
  .m-only-inline { display: inline; }
  .section-title { margin-bottom: 24px; }
  .eyebrow { margin-bottom: 8px; }
  .hero-split { padding: 32px 0 48px; }
  .hero-grid { gap: 28px; }
  .hero-copy .lead { margin-top: 16px; font-size: 17px; line-height: 26px; }
  .film-grid { gap: 0; }
  .film-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.35); }
  .film-time { display: none; }
  .media-grid { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .media-copy { display: contents; }
  .media-copy .eyebrow { order: 1; margin-bottom: -12px; }
  .media-copy .display-l { order: 2; }
  .media-copy .lead { order: 3; margin-top: 0; }
  .pull { order: 5; margin-top: 0; padding: 0; border: 0; font-size: 18px; line-height: 26px; }
  .split-head { gap: 12px; margin-bottom: 16px; }
  .prompt-tile { min-height: 52px; padding: 12px 14px; font-size: 15px; line-height: 22px; }
  .problem-list { gap: 10px; }
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-card { flex-direction: row; align-items: flex-start; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
  .how-num { position: static; flex: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); box-shadow: none; }
  .how-card:first-child .how-num { border-color: var(--accent); }
  .how-card h3 { margin-bottom: 4px; font-size: 17px; line-height: 24px; }
  .why-bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .why-card { flex-direction: row; gap: 14px; padding: 16px; }
  .why-card h3 { margin-bottom: 2px; font-size: 16px; line-height: 22px; }
  .what-grid { gap: 12px; }
  .what-card { flex-direction: column; gap: 10px; padding: 16px; }
  .what-card .tile-icon { width: auto; height: auto; justify-content: start; background: none; }
  .what-card h3 { margin: 0; font-size: 15px; line-height: 21px; }
  .what-card p { display: none; }
  .final-cta { padding: 56px 0; }
  .final-inner { align-items: stretch; text-align: left; }
  .final-lead { margin-top: 12px; }
  .idea-box { margin-top: 24px; }
  .idea-box-foot { border-top: 0; padding-top: 0; }
  .idea-box-foot .btn { width: 100%; margin-left: 0; }
  .chat { padding: 16px; }
  .chat-answer { padding-left: 0; }
  .field-row { grid-template-columns: 1fr; }
  .chat-form .btn { align-self: stretch; }
  .brief { grid-template-columns: 1fr; gap: 2px; }
  .brief dd + dt { margin-top: 8px; }
  .site-footer { padding: 24px 0; }
  .footer-bottom { margin-top: 8px; padding-top: 0; border-top: 0; }
}

/* ==========================================================================
   Energy layer: colour, depth and movement (Replit / Zyner-style), on top of the layout above.
   All movement stops under prefers-reduced-motion (rule in website.css).
   ========================================================================== */
@keyframes drift-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 6%) scale(1.15); } 100% { transform: translate(-4%, 10%) scale(1); } }
@keyframes drift-b { 0% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(-10%, -4%) scale(.95); } 100% { transform: translate(6%, -8%) scale(1.1); } }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes spin-hue { to { transform: rotate(360deg); } }

/* Moving colour light behind the hero and the final panel */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 46vw; max-width: 640px; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: .55; }
.aurora i:nth-child(1) { top: -20%; right: -6%; background: radial-gradient(circle, rgba(2, 170, 204, 0.55), transparent 65%); animation: drift-a 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { bottom: -30%; right: 22%; background: radial-gradient(circle, rgba(0, 119, 182, 0.45), transparent 65%); animation: drift-b 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { top: 10%; left: -14%; width: 34vw; background: radial-gradient(circle, rgba(250, 163, 28, 0.30), transparent 65%); animation: drift-b 26s ease-in-out infinite alternate; }
.hero-split { background: var(--paper); }
.hero-grid { position: relative; z-index: 1; }

/* Live badge above the headline */
.live-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.8); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-2); box-shadow: 0 1px 2px rgba(15, 30, 46, 0.05); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #10B981; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 1.8s ease-out infinite; }

/* A soft brand-coloured glow behind the hero photo, slowly turning */
.glow-ring::before { content: ""; position: absolute; inset: -28px; z-index: -1; border-radius: 40px;
  background: conic-gradient(from 0deg, rgba(2, 170, 204, 0.55), rgba(0, 80, 128, 0.35), rgba(250, 163, 28, 0.35), rgba(2, 170, 204, 0.55));
  filter: blur(42px); opacity: .7; animation: spin-hue 16s linear infinite; }

/* Floating cards bob gently once they have arrived */

/* Buttons: lift, glow and a nudging arrow */
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { transition: background .15s, box-shadow .2s, transform .2s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 80, 128, 0.7); }

/* Eyebrows get a short accent bar */
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; flex: none; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ai-from-light), var(--ai-to-light)); }

/* Moving strip of what we build */
.ticker { overflow: hidden; padding: 18px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; padding: 0 32px; white-space: nowrap; font-size: 16px; font-weight: 500; color: var(--text-2); border-right: 1px solid var(--line); }
.ticker-track svg { width: 18px; height: 18px; color: var(--accent); }
.ticker + .section { border-top: 0; }

/* The film on a dark band */

/* How it works: tall photo cards with the words over the picture */
@media (min-width: 768px) {
  .how-card { aspect-ratio: 3 / 4; justify-content: flex-end; gap: 0; padding: 22px; overflow: hidden; border-radius: var(--radius-card); background: var(--band); box-shadow: var(--shadow-photo); isolation: isolate; }
  .how-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 30, 46, 0) 30%, rgba(15, 30, 46, 0.55) 55%, rgba(15, 30, 46, 0.94)); }
  .how-card h3 { min-height: 0; color: #fff; }
  .how-card p { color: rgba(232, 239, 245, 0.85); }
  .how-num { top: 18px; left: 18px; }
}
@media (min-width: 768px) and (max-width: 1023px) { .how-card { aspect-ratio: 4 / 3; } }

/* Why: two cards in solid brand colour, and every card lifts on hover */
.why-card, .what-card { transition: transform .25s ease, box-shadow .25s ease, border-color .2s; }
.why-card:hover, .what-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(15, 30, 46, 0.35); }
.block-blue { background: radial-gradient(320px 220px at 100% 0%, rgba(2, 170, 204, 0.45), transparent 70%), #005080; border-color: transparent; }
.block-navy { background: radial-gradient(320px 220px at 0% 100%, rgba(0, 119, 182, 0.35), transparent 70%), var(--band); border-color: transparent; }
.block-blue h3, .block-navy h3 { color: #fff; }
.block-blue p, .block-navy p { color: rgba(232, 239, 245, 0.82); }
.block-blue .ai-tile { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.block-navy .tile-icon { background: rgba(108, 203, 234, 0.14); color: var(--band-link); }

/* What we build: icon tiles in three brand tints */
.what-card:nth-child(3n+2) .tile-icon { background: #E0F6FB; color: #0A7189; }
.what-card:nth-child(3n) .tile-icon { background: #FEF1DC; color: #B45309; }
.what-card:hover { border-color: var(--accent); }

/* Final call to action: a navy panel with moving light */
.final-cta { padding: 96px 0 112px; background: var(--paper); }
.final-panel { position: relative; overflow: hidden; isolation: isolate; padding: 96px 48px; border-radius: 28px; background: var(--band); box-shadow: 0 40px 80px -40px rgba(15, 30, 46, 0.6); }
.final-panel .aurora { z-index: -1; }
.final-panel .aurora i { opacity: .75; }
.final-panel .final-title { color: #fff; }
.final-panel .final-lead { color: var(--on-band-2); }
.final-panel .final-lead strong { color: #fff; }
.final-panel .idea-box { box-shadow: 0 0 0 6px rgba(2, 170, 204, 0.18), 0 30px 80px -20px rgba(2, 170, 204, 0.5); }
.final-panel .note-below { color: var(--on-band-3); }

/* Section content arrives in a stagger */
.js .reveal-stagger.reveal { opacity: 1; transform: none; }
.js .reveal-stagger.reveal > * { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger > :nth-child(2) { transition-delay: .08s; }
.reveal-stagger > :nth-child(3) { transition-delay: .16s; }
.reveal-stagger > :nth-child(4) { transition-delay: .24s; }
.reveal-stagger > :nth-child(5) { transition-delay: .32s; }
.reveal-stagger > :nth-child(6) { transition-delay: .4s; }

@media (max-width: 767px) {
  .live-badge { margin-bottom: 16px; }
  .glow-ring::before { inset: -14px; filter: blur(28px); }
  .ticker { padding: 14px 0; }
  .ticker-track span { padding: 0 20px; font-size: 14px; }
  .final-cta { padding: 24px 0 48px; }
  .final-panel { padding: 40px 20px; border-radius: 20px; }
  .what-card .tile-icon { width: 36px; height: 36px; justify-content: center; background: var(--accent-soft); }   /* a square tile, not a bar */
  .what-card:nth-child(3n+2) .tile-icon { background: #E0F6FB; }
  .what-card:nth-child(3n) .tile-icon { background: #FEF1DC; }
}

/* ==========================================================================
   Living details: status cards that work through steps, a chat that plays,
   slow camera drift on the step photos, and a light sweep on the AI card.
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { 0%, 55% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* Status cards: the text swaps with a quick fade, and a spinner shows while the AI is working */
/* The engineer's card waits until the AI has finished, then arrives */

/* The example chat plays one message at a time */
.js .example-body:not(.play) > * { opacity: 0; }
.example-body.play > * { animation: msg-in .5s cubic-bezier(.2, .7, .2, 1) backwards; }
.example-body.play > :nth-child(2) { animation-delay: 1s; }
.example-body.play > :nth-child(3) { animation-delay: 2.6s; }
.example-body.play > :nth-child(4) { animation-delay: 3.6s; }
.example-body.play .ex-questions li { animation: msg-in .4s ease backwards; }
.example-body.play .ex-questions li:nth-child(1) { animation-delay: 1.5s; }
.example-body.play .ex-questions li:nth-child(2) { animation-delay: 1.75s; }
.example-body.play .ex-questions li:nth-child(3) { animation-delay: 2s; }

/* How it works: a slow camera drift on each photo (hover still zooms the card) */

/* A light sweep across the AI card every few seconds */
.why-card.block-blue { position: relative; overflow: hidden; }
.why-card.block-blue::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent); animation: sweep 5s ease-in-out infinite; }

/* Icons nudge when their card is hovered */
.tile-icon, .why-card .ai-tile { transition: transform .25s ease; }
.what-card:hover .tile-icon, .why-card:hover .tile-icon, .why-card:hover .ai-tile { transform: translateY(-2px) rotate(-6deg); }

/* ---------- Quotes from the film ---------- */
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.film-quotes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.film-quote { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 18px 20px; text-align: left; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.10); border-left: 3px solid rgba(108, 203, 234, 0.35); border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); color: var(--on-band); font-family: var(--font);
  transition: background .2s, border-color .2s, transform .2s; }
.film-quote:hover { background: rgba(255, 255, 255, 0.08); border-left-color: var(--band-link); transform: translateX(4px); }
.film-quote:focus-visible { outline: 2px solid var(--band-link); outline-offset: 2px; box-shadow: none; }
.fq-text { font-size: 16px; line-height: 25px; color: #fff; }
.fq-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.fq-name { font-size: 14px; font-weight: 600; color: var(--on-band); }
.fq-role { font-size: 13px; color: var(--on-band-3); }
.fq-play { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; font-weight: 500; color: var(--band-link); }
.fq-play svg { width: 11px; height: 11px; }
/* While a line is being spoken, its quote lights up and a small level meter moves */
.film-quote.speaking { background: rgba(2, 170, 204, 0.14); border-color: rgba(108, 203, 234, 0.4); border-left-color: var(--ai-to); }
.film-quote.speaking .fq-play { font-size: 0; gap: 3px; }
.film-quote.speaking .fq-play svg { display: none; }
.film-quote.speaking .fq-play::before, .film-quote.speaking .fq-play::after { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--ai-to); animation: eq .8s ease-in-out infinite; }
.film-quote.speaking .fq-play::after { animation-delay: -.4s; }
.film-copy .display-m { margin-bottom: 20px; }

@media (max-width: 1023px) { .film-grid { gap: 32px; } }
@media (max-width: 767px) {
  .film-grid { gap: 20px; }
  .film-quotes { flex-direction: row; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter); }
  .film-quotes::-webkit-scrollbar { display: none; }
  .film-quotes li { flex: 0 0 84%; scroll-snap-align: start; display: flex; }
  .film-quote { padding: 16px; }
  .film-quote:hover { transform: none; }
  .fq-text { font-size: 15px; line-height: 23px; }
}

/* ---------- Hero: a live mock of the Allion Build app ---------- */
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }
.hero-ui { position: relative; margin: 0; padding: 0 0 40px 24px; }
.ui-window { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper);
  box-shadow: 0 1px 2px rgba(15, 30, 46, 0.05), 0 40px 80px -30px rgba(15, 30, 46, 0.35); }
.ui-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--white); }
.ui-title { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.ui-title svg { width: 18px; height: 18px; }
.ui-project { padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.ui-body { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.ui-you { align-self: flex-end; max-width: 80%; margin: 0; padding: 9px 13px; border-radius: 12px 12px 4px 12px; background: var(--accent-soft); font-size: 14px; line-height: 20px; color: var(--text); }
.ui-ai { display: flex; gap: 10px; align-items: flex-start; }
.ui-ai p { margin: 0; font-size: 14px; line-height: 21px; color: var(--text); }
.ui-ai .ai-tile { margin-top: 1px; }
.ui-card { padding: 14px 16px 6px; border: 1px solid var(--line); border-top: 2px solid var(--ai-to-light); border-radius: 10px; background: var(--white); }
.ui-card-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.ui-card-head b { font-weight: 600; color: var(--text); }
.ui-pct { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.ui-progress { height: 6px; margin: 10px 0 6px; border-radius: 3px; background: #ECEAE4; overflow: hidden; }
.ui-progress i { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ai-from-light), var(--ai-to-light)); transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.ui-parts { list-style: none; margin: 0; padding: 0; }
.ui-parts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--text); }
.ui-parts li:first-child { border-top: 0; }
.ui-parts .st { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.ui-parts li.done .st::before { content: "✓ Done"; color: var(--success); font-weight: 500; }
.ui-parts li.working .st::before { content: ""; width: 12px; height: 12px; border: 2px solid #D6E7F1; border-top-color: var(--ai-to-light); border-radius: 50%; animation: spin .8s linear infinite; }
.ui-parts li.working .st::after { content: "Working on it"; color: var(--accent); font-weight: 500; }
.ui-parts li.next .st::before { content: "Up next"; }
.ui-parts li.later .st::before { content: "Later"; }
.ui-parts li.next, .ui-parts li.later { color: var(--text-2); }
.ui-parts li.changed .st { animation: row-in .4s ease; }
.ui-human { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.ui-human p { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 19px; color: var(--text-2); }
.ui-human b { font-weight: 600; color: var(--text); }
.ui-human.changed p { animation: row-in .4s ease; }
.ui-avatar { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--band); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.ui-human .ok, .ui-published .ok { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #E6F4EE; color: var(--success); }
.ui-human .ok svg, .ui-published .ok svg { width: 13px; height: 13px; }
/* "Published" pops out when every part is done */
.ui-published { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--white);
  box-shadow: 0 24px 50px -16px rgba(15, 30, 46, 0.45), 0 0 0 1px rgba(15, 30, 46, 0.06); font-size: 14px; line-height: 19px; color: var(--text);
  opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.ui-published.show { opacity: 1; transform: none; }
.ui-published b { display: block; font-weight: 600; }
.ui-url { font-size: 13px; color: var(--success); }
.js .ui-window { animation: chip-in .7s ease .1s backwards; }

@media (max-width: 767px) {
  .hero-ui { padding: 0; }
  .ui-project { display: none; }
  .ui-body { padding: 14px; gap: 12px; }
}

/* ==========================================================================
   Section rhythm: one continuous background. Sections are separated by space,
   not by coloured stripes or rules; bold colour sits inside rounded panels.
   ========================================================================== */
/* Section colours stay (white, sand, paper); only the hard lines between them are dropped */
.section + .section, .ticker + .section, .final-cta, .site-footer { border-top: 0; }
.section { padding: 88px 0; }
.ticker { background: transparent; border: 0; padding: 8px 0 0; }
.ticker-track span { border-right: 0; color: var(--text-3); }
.ticker-track span::after { content: ""; width: 5px; height: 5px; margin-left: 32px; border-radius: 50%; background: var(--line-strong); }
.ticker-track span { padding: 0 0 0 32px; }
.site-footer { background: var(--paper); }
.site-footer .footer-main { padding-top: 32px; border-top: 1px solid var(--line); }

/* Video: an inset navy panel, matching the final call to action */
.section-film { padding-top: 56px; }
.film-panel { position: relative; overflow: hidden; isolation: isolate; padding: 56px; border-radius: 28px; color: var(--on-band);
  background: radial-gradient(700px 420px at 12% 15%, rgba(0, 119, 182, 0.38), transparent 70%), radial-gradient(600px 400px at 95% 95%, rgba(2, 170, 204, 0.22), transparent 70%), var(--band);
  box-shadow: 0 40px 80px -40px rgba(15, 30, 46, 0.55); }
.film-panel .eyebrow { color: var(--band-link); }
.film-panel .display-m { color: #fff; }
.film-panel .caption { color: var(--on-band-3); }
.film-panel .film-frame { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px -30px rgba(2, 170, 204, 0.5); }
.fq-face { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15); }
.fq-by { align-items: center; }

@media (max-width: 1023px) { .film-panel { padding: 40px; } }
@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .section-film { padding-top: 32px; }
  .film-panel { padding: 20px; border-radius: 20px; }
  .film-panel .film-quotes { margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; }
}
/* Quote footer: face, then name over role, then the play link on the right, the same in every quote */
.fq-by { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 0; align-items: center; }
.fq-face { grid-row: 1 / 3; }
.fq-name { grid-column: 2; line-height: 18px; }
.fq-role { grid-column: 2; line-height: 17px; }
.fq-play { grid-column: 3; grid-row: 1 / 3; margin-left: 0; }

/* Final panel sits close to the footer, and less empty space under the input box */
.final-cta { padding-bottom: 48px; }
.final-panel { padding-bottom: 72px; }
.site-footer { padding-top: 8px; }
@media (max-width: 767px) { .final-cta { padding-bottom: 24px; } .final-panel { padding-bottom: 32px; } .site-footer { padding-top: 0; } }

/* Video section: heading across the top, then the video and the quotes side by side from the same top line */
@media (min-width: 1024px) {
  .film-panel.film-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 48px; row-gap: 0; align-items: start; }
  .film-panel .film-copy { display: contents; }
  .film-panel .eyebrow { grid-column: 1 / -1; grid-row: 1; }
  .film-panel .display-m { grid-column: 1 / -1; grid-row: 2; margin-bottom: 32px; }
  .film-panel .film { grid-column: 1; grid-row: 3; }
  .film-panel .film-quotes { grid-column: 2; grid-row: 3; gap: 10px; }
  .film-panel .film-quote { padding: 16px 18px; gap: 10px; }
  .film-panel .fq-text { font-size: 15px; line-height: 23px; }
}

/* Scroll reveals never hide content: it only slides up a little as it arrives.
   (Fading from invisible left sections blank in full-page screenshots and for anyone whose scroll outran the fade.) */
.js .reveal, .js .reveal-stagger.reveal > * { opacity: 1; }
.js .reveal { transform: translateY(18px); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in, .js .reveal-stagger.reveal { transform: none; }
.js .reveal-stagger.reveal > * { transform: translateY(18px); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal-stagger.in > * { transform: none; }
/* The example chat stays readable before it plays; playing just replays the entrance */
.js .example-body:not(.play) > * { opacity: 1; }

/* Video and final call to action as full-width navy sections (no rounded panels) */
.section-film { position: relative; overflow: hidden; padding: 96px 0;
  background: radial-gradient(800px 480px at 12% 15%, rgba(0, 119, 182, 0.38), transparent 70%), radial-gradient(700px 460px at 95% 95%, rgba(2, 170, 204, 0.22), transparent 70%), var(--band); }
.film-panel { padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.final-cta { position: relative; overflow: hidden; isolation: isolate; padding: 112px 0; background: var(--band); }
.final-panel { position: static; padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; isolation: auto; }
.site-footer { padding-top: 40px; }
.site-footer .footer-main { padding-top: 0; border-top: 0; }
@media (max-width: 767px) {
  .section-film { padding: 48px 0; }
  .film-panel .film-quotes { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter); }
  .final-cta { padding: 56px 0; }
  .site-footer { padding-top: 24px; }
}

/* ==========================================================================
   Energy pass 2: bigger type, a tech grid, a moving gradient on the key words,
   floating status labels, glowing buttons and a navy ending.
   ========================================================================== */
@keyframes hue-slide { to { background-position: 200% 50%; } }
@keyframes orbit-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes grid-drift { to { background-position: 48px 48px, 48px 48px; } }
@keyframes btn-sheen { 0% { transform: translateX(-120%) skewX(-20deg); } 60%, 100% { transform: translateX(320%) skewX(-20deg); } }

/* Type: larger, tighter headlines */
.hero-copy .display-xl { font-size: 72px; line-height: 76px; letter-spacing: -0.035em; }
.display-l { font-size: 48px; line-height: 54px; letter-spacing: -0.03em; }
.accent-words { background: linear-gradient(90deg, #005080, #0B8FC4, #02AACC, #0B8FC4, #005080) 0 50% / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: hue-slide 6s linear infinite; }

/* A faint tech grid that fades out towards the edges */
.tech-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15, 30, 46, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 30, 46, 0.06) 1px, transparent 1px);
  background-size: 48px 48px; animation: grid-drift 12s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%); }
.tech-grid.dark { background-image: linear-gradient(rgba(108, 203, 234, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 203, 234, 0.07) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 10%, transparent 80%); mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 10%, transparent 80%); }
.section-film > .container, .final-cta > .container { position: relative; z-index: 1; }

/* Status labels from the app floating around the live app */
.orbit { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: var(--white); box-shadow: 0 12px 30px -10px rgba(15, 30, 46, 0.3), 0 0 0 1px rgba(15, 30, 46, 0.05);
  font-size: 13px; font-weight: 500; color: var(--text); animation: orbit-float 5s ease-in-out infinite; }
.orbit i { width: 8px; height: 8px; border-radius: 50%; }
.s-working { background: var(--ai-to-light); }
.s-live { background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.orbit-1 { top: -16px; left: 4px; }
.orbit-3 { bottom: 4px; right: 40px; animation-delay: -3.2s; }

/* Primary buttons: a brand gradient, a soft glow and a light sheen */
.btn-primary { position: relative; overflow: hidden; background: linear-gradient(135deg, #005080, #0077B6);
  box-shadow: 0 8px 22px -10px rgba(0, 119, 182, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent); animation: btn-sheen 4.5s ease-in-out infinite; }
.btn-primary:hover { background: linear-gradient(135deg, #00406A, #00659E); box-shadow: 0 14px 30px -12px rgba(0, 119, 182, 0.9); }

/* Cards: a brand gradient edge on hover */
.what-card, .why-card:not(.block-blue):not(.block-navy), .prompt-tile { position: relative; }
.what-card::before, .why-card:not(.block-blue):not(.block-navy)::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--ai-from-light), var(--ai-to-light), #FAA31C);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease; }
.what-card:hover::before, .why-card:hover::before { opacity: 1; }

/* Footer: navy, so the page ends on one dark block with the final section */
.site-footer { background: var(--band); color: var(--on-band-2); padding-top: 8px; }
.site-footer .nav-logo { color: #fff; }
.footer-by { border-left-color: rgba(255, 255, 255, 0.15); color: var(--on-band-3); }
.footer-by strong { color: #fff; }
.footer-line { color: var(--on-band-3); }
.footer-links a { color: var(--on-band-2); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.1); color: var(--on-band-3); }
.site-footer .footer-main { padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
@media (max-width: 1023px) { .hero-copy .display-xl { font-size: 56px; line-height: 60px; } .display-l { font-size: 40px; line-height: 46px; } }
@media (max-width: 767px) {
  .hero-copy .display-xl { font-size: 40px; line-height: 44px; }
  .display-l { font-size: 30px; line-height: 36px; }
  .orbit { font-size: 12px; padding: 5px 10px; }
  .orbit-1 { top: -12px; left: 12px; }
  .orbit-3 { bottom: auto; top: -12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .accent-words { animation: none; } }
/* Fixes: headline on two lines, label clear of the app rows, final-section light not clipped to a box */
.hero-copy .display-xl { font-size: 68px; line-height: 74px; max-width: none; }
.final-cta > .container { position: static; }
.final-inner { position: relative; z-index: 1; }
@media (max-width: 1279px) { .hero-copy .display-xl { font-size: 60px; line-height: 66px; } }
@media (max-width: 1023px) { .hero-copy .display-xl { font-size: 56px; line-height: 60px; } }
@media (max-width: 767px) { .hero-copy .display-xl { font-size: 40px; line-height: 44px; } }
/* Headline scales with the screen so it always holds two lines; "Needs you" sits below the app window */
@media (min-width: 1280px) { .hero-copy .display-xl { font-size: min(68px, calc((100vw - 224px) * 0.056)); line-height: 1.08; } }
@media (min-width: 1024px) and (max-width: 1279px) { .hero-copy .display-xl { font-size: min(64px, calc((100vw - 160px) * 0.056)); line-height: 1.08; } }

/* ==========================================================================
   All-light page with clearly visible section colours.
   White alternates with a light blue and a warm sand, so each section reads as its own block.
   ========================================================================== */
:root { --tint-blue: #E7F1F8; --tint-sand: #F3EEE4; --tint-cyan: #E3F4F8; }
.hero-split { background-color: var(--paper); }
#film { background: var(--tint-blue); }
#human-ai { background: var(--white); }
#problem { background: var(--tint-sand); }
#how { background: var(--white); }
#why { background: var(--tint-blue); }
#what { background: var(--white); }
.final-cta { background: radial-gradient(800px 420px at 50% 110%, rgba(2, 170, 204, 0.22), transparent 70%), var(--tint-cyan); }
.site-footer { background: var(--white); border-top: 1px solid var(--line); color: var(--text-2); }
.ticker { background: var(--paper); }

/* Video section on light blue */
.section-film .tech-grid.dark, .final-cta .tech-grid.dark { background-image: linear-gradient(rgba(0, 80, 128, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 80, 128, 0.07) 1px, transparent 1px); }
.film-panel, .film-panel .display-m { color: var(--text); }
.film-panel .eyebrow { color: var(--accent); }
.film-panel .caption { color: var(--text-3); }
.film-panel .film-frame { box-shadow: 0 30px 70px -30px rgba(0, 80, 128, 0.45), 0 0 0 1px rgba(15, 30, 46, 0.06); }
.film-quote { background: var(--white); border-color: var(--line); border-left-color: var(--accent); box-shadow: 0 1px 2px rgba(15, 30, 46, 0.04), 0 10px 24px -14px rgba(15, 30, 46, 0.2); }
.film-quote:hover { background: var(--white); border-left-color: var(--ai-to-light); box-shadow: 0 16px 32px -16px rgba(0, 80, 128, 0.35); }
.film-quote:focus-visible { outline-color: var(--accent); }
.fq-text { color: var(--text); }
.fq-name { color: var(--text); }
.fq-role { color: var(--text-3); }
.fq-play { color: var(--accent); }
.fq-face { box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--line); }
.film-quote.speaking { background: #F2FAFC; border-color: rgba(2, 170, 204, 0.45); border-left-color: var(--ai-to-light); }

/* Final call to action on light cyan */
.final-cta .final-title { color: var(--text); }
.final-cta .final-lead { color: var(--text-2); }
.final-cta .final-lead strong { color: var(--text); }
.final-cta .note-below { color: var(--text-2); }
.final-cta .aurora i { opacity: .45; }
.final-cta .idea-box { box-shadow: 0 0 0 6px rgba(2, 170, 204, 0.14), 0 30px 70px -24px rgba(0, 80, 128, 0.4); }
.final-cta .chat { box-shadow: 0 30px 70px -24px rgba(0, 80, 128, 0.35); }

/* Footer on white */
.site-footer .nav-logo { color: var(--text); }
.footer-by { border-left-color: var(--line-strong); color: var(--text-2); }
.footer-by strong { color: var(--text); }
.footer-line { color: var(--text-2); }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top-color: var(--line); color: var(--text-3); }
.site-footer .footer-main { border-top: 0; padding-top: 8px; }
.site-footer { padding-top: 32px; }
@media (max-width: 767px) { .site-footer { padding-top: 24px; } }
/* Section colours: barely-there tints, so sections flow into each other */
:root { --tint-blue: #F4F8FB; --tint-sand: #FAF8F4; --tint-cyan: #F1F8FA; }
.final-cta { background: radial-gradient(800px 420px at 50% 110%, rgba(2, 170, 204, 0.10), transparent 70%), var(--tint-cyan); }

/* ---------- Integrations ---------- */
.int-github { color: #181717; }
.int-slack { color: #4A154B; }
.int-vercel { color: #000000; }
.int-railway { color: #0B0D0E; }
.ticker-mask { flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* Hero card: connected tools */

/* Two strips under the hero: integrations, then what we build scrolling the other way */
.cat-ticker { padding: 8px 0 18px; background: var(--paper); }
.cat-ticker .ticker-track { animation-direction: reverse; animation-duration: 46s; }
.cat-ticker:hover .ticker-track { animation-play-state: paused; }
.int-jira { color: #0052CC; }
.int-linear { color: #5E6AD2; }
.int-notion { color: #000000; }
/* Desktop: "Connected" sits above the top-right of the app window, clear of the "Published" card */
/* "Connected" as a row inside the app window */
.ui-connected { display: flex; align-items: center; gap: 9px; padding: 2px 4px 0; font-size: 13px; color: var(--text-3); }
.ui-connected > span[aria-hidden] { margin-right: 4px; }
.ui-connected svg { width: 16px; height: 16px; }
.ui-connected svg.int-github { color: #181717; } .ui-connected svg.int-slack { color: #4A154B; } .ui-connected svg.int-jira { color: #0052CC; }
.ui-connected svg.int-linear { color: #5E6AD2; } .ui-connected svg.int-notion, .ui-connected svg.int-vercel { color: #000; } .ui-connected svg.int-railway { color: #0B0D0E; }
/* Quotes in the video section: a little smaller */
.film-panel .fq-text, .fq-text { font-size: 14px; line-height: 22px; }
@media (max-width: 767px) { .fq-text { font-size: 14px; line-height: 21px; } }
/* Quotes: a large brand-gradient opening mark instead of plain quote characters */
.film-quote { position: relative; padding-top: 22px; }
.fq-text { position: relative; padding-left: 34px; }
.fq-text::before { content: "\201C"; position: absolute; left: -2px; top: -6px; font-family: Georgia, "Times New Roman", serif; font-size: 52px; line-height: 1; font-weight: 700;
  background: linear-gradient(135deg, var(--ai-from-light), var(--ai-to-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.film-quote.speaking .fq-text::before { background: linear-gradient(135deg, var(--ai-to-light), #FAA31C); -webkit-background-clip: text; background-clip: text; }

/* One strip under the hero now */
.cat-ticker { padding: 18px 0; }

/* ==========================================================================
   Refinement pass: hero prompt, the review example, centred openings, lighter Why cards
   ========================================================================== */
/* 1. Hero prompt box */
.hero-prompt { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 32px; padding: 7px 7px 7px 12px; border-radius: 14px; background: var(--white);
  border: 1.5px solid transparent; background-image: linear-gradient(var(--white), var(--white)), linear-gradient(90deg, var(--ai-from-light), var(--ai-to-light));
  background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 0 0 5px rgba(2, 170, 204, 0.10), 0 18px 40px -18px rgba(0, 80, 128, 0.35); transition: box-shadow .2s; }
.hero-prompt:focus-within { box-shadow: 0 0 0 5px rgba(2, 170, 204, 0.22), 0 18px 40px -18px rgba(0, 80, 128, 0.35); }
.hero-prompt input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font: 16px var(--font); color: var(--text); }
.hero-prompt input::placeholder { color: var(--text-3); }
.hero-prompt input:focus-visible { box-shadow: none; }
.hero-prompt .btn { flex: none; height: 44px; }
.hero-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: none; }
.hero-link svg { width: 15px; height: 15px; transition: transform .2s; }
.hero-link:hover svg { transform: translateX(3px); }

/* 2. The review example */
.review { position: relative; margin: 0; min-height: 440px; }
.rv-card { position: absolute; width: 78%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 30, 46, 0.05), 0 30px 60px -30px rgba(15, 30, 46, 0.35); }
.rv-ai { top: 0; left: 0; border-top: 2px solid var(--ai-to-light); }
.rv-head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.rv-head b { font-weight: 600; }
.rv-tag { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.rv-tag-blue { background: var(--accent-soft); color: var(--accent); }
/* Plays in: the engineer's card slides up, then the fix and the approval appear */

/* 3. Centred section openings with a subheading */
.center-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.center-head .eyebrow { justify-content: center; }
.center-sub { margin: 14px 0 0; font-size: 18px; line-height: 28px; color: var(--text-2); }

/* 4. Lighter Why cards: no dark blocks left */
.block-blue, .block-navy { border: 1px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(135deg, var(--ai-from-light), var(--ai-to-light)) border-box; }
.block-blue { background: linear-gradient(160deg, #EAF4FA, #FFFFFF 70%) padding-box, linear-gradient(135deg, var(--ai-from-light), var(--ai-to-light)) border-box; }
.block-navy { background: linear-gradient(160deg, #E8F7FA, #FFFFFF 70%) padding-box, linear-gradient(135deg, var(--ai-to-light), #10B981) border-box; }
.block-blue h3, .block-navy h3 { color: var(--text); }
.block-blue p, .block-navy p { color: var(--text-2); }
.block-blue .ai-tile { background: linear-gradient(135deg, var(--ai-from-light), var(--ai-to-light)); box-shadow: none; }
.block-navy .tile-icon { background: #E0F6FB; color: #0A7189; }
.why-card.block-blue::after { background: linear-gradient(90deg, transparent, rgba(2, 170, 204, 0.10), transparent); }

@media (max-width: 1023px) { .review { max-width: 560px; } }
@media (max-width: 767px) {
  .hero-prompt { flex-wrap: wrap; padding: 8px; }
  .hero-prompt input { flex: 1 1 calc(100% - 40px); }
  .hero-prompt .btn { width: 100%; }
  .review { order: 4; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
  .rv-card { position: relative; width: 100%; top: auto; left: auto; right: auto; bottom: auto; }
  .center-head { margin-bottom: 28px; }
  .center-sub { font-size: 16px; line-height: 24px; }
}

/* 5. What could you build: a concrete example and a shortcut appear on hover or keyboard focus */
.what-card { overflow: hidden; }
.what-eg { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s ease, opacity .3s ease, margin .35s ease; margin-top: 0; }
.what-eg > * { min-height: 0; overflow: hidden; }
.what-eg span { display: block; font-size: 14px; line-height: 20px; font-style: italic; color: var(--accent); }
.what-try { display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 14px/20px var(--font); color: var(--accent); }
.what-try svg { width: 14px; height: 14px; transition: transform .2s; }
.what-try:hover svg { transform: translateX(3px); }
.what-card:hover .what-eg, .what-card:focus-within .what-eg { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
.what-eg { grid-template-rows: 0fr 0fr; }
.what-card:hover .what-eg, .what-card:focus-within .what-eg { grid-template-rows: 1fr 1fr; }
@media (hover: none) { .what-eg { grid-template-rows: 1fr 1fr; opacity: 1; margin-top: 10px; } }
@media (max-width: 767px) { .what-eg { display: none; } }
/* Review cards: staggered so only a corner overlaps */
@media (min-width: 768px) {
  .review { min-height: 548px; }
  .rv-ai { width: 74%; }
}
/* What could you build: space for the example is always there, it only fades in (no layout jump) */
.what-eg, .what-card:hover .what-eg, .what-card:focus-within .what-eg { grid-template-rows: 1fr 1fr; margin-top: 10px; }
.what-eg { opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; }
.what-card:hover .what-eg, .what-card:focus-within .what-eg { opacity: 1; transform: none; }

/* ==========================================================================
   How it works: product illustrations of each Allion Build step (no photos)
   ========================================================================== */
@keyframes pulse-ring { from { box-shadow: 0 0 0 0 rgba(2, 170, 204, 0.45); } to { box-shadow: 0 0 0 16px rgba(2, 170, 204, 0); } }
@keyframes dash { to { stroke-dashoffset: -24; } }
.how-card.v2 { aspect-ratio: auto; justify-content: flex-start; gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--white); box-shadow: 0 1px 2px rgba(15, 30, 46, 0.04), 0 20px 40px -28px rgba(15, 30, 46, 0.35); transition: transform .25s ease, box-shadow .25s ease; }
.how-card.v2:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -28px rgba(0, 80, 128, 0.45); }
.how-card.v2::after { content: none; }
.how-card.v2 > div:last-child { padding: 20px 22px 24px; }
.how-card.v2 h3 { color: var(--text); min-height: 52px; }
.how-card.v2 p { color: var(--text-2); }
.how-card.v2 .how-num { top: 14px; left: 14px; box-shadow: 0 2px 8px rgba(15, 30, 46, 0.12); }
.how-art { position: relative; height: 200px; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(240px 160px at 70% 20%, rgba(2, 170, 204, 0.12), transparent 70%),
              linear-gradient(rgba(0, 80, 128, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
              linear-gradient(90deg, rgba(0, 80, 128, 0.05) 1px, transparent 1px) 0 0 / 20px 20px, #F6F9FB; }
.how-art p { margin: 0; }
.how-art .ai-tile.sm { width: 22px; height: 22px; border-radius: 6px; }

/* 1. Chat */

/* 2. Plan */

/* 3. Team around the AI */
.a-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.a-lines path { fill: none; stroke: var(--ai-to-light); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .6; animation: dash 1.2s linear infinite; vector-effect: non-scaling-stroke; }
.a-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; gap: 2px; }
.a-hub .ai-tile.sm { width: 40px; height: 40px; border-radius: 11px; animation: pulse-ring 2s ease-out infinite; }
.a-hub .ai-tile.sm svg { width: 22px; height: 22px; }
.a-hub em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--accent); }
.a-person { position: absolute; display: flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 6px 14px -8px rgba(15, 30, 46, 0.35); font-size: 11px; font-weight: 500; color: var(--text); transform: translate(-50%, -50%); }
.a-person b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--band); color: #fff; font-size: 9px; }
.p1 { left: 21%; top: 24%; } .p2 { left: 79%; top: 24%; } .p3 { left: 21%; top: 76%; } .p4 { left: 79%; top: 76%; }
.p2 b { background: #0A7189; } .p3 b { background: var(--accent); } .p4 b { background: #B45309; }

/* 4. Live */

@media (min-width: 768px) and (max-width: 1023px) { .how-card.v2 { aspect-ratio: auto; } }
@media (max-width: 767px) {
  .how-card.v2 { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: none; flex-direction: row; gap: 16px; padding: 18px 0; overflow: visible; }
  .how-card.v2:hover { transform: none; box-shadow: none; }
  .how-card.v2 > div:last-child { padding: 0; }
  .how-card.v2 h3 { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {  .a-lines path, .a-hub .ai-tile.sm { animation: none; } }
/* Illustrations: step number sits with the title, and text sizes inside the art are not inherited from the card */
.how-card.v2 .how-num { position: static; width: 30px; height: 30px; margin: 20px 22px 0; font-size: 12px; box-shadow: none; border: 1px solid var(--line-strong); background: var(--white); color: var(--accent); }
.how-card.v2:first-child .how-num { background: var(--accent); color: #fff; border-color: var(--accent); }
.how-card.v2 > div:last-child { padding-top: 12px; }
.how-card .how-art p { margin: 0; font-size: 12px; line-height: 17px; color: var(--text); }
@media (max-width: 767px) { .how-card.v2 .how-num { margin: 0; width: 40px; height: 40px; } .how-card.v2 > div:last-child { padding-top: 0; } }
/* Phones: each step is a full card, illustration on top, text below */
@media (max-width: 767px) {
  .how-grid { gap: 14px; }
  .how-card.v2 { flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 30, 46, 0.04), 0 16px 32px -24px rgba(15, 30, 46, 0.35); }
  .how-card.v2 .how-art { height: 180px; }
  .how-card.v2 .how-num { width: 30px; height: 30px; margin: 16px 18px 0; }
  .how-card.v2 > div:last-child { padding: 10px 18px 18px; }
}
/* Medium widths: keep the plan buttons on one line */
@media (max-width: 767px) { .how-card.v2 .how-art { display: block; width: 100%; flex: none; align-self: stretch; } }

/* ==========================================================================
   Why: AI agents at work. What we build: mini product previews.
   ========================================================================== */
@keyframes ag-spin { to { transform: rotate(360deg); } }
.ag-spin { display: inline-block; width: 11px; height: 11px; border: 2px solid #D6E7F1; border-top-color: var(--ai-to-light); border-radius: 50%; animation: ag-spin .8s linear infinite; vertical-align: -1px; }
.ag-ok { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #E6F4EE; color: var(--success); }
.ag-ok svg { width: 10px; height: 10px; }
.ab-person { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--band); color: #fff; font-size: 10px; font-weight: 600; }
.ab-person.sm { width: 20px; height: 20px; font-size: 8px; }
.ab-person.c2 { background: #0A7189; } .ab-person.c3 { background: var(--accent); }

/* Agent board in the photo slot */

/* Status line on each Why card */
.ag-line { display: flex; align-items: center; gap: 7px; margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px dashed var(--line-strong);
  font-size: 12px !important; line-height: 16px !important; color: var(--text-2) !important; }
.ag-line .ai-tile.sm { width: 20px; height: 20px; border-radius: 5px; }
.ag-line .ai-tile.sm svg { width: 11px; height: 11px; }
.ag-stack { display: inline-flex; }
.ag-stack > * { margin-left: -5px; box-shadow: 0 0 0 2px var(--white); border-radius: 50%; }
.ag-stack > :first-child { margin-left: 0; }
.ag-stack .ai-tile.sm { border-radius: 6px; }
.why-card { justify-content: flex-start; }
.why-card > div { display: flex; flex-direction: column; flex: 1; }
.why-card .ag-line { margin-top: auto !important; }
.why-card > div > p:not(.ag-line) { margin-bottom: 14px; }

/* What we build: mini product preview at the top of each card */
.what-card.has-mini { flex-direction: column; gap: 0; padding: 0; }
.what-body { display: flex; gap: 16px; padding: 18px 20px 20px; }
.mini { position: relative; height: 120px; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(200px 120px at 80% 0%, rgba(2, 170, 204, 0.10), transparent 70%), #F6F9FB; font-size: 11px; line-height: 15px; color: var(--text); }
.mini p { margin: 0; }
.what-card.has-mini:hover .mini > * { transform: translateY(-3px); }
.mini > * { transition: transform .3s ease; }
/* app */
.mini-app { display: grid; place-items: end center; }
.mp-phone { width: 110px; height: 104px; display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 0; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--white); box-shadow: 0 10px 20px -12px rgba(15, 30, 46, 0.4); }
.mp-phone b { font-size: 10px; }
.mp-hero { display: block; height: 22px; border-radius: 5px; background: linear-gradient(135deg, var(--ai-from-light), var(--ai-to-light)); }
.mp-phone span { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; font-size: 9px; color: var(--text-2); }
.mp-phone u { text-decoration: none; text-align: center; padding: 3px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 600; }
/* table */
.mini-table { padding: 10px 14px; }
.mini-table p { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; padding: 4px 8px; border-bottom: 1px solid var(--line); background: var(--white); }
.mini-table .mt-head { grid-template-columns: 1fr auto; border-radius: 6px 6px 0 0; }
.mini-table .mt-head u { text-decoration: none; padding: 1px 6px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 9px; }
.mini-table span { color: var(--text-2); font-size: 10px; }
.mini-table em { font-style: normal; padding: 1px 6px; border-radius: 999px; font-size: 9px; font-weight: 600; }
.mini-table em.g { background: #E6F4EE; color: var(--success); } .mini-table em.a { background: #FEF1DC; color: #B45309; } .mini-table em.b { background: var(--accent-soft); color: var(--accent); }
/* flow */
.mini-flow { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 10px; }
.mini-flow .fn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--white); font-size: 10px; font-weight: 500; white-space: nowrap; box-shadow: 0 6px 12px -8px rgba(15, 30, 46, 0.35); }
.mini-flow .fn.ai { border-color: var(--ai-to-light); }
.mini-flow .fn.g { color: var(--success); }
.mini-flow .fn .ai-tile.sm { width: 14px; height: 14px; border-radius: 4px; }
.mini-flow .fn .ai-tile.sm svg { width: 8px; height: 8px; }
.mini-flow > i { width: 14px; height: 0; border-top: 1.5px dashed var(--ai-to-light); }
/* portal */
.mini-portal { margin: 12px 16px 0; padding: 10px 12px; height: auto; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--white); }
.what-card .mini-portal { height: 108px; }
.pp-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.pp-av { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #0A7189; color: #fff; font-size: 9px; font-weight: 600; }
.pp-row { display: flex; justify-content: space-between; margin-top: 10px !important; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; }
.pp-row em { font-style: normal; color: var(--accent); font-weight: 600; }
.pp-bar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: #ECEAE4; overflow: hidden; }
.pp-bar i { display: block; width: 66%; height: 100%; background: linear-gradient(90deg, var(--ai-from-light), var(--ai-to-light)); }
/* chat */
.mini-chat { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 16px; }
.mc-q { align-self: flex-end; padding: 5px 9px; border-radius: 8px 8px 2px 8px; background: var(--accent-soft); font-size: 10px; }
.mc-a { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font-size: 10px; width: max-content; }
.mc-a .ai-tile.sm { width: 16px; height: 16px; border-radius: 4px; }
.mc-a .ai-tile.sm svg { width: 9px; height: 9px; }
/* upgrade */
.mini-upgrade { display: flex; align-items: center; justify-content: center; gap: 12px; }
.mu-old, .mu-new { display: grid; place-items: center; height: 62px; padding: 0 16px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.mu-old { width: 62px; border: 1px dashed var(--line-strong); color: var(--text-3); background: var(--paper); }
.mu-new { gap: 1px; border: 1.5px solid transparent; background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(135deg, var(--ai-from-light), var(--ai-to-light)) border-box; color: var(--accent); box-shadow: 0 10px 20px -12px rgba(0, 80, 128, 0.5); }
.mu-new em { font-style: normal; font-size: 9px; font-weight: 500; color: var(--text-3); }
.mu-arrow { width: 18px; height: 18px; color: var(--ai-to-light); }
@media (max-width: 767px) {
  .what-card.has-mini { padding: 0; }
  .what-card.has-mini .mini { display: none; }
  .what-body { flex-direction: column; gap: 10px; padding: 16px; }
  .ag-line { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ag-spin { animation: none; } }
/* Product previews: their own small text, not the card's paragraph size */
.what-card .mini p, .what-card .mini span, .what-card .mini em, .what-card .mini b { font-size: 10px; line-height: 14px; }
.what-card .mini .pp-top b, .what-card .mini .mt-head b, .what-card .mini .mp-phone b { font-size: 11px; font-weight: 600; color: var(--text); }
.what-card .mini .mu-old, .what-card .mini .mu-new { font-size: 13px; }
.what-card .mini .mu-new em { font-size: 9px; }
.what-card .mini-portal { height: auto; max-height: 108px; }
/* The example is always shown, so there is no empty space waiting for a hover */
.what-eg, .what-card:hover .what-eg, .what-card:focus-within .what-eg { opacity: 1; transform: none; margin-top: 10px; }
@media (max-width: 767px) { .what-eg { display: none; } }
/* Human + AI: the engineer's photo as the base, with the AI draft and the review over it */
.review .rv-ai { z-index: 1; width: 56%; top: 0; left: 0; }
@media (min-width: 768px) { .review { min-height: 600px; } }
@media (max-width: 767px) {
  .review .rv-ai { width: 100%; right: auto; }
}
/* AI network background: sits behind the content and fades towards the edges */
.ai-net { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 60% 50%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 75% 75% at 60% 50%, #000 25%, transparent 80%); }
.net-hero { -webkit-mask-image: radial-gradient(ellipse 55% 80% at 78% 45%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 55% 80% at 78% 45%, #000 20%, transparent 80%); }
#why { position: relative; overflow: hidden; }
#why > .container, .final-cta > .container { position: relative; z-index: 1; }
.final-cta .final-inner { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .ai-net { display: none; } }
/* Final section: light not clipped to a box, and the network stays at the edges, clear of the text */
.final-cta > .container { position: static; }
.net-final { -webkit-mask-image: radial-gradient(ellipse 42% 60% at 50% 50%, transparent 60%, #000 85%); mask-image: radial-gradient(ellipse 42% 60% at 50% 50%, transparent 60%, #000 85%); }
/* Why: keep the network out from behind the heading */
.net-why { -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 22%, #000 40%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent 0, transparent 22%, #000 40%, #000 80%, transparent); }

/* ==========================================================================
   Section backgrounds that say what each section is about.
   Decorative, behind the content, and still for people who prefer reduced motion.
   ========================================================================== */
#film, #human-ai, #problem, #how, #what { position: relative; overflow: hidden; }
#film > .container, #human-ai > .container, #problem > .container, #how > .container, #what > .container { position: relative; z-index: 1; }
.bg-motif { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
@keyframes slide-half { to { transform: translateX(-50%); } }

/* Watch: soft sound waves */
.bg-waves { top: auto; height: 60%; bottom: 0; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
.bg-waves g { animation: slide-half 26s linear infinite; }
.bg-waves path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bg-waves .w1 { stroke: rgba(0, 119, 182, 0.18); } .bg-waves .w2 { stroke: rgba(2, 170, 204, 0.16); }
.bg-waves .w3 { stroke: rgba(0, 119, 182, 0.10); } .bg-waves .w4 { stroke: rgba(2, 170, 204, 0.08); }

/* Human + AI: amber (people) and cyan (AI) lines weaving together */
.bg-weave { opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.bg-weave g { animation: slide-half 30s linear infinite; }
.bg-weave path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.bg-weave .hu { stroke: rgba(250, 163, 28, 0.28); }
.bg-weave .ai { stroke: rgba(2, 170, 204, 0.28); }

/* Start with the problem: chat bubbles rising */
@keyframes bubble-up { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(-420px); opacity: 0; } }
.bg-bubbles i { position: absolute; bottom: -40px; height: 26px; border-radius: 14px 14px 14px 4px; background: rgba(0, 119, 182, 0.07); border: 1px solid rgba(0, 119, 182, 0.10); animation: bubble-up 16s linear infinite; }
.bg-bubbles i:nth-child(even) { border-radius: 14px 14px 4px 14px; background: rgba(2, 170, 204, 0.08); }
.bg-bubbles .b0 { left: 3%; width: 90px; animation-delay: 0s; } .bg-bubbles .b1 { left: 12%; width: 60px; animation-delay: -5s; }
.bg-bubbles .b2 { left: 22%; width: 110px; animation-delay: -9s; } .bg-bubbles .b3 { left: 46%; width: 70px; animation-delay: -2s; }
.bg-bubbles .b4 { left: 58%; width: 120px; animation-delay: -12s; } .bg-bubbles .b5 { left: 70%; width: 64px; animation-delay: -7s; }
.bg-bubbles .b6 { left: 80%; width: 100px; animation-delay: -3s; } .bg-bubbles .b7 { left: 90%; width: 74px; animation-delay: -10s; }
.bg-bubbles .b8 { left: 36%; width: 84px; animation-delay: -14s; }

/* How it works: a dashed path behind the steps, with a light travelling from idea to live */
@keyframes travel { from { left: 0; } to { left: 100%; } }
.how-grid { position: relative; }
.how-path { position: absolute; left: 4%; right: 4%; top: 100px; height: 0; border-top: 2px dashed rgba(2, 170, 204, 0.45); list-style: none; z-index: 0; }
.how-path i { position: absolute; top: -6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ai-to-light); box-shadow: 0 0 0 4px rgba(2, 170, 204, 0.2), 0 0 18px 4px rgba(2, 170, 204, 0.45); animation: travel 6s ease-in-out infinite; }
.how-card.v2 { position: relative; z-index: 1; }

/* What we build: wireframe app screens floating like a blueprint */
@keyframes float-y { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }
.bg-wires span { position: absolute; display: flex; flex-direction: column; gap: 6px; padding: 22px 10px 10px; border: 1.5px dashed rgba(0, 119, 182, 0.18); border-radius: 10px; animation: float-y 9s ease-in-out infinite; }
.bg-wires span::before { content: ""; position: absolute; top: 8px; left: 10px; width: 26px; height: 5px; border-radius: 3px; background: rgba(0, 119, 182, 0.15); }
.bg-wires i { display: block; height: 6px; border-radius: 3px; background: rgba(0, 119, 182, 0.10); }
.bg-wires i:nth-child(2) { width: 70%; } .bg-wires i:nth-child(3) { width: 45%; background: rgba(2, 170, 204, 0.16); }
.bg-wires .w-a { left: 2%; top: 12%; width: 130px; --r: -6deg; }
.bg-wires .w-b { right: 3%; top: 8%; width: 110px; --r: 5deg; animation-delay: -3s; }
.bg-wires .w-c { left: 4%; bottom: 10%; width: 100px; --r: 4deg; animation-delay: -5s; }
.bg-wires .w-d { right: 5%; bottom: 14%; width: 140px; --r: -4deg; animation-delay: -2s; }
.bg-wires .w-e { left: 46%; top: 4%; width: 80px; --r: 3deg; animation-delay: -6s; opacity: .7; }

@media (max-width: 1023px) { .how-path { display: none; } }
@media (max-width: 767px) { .bg-bubbles i:nth-child(n+5), .bg-wires .w-b, .bg-wires .w-e { display: none; } }
@media (prefers-reduced-motion: reduce) { .bg-waves g, .bg-weave g, .bg-bubbles i, .how-path i, .bg-wires span { animation: none; } .bg-bubbles { display: none; } }
/* Weave stays on the illustration side, clear of the text */
.bg-weave { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 40%, transparent 52%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 40%, transparent 52%); }
@media (max-width: 1023px) { .bg-weave { display: none; } }
.ui-connected svg.int-teams { color: #5059C9; }
.ui-connected svg.int-stripe { color: #635BFF; }
.ui-connected { gap: 8px; flex-wrap: wrap; }
.ui-connected svg.int-supabase { color: #3FCF8E; }

/* ==========================================================================
   The Allion Build app tour, the hero line, "by Allion Technologies" and what happens next
   ========================================================================== */
.nav-by { padding-left: 12px; border-left: 1px solid var(--line-strong); font-size: 13px; color: var(--text-3); white-space: nowrap; }
.hero-sub { margin: 14px 0 0; max-width: 580px; font-size: 16px; line-height: 25px; color: var(--text-3); }

.tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.tour-tabs { display: flex; flex-direction: column; gap: 8px; }
.tour-tab { position: relative; display: grid; grid-template-columns: 72px 1fr; column-gap: 12px; row-gap: 4px; padding: 16px 18px; overflow: hidden; text-align: left; cursor: pointer;
  border: 1px solid transparent; border-radius: 12px; background: none; font-family: var(--font); transition: background .2s, border-color .2s; }
.tour-tab:hover { background: var(--paper); }
.tour-tab[aria-selected="true"] { border-color: var(--line); background: var(--white); box-shadow: 0 16px 32px -24px rgba(15, 30, 46, 0.35); }
.tt-step { grid-row: 1 / 3; align-self: start; justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.tour-tab[aria-selected="true"] .tt-step { background: var(--accent); color: #fff; }
.tt-title { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text); }
.tt-line { grid-column: 2; font-size: 14px; line-height: 21px; color: var(--text-2); }
.tour-tab[aria-selected="false"] .tt-line { display: none; }
.tt-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.tt-timer i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--ai-from-light), var(--ai-to-light)); }
.tour-tab.running .tt-timer i { animation: timer 5s linear forwards; }
@keyframes timer { to { width: 100%; } }

.tour-stage { position: relative; min-height: 430px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: radial-gradient(360px 220px at 85% 0%, rgba(2, 170, 204, 0.12), transparent 70%), linear-gradient(rgba(0, 80, 128, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, rgba(0, 80, 128, 0.05) 1px, transparent 1px) 0 0 / 24px 24px, #F6F9FB; box-shadow: 0 40px 80px -40px rgba(15, 30, 46, 0.4); }
.tour-panel { padding: 28px; animation: rise .45s ease; }
.tour-panel[hidden] { display: none; }
.tw-card { max-width: 520px; margin: 0 auto; padding: 18px 20px; border: 1px solid var(--line); border-top: 2px solid var(--ai-to-light); border-radius: 12px; background: var(--white); box-shadow: 0 20px 40px -24px rgba(15, 30, 46, 0.35); }
.tw-card p { margin: 0; }
.tw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--text); }
.tw-head b { font-weight: 600; }
.tw-head span { font-size: 13px; color: var(--text-3); }
.tw-plan { list-style: none; margin: 12px 0 0; padding: 0; }
.tw-plan li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.tw-plan b { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--sand); font-size: 12px; }
.tw-plan span { display: flex; flex-direction: column; font-size: 13px; line-height: 18px; color: var(--text-3); }
.tw-plan strong { font-size: 14px; font-weight: 600; color: var(--text); }
.tw-actions { display: flex; gap: 8px; margin-top: 14px !important; }
.tw-btn { padding: 8px 14px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
.tw-btn.ghost { background: var(--white); color: var(--text); border: 1px solid var(--line-strong); font-weight: 500; }
.tw-by { display: flex; align-items: center; gap: 8px; margin-top: 14px !important; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 13px; color: var(--text-2); }
.tw-by .ai-tile.sm { width: 20px; height: 20px; }
.tw-pct { font-weight: 600; color: var(--accent) !important; }
.tw-bar { display: block; height: 6px; margin: 12px 0 4px; border-radius: 3px; background: #ECEAE4; overflow: hidden; }
.tw-bar i { display: block; width: 50%; height: 100%; background: linear-gradient(90deg, var(--ai-from-light), var(--ai-to-light)); }
.tw-list { list-style: none; margin: 0; padding: 0; }
.tw-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
.tw-card em { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 4px; font-style: normal; font-size: 12px; font-weight: 500; }
.tw-card em svg { width: 13px; height: 13px; }
.sw-done { background: var(--accent-soft); color: var(--accent); }
.sw-work { color: var(--text-2); }
.sw-next { color: var(--text-3); }
.sw-needs { background: #FEF3E2; border: 1px solid #F6D9A8; color: #B45309; }
.sw-needs i, .sw-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sw-live { background: #E7F7F0; border: 1px solid #A7E3C9; color: #047857; }
.tw-preview { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.tw-preview b { display: block; font-size: 14px; color: var(--text); }
.tw-slots { display: flex; gap: 6px; margin: 10px 0; }
.tw-slots i { padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--white); font-style: normal; font-size: 12px; color: var(--text-2); }
.tw-mini-btn { display: inline-block; padding: 6px 12px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.tw-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px !important; padding: 10px 12px; border-radius: 4px 10px 10px 10px; background: #F4F8FB; font-size: 13px; line-height: 19px; color: var(--text); }
.tw-url { display: flex; align-items: center; gap: 8px; margin-top: 14px !important; padding: 10px 12px; border-radius: 8px; background: #E7F7F0; color: #047857; font-size: 13px; font-weight: 500; }
.tw-url svg { width: 14px; height: 14px; }
.tw-sub { margin-top: 16px !important; font-size: 13px; font-weight: 600; color: var(--text); }
.tw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px !important; }
.tw-chips span { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--white); font-size: 13px; color: var(--text); }

/* What happens next, under the final box */
.next-steps { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin: 24px 0 0; padding: 0; }
.next-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.next-steps b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 1px solid var(--line-strong); font-size: 11px; color: var(--accent); }

@media (max-width: 1023px) {
  .nav-by { display: none; }
  .tour { grid-template-columns: 1fr; gap: 20px; }
  .tour-stage { order: -1; min-height: 0; }
}
@media (max-width: 767px) {
  .hero-sub { font-size: 15px; line-height: 23px; }
  .tour-tabs { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .tour-tab { flex: none; display: block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); }
  .tour-tab .tt-title, .tour-tab .tt-line { display: none; }
  .tour-tab .tt-step { background: none; padding: 0; font-size: 14px; color: var(--text-2); }
  .tour-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); }
  .tour-tab[aria-selected="true"] .tt-step { background: none; color: #fff; }
  .tour-panel { padding: 14px; }
  .tw-card { padding: 14px; }
  .next-steps { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Start with the problem: the Allion Build Assistant */
.as-head { gap: 10px; padding: 12px 16px; background: var(--white); }
.as-head .ai-tile.sm { width: 30px; height: 30px; border-radius: 8px; }
.as-head .ai-tile.sm svg { width: 17px; height: 17px; }
.example-body { min-height: 360px; }
.as-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.as-foot p { margin: 0; }
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px !important; }
.as-chips span { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-size: 12px; color: var(--text-2); }
/* Rising bubbles stay in the side margins, clear of the text */
.bg-bubbles { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 7%, transparent 12%, transparent 88%, #000 93%); mask-image: linear-gradient(90deg, #000 0, #000 7%, transparent 12%, transparent 88%, #000 93%); }

/* ==========================================================================
   Why Allion Build: reasons on the left, the Allion Build app on the right
   ========================================================================== */
#why .section-title { margin-bottom: 12px; }
.why-sub { max-width: 640px; margin: 0 0 40px; font-size: 18px; line-height: 28px; color: var(--text-2); }
.why-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.why-bento.why-list { display: flex; flex-direction: column; gap: 10px; }
.why-list .why-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px 16px; min-height: 0; }
.why-list .why-card > div { flex: 1; }
.why-list .why-card h3 { margin-bottom: 2px; font-size: 16px; line-height: 22px; }
.why-list .why-card p { font-size: 14px; line-height: 20px; }
.why-list .why-card > div > p:not(.ag-line) { margin-bottom: 0; }
.why-list .why-card .tile-icon, .why-list .why-card .ai-tile { width: 36px; height: 36px; flex: none; }
.why-list .ag-line { display: none; }

/* The app, with pill tabs above it */

@media (max-width: 1023px) { .why-split { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .why-sub { font-size: 16px; line-height: 24px; margin-bottom: 24px; } }

/* Why: the app tour (steps left, app right), then the five reasons in a row */
.why-split { display: block; }
.tour.why-tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; position: static; }
.tour.why-tour .tour-stage { order: 0; min-height: 440px; }
.why-bento.why-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.why-list .why-card { flex-direction: column; gap: 12px; padding: 16px; }
.why-list .why-card h3 { font-size: 15px; line-height: 21px; }
.why-list .why-card p { font-size: 13px; line-height: 19px; }

/* Problem: the footer line and button sit under the five problems */
.problem-foot.in-list { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 12px; padding: 20px 4px 0; border-top: 0; }
.problem-foot.in-list p { font-size: 16px; line-height: 25px; }

@media (max-width: 1023px) {
  .tour.why-tour { grid-template-columns: 1fr; gap: 20px; }
  .tour.why-tour .tour-stage { order: -1; min-height: 0; }
  .why-bento.why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) { .why-bento.why-list { grid-template-columns: 1fr; } .why-list .why-card { flex-direction: row; } }
.why-tour .tour-caption { display: none; }
.net-why { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 50%, #000 90%); mask-image: linear-gradient(90deg, transparent 0, transparent 50%, #000 90%); }

/* Tour: the Design step */
.ds-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ds-opt { padding: 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); }
.ds-opt.picked { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 80, 128, 0.12); background: var(--white); }
.ds-shot { position: relative; height: 104px; }
.ds-desk { position: absolute; left: 0; top: 0; width: 80%; height: 92px; display: flex; flex-direction: column; gap: 5px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--white); }
.ds-phone { position: absolute; right: 0; bottom: 0; width: 30%; height: 84px; display: flex; flex-direction: column; gap: 4px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); box-shadow: 0 8px 16px -8px rgba(15, 30, 46, 0.35); }
.ds-shot i { display: block; border-radius: 3px; }
.ds-nav { height: 5px; width: 40%; background: #D6DEE4; }
.ds-hero { height: 26px; }
.ds-row { display: flex; gap: 4px; }
.ds-row i { flex: 1; height: 16px; background: #EEF1F3; }
.ds-cta { height: 8px; width: 34%; }
.ds-line { height: 4px; background: #E3E8EC; }
.ds-line.short { width: 60%; }
.ds-a .ds-hero { background: linear-gradient(135deg, #5FA8A0, #0F4C5C); }
.ds-a .ds-cta { background: #0F4C5C; }
.ds-b .ds-hero { background: linear-gradient(135deg, #F4A261, #E07A5F); }
.ds-b .ds-cta { background: #E07A5F; }
.ds-b .ds-row i { background: #FBEDE6; }
.ds-label { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; font-size: 12px; color: var(--text-3); }
.ds-label b { font-size: 13px; font-weight: 600; color: var(--text); }
.ds-pick { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff !important; font-size: 11px; font-weight: 600; }
.ds-pick svg { width: 11px; height: 11px; }
.ds-style { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.ds-sw { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(15, 30, 46, 0.1); }
.ds-font { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12px; color: var(--text-3); }
.ds-font b { font-size: 20px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.ds-sw.c1 { background: #0F4C5C; } .ds-sw.c2 { background: #5FA8A0; } .ds-sw.c3 { background: #F2E8DC; } .ds-sw.c4 { background: #E07A5F; }
.ds-name { display: flex; flex-direction: column; line-height: 16px; }
.ds-name span { font-size: 11px; color: var(--text-3); }
.ds-label { align-items: center; }
@media (max-width: 767px) { .ds-pick { padding: 2px 6px; font-size: 10px; } .ds-font span, .ds-font { font-size: 11px; } }
/* Assistant header: same window bar as the hero app */
.as-head.ui-bar { gap: 12px; height: 48px; padding: 0 16px; background: var(--white); }
.as-head .ui-title svg { width: 18px; height: 18px; }
/* Assistant: attach files */
.as-ph { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-file { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px !important; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.as-file-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: #E7F7F0; color: #047857; }
.as-file-ic svg { width: 16px; height: 16px; }
.as-file-name { display: flex; flex-direction: column; line-height: 16px; }
.as-file-name b { font-size: 12px; font-weight: 600; color: var(--text); }
.as-file-name span { font-size: 11px; color: var(--text-3); }
.as-file-x { margin-left: 6px; font-size: 14px; color: var(--text-3); }
/* App window bars: project selector and New chat, like the app */
.ui-select { display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.ui-select svg { width: 14px; height: 14px; color: var(--text-3); }
.ui-new { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--white); font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; }
.ui-new svg { width: 13px; height: 13px; color: var(--accent); }
.hero-ui .ui-new { margin-left: auto; }
.tour-stage .ui-bar { display: flex; align-items: center; gap: 12px; }
.tour-stage .ui-new { margin-left: auto; }
.as-head .ui-new { order: 3; }
@media (max-width: 767px) { .ui-project.ui-select { display: inline-flex; } .ui-new { padding: 4px 8px; } }
@media (max-width: 420px) { .ui-new { font-size: 0; gap: 0; } .ui-new svg { width: 14px; height: 14px; } }
/* Window bars matched to the platform: logo, project dropdown, then New chat and your avatar on the right */
.ui-bar { gap: 10px; height: 52px; padding: 0 14px; }
.ui-bar .ui-title { font-size: 14px; font-weight: 600; }
.ui-project.ui-select { height: 32px; padding: 0 10px 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); font-size: 13px; font-weight: 500; color: var(--text); }
.ui-select svg { width: 15px; height: 15px; color: var(--text-2); }
.ui-new { height: 32px; margin-left: auto; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.ui-new svg { color: var(--text-2); }
.ui-avatar-me { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #EDEAE4; color: var(--text); font-size: 12px; font-weight: 600; }
.as-head .ui-new, .tour-stage .ui-new, .hero-ui .ui-new { margin-left: auto; order: 0; }
@media (max-width: 1279px) { .ui-avatar-me { display: none; } }
@media (max-width: 420px) { .ui-new { width: 32px; padding: 0; justify-content: center; } }
@media (max-width: 767px) { .ui-new { width: 32px; padding: 0; justify-content: center; font-size: 0; gap: 0; } .ui-new svg { width: 15px; height: 15px; } }

/* "Start with the problem": the intro as a highlighted callout */
.split-head-copy { position: relative; padding: 22px 24px 22px 26px; border-radius: 14px; font-size: 17px; line-height: 28px; color: var(--text-2);
  background: linear-gradient(135deg, #EAF4FA, #F3FAFC 60%, #FFFFFF); border: 1px solid #D6E8F2; box-shadow: 0 16px 36px -24px rgba(0, 80, 128, 0.35); }
.split-head-copy::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--ai-from-light), var(--ai-to-light)); }
.split-head-copy strong { display: block; margin-top: 8px; font-size: 19px; line-height: 27px; font-weight: 600; color: var(--text);
  background: linear-gradient(transparent 62%, rgba(2, 170, 204, 0.22) 62%); background-repeat: no-repeat; width: fit-content; }
/* How it works, step 3: the hub is the Allion Build badge */
.a-hub-card { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px 7px 9px; border-radius: 10px; background: var(--white);
  border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--ai-from-light), var(--ai-to-light)) border-box;
  box-shadow: 0 10px 24px -10px rgba(0, 80, 128, 0.55); animation: pulse-ring 2.2s ease-out infinite; }
.a-hub-card svg { width: 20px; height: 20px; }
.a-hub-card > span { display: flex; flex-direction: column; line-height: 13px; text-align: left; }
.how-card .a-hub-card b { font-size: 11px; font-weight: 600; color: var(--text); }
.how-card .a-hub-card em { font-style: normal; font-size: 9.5px; font-weight: 500; color: var(--accent); }

/* Tour app window: the platform sidebar */
.tour-stage { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; }
.ts-side { grid-row: 1 / span 6; grid-column: 1; align-self: stretch; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--line); background: #F3F1EC; }
.tour-stage > .tour-panel { grid-column: 2; }
.ts-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; color: var(--text); transition: background .25s, box-shadow .25s; }
.ts-item svg { width: 17px; height: 17px; color: var(--text-2); flex: none; }
.ts-item.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(0, 80, 128, 0.35); font-weight: 600; }
.ts-item.on svg { color: var(--accent); }
.ts-item[data-nav="home"] { margin-bottom: 6px; }
.ts-project { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.ts-project-ic { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent); }
.ts-project-ic svg { width: 14px; height: 14px; }
.ts-project-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; line-height: 16px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-project-name i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-3); }
.ts-updown { flex: none; width: 14px; height: 14px; color: var(--text-3); }
.ts-me { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.ts-me-av { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; }
.ts-me > span:last-child { display: flex; flex-direction: column; font-size: 12px; line-height: 15px; }
.ts-me b { font-weight: 600; color: var(--text); }
.ts-me i { font-style: normal; color: var(--text-3); }
.tour-stage .tour-panel { padding: 22px; }
.tour-stage .tw-card { max-width: none; }
@media (max-width: 1279px) { .tour-stage { grid-template-columns: 168px minmax(0, 1fr); } }
@media (max-width: 767px) { .tour-stage { grid-template-columns: 1fr; } .ts-side { display: none; } .tour-stage > .tour-panel { grid-column: 1; } }

/* Human + AI: the engineer's AI toolkit, the engineer's review, and the owner's approval */
.rv-kit .rv-head b { font-size: 14px; }
.kit-list { list-style: none; margin: 12px 0 0; padding: 0; }
.kit-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.kit-st { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #E6F4EE; color: var(--success); }
.kit-st svg { width: 12px; height: 12px; }
.kit-st .ag-spin { display: none; }
.kit-list li.work .kit-st { background: none; } .kit-list li.work .kit-st .ag-spin { display: inline-block; } .kit-list li.work .kit-st svg { display: none; }
.kit-list li.wait { opacity: .45; } .kit-list li.wait .kit-st { background: var(--sand); color: transparent; }
.kit-list li { transition: opacity .3s; }
.kit-t { flex: 1; }
.kit-r { font-size: 12px; color: var(--text-3); }
.kit-foot { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: 12.5px; color: var(--accent); }
.kit-foot svg { width: 14px; height: 14px; }
.kit-copy { margin: 20px 0 0; max-width: 560px; font-size: 16px; line-height: 25px; color: var(--text-2); }

@media (min-width: 768px) {
  .review { min-height: 660px; }
  .review .rv-ai { width: 60%; top: 0; left: 0; }
}
@media (max-width: 767px) { .kit-copy { font-size: 15px; } }

/* Human + AI: a clean flow. Toolkit on top, then the engineer and you side by side */
@media (min-width: 768px) {
  .review { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; min-height: 0; align-items: start; }
  .review .rv-card { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: auto; }
  .review .rv-ai { grid-column: 1 / -1; }
  /* hand-off arrows */
}
.kit-list li { padding: 8px 0; }
@media (max-width: 767px) { .media-copy .kit-copy { order: 3; margin-top: 0; font-size: 15px; line-height: 23px; } }

/* How it works: service illustrations (a conversation, priorities, a team, ongoing improvement) */
.art-call, .art-board, .art-grow { padding: 14px; display: flex; flex-direction: column; justify-content: center; }
.c-card { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 12px 24px -16px rgba(15, 30, 46, 0.35); }
.how-card .c-head { display: flex; align-items: center; gap: 8px; }
.c-head .ab-person { width: 28px; height: 28px; font-size: 10px; }
.c-head > span:nth-child(2) { display: flex; flex-direction: column; line-height: 14px; }
.how-card .c-head b { font-size: 12px; font-weight: 600; } .how-card .c-head i { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.c-head em { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 10px; font-weight: 600; color: #047857; }
.c-head em i { width: 6px; height: 6px; border-radius: 50%; background: #10B981; }
.how-card .c-msg { margin-top: 8px; padding: 7px 9px; border-radius: 4px 10px 10px 10px; background: #F4F8FB; font-size: 11.5px; line-height: 16px; }
.c-notes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px !important; }
.how-card .c-notes span { padding: 2px 7px; border-radius: 999px; background: #FEF1DC; font-size: 10px; color: #8A4A0C; }
.art-board { flex-direction: row; align-items: stretch; gap: 8px; }
.b-col { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.7); border: 1px dashed var(--line-strong); }
.b-col b { font-size: 11px; font-weight: 600; color: var(--text-2); }
.n { padding: 6px 7px; border-radius: 5px; font-size: 10.5px; line-height: 13px; color: var(--text); box-shadow: 0 4px 8px -6px rgba(15, 30, 46, 0.4); }
.n1 { background: #DCEFF8; transform: rotate(-1.5deg); } .n2 { background: #FEF1DC; transform: rotate(1deg); } .n3 { background: #E9F7F0; transform: rotate(-1deg); }
.g-line { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.g-line::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; border-top: 2px dashed var(--line-strong); }
.g-line li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 25%; text-align: center; }
.g-line b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 1.5px solid var(--line-strong); font-size: 8.5px; font-weight: 700; color: var(--text-2); }
.g-line .g-done b { background: #10B981; border-color: #10B981; color: #fff; }
.g-line .g-now b { border-color: var(--ai-to-light); color: var(--accent); box-shadow: 0 0 0 4px rgba(2, 170, 204, 0.18); }
.g-line span { font-size: 10px; color: var(--text-2); }
.how-card .g-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; justify-content: center; font-size: 11.5px; color: var(--text-2); }
.art-board .b-col { min-width: 0; }
.n { overflow-wrap: anywhere; }
.art-call .c-card { min-width: 0; }
.art-grow { justify-content: center; height: 200px; }
@media (max-width: 1279px) { .g-line span { font-size: 9px; } .g-line li:nth-child(2) span { visibility: hidden; } .art-board { gap: 5px; padding: 10px; } .b-col { padding: 6px; } .c-notes span:nth-child(3) { display: none; } }
@media (max-width: 767px) { .g-line li:nth-child(2) span { visibility: visible; } .c-notes span:nth-child(3) { display: inline; } }
/* Board notes: never break words mid-way */
.n { overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (max-width: 1279px) { .n { font-size: 9.5px; padding: 5px 6px; } .b-col b { font-size: 10px; } }
/* Phones: keep these illustrations' own layouts */
@media (max-width: 767px) {
  .how-card.v2 .art-board { display: flex; flex-direction: row; }
  .how-card.v2 .art-call, .how-card.v2 .art-grow { display: flex; flex-direction: column; justify-content: center; }
  .how-card.v2 .art-grow { height: 180px; }
}

/* How it works: motion, started when the cards come into view */
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-14px) rotate(-6deg); } }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 1.5deg; } }
@keyframes line-fill { from { width: 0; } to { width: 66%; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(2, 170, 204, 0.45); } 100% { box-shadow: 0 0 0 10px rgba(2, 170, 204, 0); } }
@keyframes blink-soft { 50% { opacity: .35; } }
.c-head em i { animation: blink-soft 1.6s ease-in-out infinite; }
.how-grid.in .c-notes span { animation: pop-in .4s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.how-grid.in .c-notes span:nth-child(1) { animation-delay: .6s; } .how-grid.in .c-notes span:nth-child(2) { animation-delay: .9s; } .how-grid.in .c-notes span:nth-child(3) { animation-delay: 1.2s; }
.how-grid.in .n { animation: drop-in .5s cubic-bezier(.2, .7, .2, 1) backwards, sway 5s ease-in-out 1.6s infinite; }
.how-grid.in .b-col:nth-child(1) .n:nth-child(2) { animation-delay: .5s, 1.6s; } .how-grid.in .b-col:nth-child(1) .n:nth-child(3) { animation-delay: .7s, 2.2s; }
.how-grid.in .b-col:nth-child(2) .n:nth-child(2) { animation-delay: .9s, 2.8s; } .how-grid.in .b-col:nth-child(2) .n:nth-child(3) { animation-delay: 1.1s, 1.9s; }
.how-grid.in .b-col:nth-child(3) .n:nth-child(2) { animation-delay: 1.3s, 2.5s; }
.g-line::after { content: ""; position: absolute; left: 12px; top: 11px; height: 2px; width: 0; background: linear-gradient(90deg, #10B981, var(--ai-to-light)); }
.how-grid.in .g-line::after { animation: line-fill 2.2s ease .4s forwards; }
.how-grid.in .g-line li { animation: pop-in .4s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.how-grid.in .g-line li:nth-child(2) { animation-delay: .9s; } .how-grid.in .g-line li:nth-child(3) { animation-delay: 1.5s; } .how-grid.in .g-line li:nth-child(4) { animation-delay: 2.1s; }
.g-line .g-now b { animation: ring 1.8s ease-out 2.4s infinite; }
.g-line li:last-child b { animation: blink-soft 2s ease-in-out 2.6s infinite; }
@media (prefers-reduced-motion: reduce) { .how-grid .n, .how-grid .c-notes span, .how-grid .g-line li, .g-line b, .c-head em i { animation: none !important; } .g-line::after { width: 66%; } }
.g-line::before, .g-line::after { z-index: 0; }
.g-line li { z-index: 1; }
.g-line li b { position: relative; z-index: 1; }
/* Hero approval row, in the app's format: "Approved by <name>", then the part and time */
.ui-initial { background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.ui-appr { display: flex; flex-direction: column; line-height: 18px; }
.ui-appr b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.ui-appr span { font-size: 12.5px; color: var(--text-2); }
/* Human + AI: the engineer's photo on top, the toolkit card overlapping its lower edge */
.rv-hero { display: block; width: 100%; height: 230px; object-fit: cover; object-position: 60% 30%; border-radius: 16px; box-shadow: 0 24px 50px -28px rgba(15, 30, 46, 0.5); }
@media (min-width: 768px) {
  .review .rv-hero { grid-column: 1 / -1; grid-row: 1; }
  .review .rv-ai { grid-row: 2; margin: -110px 20px 0; z-index: 1; }
}
@media (max-width: 767px) { .rv-hero { height: 190px; order: -1; } .review .rv-ai { margin-top: -70px; margin-left: 12px; margin-right: 12px; width: auto; z-index: 1; } }
/* Sam checks and passes it on; only the owner approves */
/* Human + AI: photo and toolkit only */
@media (min-width: 768px) { .review { grid-template-columns: 1fr; } }
/* Why: balanced spacing. Steps start level with the app window and fill its height evenly */
.why-sub { margin-bottom: 36px; }
@media (min-width: 1024px) {
  .tour.why-tour { align-items: stretch; gap: 48px; }
  .tour.why-tour .tour-tabs { justify-content: space-between; gap: 6px; }
  .tour.why-tour .tour-tab { padding: 16px 20px; }
  .tour.why-tour .tour-stage { min-height: 470px; }
}
.why-bento.why-list { margin-top: 48px; }

/* Start with the problem: the Assistant, drawn like the platform's Assistant view */
.as-head.as-view { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 14px; background: linear-gradient(90deg, var(--white), #EEF6F9); border-bottom: 1px solid var(--line); }
.as-proj { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); font-size: 13.5px; font-weight: 500; color: var(--text); }
.as-proj svg { width: 15px; height: 15px; color: var(--text-2); }
.as-dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; }
.as-tools { display: inline-flex; align-items: center; gap: 10px; }
.as-moon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); color: var(--text); }
.as-moon svg { width: 16px; height: 16px; }
.as-me { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--text); }
.as-foot { padding: 14px 16px 16px; }
.as-box { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); }
.as-box p { margin: 0; }
.as-box .as-file { margin: 0 !important; align-self: flex-start; }
.as-box .as-ph { font-size: 14px; color: var(--text-3); }
.as-actions { display: flex; align-items: center; gap: 6px; }
.as-ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--text-2); }
.as-ic svg { width: 17px; height: 17px; }
.as-start { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
.as-start svg { width: 15px; height: 15px; }
.as-foot .as-chips { margin: 10px 0 0 !important; }
.as-foot .as-chips span { border-radius: 8px; }

/* Reduced motion: also stop spinners and pulsing dots drawn with ::before / ::after */
@media (prefers-reduced-motion: reduce) { *::before, *::after { animation: none !important; transition: none !important; } }
