/* Shared base for the lab's inner pages (DrivenOS pages etc.): tokens, reset, nav, buttons,
   FAQ, footer. Copied from the homepage's inline <style> in index.html — keep the two in step
   until the lab is ported to Astro, where these become shared components. */
:root {
  --brand: #3e8a63; --brand-strong: #245c3f; --brand-ink: #f1f6f3; --green-panel: #0b2419;   /* Pine (was lime #6fc257) */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(72px, 7vw, 120px);
  --head-gap: clamp(40px, 4.5vw, 72px);
  --radius: 16px;
}
[data-theme="dark"] {
  --bg: #0a0a0a; --surface: #161616; --surface-2: #1f1f1f; --line: #262626;
  --text: #ffffff; --muted: #a5a5a5; --faint: #3a3a3a;
  --accent: var(--brand); --on-accent: var(--brand-ink);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; transition: background-color .5s, color .5s; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* Nav (layout + blur band; links and dropdowns in demos/nav-links.css + demos/nav-menu.css) */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); }
.nav::before { content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: calc(100% + 32px);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  -webkit-mask: linear-gradient(#000 50%, transparent); mask: linear-gradient(#000 50%, transparent);
  opacity: 0; transition: opacity .5s; pointer-events: none; }
.nav.is-scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 15px Inter, sans-serif; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.nav__right { display: flex; gap: 10px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 500 13px Inter, sans-serif; }
/* Button — "Sweep" (same as index.html) */
.roll { --b-ink: var(--text); --b-acc: var(--accent); --b-on: var(--on-accent);
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; height: 48px; padding: 0 26px; border-radius: 999px;
  background: transparent; color: var(--b-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-ink) 32%, transparent);
  font: 600 14px Inter, sans-serif; transition: color .45s var(--ease); }
.roll::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--b-acc); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.roll:hover::before, .roll:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.roll:hover, .roll:focus-visible { color: var(--b-on); }
.roll__label { display: block; height: 1.2em; line-height: 1.2em; overflow: hidden; }
.roll__label span { display: block; transition: transform .5s var(--ease); }
.roll:hover .roll__label span { transform: translateY(-100%); }
.nav .roll { height: 40px; padding: 0 20px; white-space: nowrap; }
@media (max-width: 480px) { .nav .roll { padding: 0 14px; font-size: 14px; } }   /* room for "Start a project" on phones */

/* FAQ (same as index.html) */
.faq__grid { display: grid; grid-template-columns: 1fr 1.9fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.faq__side { position: sticky; top: 120px; }
.faq__side h2 { margin: 28px 0 22px; max-width: 14ch; }
.faq__side p { color: var(--muted); max-width: 30ch; }
.faq__side a { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.faq__side a:hover { color: var(--accent); }
.qa { border-bottom: 1px dashed var(--line); }
.qa:first-child { border-top: 1px dashed var(--line); }
.qa button { width: 100%; display: grid; grid-template-columns: clamp(56px, 6vw, 86px) 1fr 28px; align-items: center; text-align: left; padding: 30px 0; font: 600 clamp(18px, 1.6vw, 22px)/1.3 Inter; letter-spacing: -.02em; }
.qa__num { color: var(--muted); transition: color .3s; }
.qa.is-open .qa__num, .qa button:hover .qa__num { color: var(--accent); }
.qa__icon { justify-self: end; position: relative; width: 16px; height: 16px; transition: transform .5s var(--ease); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; }
.qa__icon::after { transform: rotate(90deg); }
.qa.is-open .qa__icon { transform: rotate(135deg); color: var(--accent); }
.qa__body { height: 0; overflow: hidden; }
.qa__body p { padding: 0 44px 30px clamp(56px, 6vw, 86px); color: var(--muted); max-width: 72ch; }

/* Footer (same as index.html) */

/* Closing call to action — same design as the homepage's "Booked Solid" (index.html .vid):
   the section pins, the image frame grows from a small rounded window to full screen, text fades in.
   Inner pages use a sentence heading (.vid__head) instead of the homepage's giant two-word wordmark. */
.vid { position: relative; height: 300vh; }
.vid__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.vid__frame { position: absolute; inset: 0; clip-path: inset(22% 28% 22% 28% round 24px); background: #000; }
.vid__media, .vid__media img { display: block; width: 100%; height: 100%; }
.vid__media img { object-fit: cover; object-position: center; transform: scale(1.3); transform-origin: center top; }
.vid__frame::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12); pointer-events: none; }
.vid__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center; padding-inline: var(--gutter); }
.vid__eyebrow.ebx { color: #fff; }
.vid__eyebrow.ebx .ebx-star { color: var(--brand); }
.vid__head { margin-top: 26px; max-width: 17ch; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5.4vw, 88px); line-height: 1.02; letter-spacing: -.03em; }
.vid__cta { display: flex; flex-direction: column; align-items: center; gap: 26px; margin-top: 22px; }
.vid__cta p { max-width: 46ch; font-size: var(--fs-body-l); line-height: 1.55; color: rgba(255,255,255,.85); }
.vid__cta .roll { --b-ink: #fff; --b-acc: var(--brand); --b-on: var(--brand-ink); background: #0b110e; height: 56px; padding: 0 30px; font-size: 15px; }

[data-appear] { opacity: 0; transform: translateY(40px); }

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__side { position: static; }
    }
@media (prefers-reduced-motion: reduce) {
  .vid { height: auto; } .vid__sticky { position: relative; } .vid__frame { clip-path: none; }
  [data-appear] { opacity: 1 !important; transform: none !important; }
  * { transition-duration: 1ms !important; }
}
