/* Brella OS, brellaos.com
 * Inter at a medium weight, hairlines, quiet mono labels, real product screens. Light by default: the brand's warm paper
 * and ink. Dark when picked: Brella's Firefly colours, warm charcoal and the neon lime. Product surfaces (the hero window,
 * Bird's demo, the map, every screen) stay in Firefly in both modes, the way the product's own screens are captured. */

@font-face { font-family: 'Inter'; src: url('../fonts/Inter-var-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/SpaceGrotesk-var-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope-var-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

/* ------------------------------------------------------------ tokens: light (warm paper and ink) by default, dark (Firefly) when picked
 * The lime is a fill in both; as a word or a mark it is the darker lime-ink on paper. --shade is the colour every cast
 * shadow is drawn in and --shade-a scales their depth: black at full depth on charcoal, warm ink at 40% on paper. */
:root {
  color-scheme: light;
  --bg: #F7F5F0;
  --bg-2: #FFFFFF;          /* raised: cards and panels */
  --bg-3: #EFECE5;
  --bg-foot: #F1EEE7;
  --line: rgba(28, 24, 18, .09);
  --line-2: rgba(28, 24, 18, .15);
  --line-3: rgba(28, 24, 18, .34);
  --text: #15120E;
  --text-2: rgba(21, 18, 14, .7);
  --text-3: rgba(21, 18, 14, .52);
  --hover: rgba(21, 18, 14, .05);
  --inverse: #15120E;
  --on-inverse: #F7F5F0;
  --lime: #C8F04C;
  --lime-hi: #D6F66E;
  --on-lime: #141210;
  --lime-ink: #557312;      /* the lime as a word or a mark */
  --lime-soft: rgba(132, 170, 24, .14);
  --focus: #557312;         /* the keyboard focus ring: the lime itself is invisible on paper */
  --warn: #A83E24;          /* a cross, a warning, as text */
  --blue: #6C86FF;
  --red: #C2412F;
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(21, 18, 14, .1);
  --shade: 64, 50, 30;
  --shade-a: .4;
  --shadow: 0 40px 80px -36px rgba(64, 50, 30, .38);
  --hero-shadow: 0 50px 90px -50px rgba(64, 50, 30, .5);
  --shot-line: rgba(28, 24, 18, .2);   /* the hairline round the home hero's screen */
  --mark: brightness(0);    /* the bird reads as ink on paper */
  --mark-on-inverse: none;
  --field-dot: 21, 18, 14;
  --field-hot: 112, 150, 18;
  --field-hi: 168, 210, 44;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 3.4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
/* dark: the product's Firefly palette, warm charcoal and the neon lime */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #12100D; --bg-2: #1A1814; --bg-3: #23201B; --bg-foot: #0D0B09;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14); --line-3: rgba(255, 255, 255, .32);
  --text: #F7F4ED; --text-2: rgba(247, 244, 237, .7); --text-3: rgba(247, 244, 237, .48);
  --hover: rgba(255, 255, 255, .07); --inverse: #F7F4ED; --on-inverse: #14110D;
  --lime-ink: #C8F04C; --lime-soft: rgba(200, 240, 76, .12); --focus: #C8F04C; --warn: #E9823F; --red: #FF7B6B;
  --glass: rgba(40, 36, 31, .66); --glass-line: rgba(255, 255, 255, .12);
  --shade: 0, 0, 0; --shade-a: 1;
  --shadow: 0 50px 100px -40px rgba(0, 0, 0, .95); --hero-shadow: 0 70px 140px -60px #000, 0 0 0 1px rgba(0, 0, 0, .4);
  --shot-line: rgba(255, 255, 255, .12);
  --mark: none; --mark-on-inverse: brightness(0);
  --field-dot: 247, 244, 237; --field-hot: 200, 240, 76; --field-hi: 244, 255, 214;
}
/* product surfaces keep Firefly whatever the page is wearing */
.bdemo, .map {
  color-scheme: dark;
  --text: #F7F4ED; --text-2: rgba(247, 244, 237, .7); --text-3: rgba(247, 244, 237, .48);
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14); --lime-ink: #C8F04C;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'cv11', 'ss01'; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
::selection { background: rgba(200, 240, 76, .35); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; z-index: 100; left: 16px; top: -60px; padding: 8px 12px; border-radius: 6px; background: var(--lime); color: var(--on-lime); }
.skip:focus { top: 16px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* the theme changes as a circle opening from the switch you pressed */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ------------------------------------------------------------ type */
.h1 { font-weight: 500; font-size: clamp(34px, 3.2vw, 50px); line-height: 1.06; letter-spacing: -.034em; text-wrap: balance; }
.h2 { font-weight: 500; font-size: clamp(28px, 2.4vw, 40px); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.h3 { font-weight: 500; font-size: clamp(24px, 1.9vw, 32px); line-height: 1.16; letter-spacing: -.026em; text-wrap: balance; }
.h4 { font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -.016em; }
.p { color: var(--text-2); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.label { font-size: 14px; color: var(--text-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.eyebrow b { font-weight: 500; color: var(--lime-ink); }
.center { text-align: center; }
.fine { margin-top: 28px; font-size: 13px; line-height: 1.6; color: var(--text-3); max-width: 96ch; }
.fine a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font: 500 15px/1 var(--font); letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .15s, box-shadow .2s, transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--lime { background: var(--lime); color: var(--on-lime); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .1), 0 8px 24px -10px rgba(200, 240, 76, .55); }
.btn--lime:hover { background: var(--lime-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .1), 0 10px 30px -8px rgba(200, 240, 76, .7); }
.btn--white { background: var(--inverse); color: var(--on-inverse); }
.btn--white:hover { opacity: .9; }
.btn--ghost, .btn--quiet { background: var(--hover); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover, .btn--quiet:hover { background: var(--line-2); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(2px); }
.btn svg { width: 14px; height: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btns--center { justify-content: center; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--line-3); }
.more:hover { text-decoration-color: currentColor; }
.more::after { content: '↗'; display: inline-block; text-decoration: none; }

/* ------------------------------------------------------------ top bar and dock */
.topbar { position: absolute; z-index: 20; inset: 0 0 auto 0; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.025em; white-space: nowrap; }
.brand img { width: 24px; height: 24px; filter: var(--mark); }
.topbar__end { display: flex; align-items: center; gap: 10px; }
.topbar__signin { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .15s, color .15s; }
.topbar__signin:hover { background: var(--hover); color: var(--text); }
.themebtn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .15s, color .15s; }
.themebtn:hover { background: var(--hover); color: var(--text); }
.themebtn svg { width: 17px; height: 17px; }
.themebtn .i-sun, :root[data-theme='dark'] .themebtn .i-moon { display: none; }
:root[data-theme='dark'] .themebtn .i-sun { display: block; }
@media (max-width: 760px) { .topbar { display: none; } }
/* Sign in lives in the top bar; the dock carries it only where the top bar is hidden */
.dock__item.dock__item--narrow { display: none; }
@media (max-width: 760px) { .dock__item.dock__item--narrow { display: inline-flex; } }

.dock { position: fixed; z-index: 50; left: 50%; top: 0; display: flex; align-items: center; gap: 6px; transform: translate(-50%, 22px); transition: transform .75s cubic-bezier(.65, 0, .2, 1); will-change: transform; }
.dock.is-down { transform: translate(-50%, calc(100svh - 100% - max(18px, env(safe-area-inset-bottom)))); }
.dock__bar { display: flex; align-items: center; gap: 2px; height: 42px; padding: 4px; border-radius: 12px; background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid var(--glass-line); box-shadow: 0 10px 30px rgba(var(--shade), calc(.28 * var(--shade-a))), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dock__item { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 8px; font-size: 14px; line-height: 1; color: var(--text); opacity: .92; white-space: nowrap; transition: background-color .15s; }
.dock__item:hover { background: var(--hover); opacity: 1; }
.dock__item[aria-current='page'], .dock__item.is-current { background: var(--inverse); color: var(--on-inverse); opacity: 1; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08), 0 1px 2px rgba(var(--shade), calc(.3 * var(--shade-a))); }
.dock__home { flex: none; padding: 0 11px; transition: background-color .5s var(--ease) .25s, box-shadow .5s var(--ease) .25s; }
.dock__home img { flex: none; width: 18px; min-width: 18px; max-width: none; height: 18px; filter: var(--mark); transition: filter .4s .25s; }
.dock__home[aria-current='page'] img { filter: var(--mark-on-inverse); }
/* as the dock lands at the bottom, the bird turns neon */
.dock.is-down .dock__home { background: var(--lime); color: var(--on-lime); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 0 22px -4px rgba(200, 240, 76, .75); }
.dock.is-down .dock__home img { filter: brightness(0); }
@media (prefers-reduced-motion: no-preference) { .dock.is-down .dock__home img { animation: perch .7s var(--ease) .55s both; } }
@keyframes perch { 0% { transform: none; } 40% { transform: translateY(-3px) rotate(-8deg); } 100% { transform: none; } }
.dock__item .arrow { display: inline-block; font-size: 12px; opacity: .75; transition: transform .3s var(--ease); }
.dock.is-down .dock__item .arrow { transform: rotate(180deg); }
.dock__cta { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 12px; background: var(--lime); color: var(--on-lime); font: 500 14px/1 var(--font); white-space: nowrap; box-shadow: 0 10px 30px rgba(var(--shade), calc(.28 * var(--shade-a))), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .1); }
.dock__cta:hover { background: var(--lime-hi); }
.dock__menu { position: absolute; left: 50%; bottom: calc(100% + 8px); width: 600px; margin-left: -300px; padding: 8px; border-radius: 14px; background: var(--bg-2);
  border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(var(--shade), calc(.35 * var(--shade-a))); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .25s var(--ease), visibility 0s .25s; }
.dock__menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .25s var(--ease); }
.dock:not(.is-down) .dock__menu { top: calc(100% + 8px); bottom: auto; transform: translateY(-6px); }
.dock:not(.is-down) .dock__menu.is-open { transform: none; }
.dock__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dock__h { padding: 8px 11px 4px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.dock__menu a { display: block; padding: 9px 11px; border-radius: 8px; }
.dock__menu a:hover, .dock__menu a:focus-visible { background: var(--hover); }
.dock__menu b { display: block; font-weight: 500; font-size: 14px; }
.dock__menu span { display: block; font-size: 13px; color: var(--text-3); }
@media (max-width: 640px) { .dock__item--wide { display: none; } .dock__menu { width: calc(100vw - 24px); margin-left: calc(12px - 50vw); } .dock__cols span { display: none; } }

/* ------------------------------------------------------------ inner pages' hero: one screen, copy beside a screen */
.hero { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 72px; overflow: hidden; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1100px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 72px; } }
.hero__copy .h1 { max-width: 13em; }
.hero__copy .p { max-width: 34em; margin-top: 22px; }
.hero__copy .btns { margin-top: 28px; }
.hero__art { perspective: 1800px; }
.hero--short { min-height: 100svh; }
.hero--brief { min-height: 0; padding: 150px 0 24px; }
.hero--brief .hero__copy .p { max-width: 44em; }
.crumbs { display: flex; gap: 8px; margin-bottom: 22px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: in .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .07s; }
  .hero__copy > :nth-child(3) { animation-delay: .14s; }
  .hero__copy > :nth-child(4) { animation-delay: .21s; }
  .hero__art > * { animation: stand 1.3s var(--ease) .15s both; transform-origin: 50% 100%; }
}
@keyframes in { from { opacity: 0; transform: translateY(16px); } }
@keyframes stand { from { opacity: 0; transform: rotateX(16deg) translateY(50px) scale(.96); } }

/* ------------------------------------------------------------ home: the launch */
.launch { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(128px, 17vh, 176px) 0 clamp(56px, 7vw, 104px); }
.launch__field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.launch__copy { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; will-change: transform, opacity; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px 0 11px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 13.5px; color: var(--text-2); transition: box-shadow .2s, color .2s; }
.pill:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.pill i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.pill i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--lime); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .pill i::after { animation: ring 2.4s var(--ease) infinite; } }
@keyframes ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.pill b { font-weight: 500; color: var(--text); }
.pill .arr { color: var(--text-3); transition: transform .2s var(--ease); }
.pill:hover .arr { transform: translateX(2px); }
.display { margin-top: 28px; font-weight: 500; font-size: clamp(36px, 3.7vw, 56px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.display .mute { display: block; color: var(--text-3); }
.launch__sub { margin-top: 22px; max-width: 37em; font-size: clamp(16px, 1.2vw, 18.5px); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.launch .btns { margin-top: 32px; justify-content: center; }
.launch__stage { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), 1180px); margin: clamp(56px, 8vh, 88px) auto 0; perspective: 2200px; perspective-origin: 50% 0; }
.launch__tilt { position: relative; transform-origin: 50% 100%; transform: rotateX(22deg) scale(.92); will-change: transform; }
/* the light that sits on the window's top edge */
.launch__tilt::before { content: ''; position: absolute; z-index: 2; left: 18%; right: 18%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--lime) 50%, transparent); opacity: .6; }
.launch__tilt::after { content: ''; position: absolute; z-index: -1; left: 10%; right: 10%; top: -70px; height: 160px; background: radial-gradient(50% 50% at 50% 50%, rgba(200, 240, 76, .12), transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .launch__copy > * { animation: in 1s var(--ease) both; }
  .launch__copy > :nth-child(2) { animation-delay: .08s; }
  .launch__copy > :nth-child(3) { animation-delay: .16s; }
  .launch__copy > :nth-child(4) { animation-delay: .24s; }
  .launch__stage { animation: rise 1.6s var(--ease) .3s both; }
  .fchip { animation: in 1s var(--ease) both; }
  .fchip:nth-child(odd) { animation-delay: .9s; } .fchip:nth-child(even) { animation-delay: 1.05s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(120px); } }
/* what an agency deals in, travelling into the one record (left) and out of it as forms (right) */
.launch__chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fchip { position: absolute; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px 0 9px; border-radius: 8px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 24px -12px rgba(var(--shade), calc(.5 * var(--shade-a)));
  font: 500 12px/1 var(--mono); letter-spacing: -.01em; color: var(--text-2); white-space: nowrap; transition: box-shadow .5s var(--ease), color .5s; }
.fchip svg { width: 13px; height: 13px; flex: none; color: var(--text-3); }
.fchip--out svg { color: var(--lime-ink); }
.fchip.is-hit { color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lime) 55%, transparent), 0 8px 24px -12px rgba(var(--shade), calc(.5 * var(--shade-a))); transition-duration: .3s; }
.fchip--1 { left: 4.5%; top: 236px; } .fchip--2 { left: 9%; top: 318px; } .fchip--3 { left: 3.5%; top: 400px; }
.fchip--4 { right: 4%; top: 250px; } .fchip--5 { right: 9.5%; top: 332px; } .fchip--6 { right: 5%; top: 414px; }
@media (max-width: 1279px) { .launch__chips { display: none; } }

/* the hero's screen: the Dashboard in the demo agency, as captured (AGENTS.md → Capturing screens) */
.launch__shot { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--shot-line); background: #100E0B; box-shadow: var(--hero-shadow); }
@media (max-width: 760px) { .launch__tilt { transform: rotateX(12deg) scale(.96); } }

/* ------------------------------------------------------------ sections */
.section { padding-block: clamp(80px, 8vw, 128px); }
.section--top { padding-top: 0; }
.section--tight { padding-bottom: 0; }
.intro { display: grid; justify-items: center; gap: 18px; max-width: 760px; margin: 0 auto clamp(40px, 4.5vw, 64px); text-align: center; }
.intro .p { max-width: 38em; }
.lead { display: grid; gap: 24px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
@media (min-width: 980px) { .lead { grid-template-columns: 1.4fr 1fr; } .lead .p { justify-self: end; max-width: 28em; } }

/* ------------------------------------------------------------ the forms ticker */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); }
.ticker::before, .ticker::after { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; width: min(16vw, 220px); pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.ticker__track { display: flex; width: max-content; animation: loop 75s linear infinite; animation-play-state: paused; }
.ticker.is-live .ticker__track { animation-play-state: running; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 26px; border-right: 1px solid var(--line); white-space: nowrap; font-size: 14.5px; }
.ticker__item b { font-weight: 500; letter-spacing: -.01em; }
.ticker__item span { color: var(--text-3); }
/* a page with its corner turned */
.pg { position: relative; flex: none; width: 12px; height: 15px; border-radius: 2px; box-shadow: inset 0 0 0 1.2px var(--text-3); clip-path: polygon(0 0, 62% 0, 100% 32%, 100% 100%, 0 100%); }
.pg::after { content: ''; position: absolute; right: 0; top: 0; width: 5px; height: 5px; background: var(--lime); border-bottom-left-radius: 1px; }
.ticker__label { display: flex; justify-content: center; margin-bottom: 22px; text-align: center; }
@keyframes loop { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ the frame: every product screen, one size */
.frame { position: relative; display: flex; justify-content: center; }
.frame img { display: block; width: 100%; height: auto; max-height: min(72vh, 820px); object-fit: contain; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.frame--fit img { width: auto; max-width: 100%; }
.frame--tall { aspect-ratio: 4 / 3; }

/* text + frame rows */
.row { display: grid; gap: 40px; align-items: center; padding-block: clamp(48px, 5vw, 80px); }
@media (min-width: 1000px) { .row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 5vw, 96px); } .row--flip > :first-child { order: 2; } .row--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.row .p { margin-top: 18px; max-width: 32em; }
.box { margin-top: 24px; padding: 20px 24px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.box ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.box li { position: relative; padding-left: 24px; font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.box li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); box-shadow: inset 0 0 0 1.2px var(--text-3); }
.row__sum { margin-top: 22px; font-size: 16px; font-weight: 500; }

/* ------------------------------------------------------------ the product story: the screen stays, the steps scroll */
.tabbed { position: relative; }
.tabs { position: sticky; z-index: 10; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tabs__in { display: flex; gap: 34px; overflow-x: auto; scrollbar-width: none; }
.tabs__in::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 10px; padding: 21px 0 19px; font-size: 15px; color: var(--text-3); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.tabs a span { font: 500 11px/1 var(--mono); color: var(--text-3); }
.tabs a:hover { color: var(--text); }
.tabs a.is-on { color: var(--text); border-color: var(--lime); }
.tabs a.is-on span { color: var(--lime-ink); }
.row[id] { scroll-margin-top: 70px; }
.step__k { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.step__k b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font-weight: 500; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .4s, color .4s, box-shadow .4s; }
.step.is-on .step__k b { background: var(--lime); color: var(--on-lime); box-shadow: none; }
.story__stage { display: none; }
@media (min-width: 1000px) {
  .story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 5vw, 96px); }
  .story__steps { position: relative; }
  .story .step { display: flex; flex-direction: column; justify-content: center; min-height: 82svh; padding-block: 56px; }
  .story .step__frame { display: none; }
  .story__stage { display: block; }
  .story__sticky { --stage-h: min(68svh, 700px); position: sticky; top: calc(64px + (100svh - 64px - var(--stage-h)) / 2); height: var(--stage-h); }
  .story__frames { position: relative; height: 100%; }
  .story__frames img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow);
    opacity: 0; transition: opacity .7s ease; }
  .story__frames img.is-on { opacity: 1; }
  .story__rail { position: absolute; left: -26px; top: 12svh; bottom: 12svh; width: 1px; background: var(--line); }
  .story__rail i { display: block; height: 100%; background: linear-gradient(var(--lime), var(--lime-ink)); transform-origin: 50% 0; transform: scaleY(0); }
  .js .story .step > * { transition: opacity .6s var(--ease), transform .8s var(--ease); }
  .js .story .step:not(.is-on) > * { opacity: .32; }
}

/* before / after */
.pair { display: grid; gap: 20px; }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair__card { border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.pair__art { position: relative; aspect-ratio: 16 / 9; margin: 14px 14px 0; border-radius: 16px; overflow: hidden; background: var(--bg-3); }
.pair__art img { position: absolute; inset: 0; margin: auto; max-width: 90%; max-height: 86%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 40px -20px rgba(var(--shade), calc(.8 * var(--shade-a))), 0 0 0 1px var(--line); }
.pair__body { padding: 30px 40px 40px; }
.pair__body .h4 { margin-bottom: 18px; }
.checks { list-style: none; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-size: 15.5px; color: var(--text-2); }
.checks li::before { position: absolute; left: 4px; top: 0; font-size: 15px; }
.checks--no li::before { content: '✕'; color: var(--warn); }
.checks--yes li::before { content: '✓'; color: var(--lime-ink); }
.chaos { position: absolute; inset: 0; }
.chaos span { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.chaos .c1 { left: 7%; top: 13%; background: var(--hover); color: var(--text-3); text-decoration: line-through; }
.chaos .c2 { right: 8%; top: 25%; background: var(--inverse); color: var(--on-inverse); box-shadow: 0 10px 30px rgba(var(--shade), calc(.3 * var(--shade-a))); }
.chaos .c3 { left: 6%; top: 46%; border: 1px solid var(--line-3); }
.chaos .c3 i, .chaos .c5 i { font-style: normal; padding: 2px 6px; border-radius: 4px; background: #E9823F; color: #1a1209; }
.chaos .c4 { right: 5%; top: 60%; background: var(--inverse); color: var(--on-inverse); opacity: .9; }
.chaos .c5 { left: 14%; top: 78%; border: 1px solid var(--line-3); }
.chaos .c6 { right: 7%; top: 8%; color: var(--text-2); font-size: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .chaos span { animation: float 7s ease-in-out infinite alternate; animation-play-state: paused; }
  .chaos .c2, .chaos .c5 { animation-duration: 9s; animation-delay: -3s; }
  .chaos .c3, .chaos .c6 { animation-duration: 8s; animation-delay: -5s; }
  .pair.is-live .chaos span { animation-play-state: running; }
}
@keyframes float { to { transform: translate(6px, -8px) rotate(-1.5deg); } }

/* stat cards */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-block: 1px solid var(--line); }
.stats::-webkit-scrollbar { display: none; }
.stat { scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; min-height: 156px; padding: 28px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; color: var(--lime-ink); }
.stat span { margin-top: 24px; font-size: 15px; color: var(--text-2); }

/* ------------------------------------------------------------ Bird: the statement and the live demo */
.statement { max-width: 1100px; margin: 0 auto; text-align: center; font-weight: 400; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.6; letter-spacing: -.012em; }
.statement .w { color: color-mix(in srgb, var(--text) 24%, transparent); transition: color .3s; }
.statement .w.on { color: var(--text); }
.blip { width: 10px; height: 10px; margin: 44px auto 36px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px var(--lime-soft); }

.bdemo { position: relative; aspect-ratio: 16 / 9.2; max-height: 860px; width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2);
  background: #100E0B; font-family: 'Manrope', var(--font); color: #F6F1E7; display: grid; grid-template-columns: 22% 1fr 22%; transition: opacity .5s; box-shadow: var(--shadow); }
.bdemo.fade { opacity: 0; }
.bd-col { min-width: 0; overflow: hidden; }
.bd-left { border-right: 1px solid #2C2720; padding: 18px 16px; font-size: 13px; }
.bd-left__top { display: flex; justify-content: space-between; align-items: center; color: #B4A893; font-size: 12px; }
.bd-left__top b { color: #F6F1E7; font-weight: 600; font-family: 'Space Grotesk', var(--font); }
.bd-new { padding: 5px 9px; border-radius: 7px; border: 1px solid #463E33; color: #F6F1E7; }
.bd-search { margin: 14px 0 16px; padding: 8px 10px; border-radius: 8px; border: 1px solid #2C2720; color: #B4A893; font-size: 12.5px; }
.bd-day { margin: 14px 0 8px; font-size: 11px; color: #B4A893; letter-spacing: .02em; }
.bd-task { padding: 7px 8px; border-radius: 7px; }
.bd-task b { display: block; font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-task span { display: block; font-size: 11px; color: #B4A893; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-task.on { background: #221E17; }
.bd-mid { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 0 clamp(16px, 3vw, 48px) 22px; }
.bd-empty { position: absolute; inset: 0 0 100px; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 0 10%; transition: opacity .4s, transform .5s var(--ease); }
.bd-empty.gone { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.bd-empty img { width: 52px; height: 52px; }
.bd-empty h3 { font: 600 clamp(20px, 2vw, 30px)/1.15 'Space Grotesk', var(--font); letter-spacing: -.02em; }
.bd-empty p { font-size: 14px; color: #DDD4C5; max-width: 34em; }
.bd-convo { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 0; overflow: hidden; padding-top: 24px; opacity: 0; transition: opacity .3s; -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); }
.bd-convo.shown { opacity: 1; }
.bd-convo > * { opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease); flex: none; }
.bd-convo > .in { opacity: 1; transform: none; }
.b-you { align-self: flex-end; max-width: 78%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #2A251E; font-size: 14px; }
.b-head { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.b-head b { font: 600 15px/1 'Space Grotesk', var(--font); }
.b-head span { padding: 3px 8px; border-radius: 6px; background: #221E17; border: 1px solid #2C2720; color: #DDD4C5; font-size: 12px; }
.b-step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #DDD4C5; }
.b-step.done { color: #F6F1E7; }
.b-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(200, 240, 76, .25); border-top-color: var(--lime); animation: spin .8s linear infinite; flex: none; }
.b-ok { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); color: #12140A; flex: none; }
.b-ok svg { width: 10px; height: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.b-text { font-size: 15px; line-height: 1.55; color: #F6F1E7; max-width: 42em; }
.b-text em { font-style: normal; color: var(--lime); }
.b-text--done { display: flex; align-items: center; gap: 10px; color: var(--lime); font-size: 14px; }
.b-ga { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(200, 240, 76, .55); background: rgba(200, 240, 76, .04); transition: border-color .4s, opacity .4s; }
.b-ga.confirmed { border-color: #2C2720; opacity: .6; }
.b-ga__k { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); font-family: 'Space Grotesk', var(--font); }
.b-ga__k svg { width: 12px; height: 12px; }
.b-ga b { display: block; margin: 8px 0; font: 600 16px/1.25 'Space Grotesk', var(--font); }
.b-ga p { padding: 9px 11px; border-radius: 8px; background: #18150F; border: 1px solid #2C2720; font-size: 13px; color: #DDD4C5; }
.b-ga small { display: block; margin-top: 8px; font-size: 12px; color: #B4A893; }
.b-ga__btns { display: flex; gap: 16px; align-items: center; margin-top: 10px; font-size: 13.5px; }
.b-confirm { padding: 7px 14px; border-radius: 8px; background: #F6F1E7; color: #12140A; font-weight: 600; transition: transform .12s, background-color .2s; }
.b-confirm.press { transform: scale(.94); background: var(--lime); }
.bd-composer { position: relative; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(200, 240, 76, .55); background: #14110D; }
.bd-input { display: block; min-height: 22px; font-size: 14.5px; color: #F6F1E7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-input:empty::before { content: 'Tell Bird the task. It will do it from here.'; color: #B4A893; }
.bd-input.typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--lime); animation: blinkc 1s steps(2) infinite; }
@keyframes blinkc { 50% { opacity: 0; } }
.bd-hint { display: block; margin-top: 6px; font-size: 11.5px; color: #B4A893; }
.bd-send { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #463E33; color: #F6F1E7; transition: transform .12s, background-color .2s; }
.bd-send.press { transform: scale(.9); background: var(--lime); color: #12140A; }
.bd-send svg { width: 13px; height: 13px; }
.bd-right { border-left: 1px solid #2C2720; padding: 18px 16px; font-size: 13px; }
.bd-right h4 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #B4A893; font-weight: 500; font-family: 'Space Grotesk', var(--font); }
.bd-right p { margin-top: 10px; font-size: 12.5px; color: #B4A893; }
.b-change { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #18150F; border: 1px solid #2C2720; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.b-change.in { opacity: 1; transform: none; }
.b-change b { display: block; font-weight: 600; font-size: 13px; color: var(--lime); }
.b-change span { display: block; font-size: 12.5px; }
.b-change small { display: block; margin-top: 2px; font-size: 11.5px; color: #B4A893; }
.bd-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 18px; height: 22px; opacity: 0; pointer-events: none; transition: transform .9s var(--ease), opacity .3s; }
.bd-cursor.on { opacity: 1; }
.bd-cursor.click { transition: transform .9s var(--ease), opacity .3s; filter: drop-shadow(0 0 6px rgba(200, 240, 76, .8)); }
@media (max-width: 900px) { .bdemo { grid-template-columns: 1fr; aspect-ratio: 4 / 5; } .bd-left, .bd-right { display: none; } }
.bd-convo, .bd-composer { width: min(100%, 780px); margin-inline: auto; }

/* ------------------------------------------------------------ the map */
.mapwrap { display: grid; gap: 16px; }
/* the map and the risk panel share one height: whichever needs more sets it, the other stretches to match */
@media (min-width: 1100px) { .mapwrap { grid-template-columns: minmax(0, 1fr) 380px; } .mapwrap .map { align-self: stretch; aspect-ratio: auto; min-height: clamp(600px, 44vw, 820px); } }
.map { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: #0C0A08; box-shadow: var(--shadow); color: var(--text); }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.map canvas:active { cursor: grabbing; }
.map__search { position: absolute; z-index: 2; left: 18px; top: 18px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 14px; width: min(520px, calc(100% - 36px));
  border-radius: 12px; background: rgba(20, 18, 15, .88); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 15px; }
.map__search svg { width: 17px; height: 17px; color: var(--lime); flex: none; }
.map__search [data-map-type] { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.map__found { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: rgba(200, 240, 76, .13); color: var(--lime); font-size: 13px; opacity: 0; transition: opacity .4s; }
.map__found::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.map.found .map__found { opacity: 1; }
.map__labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.map__labels span { position: absolute; left: 0; top: 0; padding: 4px 8px; border-radius: 6px; background: rgba(16, 14, 11, .85); border: 1px solid var(--line-2); font-size: 12.5px; white-space: nowrap; opacity: 0; will-change: transform; }
.map__labels .lime { color: var(--lime); border-color: rgba(200, 240, 76, .4); }
.map__labels .blue { color: #A9B8FF; border-color: rgba(108, 134, 255, .5); }
.map__chips { position: absolute; z-index: 2; left: 18px; bottom: 18px; right: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.map__chips button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 8px; background: rgba(20, 18, 15, .85); border: 1px solid var(--line-2); font-size: 13px; color: var(--text-3); }
.map__chips button[aria-pressed='true'] { color: var(--text); }
.map__chips i { width: 10px; height: 10px; border-radius: 3px; }
.map__chips .k-b { background: #3A342C; }
.map__chips .k-t { border: 1.5px solid var(--lime); }
.map__chips .k-f { background: rgba(108, 134, 255, .6); }
.map__chips .k-w { border-radius: 50%; border: 1.5px dashed var(--blue); }
.map__replay { margin-left: auto; color: var(--text) !important; }
.risk { display: flex; flex-direction: column; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); padding: 22px; }
.risk__addr { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.risk__addr b { display: block; font-weight: 500; font-size: 18px; }
.risk__addr span { font-size: 13px; color: var(--text-3); }
.risk__h { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 6px; font-size: 16px; }
.risk__h span { font-size: 12.5px; color: var(--text-3); }
.risk ul { flex: 1; display: flex; flex-direction: column; list-style: none; padding: 0; }
.risk li { flex: 1 1 auto; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; align-content: center; padding: 11px 0; border-top: 1px solid var(--line); opacity: .28; transition: opacity .5s; }
.risk li.on { opacity: 1; }
.risk li b { font-weight: 400; font-size: 15px; }
.risk li small { grid-column: 1; font-size: 12px; color: var(--text-3); }
.risk li em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: 13px; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.r-high { color: var(--red); background: rgba(255, 123, 107, .14); }
.r-low { color: var(--lime-ink); background: var(--lime-soft); }
.r-plain { color: var(--text); padding-right: 0 !important; }
.risk .fine { margin-top: 14px; font-size: 12px; }

/* ------------------------------------------------------------ the document wall
 * No frame: the pages run the width of the window and fade into it at both edges. Kept cheap to scroll past: no mask
 * or filter on the moving rows (the edges fade under two still overlays), and the rows only move while on screen. */
.wall { position: relative; margin-inline: calc(50% - 50vw); padding: 24px 0; overflow: hidden; contain: paint; }
.wall::before, .wall::after { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; width: 14%; pointer-events: none; }
.wall::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.wall::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.wall__rows { display: grid; gap: 18px; }
.wall__row { display: flex; width: max-content; gap: 18px; animation: loop 80s linear infinite; animation-play-state: paused; }
.wall.is-live .wall__row { animation-play-state: running; }
.wall__row:nth-child(2) { animation-direction: reverse; animation-duration: 95s; }
.wall__row:nth-child(3) { animation-duration: 70s; }
.doc { position: relative; flex: none; width: clamp(150px, 12vw, 200px); aspect-ratio: 520 / 600; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 18px 36px -22px rgba(var(--shade), calc(.55 * var(--shade-a))); }
.doc img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.doc span { position: absolute; left: 8px; bottom: 8px; right: 8px; padding: 4px 8px; border-radius: 6px; background: rgba(20, 18, 15, .88); color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall__phone { position: absolute; z-index: 2; left: 50%; top: 50%; width: clamp(220px, 17vw, 290px); transform: translate(-50%, -50%); }
.wall__phone::before { content: ''; position: absolute; inset: -14% -36%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--bg) 40%, transparent); opacity: .9; }
.wall__phone img { border-radius: 14%/7%; box-shadow: 0 40px 80px -30px rgba(var(--shade), calc(.6 * var(--shade-a))); }
@media (max-width: 760px) { .wall__phone { width: 190px; } }

/* ------------------------------------------------------------ guides */
.guides { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .guides { grid-template-columns: 1fr 1fr; } }
.guide { display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center; padding: 18px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.guide:hover { border-color: var(--line-2); transform: translateY(-2px); }
.guide img { width: 112px; border-radius: 6px; box-shadow: 0 14px 26px -16px rgba(var(--shade), calc(.8 * var(--shade-a))), 0 0 0 1px var(--line); transition: transform .4s var(--ease); }
.guide:hover img { transform: rotate(-2deg) scale(1.03); }
.guide__tag { display: inline-flex; padding: 4px 7px; border-radius: 5px; background: var(--lime-soft); color: var(--lime-ink); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.guide .h4 { margin-top: 10px; }
.guide .p { margin-top: 6px; font-size: 15px; }
.guide .more { margin-top: 10px; font-size: 14.5px; }
.guide .more::after { content: '↓'; }

/* ------------------------------------------------------------ sign in: two doors into one building */
.doors { min-height: 100svh; align-content: center; }
.doors__copy { text-align: center; justify-items: center; display: grid; }
.doors__copy .h1, .doors__copy .p { max-width: 36em; margin-inline: auto; }
.doors__grid { display: grid; gap: 14px; max-width: 980px; margin: 40px auto 0; }
@media (min-width: 760px) { .doors__grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.door { display: flex; flex-direction: column; padding: 28px 28px 24px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.door:hover { border-color: var(--line-3); transform: translateY(-2px); }
.door__k { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.door__k svg { width: 15px; height: 15px; color: var(--lime-ink); }
.door .h3 { margin-top: 18px; }
.door .p { margin-top: 10px; font-size: 16px; }
.door__rows { list-style: none; padding: 0; margin: auto 0 0; padding-top: 22px; }
.door__rows li:first-child { border-top: 1px solid var(--line); }
.door__rows li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.door__rows li.is-marked::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); margin-right: -6px; }
.door__rows li.is-marked span { color: var(--text); }
.door__rows span { flex: 1; }
.door__rows em { font: 500 12.5px/1 var(--mono); font-style: normal; color: var(--text-3); white-space: nowrap; }
.door__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 15px; font-weight: 500; color: var(--text); }
.door__cta span { transition: transform .2s var(--ease); }
.door:hover .door__cta span { transform: translate(2px, -2px); }
.doors__help { margin-top: 28px; text-align: center; font-size: 14.5px; color: var(--text-2); }
.doors__help a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-3); }
.doors__help a:hover { color: var(--text); text-decoration-color: currentColor; }
.doors .fine { margin: 18px auto 0; max-width: 60ch; }
.center.fine { text-align: center; }

/* ------------------------------------------------------------ the guides page: each guide, cover beside its parts */
.gbook { display: grid; gap: 24px; }
.gbook__one { display: grid; gap: 28px; padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); scroll-margin-top: 24px; }
@media (min-width: 900px) { .gbook__one { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; } }
.gbook__cover { display: block; width: min(100%, 260px); border-radius: 8px; transition: transform .4s var(--ease); }
.gbook__cover:hover { transform: translateY(-3px); }
.gbook__cover img { width: 100%; border-radius: 8px; box-shadow: 0 24px 48px -24px rgba(var(--shade), calc(.8 * var(--shade-a))), 0 0 0 1px var(--line); }
.gbook__body .h2 { margin-top: 14px; }
.gbook__body .p { margin-top: 14px; max-width: 48em; }
.gbook__body .btns { margin-top: 24px; }
.parts { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.parts li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.parts__no { padding-top: 4px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; color: var(--text-3); }
.parts b { display: block; font-weight: 500; font-size: 16px; }
.parts p { margin-top: 3px; font-size: 14px; line-height: 1.55; color: var(--text-2); }

/* split (the regulated-work block) */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 5vw, 96px); } }
.split .p { margin-top: 18px; max-width: 32em; }

/* tables (location page) */
.table { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 14px 12px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-weight: 500; width: 28%; }
.table td { color: var(--text-2); }
.table td span { display: block; margin-top: 2px; font-size: 14px; color: var(--text-3); }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-3); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding-bottom: 24px; color: var(--text-2); font-size: 16px; max-width: 64ch; }
.faq a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* text pages */
.prose { max-width: 760px; margin: 0 auto; color: var(--text-2); font-size: 17px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; color: var(--text); font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.prose ul { padding-left: 1.1em; }
.prose li + li { margin-top: .5em; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ footer: the closing call, beside the bird in dots */
.foot { position: relative; margin-top: clamp(40px, 5vw, 80px); padding-bottom: calc(104px + env(safe-area-inset-bottom)); background: var(--bg-foot); border-top: 1px solid var(--line); overflow: hidden; }
.foot__cta { display: grid; align-items: center; gap: 24px; padding-block: clamp(64px, 8vw, 120px) clamp(40px, 5vw, 72px); }
@media (min-width: 960px) { .foot__cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.foot__h { margin-top: 20px; font-weight: 500; font-size: clamp(36px, 3.7vw, 58px); line-height: 1.02; letter-spacing: -.042em; }
.foot__h .mute { color: var(--text-3); }
.foot__copy .p { margin-top: 20px; max-width: 32em; }
.foot__copy .btns { margin-top: 30px; }
.foot__art { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1.2; justify-self: end; }
.foot__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
@media (max-width: 959px) { .foot__art { justify-self: center; max-width: 440px; margin-top: 8px; } }
.foot__main { display: grid; gap: 48px; padding-top: 56px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .foot__main { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.foot__about .brand { font-size: 18px; }
.foot__addr { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--text-3); font-style: normal; }
.foot__status { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; height: 30px; padding: 0 12px 0 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; color: var(--text-2); transition: color .2s, box-shadow .2s; }
.foot__status:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.foot__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.foot__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 640px) { .foot__cols { grid-template-columns: repeat(4, 1fr); } }
.foot__cols h2 { margin-bottom: 16px; font-weight: 500; font-size: 14px; color: var(--text); }
.foot ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.foot li a { font-size: 14px; color: var(--text-3); transition: color .15s; }
.foot li a:hover { color: var(--text); }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.foot__legal { max-width: 78ch; line-height: 1.6; }
.foot__legal a { color: var(--text-2); }
.foot__legal a:hover { color: var(--text); }
.theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.theme button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; color: var(--text-3); transition: background-color .15s, color .15s; }
.theme button:hover { color: var(--text); }
.theme button[aria-checked='true'] { background: var(--hover); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.theme svg { width: 15px; height: 15px; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px var(--gutter); }
.lost img { width: 40px; margin: 0 auto 24px; filter: var(--mark); }
.lost .p { margin: 16px auto 28px; }

/* ------------------------------------------------------------ the home page on a phone
 * Desktop and laptop are untouched: every rule below sits under a narrow-screen query and the home page's own class
 * (`main.home`). Tighter rhythm between sections, nothing cut in half, nothing spilling out of its frame. */
@media (max-width: 900px) {
  /* Bird's demo in one column: the typed task truncates inside its box instead of widening the box past the frame */
  .home .bd-mid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* the dock rides the real bottom of the screen, so it follows the browser's toolbar as it slides away */
  :root:has(main.home) .dock { top: auto; bottom: 0; transform: translate(-50%, calc(-100vh + 100% + 22px)); transform: translate(-50%, calc(-100dvh + 100% + 22px)); }
  :root:has(main.home) .dock.is-down { transform: translate(-50%, calc(-1 * max(18px, env(safe-area-inset-bottom)))); }

  .home .section { padding-block: 64px; }
  .home .section--top { padding-top: 0; }
  .home .section--tight { padding-bottom: 0; }
  .home .launch { padding-bottom: 48px; }
  .home .launch__stage { width: calc(100% - 24px); }

  /* the forms ticker's label: two even lines, off the screen's edges */
  .home .ticker__label { padding-inline: var(--gutter); letter-spacing: .05em; line-height: 1.6; text-wrap: balance; }

  /* before / after: a taller picture so the loose files don't pile on each other */
  .home .pair { gap: 16px; }
  .home .pair__card { border-radius: 20px; }
  .home .pair__art { aspect-ratio: 4 / 3; margin: 10px 10px 0; border-radius: 12px; }
  .home .pair__body { padding: 22px 22px 26px; }
  .home .pair__body .h4 { margin-bottom: 14px; }
  .home .checks { gap: 10px; }
  .home .checks li { padding-left: 26px; }
  .home .checks li::before { left: 2px; }
  .home .chaos span { padding: 5px 8px; font-size: 12px; }
  .home .chaos .c6 { right: 6%; top: 6%; font-size: 18px; }
  .home .chaos .c1 { left: 5%; top: 21%; }
  .home .chaos .c2 { right: 5%; top: 36%; }
  .home .chaos .c3 { left: 5%; top: 52%; }
  .home .chaos .c4 { right: 4%; top: 68%; }
  .home .chaos .c5 { left: 9%; top: 84%; }

  /* the numbers: two to a row, all six in view, instead of a strip that cuts the second in half */
  .home .stats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; border-bottom: 0; }
  .home .stat { min-height: 0; padding: 22px 16px 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .home .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .home .stat b { font-size: 22px; }
  .home .stat span { margin-top: 12px; font-size: 14px; }

  /* the product story: the tabs sit close under their heading, the steps closer together */
  .home .tabbed > .lead { padding-bottom: 0; margin-bottom: 28px; }
  .home .tabs__in { gap: 26px; }
  .home .tabs a { padding: 17px 0 15px; }
  .home .row { gap: 28px; padding-block: 40px; }
  .home .row[id] { scroll-margin-top: 58px; }
  .home .box { padding: 18px 18px; border-radius: 14px; }
  .home .box li { padding-left: 22px; }
  .home .split { gap: 28px; }
  .home .blip { margin: 32px auto 28px; }

  /* the map: taller, so the address bar and the layer chips frame the building instead of covering it */
  .home .map { aspect-ratio: 4 / 5; border-radius: 16px; }
  .home .map__search { left: 12px; top: 12px; width: calc(100% - 24px); height: 42px; font-size: 14px; }
  .home .map__chips { left: 12px; right: 12px; bottom: 12px; gap: 5px; }
  .home .map__chips button { height: 28px; padding: 0 9px; font-size: 12.5px; }
  .home .risk { padding: 18px; border-radius: 16px; }

  /* the guides: a smaller cover, so the words get the width */
  .home .guide { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 16px; align-items: start; }
  .home .guide img { width: 80px; }
  .home .guide .h4 { margin-top: 8px; font-size: 18px; }
  .home .guide .p { font-size: 14.5px; }
  .home .guide .more { font-size: 14px; }
}
/* a tap is not a hover: touching the forms ticker must not stop it for good */
@media (max-width: 760px) and (hover: none) { .home .ticker.is-live:hover .ticker__track { animation-play-state: running; } }

/* ------------------------------------------------------------ arriving as you scroll (site.js marks what to watch) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal='rise'] { transform: translateY(32px); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-words] .wd { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--w, 0) * 32ms); }
  .js [data-words].is-in .wd { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .statement .w { color: var(--text); }
  .ticker__track, .wall__row { flex-wrap: wrap; width: auto; justify-content: center; }
  .launch__tilt { transform: none !important; }
}
@media print { .dock, .launch__field, .launch__chips, .foot__art, .theme, .themebtn { display: none; } .js [data-reveal], .js [data-words] .wd { opacity: 1 !important; transform: none !important; } }
