:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --ink: #121210;
  --ink-2: #3a3935;
  --muted: #6b6862;
  --faint: #9b978f;
  --line: rgb(18 18 16 / 0.08);
  --line-strong: rgb(18 18 16 / 0.14);
  --gold: #fdb044;
  --gold-soft: #fff3df;
  --amber: #b4690a; /* gold for text on light backgrounds; #fdb044 is too light to read */
  --night: #0f0e0c;

  --shadow-card:
    0 0 0 1px rgb(18 18 16 / 0.06),
    0 1px 2px rgb(18 18 16 / 0.04),
    0 12px 32px -16px rgb(18 18 16 / 0.12);
  --shadow-float:
    0 0 0 1px rgb(18 18 16 / 0.05),
    0 2px 4px rgb(60 30 0 / 0.06),
    0 32px 64px -24px rgb(90 45 0 / 0.38);

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Strong curves: the built-in CSS easings lack punch. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --header-h: 68px;
}

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

html {
  color-scheme: light;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  /* Anchors land exactly below the sticky header; each section's own padding provides the air. */
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 1rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
}

a,
button,
summary {
  touch-action: manipulation;
}

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
}

.accent {
  background: linear-gradient(90deg, #a95f06, #e08a14 60%, #f0a030);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
}

.top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(246 245 241 / 0.8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.top[data-scrolled]::before {
  opacity: 1;
}

.top__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.mark {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.nav {
  position: absolute;
  left: 50%;
  display: none;
  gap: 0.25rem;
  transform: translateX(-50%);
}

.nav a,
.foot__nav a {
  padding: 0.45rem 0.75rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 150ms ease;
}

.top__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgb(18 18 16 / 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
}

.lang a {
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  font: 500 0.7rem/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.lang a[aria-current="page"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(18 18 16 / 0.08);
}

@media (min-width: 920px) {
  .nav {
    display: flex;
  }
}


/* Compact menu below the desktop nav breakpoint */

.menu-btn,
.menu {
  display: none;
}

@media (max-width: 919px) {
  .js .menu-btn {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--line-strong), 0 1px 2px rgb(18 18 16 / 0.05);
    cursor: pointer;
    transition: transform 160ms var(--ease-out);
  }

  .menu-btn:active {
    transform: scale(0.95);
  }

  .menu-btn span {
    position: absolute;
    width: 14px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 200ms var(--ease-out);
  }

  .menu-btn span:first-child {
    transform: translateY(-3px);
  }

  .menu-btn span:last-child {
    transform: translateY(3px);
  }

  .menu-btn[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  .menu-btn[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }

  /* Grows out of the button's corner; leaves faster than it arrives. */
  .js .menu {
    position: absolute;
    top: calc(100% - 4px);
    right: max(1.25rem, env(safe-area-inset-right));
    display: grid;
    gap: 0.75rem;
    width: min(17rem, calc(100vw - 2.5rem));
    padding: 0.5rem;
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow-float);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px) scale(0.97);
    transition:
      opacity 150ms ease,
      transform 150ms var(--ease-out),
      visibility 0s linear 150ms;
  }

  .top[data-menu-open] .menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 200ms ease,
      transform 200ms var(--ease-out),
      visibility 0s;
  }

  .menu__nav {
    display: grid;
  }

  .menu__nav a {
    padding: 0.8rem 0.85rem;
    border-radius: 12px;
    color: var(--ink);
    font-size: 0.9375rem;
    text-decoration: none;
  }

  .menu__nav a:active {
    background: rgb(18 18 16 / 0.05);
  }

  .menu__lang {
    display: none;
    justify-self: start;
    margin: 0 0.35rem 0.35rem;
  }
}

/* Narrow phones: the language switch moves into the menu so the header keeps one line. */
@media (max-width: 519px) {
  .js .top__end > .lang {
    display: none;
  }

  .js .menu__lang {
    display: flex;
  }
}

@media (hover: hover) and (pointer: fine) {
  .menu__nav a:hover {
    background: rgb(18 18 16 / 0.04);
  }

  .feed-tab[aria-selected="false"]:hover .feed-tab__icon {
    background: rgb(18 18 16 / 0.08);
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .menu,
  .top[data-menu-open] .menu {
    transform: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 46px;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 999px;
  font: 500 0.9375rem/1 var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 1px 2px rgb(0 0 0 / 0.2), 0 8px 20px -8px rgb(0 0 0 / 0.35);
}

.btn--ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-strong), 0 1px 2px rgb(18 18 16 / 0.05);
}

.btn--small {
  height: 36px;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.btn--cta {
  padding-right: 0.4rem;
}

.btn--large {
  height: 54px;
  padding-left: 1.5rem;
  font-size: 1rem;
}

.btn__dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  transition: transform 200ms var(--ease-out);
}

.btn--large .btn__dot {
  width: 42px;
  height: 42px;
}

/* Hover only where a real pointer can hover; touch keeps :active. */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover,
  .foot__nav a:hover,
  .lang a:hover {
    color: var(--ink);
  }

  .btn--dark:hover {
    background: #2a2925;
  }

  .btn--dark:hover .btn__dot {
    transform: rotate(45deg);
  }

  .btn--ghost:hover {
    background: #fbfaf8;
  }

  .why__link:hover .why__arrow {
    transform: translateX(3px);
  }

  .faq__item summary:hover .faq__icon {
    background: rgb(18 18 16 / 0.08);
  }

  .email a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--faint);
  }

  .copy:hover {
    background: rgb(18 18 16 / 0.1);
    color: var(--ink);
  }
}

/* Pills & headings */

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

.badge {
  gap: 0.65rem;
  max-width: 100%;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  background: var(--card);
  color: var(--ink-2);
  box-shadow: var(--shadow-card);
  font-size: 0.8125rem;
  letter-spacing: 0;
}

.badge__tag {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge__tag svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

/* On narrow phones the tag shrinks to its icon so the phrase stays on one line. */
@media (max-width: 439px) {
  .badge {
    font-size: 0.75rem;
  }

  .badge > span:last-child {
    white-space: nowrap;
  }

  .badge__tag {
    padding: 0.4rem;
  }

  .badge__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.pill {
  padding: 0.45rem 0.75rem;
  background: var(--gold-soft);
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgb(253 176 68 / 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
}

.pill--dark {
  background: rgb(253 176 68 / 0.1);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgb(253 176 68 / 0.3);
}

.pill--glass {
  background: rgb(255 255 255 / 0.55);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.7);
}

.head {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.head__title {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.head__lead {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

/* Hero */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3.5rem, 7vw, 5rem);
  text-align: center;
}

.hero__rings {
  position: absolute;
  inset: -4rem 0 auto;
  width: 100%;
  height: calc(100% + 4rem);
  color: rgb(18 18 16 / 0.07);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 30%, transparent 80%);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  display: grid;
  justify-items: center;
}

.hero__title {
  max-width: 14ch;
  margin: 1.5rem 0 0;
  font-size: clamp(3rem, 1.4rem + 6.6vw, 6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Entrance: a first-visit moment, so it may run a little longer than UI motion. */
[data-enter] {
  animation: enter 800ms var(--ease-out) both;
  animation-delay: calc(100ms + var(--i, 0) * 70ms);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
}

/* Hold every animation while app.js decides the language, so nothing plays behind the hidden page. */
html[data-pending] *,
html[data-pending] *::before,
html[data-pending] *::after {
  animation-play-state: paused !important;
}

/* Showcase: its own chapter — a vertical index of agent areas beside the live card */

.showcase {
  --base: 200ms; /* the feed starts once the section is on screen (see site.js) */
  padding-block: clamp(3.5rem, 7vw, 5rem) clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

.showcase[data-switched] {
  --base: 80ms;
}

.showcase__grid {
  display: grid;
  gap: 1rem;
}

.feed-index {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
}

/* One white surface glides to the active item instead of each item fading its own. */
.feed-index__glide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  pointer-events: none;
  transition:
    transform 260ms var(--ease-in-out),
    height 260ms var(--ease-in-out);
}

.feed-index[data-instant] .feed-index__glide {
  transition: none;
}

.feed-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.15rem 0.85rem;
  padding: 1rem 1.1rem;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 160ms var(--ease-out);
}

.feed-tab:active {
  transform: scale(0.985);
}

.feed-tab__icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgb(18 18 16 / 0.05);
  color: var(--ink-2);
  transition: background-color 200ms ease, color 200ms ease;
}

.feed-tab__icon svg {
  width: 18px;
  height: 18px;
}

.feed-tab[aria-selected="true"] .feed-tab__icon {
  background: linear-gradient(135deg, #ffd38a, #f39a34);
  color: #fff;
}

.feed-tab__title {
  font-weight: 500;
  line-height: 1.3;
}

.feed-tab__desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Without JS (no glide), the active item carries the surface itself. */
html:not(.js) .feed-tab[aria-selected="true"] {
  background: var(--card);
  box-shadow: var(--shadow-card);
}

html:not(.js) .feed-index__glide {
  display: none;
}

@media (min-width: 960px) {
  .showcase__grid {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    gap: 1.5rem;
  }

  .showcase .stage {
    min-height: 540px;
  }
}

/* Narrow: a 2×2 grid of compact items; the active one carries its own surface. */
@media (max-width: 959px) {
  .feed-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-index__glide,
  .feed-tab__desc {
    display: none;
  }

  .feed-tab {
    padding: 0.7rem;
    gap: 0.65rem;
  }

  .feed-tab__icon {
    grid-row: auto;
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .feed-tab__icon svg {
    width: 16px;
    height: 16px;
  }

  .feed-tab[aria-selected="true"] {
    background: var(--card);
    box-shadow: var(--shadow-card);
  }
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 600px;
  padding: clamp(1.25rem, 5vw, 4rem);
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgb(18 18 16 / 0.06), 0 30px 60px -40px rgb(90 45 0 / 0.5);
}

.stage__sky,
.end__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(180deg, rgb(255 255 255 / 0.07) 0 1px, transparent 1px 9px),
    radial-gradient(55% 70% at 15% 105%, #e7781a 0%, transparent 65%),
    radial-gradient(45% 55% at 90% 95%, #f39a34, transparent 65%),
    radial-gradient(60% 50% at 50% -5%, #fff6e6, transparent 70%),
    radial-gradient(35% 35% at 72% 38%, #ffd896, transparent 70%),
    linear-gradient(180deg, #fbe6c2 0%, #f6bd68 52%, #ec8f2e 100%);
}

.stage__sky::after,
.end__sky::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stage__panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 34rem);
}

.panel {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 280ms ease,
    transform 280ms var(--ease-out),
    filter 280ms ease,
    visibility 0s linear 280ms;
}

.panel[data-active] {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition-delay: 0s;
}

/* Keyboard switching is instant: animation would make a repeated action feel slow. */
.stage[data-instant] .panel {
  transition: none;
}

.ui {
  margin: 0;
  padding: 1.1rem;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-float);
  font-size: 0.875rem;
  text-align: left;
}

.ui__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.ui__who {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.ui__who > span:last-child {
  display: grid;
  min-width: 0;
}

.ui__who strong {
  font-weight: 500;
  line-height: 1.3;
}

.ui__who small {
  color: var(--faint);
  font-size: 0.75rem;
}

.ui__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd38a, #f39a34);
  color: #fff;
}

.ui__avatar svg {
  width: 16px;
  height: 16px;
}

.state {
  flex: none;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.state--decide {
  background: var(--gold-soft);
  color: var(--amber);
}

.state--done {
  background: #ebf6f0;
  color: #2b8a5b;
}

.log {
  display: grid;
  gap: 0.6rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.log__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.log__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: #ebf6f0;
  color: #2b8a5b;
}

.log__mark svg {
  width: 11px;
  height: 11px;
}

.log__item--warn .log__mark {
  background: var(--gold-soft);
  color: var(--amber);
}

.log__item--warn > span:last-child {
  color: var(--ink);
  font-weight: 500;
}

.say {
  margin: 1rem 0 0;
  padding: 0.8rem 0.9rem;
  border-radius: 4px 14px 14px 14px;
  background: #f7f6f2;
  color: var(--ink);
  line-height: 1.5;
  text-wrap: pretty;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}

.choice--primary {
  background: var(--ink);
  box-shadow: none;
  color: #fff;
}

/* The feed plays like a log being written: steps, then the agent's note, then the choice.
   site.js holds it (data-waiting) until the section scrolls into view. */
.showcase[data-waiting] .panel[data-active] :is(.log__item, .say, .choices) {
  opacity: 0;
}

.showcase:not([data-waiting]) .panel[data-active] .log__item {
  animation: row-in 450ms var(--ease-out) both;
  animation-delay: calc(var(--base) + var(--r) * 140ms);
}

.showcase:not([data-waiting]) .panel[data-active] .say {
  animation: insight-in 450ms var(--ease-out) both;
  animation-delay: calc(var(--base) + 520ms);
}

.showcase:not([data-waiting]) .panel[data-active] .choices {
  animation: insight-in 450ms var(--ease-out) both;
  animation-delay: calc(var(--base) + 700ms);
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes insight-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}

.agent {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-float);
  font-size: 0.8125rem;
  font-weight: 500;
}

.agent__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffd38a, #f39a34);
  color: #fff;
}

.agent__icon svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 719px) {
  .stage {
    min-height: 0;
    padding: 1rem 0.75rem 4.75rem;
    border-radius: 22px;
  }

  .agent {
    left: 50%;
    bottom: 1rem;
    max-width: calc(100% - 1.5rem);
    white-space: nowrap;
    transform: translateX(-50%);
  }
}


/* Why */

.why {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  padding-block: clamp(4rem, 9vw, 7rem);
  text-align: center;
}

.why__text {
  max-width: 46rem;
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.25rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.why__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}

.why__arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  transition: transform 200ms var(--ease-out);
}

.why__arrow svg {
  width: 13px;
  height: 13px;
}

/* Bento */

.build {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(5rem, 10vw, 8rem);
}

.bento {
  display: grid;
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.75rem 1.5rem;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.card > :not(.illus) {
  margin-inline: 0.75rem;
}

.card__cat {
  margin: 1.4rem 0 0;
  color: var(--amber);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card h3 {
  margin-top: 0.4rem;
  margin-bottom: 0;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.card p:last-child {
  margin-top: 0.5rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

.illus {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(rgb(18 18 16 / 0.07) 1px, transparent 1px) 0 0 / 14px 14px,
    #fbfaf7;
  box-shadow: inset 0 0 0 1px var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: calc(100% - 2rem);
  text-align: left;
  text-wrap: balance;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgb(18 18 16 / 0.1);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

.chip svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.chip--ai {
  color: var(--amber);
  box-shadow: 0 0 0 1px rgb(253 176 68 / 0.55), 0 4px 14px -4px rgb(224 138 20 / 0.35);
}

.chip--ai svg {
  color: var(--amber);
}

.wire {
  width: 1px;
  height: 22px;
  background: repeating-linear-gradient(180deg, rgb(224 138 20 / 0.8) 0 3px, transparent 3px 6px);
}

.illus--flow,
.illus--pipe {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Four sources share one tray, so a single connector can leave it: no bracket to line up. */
.pipe__src {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.65);
  box-shadow: inset 0 0 0 1px var(--line);
}

.pipe__src span {
  padding: 0.35rem 0.55rem;
  border-radius: 7px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(18 18 16 / 0.05);
  color: var(--ink-2);
  font: 0.6875rem/1 var(--font-mono);
  text-align: center;
}

.illus--pipe .wire {
  height: 18px;
}

/* Fixed-size composition: rings, arc, core and tags share one coordinate system at every card width. */
.orbit {
  position: relative;
  flex: none;
  width: 260px;
  height: 220px;
}

.orbit > svg {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.orbit > svg circle {
  stroke: rgb(18 18 16 / 0.09);
}

.orbit__arc {
  fill: none;
  stroke: #f0a030;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
}

.js .card--e .orbit__arc {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1200ms var(--ease-in-out) 300ms;
}

.js .card--e.is-in .orbit__arc {
  stroke-dashoffset: 0;
}

.orbit__core {
  position: absolute;
  top: 114px;
  left: 130px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 8px rgb(253 176 68 / 0.12), 0 10px 24px -8px rgb(180 105 10 / 0.4);
  transform: translate(-50%, -50%);
}

.orbit__core svg {
  width: 26px;
  height: 26px;
  color: var(--amber);
}

/* Each tag is centred on its point on the outer ring (coordinates set inline). */
.orbit__tag {
  position: absolute;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgb(18 18 16 / 0.1);
  font: 0.6875rem/1 var(--font-mono);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: calc(100% - 2rem);
  max-width: 28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track::before,
.track::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 12.5%;
  height: 2px;
  border-radius: 2px;
}

.track::before {
  right: 12.5%;
  background: rgb(18 18 16 / 0.1);
}

.track::after {
  width: 50%;
  background: var(--gold);
  transform-origin: left;
}

.js .card--d .track::after {
  transform: scaleX(0);
  transition: transform 1000ms var(--ease-out) 300ms;
}

.js .card--d.is-in .track::after {
  transform: none;
}

.track li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
}

.track__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: inset 0 0 0 2px rgb(18 18 16 / 0.15);
}

.track li.is-done .track__dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgb(253 176 68 / 0.2);
}

.track li[data-now] .track__dot {
  box-shadow: 0 0 0 5px rgb(253 176 68 / 0.25), 0 0 0 1px var(--card) inset;
}

.track__label {
  color: var(--ink-2);
  font-size: 0.75rem;
  text-align: center;
}


@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
  }

  .card--a,
  .card--b,
  .card--c {
    grid-column: span 4;
  }

  .card--d {
    grid-column: span 7;
  }

  .card--e {
    grid-column: span 5;
  }
}


/* Stats */

.stats {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 60rem;
  margin-top: 0.5rem;
}

.stat {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.stat__n {
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.stat__l {
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Browser illustration */

.browser {
  width: min(86%, 19rem);
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 12px 28px -12px rgb(18 18 16 / 0.2);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.browser__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(18 18 16 / 0.12);
}

.browser__bar span {
  flex: 1;
  margin-left: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #f5f4f0;
  color: var(--faint);
  font: 0.625rem/1.2 var(--font-mono);
}

.browser__body {
  display: grid;
  grid-template-columns: 3.25rem 1fr 1fr;
  grid-template-rows: 14px 52px 30px;
  gap: 8px;
  padding: 10px;
}

.sk {
  border-radius: 6px;
  background: #f1efea;
}

.sk--side {
  grid-row: 1 / -1;
}

.sk--head {
  grid-column: 2 / -1;
  width: 60%;
}

.sk--gold {
  background: linear-gradient(135deg, #ffe3b0, #f7b453);
}

.sk--wide {
  grid-column: 2 / -1;
}

/* Platform note and legal placeholders */

.head--dark .head__lead {
  color: #a7a39b;
}

.dark__note {
  margin: 2rem 0 0;
  color: #a7a39b;
  text-align: center;
}

.dark__note a {
  color: var(--gold);
  font-weight: 500;
  text-underline-offset: 4px;
}

.placeholder {
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  outline: 1px dashed var(--amber);
  color: var(--amber);
}

/* Dark: platform */

.dark {
  padding-block: clamp(5rem, 10vw, 8rem);
  background:
    radial-gradient(60% 40% at 50% 100%, rgb(253 176 68 / 0.14), transparent 70%),
    var(--night);
  color: #f3f1ec;
}

.head--dark .head__title {
  color: #f3f1ec;
}

.dark .accent {
  background-image: linear-gradient(90deg, #f0a030, #fdc06a);
}

.steps {
  display: grid;
  gap: 0;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 1.25rem 1.25rem 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.step::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform-origin: left;
}

.step__num {
  color: var(--gold);
  font: 0.75rem/1 var(--font-mono);
}

.step h3 {
  margin: 0.75rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 500;
}

.step p {
  margin: 0;
  color: #a7a39b;
  font-size: 0.875rem;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow {
  --wire: rgb(253 176 68 / 0.7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(2rem, 7rem) auto minmax(2rem, 7rem) minmax(0, 1fr);
  align-items: center;
  margin: 0;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);
  border-radius: 24px;
  background:
    radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px) 0 0 / 16px 16px,
    rgb(255 255 255 / 0.02);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.flow__col {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow__col li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 60px;
}

.flow__col--in li {
  flex-direction: row;
}

.flow__col--out li {
  flex-direction: row-reverse;
}

/* Each node runs a line to the column's bus; the bus is the column's inner edge. */
.flow__col li::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--wire);
}

.flow__col--in li::after {
  transform-origin: left;
}

.flow__col--out li::after {
  transform-origin: right;
}

.flow__col::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: var(--wire);
}

.flow__col--in::before {
  right: 0;
}

.flow__col--out::before {
  left: 0;
}

.flow__col--out .node__label {
  text-align: right;
}

.node {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px -4px rgb(0 0 0 / 0.6);
}

.node svg {
  width: 18px;
  height: 18px;
}

.node__label {
  min-width: 0;
  overflow: hidden;
  color: #d9d5cd;
  font-size: 0.8125rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.flow__wire {
  height: 1px;
  background: var(--wire);
}

.flow__wire--in {
  transform-origin: left;
}

.flow__wire--out {
  transform-origin: left;
}

.flow__hub {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 55%, #ffe6bf 100%);
  box-shadow: 0 0 0 10px rgb(253 176 68 / 0.12), 0 0 0 22px rgb(253 176 68 / 0.06), 0 0 60px 10px rgb(253 176 68 / 0.35);
}

.flow__hub img {
  border-radius: 10px;
}

/* The diagram draws itself once, in reading order: inputs, bus, hub, outputs. */
.js .flow .flow__col--in li::after,
.js .flow .flow__col--out li::after,
.js .flow .flow__wire {
  transform: scaleX(0);
}

.js .flow .flow__col::before {
  transform: scaleY(0);
}

.js .flow .flow__hub {
  opacity: 0;
  transform: scale(0.9);
}

.js .flow .flow__col li::after,
.js .flow .flow__col::before,
.js .flow .flow__wire,
.js .flow .flow__hub {
  transition:
    transform 600ms var(--ease-out),
    opacity 600ms var(--ease-out);
}

.js .flow .flow__col--in li::after {
  transition-delay: calc(200ms + var(--n) * 50ms);
}

.js .flow .flow__col--in::before {
  transition-delay: 550ms;
}

.js .flow .flow__wire--in {
  transition-delay: 750ms;
}

.js .flow .flow__hub {
  transition-delay: 900ms;
}

.js .flow .flow__wire--out {
  transition-delay: 1050ms;
}

.js .flow .flow__col--out::before {
  transition-delay: 1250ms;
}

.js .flow .flow__col--out li::after {
  transition-delay: calc(1400ms + var(--n) * 50ms);
}

.js .flow.is-in .flow__col li::after,
.js .flow.is-in .flow__col::before,
.js .flow.is-in .flow__wire,
.js .flow.is-in .flow__hub {
  opacity: 1;
  transform: none;
}

@media (max-width: 759px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    padding: 2rem 1rem;
  }

  .flow__col {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .flow__col::before,
  .flow__col li::after {
    display: none;
  }

  .flow__col li,
  .flow__col--out li {
    flex-direction: row;
    gap: 0.5rem;
    height: auto;
    padding: 0.3rem 0.75rem 0.3rem 0.3rem;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.06);
  }

  .node {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .node svg {
    width: 15px;
    height: 15px;
  }

  .flow__wire {
    width: 1px;
    height: 32px;
    margin-block: 0.75rem;
  }

  .js .flow .flow__wire {
    transform: scaleY(0);
    transform-origin: top;
  }

  .js .flow.is-in .flow__wire {
    transform: none;
  }
}

/* FAQ */

.faq {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
}

.faq__head {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 1rem;
}

.faq__head .head__lead {
  max-width: 24rem;
}

.faq__list {
  display: grid;
  gap: 0.5rem;
}

.faq__item {
  border-radius: 18px;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

/* data-closing is set the moment a collapse starts, so card and icon turn back with it. */
.faq__item[open]:not([data-closing]) {
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.faq__item summary {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__num {
  color: var(--faint);
  font: 0.75rem/1 var(--font-mono);
}

.faq__q {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq__icon {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open]:not([data-closing]) .faq__icon {
  background: var(--gold);
  box-shadow: none;
}

.faq__item[open]:not([data-closing]) .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* site.js animates this wrapper's height on open and close. */
.faq__body {
  margin-top: -0.35rem;
  overflow: hidden;
}

.faq__a {
  margin: 0;
  padding: 0 1.25rem 1.35rem calc(1.25rem + 2.5rem + 0.75rem);
  color: var(--muted);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

html:not(.js) .faq__item[open] .faq__a {
  animation: insight-in 300ms var(--ease-out);
}

@media (max-width: 559px) {
  .faq__item summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .faq__num {
    display: none;
  }

  .faq__a {
    padding-left: 1.25rem;
  }
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
  }

  .faq__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* Contact card */

.end {
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(4rem, 8vw, 6rem);
}

.end__card {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgb(18 18 16 / 0.06), 0 30px 60px -40px rgb(90 45 0 / 0.5);
}

.end__copy {
  display: grid;
  justify-items: start;
  gap: 1.1rem;
}

.end__title {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.end__lead {
  max-width: 30rem;
  margin: 0;
  color: #3d2a12;
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.end__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: 54px;
  padding: 0 0.4rem 0 1.1rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.8), 0 1px 2px rgb(90 45 0 / 0.1);
  font: 0.875rem/1 var(--font-mono);
}

.email a {
  color: var(--ink);
  text-decoration: none;
}

.copy {
  display: grid;
  align-items: center;
  justify-items: center;
  height: 40px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: rgb(18 18 16 / 0.06);
  color: var(--ink-2);
  font: 500 0.8rem/1 var(--font-sans);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 160ms var(--ease-out),
    background-color 150ms ease,
    color 150ms ease;
}

.copy:active {
  transform: scale(0.97);
}

/* Both faces share one cell, so the button never changes width; blur bridges the swap. */
.copy__face {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition:
    opacity 200ms ease,
    filter 200ms ease,
    transform 200ms var(--ease-out);
}

.copy__face svg {
  width: 14px;
  height: 14px;
}

.copy__face--done,
.copy[data-state="done"] .copy__face--idle {
  opacity: 0;
  filter: blur(3px);
  transform: scale(0.9);
}

.copy[data-state="done"] .copy__face--done {
  opacity: 1;
  filter: none;
  transform: none;
  color: #2b8a5b;
}

@media (min-width: 960px) {
  .end__card {
    grid-template-columns: minmax(0, 1.3fr) auto;
    align-items: end;
  }

  .end__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Footer */

.foot {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-inline: -0.75rem;
}

.foot__legal {
  color: var(--faint);
  font-size: 0.8125rem;
}

/* Scroll reveals: transitions, so a fast scroll retargets instead of restarting. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js .flow[data-reveal] {
  transform: none;
}

.js .step[data-reveal]::after {
  transform: scaleX(0);
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(250ms + var(--i, 0) * 180ms);
}

.js .step[data-reveal].is-in::after {
  transform: none;
}

/* Reduced motion: keep the fades that explain, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  @keyframes enter {
    from {
      opacity: 0;
    }
  }

  @keyframes row-in {
    from {
      opacity: 0;
    }
  }

  @keyframes insight-in {
    from {
      opacity: 0;
    }
  }


  .panel {
    transform: none;
    filter: none;
  }

  .feed-index__glide {
    transition: none;
  }

  .js [data-reveal] {
    transform: none;
    transition: opacity 400ms ease;
  }

  .js .step[data-reveal]::after,
  .js .card--d .track::after,
  .js .flow .flow__col li::after,
  .js .flow .flow__col::before,
  .js .flow .flow__wire,
  .js .flow .flow__hub {
    transform: none;
    transition: opacity 400ms ease;
  }

  .js .card--e .orbit__arc {
    stroke-dashoffset: 0;
    transition: none;
  }

  .copy__face {
    transition: opacity 150ms ease;
  }

  .copy__face--done,
  .copy[data-state="done"] .copy__face--idle {
    filter: none;
    transform: none;
  }
}
