:root {
  color-scheme: dark light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: #000;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: #000; }

body { margin: 0; min-width: 320px; background: #000; }

#app { background: #fff; }

a { color: inherit; text-decoration: none; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1px 24px 0;
  /* Exact gradient from the Figma source. */
  background: radial-gradient(156.33% 100% at 50% 0%, #070628 12.07%, #269EFA 62.02%, #C7D5FF 83.17%, #FEF5ED 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -10% -10rem;
  height: 20rem;
  background: linear-gradient(to bottom, transparent, #FEF5ED 85%);
  filter: blur(20px);
}

.nav {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 38px);
  width: max-content;
  max-width: calc(100vw - 48px);
  margin: 0;
  padding: 16px 26px 16px;
  border-radius: 0 0 20px 20px;
  color: rgba(255, 255, 255, .96);
  background:
    linear-gradient(180deg, #020204 0%, rgba(5, 5, 8, .94) 40%, rgba(18, 20, 28, .76) 78%, rgba(28, 30, 42, .58) 100%) padding-box,
    linear-gradient(115deg, rgba(255, 255, 255, .46) 0%, rgba(255, 255, 255, .08) 34%, rgba(158, 177, 255, .2) 68%, rgba(255, 255, 255, .4) 100%) border-box;
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid transparent;
  border-top: 0;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .05),
    0 20px 36px -18px rgba(0, 0, 0, .42);
  font-size: 12px;
  transform: translate(-50%, 0);
  /* 1s hold before it drops. `both` keeps the nav parked offscreen during the
     delay instead of flashing in place first. */
  animation: nav-drop-in 900ms cubic-bezier(.16, .9, .3, 1) 1s both;
}

@keyframes nav-drop-in {
  from { transform: translate(-50%, -130%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.nav::before,
.nav::after {
  content: "";
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.nav::before {
  right: 100%;
  border-top-right-radius: 12px;
  box-shadow: 5px -5px 0 4px #020204;
}

.nav::after {
  left: 100%;
  border-top-left-radius: 12px;
  box-shadow: -5px -5px 0 4px #020204;
}

.brand { display: flex; align-items: center; white-space: nowrap; }
.brand-logo { display: block; height: 18px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: clamp(18px, 2.5vw, 31px); }
.nav-links a { opacity: .94; }

.nav-cta, .button-primary {
  color: #101015;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, .55), 0 3px 9px rgba(0, 0, 0, .38);
}

.nav-cta { padding: 8px 15px; border-radius: 999px; }
.nav-menu-cta { display: none; }

/* Hamburger. Hidden until the links collapse into a dropdown on small screens. */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 14px;
  height: 1.6px;
  border-radius: 2px;
  background: #fff;
  transition: transform 220ms ease, opacity 160ms ease;
}

.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(145px, 19vh, 195px);
  text-align: center;
}

h1 {
  max-width: 960px;
  margin: 0;
  color: #fff;
  font-size: clamp(52px, 5.6vw, 88px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.1;
  text-shadow: 0 5px 18px rgba(0, 0, 0, .24);
}

h1 em {
  display: inline-block;
  margin: 0 .08em 0 .06em;
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: .87em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.09em;
  transform: translateY(-.035em) rotate(-2deg);
}

.intro p {
  margin: 13px 0 0;
  color: rgba(221, 230, 247, .86);
  font-size: clamp(16px, 1.42vw, 20px);
  letter-spacing: -.04em;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
}

.hero-compatibility {
  color: rgba(221, 230, 247, .65);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -.02em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 16px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

.button-outline { gap: 11px; color: white; border-color: rgba(255,255,255,.86); background: transparent; }
.play-icon { width: 0; height: 0; margin-left: 1px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #fff; }

.video-frame {
  position: relative;
  width: min(840px, calc(100vw - 48px));
  /* MacBook screen proportions, so recordings at native laptop resolution
     never need to be cropped or letterboxed to fit the frame. */
  aspect-ratio: 15.4 / 10;
  margin: clamp(40px, 5vw, 60px) auto 0;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
  background: linear-gradient(135deg, rgba(211, 239, 255, .98), rgba(219, 230, 255, .93) 55%, rgba(252, 248, 253, .97));
  box-shadow: inset 0 1px rgba(255,255,255,.76);
}

/* This edited hero has its own proportions. Show every pixel rather than
   cropping it to the aspect ratio of the older screen recording. */
.hero .video-frame { aspect-ratio: 3238 / 2160; }
.hero .placeholder-video { object-fit: contain; }

/* Mute toggle sits above the video in every frame; the frame itself is also
   clickable (see initVideoMuteToggles), this button is just the visible state. */
.video-mute-toggle {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(15, 16, 22, .4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.video-mute-toggle:hover { background: rgba(15, 16, 22, .58); }
.video-mute-toggle:active { transform: scale(.92); }
.video-mute-toggle svg { width: 16px; height: 16px; }

.video-mute-toggle .mt-mute-x { display: none; }
.video-mute-toggle.is-muted .mt-wave1,
.video-mute-toggle.is-muted .mt-wave2 { display: none; }
.video-mute-toggle.is-muted .mt-mute-x { display: block; }

.placeholder-video {
  cursor: pointer;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor to the top edge: source clips vary in resolution/aspect, and any
     cropping from `cover` should eat into the bottom, never the menu bar. */
  object-position: top;
}

.ai-section {
  padding: clamp(70px, 8vw, 110px) 24px clamp(30px, 3.5vw, 48px);
  overflow: hidden;
  color: #080808;
  background: #fff;
}

.section-heading { text-align: center; }

.section-heading h2 {
  margin: 0;
  font-size: clamp(43px, 4.15vw, 64px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: 1.02;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

.section-heading h2 em {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: 1.05em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.1em;
}

.section-heading p {
  margin: 14px 0 0;
  color: #868686;
  font-size: clamp(16px, 1.38vw, 20px);
  letter-spacing: -.045em;
  line-height: 1.25;
}

.demo-tabs {
  position: relative;
  display: flex;
  width: min(510px, 100%);
  margin: 30px auto 0;
  padding: 3px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

.demo-tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-height: 41px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: #171717;
  background: transparent;
  font: 400 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.03em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 220ms ease;
}

.demo-tab.is-active { color: #fff; }

.tab-indicator {
  position: absolute;
  z-index: 0;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: #000;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: width 360ms cubic-bezier(.2,.8,.2,1), transform 360ms cubic-bezier(.2,.8,.2,1);
  will-change: width, transform;
}

.feature-video-frame {
  position: relative;
  display: grid;
  width: min(1060px, calc(100vw - 48px));
  aspect-ratio: 15.4 / 10;
  margin: clamp(34px, 3.8vw, 52px) auto 0;
  place-items: center;
  border: 1px solid #bababa;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(20, 20, 35, .12), 0 4px 12px rgba(20, 20, 35, .06);
  transition: opacity 180ms ease, transform 180ms ease;
  overflow: hidden;
}

.feature-video-label {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(15, 16, 22, .45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-video-frame.is-changing { opacity: .2; transform: translateY(8px); }

.label-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 200ms ease, transform 200ms ease;
}

.label-text.is-fading {
  opacity: 0;
  transform: translateY(-4px);
}

.voice-bars {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  height: 18px;
}
.feature-video-label.has-bars .voice-bars { display: inline-flex; }
.voice-bars i {
  display: block;
  width: 3.5px;
  border-radius: 99px;
  background: #ffffff;
  transform-origin: center;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  animation: voice-bar-bounce 1200ms ease-in-out infinite;
}
.voice-bars i:nth-child(1) { height: 8px; animation-delay: 0ms; }
.voice-bars i:nth-child(2) { height: 17px; animation-delay: 180ms; }
.voice-bars i:nth-child(3) { height: 11px; animation-delay: 360ms; }
.voice-bars i:nth-child(4) { height: 15px; animation-delay: 540ms; }

@keyframes voice-bar-bounce {
  0%, 100% { transform: scaleY(.28); opacity: .65; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---- Generative UI ---- */

.generative-ui-section {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) 24px;
  color: #111318;
  background:
    radial-gradient(circle at 82% 34%, rgba(45, 112, 255, .1), transparent 32%),
    #fff;
}

.generative-ui-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(56px, 7vw, 110px);
  align-items: center;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.generative-ui-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  height: 720px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
}

.generative-ui-column { overflow: hidden; }

.generative-ui-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  will-change: transform;
}

.generative-ui-column-down .generative-ui-track {
  animation: generative-ui-down 34s linear infinite;
}

.generative-ui-column-up .generative-ui-track {
  animation: generative-ui-up 38s linear infinite;
}

.generative-ui-card {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(20, 24, 32, .09);
  border-radius: 28px;
  background:
    radial-gradient(circle at 72% 20%, rgba(87, 126, 255, .11), transparent 40%),
    #e9ebee;
  box-shadow: inset 0 1px rgba(255, 255, 255, .7);
}

.generative-ui-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.generative-ui-copy { max-width: 520px; }

.generative-ui-copy h2 {
  margin: 0;
  color: #080808;
  font-size: clamp(43px, 4.15vw, 64px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: 1.02;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

.generative-ui-copy h2 em {
  color: inherit;
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: 1.05em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.1em;
}

.generative-ui-copy > p {
  max-width: 490px;
  margin: 14px 0 0;
  color: #868686;
  font-size: clamp(16px, 1.38vw, 20px);
  letter-spacing: -.045em;
  line-height: 1.25;
}

@keyframes generative-ui-down {
  from { transform: translate3d(0, -50%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes generative-ui-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

@media (max-width: 820px) {
  .generative-ui-section { padding: 68px 16px; }
  .generative-ui-layout { grid-template-columns: 1fr; gap: 48px; }
  .generative-ui-copy { order: -1; max-width: 620px; text-align: center; }
  .generative-ui-copy > p { margin-inline: auto; }
  .generative-ui-copy h2 { font-size: clamp(38px, 10.5vw, 56px); }
  .generative-ui-gallery { gap: 0; height: 520px; }
  .generative-ui-track { gap: 0; }
  .generative-ui-card { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .generative-ui-track { animation-play-state: paused !important; }
}

.work-section {
  padding: clamp(60px, 7vw, 95px) 0 clamp(30px, 3.5vw, 48px);
  overflow: hidden;
  color: #080808;
  background: #fff;
}

.app-arch {
  width: 100%;
  /* Height is set inline by updateAppArchPath() to exactly match the arc geometry
     at the current width; this is just a pre-JS fallback. */
  height: 280px;
  margin-top: clamp(28px, 4.4vw, 55px);
  overflow: hidden;
}

.app-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.app-card {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(66px, 7vw, 110px);
  aspect-ratio: 1 / 1.02;
  /* The path is set from the live viewport width in script.js. */
  offset-path: path("M 1600 275 C 1200 -42 400 -42 -150 275");
  /* Keep the top card upright while each card tilts with the circular arc. */
  offset-rotate: auto 180deg;
  animation: arch-crawl 24s linear infinite;
}

/* Evenly spaced across the 24s loop: 24 / 10 cards = 2.4s apart. Re-space
   these whenever a card is added or removed, or a gap opens in the arch. */
.app-card:nth-child(1) { animation-delay: 0s; }
.app-card:nth-child(2) { animation-delay: -2.4s; }
.app-card:nth-child(3) { animation-delay: -4.8s; }
.app-card:nth-child(4) { animation-delay: -7.2s; }
.app-card:nth-child(5) { animation-delay: -9.6s; }
.app-card:nth-child(6) { animation-delay: -12s; }
.app-card:nth-child(7) { animation-delay: -14.4s; }
.app-card:nth-child(8) { animation-delay: -16.8s; }
.app-card:nth-child(9) { animation-delay: -19.2s; }
.app-card:nth-child(10) { animation-delay: -21.6s; }

.app-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .18)) drop-shadow(0 4px 8px rgba(0, 0, 0, .12));
  transition: transform 220ms ease, filter 220ms ease;
}

.app-card:hover .app-icon {
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .24)) drop-shadow(0 8px 12px rgba(0, 0, 0, .15));
  transform: scale(1.06);
}

.work-video { margin-top: 0; }

.rewrite-section {
  /* Accent lives on the section, not the card, so the ambient wash behind the
     card can tint with the active app too. JS re-sets both per cycle. */
  --app-accent: #1a78e0;
  --app-accent-soft: rgba(26, 120, 224, .14);
  position: relative;
  /* No `overflow: hidden` here on purpose. The card's shadow is far larger than
     any sane padding, so clipping it always leaves a hard horizontal line at the
     seam. Instead the shadow is allowed to spill, and z-index lifts this section
     above the next one so the spill paints over its background rather than
     being covered by it. Anything decorative inside must therefore stay within
     100% width or it would trigger horizontal page scroll. */
  z-index: 1;
  padding: clamp(60px, 7vw, 95px) 24px clamp(40px, 4.5vw, 64px);
  color: #080808;
  /* A tinted pool that fades back to white before the section edges. The card
     is white glass — it needs tone behind it to read as an object at all, and
     the fade keeps this from banding against the white sections either side. */
  /* Vertical radius (40%) is deliberately smaller than the distance from the
     centre to either edge, so the gradient has fully resolved to #fff before
     the section boundaries and can't band against the white sections
     above and below. */
  background:
    radial-gradient(ellipse 92% 40% at 50% 46%, #e8ecf6 0%, #f3f5fb 44%, #fafbfd 70%, #fff 88%);
}

/* Light pooled behind the card. Without it the card floats on flat white and
   reads as a cut-out; with it the whole section sits in one space. */
.rewrite-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: clamp(150px, 20vw, 260px);
  left: 50%;
  /* Capped at 100%: with the section no longer clipping, anything wider would
     push the page into horizontal scroll. */
  width: min(1320px, 100%);
  height: clamp(420px, 46vw, 720px);
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 62% 54% at 50% 45%, var(--app-accent) 0%, transparent 68%),
    radial-gradient(ellipse 48% 40% at 50% 62%, #6d7cff 0%, transparent 72%);
  opacity: .13;
  filter: blur(24px);
  transition: opacity 420ms ease;
  pointer-events: none;
}

.rewrite-stage { margin-top: clamp(28px, 3.6vw, 46px); }

.voice-bars-muted i { background: currentColor; }

.rewrite-raw {
  max-width: min(640px, calc(100vw - 48px));
  margin: 0 auto;
  color: #9c9caa;
  font-size: clamp(14px, 1.5vw, 21px);
  font-style: italic;
  letter-spacing: .045em;
  line-height: 1.6;
  text-align: center;
  transition: opacity 420ms ease, transform 420ms ease;
}

.rewrite-raw .voice-bars {
  margin-right: 9px;
  color: #1a78e0;
  vertical-align: -2px;
}

/* Letter streams. Each glyph reads --x0/--x1 (unitless factors) so the spread
   scales with the breakpoint without regenerating the DOM. */
.rewrite-flow {
  position: relative;
  width: 100%;
  height: var(--dist);
  pointer-events: none;
  font-style: normal;
}

.rewrite-flow i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1em;
  margin-left: -.5em;
  color: currentColor;
  font-size: var(--size);
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  opacity: 0;
  animation: rewrite-flow-fall var(--dur) linear var(--delay) infinite;
}

.rewrite-flow-in {
  --spread-a: clamp(78px, 11vw, 140px);
  --spread-b: 12px;
  --dist: clamp(84px, 9.5vw, 128px);
  color: #b0b0be;
}

.rewrite-flow-out {
  position: relative;
  z-index: 2;
  --spread-a: clamp(20px, 2.4vw, 30px);
  --spread-b: 5px;
  --dist: clamp(96px, 11vw, 158px);
  color: var(--app-accent, #1a78e0);
  transition: color 420ms ease;
}

@keyframes rewrite-flow-fall {
  0% { opacity: 0; transform: translate3d(calc(var(--x0) * var(--spread-a)), 0, 0) scale(.8); }
  14% { opacity: var(--op); }
  78% { opacity: var(--op); }
  100% { opacity: 0; transform: translate3d(calc(var(--x1) * var(--spread-b)), var(--dist), 0) scale(1); }
}

.rewrite-card {
  /* Shared by the notch and the app bar's centre column, so bar content can
     never slide underneath the notch. */
  --notch-w: clamp(168px, 21vw, 268px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1060px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(64px, 7.4vw, 100px) 24px clamp(40px, 4.6vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: clamp(26px, 3.4vw, 46px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(245, 247, 252, .74) 100%);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  /* Four layers rather than one soft blur: a hairline contact shadow, a close
     ambient one, then two wide negative-spread layers that stay tucked under
     the card so it reads as weight rather than a grey smear. */
  box-shadow:
    0 2px 4px rgba(18, 20, 34, .06),
    0 12px 24px -6px rgba(18, 20, 34, .10),
    0 34px 62px -14px rgba(18, 20, 34, .20),
    0 64px 104px -34px rgba(18, 20, 34, .24),
    inset 0 1px 0 0 rgba(255, 255, 255, 1);
}

/* ---- Swappable app skin behind the composer ---- */

.rewrite-app {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 380ms ease;
}

.rewrite-app.is-swapping { opacity: 0; }

.app-bar {
  display: grid;
  grid-template-columns: 1fr var(--notch-w) 1fr;
  align-items: center;
  height: clamp(46px, 5.6vw, 74px);
  flex: 0 0 auto;
  padding: 0 clamp(14px, 1.8vw, 24px);
  border-bottom: 1px solid rgba(20, 20, 35, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(252, 253, 255, .6));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.app-bar-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
}

.app-dots { display: flex; gap: 6px; flex: 0 0 auto; }

/* Inset shading + a top highlight so the lights read as physical buttons
   rather than three flat swatches. */
.app-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dcdce3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -1px 1px rgba(0, 0, 0, .12),
    0 0 0 .5px rgba(0, 0, 0, .06);
}

.app-dots i:nth-child(1) { background: linear-gradient(180deg, #ff7369, #ec5a4e); }
.app-dots i:nth-child(2) { background: linear-gradient(180deg, #ffcb5e, #efb03c); }
.app-dots i:nth-child(3) { background: linear-gradient(180deg, #6ed663, #52bd47); }

.app-bar-icon {
  width: clamp(17px, 2vw, 24px);
  height: clamp(17px, 2vw, 24px);
  margin-left: clamp(4px, .8vw, 10px);
  object-fit: contain;
  border-radius: 5px;
}

.app-bar-title {
  color: #4a4a57;
  font-size: clamp(11px, 1.15vw, 14px);
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.3vw, 16px);
  padding: clamp(16px, 2.2vw, 30px) clamp(16px, 2.4vw, 34px);
  overflow: hidden;
}

/* Skeleton bars stand in for real app content — abstract on purpose. */
.app-line {
  height: clamp(7px, .85vw, 10px);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 22, 45, .085), rgba(20, 22, 45, .055));
}

.chat-row { display: flex; align-items: flex-start; gap: clamp(8px, 1vw, 13px); }

.chat-avatar {
  flex: 0 0 auto;
  width: clamp(22px, 2.6vw, 33px);
  height: clamp(22px, 2.6vw, 33px);
  border-radius: 9px;
  background: rgba(20, 20, 40, .09);
}

.chat-row.is-self .chat-avatar { background: var(--app-accent); opacity: .25; }

.chat-lines {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
}

.app-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: clamp(9px, 1.1vw, 13px);
  border-bottom: 1px solid rgba(20, 20, 35, .06);
}

.app-field-label {
  flex: 0 0 auto;
  color: #9a9aa6;
  font-size: clamp(10px, 1.05vw, 13px);
}

.app-doc-title {
  height: clamp(13px, 1.5vw, 18px);
  width: 42%;
  border-radius: 5px;
  background: rgba(20, 20, 40, .12);
  margin-bottom: 4px;
}

.rewrite-notch {
  --fillet: clamp(10px, 1.4vw, 18px);
  /* Matches the composited colour at the card's top edge (glass app bar over
     the card's own translucent white) so the concave fillets blend seamlessly. */
  --card-top: #fdfdfe;
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--notch-w, clamp(168px, 21vw, 268px));
  height: clamp(46px, 5.6vw, 74px);
  transform: translateX(-50%);
  border-radius: 0 0 clamp(17px, 2.2vw, 27px) clamp(17px, 2.2vw, 27px);
  background: linear-gradient(180deg, #000 0%, #000 58%, #161616 100%);
  box-shadow:
    0 10px 24px -4px rgba(0, 0, 0, .28),
    0 2px 6px rgba(0, 0, 0, .18),
    inset 0 -1px 0 rgba(255, 255, 255, .1);
}

/* Concave fillets so the card edge curves into the notch, the way macOS draws it. */
.rewrite-notch::before,
.rewrite-notch::after {
  content: "";
  position: absolute;
  top: 0;
  width: var(--fillet);
  height: var(--fillet);
}

.rewrite-notch::before {
  left: calc(-1 * var(--fillet));
  background: radial-gradient(circle at 0 100%, var(--card-top) calc(var(--fillet) - .5px), #000 var(--fillet));
}

.rewrite-notch::after {
  right: calc(-1 * var(--fillet));
  background: radial-gradient(circle at 100% 100%, var(--card-top) calc(var(--fillet) - .5px), #000 var(--fillet));
}

.notch-wave {
  display: flex;
  align-items: center;
  gap: clamp(2px, .35vw, 3.5px);
  height: clamp(17px, 2.1vw, 29px);
}

.notch-wave i {
  display: block;
  width: clamp(2.5px, .32vw, 3.5px);
  border-radius: 999px;
  background: #fff;
  transform-origin: center;
  animation: notch-wave-pulse 1500ms ease-in-out infinite;
}

.notch-wave i:nth-child(1) { height: 32%; animation-delay: 0ms; }
.notch-wave i:nth-child(2) { height: 54%; animation-delay: 110ms; }
.notch-wave i:nth-child(3) { height: 76%; animation-delay: 220ms; }
.notch-wave i:nth-child(4) { height: 92%; animation-delay: 330ms; }
.notch-wave i:nth-child(5) { height: 100%; animation-delay: 440ms; }
.notch-wave i:nth-child(6) { height: 96%; animation-delay: 550ms; }
.notch-wave i:nth-child(7) { height: 100%; animation-delay: 660ms; }
.notch-wave i:nth-child(8) { height: 88%; animation-delay: 770ms; }
.notch-wave i:nth-child(9) { height: 68%; animation-delay: 880ms; }
.notch-wave i:nth-child(10) { height: 46%; animation-delay: 990ms; }
.notch-wave i:nth-child(11) { height: 28%; animation-delay: 1100ms; }

@keyframes notch-wave-pulse {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}

.rewrite-notch-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rewrite-output {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(11px, 1.4vw, 18px);
  width: min(680px, 100%);
  margin-top: clamp(16px, 2vw, 26px);
  padding: clamp(13px, 1.6vw, 20px) clamp(16px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .8) 100%);
  backdrop-filter: blur(24px) saturate(185%);
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  /* The accent glow sits in its own wide, tucked-under layer so the pill picks
     up the active app's colour without tinting the glass itself. */
  box-shadow:
    0 1px 2px rgba(18, 20, 34, .05),
    0 10px 24px -6px rgba(18, 20, 34, .10),
    0 22px 48px -14px var(--app-accent-soft),
    inset 0 1px 0 0 rgba(255, 255, 255, 1);
  transition: box-shadow 420ms ease;
}

.rewrite-spark {
  flex: 0 0 auto;
  width: clamp(19px, 2.2vw, 28px);
  height: clamp(19px, 2.2vw, 28px);
  color: var(--app-accent);
  transition: color 420ms ease;
}

.rewrite-clean {
  flex: 1 1 auto;
  min-width: 0;
  color: #14141b;
  font-size: clamp(14px, 1.65vw, 23px);
  font-weight: 500;
  letter-spacing: -.02em;
  transition: opacity 420ms ease, transform 420ms ease;
}

/* Caret only shows while the sentence is being dictated in. */
.rewrite-caret {
  display: none;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  border-radius: 1px;
  background: var(--app-accent, #1a78e0);
  vertical-align: text-bottom;
  animation: rewrite-caret-blink 1s steps(1) infinite;
}

.rewrite-clean.is-typing .rewrite-caret { display: inline-block; }

@keyframes rewrite-caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.rewrite-raw.is-swapping, .rewrite-clean.is-swapping { opacity: 0; transform: translateY(6px); }

/* ---- Composer, shaped to match the app it's typing into ----
   Each app frames its input differently: Slack and Claude use a bordered box,
   Messages a full pill, while Gmail, Docs and Notion have no input chrome at
   all — you type straight onto the page. */

.rewrite-output[data-app="slack"] {
  width: min(680px, 100%);
  border-radius: 9px;
  border: 1px solid rgba(29, 28, 29, .2);
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 3px rgba(20, 20, 40, .07);
}

.rewrite-output[data-app="claude"] {
  width: min(680px, 100%);
  border-radius: 15px;
  border: 1px solid rgba(84, 62, 46, .18);
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 8px rgba(84, 62, 46, .08);
}

.rewrite-output[data-app="messages"] {
  width: min(680px, 100%);
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 40, .18);
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* Document-style apps: no box, the line just sits in the page. */
.rewrite-output[data-app="gmail"],
.rewrite-output[data-app="docs"],
.rewrite-output[data-app="notion"] {
  width: 100%;
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding-inline: clamp(2px, .8vw, 12px);
}

/* ---- LazyFlow Agent ---- */

.agent-section {
  --agent-blue: #1677ff;
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 7.5vw, 104px) 24px clamp(66px, 7.5vw, 104px);
  color: #080808;
  background:
    radial-gradient(ellipse 76% 38% at 50% 48%, rgba(22, 119, 255, .12), transparent 74%),
    #fff;
}

.agent-section::before {
  content: "";
  position: absolute;
  top: 38%;
  left: 50%;
  width: min(1080px, 96vw);
  aspect-ratio: 2 / 1;
  border-radius: 50%;
  background: rgba(62, 145, 255, .09);
  filter: blur(76px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.agent-heading,
.agent-activation,
.agent-activation-copy,
.agent-demo,
.agent-capabilities { position: relative; z-index: 1; }

.agent-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(22, 119, 255, .18);
  border-radius: 999px;
  color: #0d62ce;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 8px 22px rgba(19, 89, 181, .08);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .01em;
}

.agent-eyebrow img { width: 22px; height: 22px; }

.agent-activation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  width: min(900px, calc(100vw - 48px));
  margin: clamp(32px, 4vw, 50px) auto 0;
}

.agent-key-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(20, 20, 35, .09);
  border-radius: 22px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 16px 40px rgba(17, 24, 39, .07), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.agent-key-step.is-speaking {
  border-color: rgba(22, 119, 255, .3);
  background: rgba(246, 251, 255, .92);
  box-shadow: 0 20px 54px rgba(22, 119, 255, .15), inset 0 1px 0 #fff;
}

.agent-step-number {
  position: absolute;
  top: 11px;
  right: 13px;
  color: #b7bac3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.agent-keycap,
.agent-release-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(58px, 6vw, 72px);
  height: clamp(50px, 5.2vw, 62px);
  border: 1px solid #d5d8df;
  border-radius: 14px;
  color: #282b33;
  background: linear-gradient(145deg, #fff, #edf0f5);
  box-shadow: 0 5px 0 #cfd3da, 0 10px 18px rgba(20, 25, 36, .13), inset 0 1px 0 #fff;
}

.agent-keycap span {
  align-self: end;
  justify-self: start;
  padding: 0 0 10px 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.agent-key-step.is-speaking .agent-keycap {
  border-color: #0b67df;
  color: #fff;
  background: linear-gradient(145deg, #459aff, #0870ee);
  box-shadow: 0 2px 0 #075bbb, 0 8px 24px rgba(22, 119, 255, .36), inset 0 1px 0 rgba(255, 255, 255, .28);
  transform: translateY(3px);
}

.agent-step-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.agent-step-copy strong { color: #22242b; font-size: clamp(14px, 1.45vw, 17px); font-weight: 620; }
.agent-step-copy small { color: #8d919c; font-size: 11px; white-space: nowrap; }
.agent-key-step.is-speaking .agent-step-copy strong { color: #0d62ce; }

.agent-key-pulse {
  position: absolute;
  left: 18px;
  width: clamp(58px, 6vw, 72px);
  height: clamp(50px, 5.2vw, 62px);
  border: 2px solid rgba(22, 119, 255, .36);
  border-radius: 14px;
  animation: agent-key-pulse 1.8s ease-out infinite;
  pointer-events: none;
}

.agent-release-symbol i {
  position: relative;
  width: 22px;
  height: 24px;
  border: 2px solid #646874;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.agent-release-symbol i::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #1677ff;
  border-left: 2px solid #1677ff;
  transform: translateX(-50%) rotate(45deg);
}

.agent-release-symbol i::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 2px;
  height: 17px;
  background: #1677ff;
  transform: translateX(-50%);
}

.agent-step-arrow { color: #a5a9b3; font-size: 20px; }

.agent-activation-copy {
  max-width: 760px;
  margin: 22px auto 0;
  color: #737783;
  font-size: clamp(13px, 1.35vw, 16px);
  letter-spacing: -.02em;
  line-height: 1.45;
  text-align: center;
}

.agent-activation-copy strong { color: #25272e; font-weight: 600; }

.agent-demo {
  width: min(980px, calc(100vw - 48px));
  margin: clamp(30px, 4vw, 48px) auto 0;
}

.agent-command-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  width: min(620px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto -17px;
  padding: 11px 17px 11px 13px;
  border: 1px solid rgba(22, 119, 255, .2);
  border-radius: 18px;
  color: #13345f;
  background: rgba(244, 249, 255, .95);
  box-shadow: 0 16px 42px rgba(22, 97, 195, .16), inset 0 1px 0 #fff;
}

.agent-command-card > span:nth-child(2) {
  font-size: clamp(13px, 1.45vw, 16px);
  font-weight: 560;
  letter-spacing: -.02em;
}

.agent-command-card small { color: #7d8999; font-size: 10px; white-space: nowrap; }

.agent-command-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #459aff, #0870ee);
  box-shadow: 0 8px 18px rgba(22, 119, 255, .25);
}

.agent-command-icon i {
  width: 2px;
  height: 9px;
  border-radius: 99px;
  background: #fff;
  animation: agent-command-wave 720ms ease-in-out infinite alternate;
}

.agent-command-icon i:nth-child(2) { height: 17px; animation-delay: -180ms; }
.agent-command-icon i:nth-child(3) { height: 22px; animation-delay: -360ms; }
.agent-command-icon i:nth-child(4) { height: 15px; animation-delay: -120ms; }
.agent-command-icon i:nth-child(5) { height: 8px; animation-delay: -280ms; }

.agent-editor {
  overflow: hidden;
  padding-top: 17px;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 38px 90px rgba(35, 63, 111, .15), 0 12px 32px rgba(17, 24, 39, .08), inset 0 1px 0 #fff;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.agent-appbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(20, 20, 35, .08);
  color: #858995;
  font-size: 11px;
}

.agent-app-dots { display: flex; gap: 6px; }
.agent-app-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d9dbe1; }
.agent-app-dots i:nth-child(1) { background: #ff6b62; }
.agent-app-dots i:nth-child(2) { background: #ffc455; }
.agent-app-dots i:nth-child(3) { background: #57c95a; }
.agent-document-name { color: #575b67; font-weight: 600; }
.agent-app-state { justify-self: end; color: #1671e5; }

.agent-transform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(18px, 2.5vw, 32px);
  padding: clamp(50px, 6vw, 76px) clamp(28px, 5vw, 66px) clamp(54px, 6vw, 78px);
}

.agent-text-state {
  position: relative;
  min-height: 190px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid rgba(20, 20, 35, .09);
  border-radius: 20px;
  background: rgba(248, 249, 252, .84);
}

.agent-text-state > span {
  display: block;
  margin-bottom: 22px;
  color: #979ba6;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .14em;
}

.agent-text-state p {
  margin: 0;
  font-size: clamp(18px, 2.15vw, 27px);
  letter-spacing: -.04em;
  line-height: 1.26;
}

.agent-text-state.is-before p {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 5px;
  color: #172b49;
  background: rgba(96, 167, 255, .3);
}

.agent-text-state.is-after {
  border-color: rgba(22, 119, 255, .18);
  background: rgba(245, 250, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, .04);
}

.agent-text-state.is-after > span { color: #1671e5; }

.agent-transform-arrow {
  display: grid;
  place-items: center;
  color: #1677ff;
}

.agent-transform-arrow svg { width: 48px; }

.agent-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  background: #1677ff;
  animation: agent-caret-blink 1s steps(1) infinite;
  vertical-align: -.12em;
}

.agent-capabilities {
  position: relative;
  z-index: 1;
  width: min(850px, calc(100vw - 48px));
  margin: clamp(34px, 4vw, 50px) auto 0;
  text-align: center;
}

.agent-capabilities p {
  margin: 22px auto 0;
  color: #747884;
  font-size: clamp(14px, 1.45vw, 17px);
  letter-spacing: -.025em;
  line-height: 1.45;
}

.agent-capabilities p:first-child { margin-top: 0; }
.agent-capabilities strong { color: #21232a; font-weight: 620; }

.agent-intents {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
}

.agent-intents span {
  padding: 8px 13px;
  border: 1px solid rgba(20, 20, 35, .09);
  border-radius: 999px;
  color: #626672;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 7px 18px rgba(17, 24, 39, .05);
  font-size: 11px;
}

.agent-intents.is-cursor span {
  border-color: rgba(22, 119, 255, .12);
  color: #1b64bd;
  background: rgba(242, 248, 255, .82);
}

@keyframes agent-key-pulse {
  from { opacity: .55; transform: scale(1); }
  to { opacity: 0; transform: scale(1.34); }
}

@keyframes agent-command-wave {
  from { opacity: .65; transform: scaleY(.55); }
  to { opacity: 1; transform: scaleY(1.05); }
}

@keyframes agent-caret-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 700px) {
  .agent-section { padding-inline: 16px; }
  .agent-activation { width: 100%; gap: 6px; }
  .agent-key-step { grid-template-columns: 1fr; justify-items: center; gap: 9px; min-height: 132px; padding: 15px 7px 12px; text-align: center; }
  .agent-step-number { top: 7px; right: 8px; }
  .agent-step-copy { align-items: center; }
  .agent-step-copy strong { font-size: 13px; }
  .agent-step-copy small { font-size: 9px; }
  .agent-keycap,
  .agent-release-symbol { width: 52px; height: 46px; border-radius: 12px; }
  .agent-keycap span { padding: 0 0 8px 9px; font-size: 12px; }
  .agent-key-pulse { top: 15px; left: 50%; width: 52px; height: 46px; transform: translateX(-50%); }
  .agent-step-arrow { font-size: 14px; }
  .agent-demo { width: 100%; }
  .agent-command-card { grid-template-columns: auto 1fr; width: calc(100% - 20px); padding-right: 13px; }
  .agent-command-card small { display: none; }
  .agent-command-card > span:nth-child(2) { font-size: 12px; }
  .agent-appbar { padding-inline: 13px; }
  .agent-app-state { display: none; }
  .agent-transform { grid-template-columns: 1fr; gap: 15px; padding: 38px 18px 24px; }
  .agent-text-state { min-height: 150px; padding: 20px; }
  .agent-text-state > span { margin-bottom: 15px; }
  .agent-text-state p { font-size: clamp(19px, 5.7vw, 24px); }
  .agent-transform-arrow { height: 28px; transform: rotate(90deg); }
  .agent-transform-arrow svg { width: 38px; }
  .agent-capabilities { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .agent-key-pulse,
  .agent-command-icon i,
  .agent-caret { animation: none; }
}

/* Simple two-video presentation. These frames intentionally share the same
   geometry and media treatment as the larger demo videos elsewhere. */
.agent-section-simple::before { display: none; }

.agent-feature-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(70px, 9vw, 130px);
  width: min(1120px, calc(100vw - 48px));
  margin: clamp(48px, 6vw, 80px) auto 0;
}

.agent-feature-row {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

.agent-feature-row-reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.agent-video-frame {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 15.4 / 10;
  overflow: hidden;
  place-items: center;
  border: 1px solid #bababa;
  border-radius: 24px;
  color: #92949b;
  background: #f6f7f9;
  box-shadow: 0 20px 45px rgba(20, 20, 35, .12), 0 4px 12px rgba(20, 20, 35, .06);
}

.agent-video-frame > span:not(.feature-video-label) {
  padding: 9px 13px;
  border: 1px solid rgba(20, 20, 35, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  font-size: 12px;
  letter-spacing: -.01em;
}

/* Apply this class to each real video when files arrive. */
.agent-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.agent-feature-copy h3 {
  margin: 0;
  color: #16171c;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .98;
}

.agent-feature-row .agent-feature-copy { text-align: left; }

.agent-feature-row-reverse .agent-feature-copy { text-align: right; }

.agent-feature-row-reverse .agent-feature-copy p { margin-left: auto; }

.agent-feature-copy p {
  max-width: 500px;
  margin: clamp(20px, 2.5vw, 32px) 0 0;
  color: #858891;
  font-size: clamp(17px, 1.8vw, 23px);
  letter-spacing: -.035em;
  line-height: 1.42;
}

@media (max-width: 700px) {
  .agent-feature-list { width: 100%; gap: 60px; margin-top: 40px; }
  .agent-feature-row,
  .agent-feature-row-reverse { grid-template-columns: 1fr; gap: 24px; }
  .agent-feature-row-reverse .agent-video-frame { order: 2; }
  .agent-feature-copy h3 { font-size: clamp(30px, 9vw, 40px); }
  .agent-feature-copy p { margin-top: 15px; font-size: 17px; }
  .agent-video-frame { border-radius: 20px; }
}

/* ---- Speed comparison ---- */

.speed-section {
  --speed-accent: #1a78e0;
  overflow: hidden;
  padding: clamp(60px, 7vw, 95px) 24px clamp(30px, 3.5vw, 48px);
  color: #080808;
  background: #fff;
}

.speed-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 34px);
  width: min(1060px, calc(100vw - 48px));
  margin: clamp(28px, 3.5vw, 44px) auto 0;
}

.speed-card {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: clamp(20px, 2.2vw, 28px);
  background: linear-gradient(145deg, rgba(255, 255, 255, .9) 0%, rgba(246, 248, 252, .65) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 0 20px 45px rgba(20, 20, 35, .06), 0 2px 8px rgba(20, 20, 35, .03), inset 0 1px 1px 0 rgba(255, 255, 255, 1);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.speed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px rgba(20, 20, 35, .09), 0 4px 12px rgba(20, 20, 35, .04), inset 0 1px 1px 0 rgba(255, 255, 255, 1);
}

.speed-card.is-fast {
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(145deg, rgba(12, 13, 18, .95) 0%, rgba(22, 25, 38, .92) 50%, rgba(8, 9, 14, .97) 100%);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .4), 0 4px 18px rgba(26, 120, 224, .25), inset 0 1px 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
}

.speed-card.is-fast:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 30px 65px rgba(0, 0, 0, .5), 0 6px 22px rgba(26, 120, 224, .32), inset 0 1px 1px 0 rgba(255, 255, 255, .35);
}

.speed-card.is-fast .speed-name {
  color: #ffffff;
}

.speed-card-head {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 15px);
  margin-bottom: clamp(16px, 1.8vw, 22px);
}

.speed-icon {
  display: grid;
  flex: 0 0 auto;
  width: clamp(36px, 3.8vw, 46px);
  height: clamp(36px, 3.8vw, 46px);
  place-items: center;
  border-radius: clamp(10px, 1.1vw, 14px);
  border: 1px solid rgba(20, 20, 35, .08);
  background: rgba(240, 242, 248, .7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  color: #55555f;
}

.speed-icon svg { width: 58%; height: 58%; }

/* The mark carries its own squircle, so the chip adds no shape of its own —
   no border-radius clipping, no background, no padding to squeeze it. */
.speed-icon-notch {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
  /* The mark is drawn in currentColor; the LazyFlow card is dark, so white. */
  color: #fff;
}

.speed-icon-notch .notch-mark {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .3));
}

.speed-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.speed-name {
  color: #101018;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: -.025em;
}

/* Wordmark stands in for the LazyFlow name. Height is matched to the sibling
   card's text so both headers sit on the same optical line. */
.speed-logo {
  display: block;
  height: clamp(15px, 1.45vw, 19px);
  width: auto;
}

.speed-badge {
  flex: 0 0 auto;
  margin-left: auto;
  padding: clamp(6px, .7vw, 9px) clamp(10px, 1.1vw, 14px);
  border-radius: 12px;
  border: 1px solid rgba(20, 20, 35, .06);
  background: rgba(240, 242, 248, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  color: #55555f;
  font-size: clamp(9px, .95vw, 11px);
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.speed-badge b {
  font-size: clamp(15px, 1.55vw, 20px);
  font-weight: 700;
  letter-spacing: -.03em;
}

.speed-card.is-fast .speed-badge {
  background: linear-gradient(135deg, rgba(26, 120, 224, .35) 0%, rgba(26, 120, 224, .18) 100%);
  border: 1px solid rgba(84, 176, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px rgba(26, 120, 224, .25);
  color: #ffffff;
}

.speed-card.is-fast .speed-badge b {
  color: #4da6ff;
}

.speed-screen {
  flex: 1 1 auto;
  min-height: clamp(150px, 17vw, 215px);
  padding: clamp(16px, 1.8vw, 22px);
  border: 1px solid rgba(20, 20, 35, .06);
  border-radius: clamp(14px, 1.5vw, 18px);
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .02);
}

.speed-card.is-fast .speed-screen {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(14, 15, 22, .75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .12), 0 8px 24px rgba(0, 0, 0, .35);
}

.speed-text {
  display: block;
  color: #1b1b24;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.95;
  letter-spacing: -.01em;
  white-space: pre-wrap;
  word-break: break-word;
}

.speed-card.is-fast .speed-text {
  color: #eef3ff;
}

.speed-card.is-fast .speed-text .hl {
  color: #4da6ff;
}

.speed-card.is-fast .speed-text .ghost {
  color: rgba(255, 255, 255, .35);
}

/* Monospace on the manual side reads as mechanical; the notch side stays in the
   page's sans, so the two lanes feel like different kinds of work. */
[data-lane="manual"] .speed-text {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(12px, 1.1vw, 14.5px);
}

.speed-text .hl { color: var(--speed-accent); }
.speed-text .ghost { color: #c8c8d2; }

.speed-caret {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: 1px;
  background: #1b1b24;
  vertical-align: -.19em;
  animation: speed-caret-blink 1s steps(1) infinite;
}

.speed-card.is-fast .speed-caret { width: 2px; background: var(--speed-accent); }

@keyframes speed-caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.speed-vs {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: clamp(36px, 3.8vw, 46px);
  height: clamp(36px, 3.8vw, 46px);
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(20, 20, 35, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, 1);
  color: #101018;
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 700;
  letter-spacing: .02em;
}

.privacy-section {
  --lock-progress: 0;
  overflow: hidden;
  padding: clamp(60px, 7vw, 95px) 24px clamp(30px, 3.5vw, 48px);
  color: #080808;
  background: #fff;
}

.privacy-media-wrap {
  position: relative;
  width: min(760px, calc(100vw - 48px));
  margin: clamp(160px, 16vw, 220px) auto 0;
}

.lock-shackle {
  position: absolute;
  z-index: 0;
  bottom: calc(100% - 25px);
  left: 50%;
  width: clamp(185px, 18vw, 255px);
  height: auto;
  overflow: visible;
  transform: translateX(-50%);
}

.lock-shackle-path {
  fill: none;
  stroke: #000;
  stroke-width: 30;
  stroke-linecap: butt;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--lock-progress));
  transition: stroke-dashoffset 80ms linear;
}

.privacy-media {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  border-color: transparent;
  background: #000;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .22), 0 4px 12px rgba(0, 0, 0, .1);
}

.privacy-logo {
  width: clamp(150px, 22vw, 230px);
  height: auto;
}

.buddy-section {
  padding: clamp(60px, 7vw, 95px) 24px clamp(60px, 7vw, 95px);
  overflow: hidden;
  color: #080808 !important;
  background: #ffffff !important;
}

.buddy-section .section-heading h2 {
  color: #080808 !important;
}

.buddy-section .section-heading p {
  color: #868686 !important;
}

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

.pricing-section {
  --pricing-accent: #1a78e0;
  position: relative;
  padding: clamp(60px, 7vw, 95px) 24px clamp(70px, 8vw, 110px);
  color: #080808;
  background:
    radial-gradient(ellipse 88% 42% at 50% 52%, #eef1f8 0%, #f6f8fc 46%, #fff 84%);
}

/* Three tiers side by side, stretched to equal height so the CTAs line up.
   One column below 900px, where three would be unreadably narrow. */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: clamp(14px, 1.6vw, 22px);
  width: min(1080px, 100%);
  margin: clamp(30px, 3.6vw, 46px) auto 0;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: clamp(28px, 3.2vw, 42px) clamp(22px, 2.6vw, 36px) clamp(24px, 2.8vw, 34px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: clamp(22px, 2.4vw, 30px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(246, 248, 252, .78) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    0 2px 4px rgba(18, 20, 34, .05),
    0 12px 24px -6px rgba(18, 20, 34, .08),
    0 32px 60px -16px rgba(18, 20, 34, .16),
    inset 0 1px 0 0 rgba(255, 255, 255, 1);
  text-align: center;
}

.pricing-badge {
  padding: 6px 12px;
  border: 1px solid rgba(26, 120, 224, .2);
  border-radius: 999px;
  background: rgba(26, 120, 224, .09);
  color: var(--pricing-accent);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.pricing-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin: clamp(16px, 1.9vw, 24px) 0 0;
  color: #0d0d14;
  line-height: 1;
}

.pricing-currency {
  margin-top: .35em;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  opacity: .5;
}

.pricing-value {
  font-size: clamp(64px, 7.4vw, 96px);
  font-weight: 400;
  letter-spacing: -.05em;
}

.pricing-note {
  margin: 6px 0 0;
  color: #8b8b98;
  font-size: clamp(13px, 1.25vw, 16px);
  letter-spacing: -.02em;
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 1.05vw, 13px);
  width: 100%;
  margin: clamp(22px, 2.5vw, 32px) 0 0;
  /* Collects the leftover height in a stretched card, which pins every CTA to
     the bottom edge so the three line up. Must come after the shorthand. */
  margin-bottom: auto;
  padding: clamp(18px, 2vw, 24px) 0 0;
  border-top: 1px solid rgba(20, 20, 35, .08);
  list-style: none;
  text-align: left;
}

.pricing-list li {
  position: relative;
  padding-left: 26px;
  color: #3d3d4a;
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.45;
  letter-spacing: -.015em;
}

/* Drawn rather than a character so the tick stays optically centred. */
.pricing-list li::before {
  content: "";
  position: absolute;
  top: .42em;
  left: 3px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--pricing-accent);
  border-bottom: 2px solid var(--pricing-accent);
  border-radius: 1px;
  transform: rotate(-45deg);
}

.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: clamp(22px, 2.5vw, 30px);
  padding: 0 22px;
  border-radius: 999px;
  background: #0d0d14;
  color: #fff;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 500;
  letter-spacing: -.015em;
  box-shadow: 0 8px 20px -6px rgba(13, 13, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pricing-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -6px rgba(13, 13, 20, .5), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.pricing-cta:active { transform: translateY(0); }

.pricing-footnote {
  margin: clamp(20px, 2.2vw, 28px) auto 0;
  text-align: center;
  color: #9a9aa6;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: -.01em;
}

/* ---- Waitlist ---- */


/* The middle tier is lifted rather than recoloured, so it reads as the
   default without turning into a different component. */
.pricing-card.is-featured {
  border-color: rgba(26, 120, 224, .28);
  box-shadow:
    0 2px 4px rgba(18, 20, 34, .05),
    0 16px 30px -8px rgba(18, 20, 34, .12),
    0 44px 80px -20px rgba(26, 120, 224, .22),
    inset 0 1px 0 0 rgba(255, 255, 255, 1);
}

.pricing-flag {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--pricing-accent);
  color: #fff;
  font-size: clamp(10px, .95vw, 11.5px);
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 16px -4px rgba(26, 120, 224, .5);
}

/* Secondary tiers get a quieter button so the featured one still leads. */
.pricing-cta--quiet {
  border: 1px solid rgba(20, 20, 35, .14);
  background: rgba(255, 255, 255, .7);
  color: #12121a;
  box-shadow: none;
}

.pricing-cta--quiet:hover {
  border-color: rgba(20, 20, 35, .24);
  background: #fff;
}

@media (max-width: 900px) {
  .pricing-tiers { grid-template-columns: 1fr; width: min(520px, 100%); }
  .pricing-flag { font-size: 10.5px; }
}

.waitlist-section {
  --waitlist-accent: #1a78e0;
  position: relative;
  padding: clamp(56px, 6.5vw, 88px) 24px clamp(64px, 7.5vw, 100px);
  color: #080808;
  background: #fff;
  border-top: 1px solid rgba(20, 20, 35, .07);
}

.waitlist-form {
  width: min(520px, calc(100vw - 48px));
  margin: clamp(24px, 3vw, 36px) auto 0;
}

/* Visible to screen readers only: the placeholder alone isn't a label. */
.waitlist-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-row {
  display: flex;
  gap: 10px;
}

.waitlist-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(20, 20, 35, .16);
  border-radius: 999px;
  background: #fff;
  color: #14141b;
  font: 400 clamp(14px, 1.35vw, 16px)/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.015em;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.waitlist-input::placeholder { color: #a8a8b4; }

.waitlist-input:focus-visible {
  outline: none;
  border-color: var(--waitlist-accent);
  box-shadow: 0 0 0 3px rgba(26, 120, 224, .18);
}

.waitlist-submit {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #0d0d14;
  color: #fff;
  font: 500 clamp(14px, 1.35vw, 16px)/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.015em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(13, 13, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.waitlist-submit:hover:not(:disabled) { transform: translateY(-1px); }
.waitlist-submit:disabled { opacity: .55; cursor: default; }

.waitlist-status {
  min-height: 1.25em;
  margin: 12px 2px 0;
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: -.01em;
  text-align: center;
}

.waitlist-form[data-state="error"] .waitlist-status { color: #c5372c; }
.waitlist-form[data-state="success"] .waitlist-status { color: #1f9254; }
.waitlist-form[data-state="loading"] .waitlist-status { color: #8b8b98; }

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  --faq-accent: #1a78e0;
  position: relative;
  padding: clamp(60px, 7vw, 95px) 24px clamp(70px, 8vw, 100px);
  color: #080808;
  background:
    radial-gradient(ellipse 90% 45% at 50% 38%, #eef1f8 0%, #f6f8fc 48%, #fff 86%);
  border-top: 1px solid rgba(20, 20, 35, .07);
}

/* Explicit columns rather than CSS `columns`: a column-balanced layout
   re-flows every card while one is mid-animation, so cards visibly hop
   between columns. Fixed columns keep an expanding card's neighbours still. */
.faq-grid {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.4vw, 18px);
  width: min(1120px, 100%);
  margin: clamp(30px, 3.6vw, 46px) auto 0;
}

.faq-col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 18px);
  min-width: 0;
}

.faq-card {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: clamp(16px, 1.6vw, 20px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(246, 248, 252, .78) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 2px 4px rgba(18, 20, 34, .04),
    0 10px 22px -8px rgba(18, 20, 34, .10),
    inset 0 1px 0 0 rgba(255, 255, 255, 1);
  transition: box-shadow 240ms ease, border-color 240ms ease;
}

.faq-card:hover {
  box-shadow:
    0 2px 4px rgba(18, 20, 34, .05),
    0 16px 30px -10px rgba(18, 20, 34, .14),
    inset 0 1px 0 0 rgba(255, 255, 255, 1);
}

.faq-card.is-open {
  border-color: rgba(26, 120, 224, .18);
  box-shadow:
    0 2px 4px rgba(18, 20, 34, .05),
    0 18px 36px -12px rgba(18, 20, 34, .16),
    inset 0 1px 0 0 rgba(255, 255, 255, 1);
}

.faq-h {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: clamp(16px, 1.7vw, 20px);
  border: 0;
  background: none;
  color: #12121a;
  font: inherit;
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.28;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.faq-q:focus-visible {
  outline: 2px solid var(--faq-accent);
  outline-offset: -2px;
  border-radius: clamp(16px, 1.6vw, 20px);
}

/* Two crossed bars: rotating the box 135deg turns the + into an x. */
.faq-plus {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  transition: transform 300ms cubic-bezier(.4, 0, .2, 1);
}

.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: #86868f;
  transform: translateY(-50%);
  transition: background 240ms ease;
}

.faq-plus::after { transform: translateY(-50%) rotate(90deg); }

.faq-card.is-open .faq-plus { transform: rotate(135deg); }
.faq-card.is-open .faq-plus::before,
.faq-card.is-open .faq-plus::after { background: var(--faq-accent); }

/* Animating grid-template-rows between 0fr and 1fr is the one way to
   transition to a content-driven height without measuring it in JS. The inner
   wrapper needs overflow:hidden and min-height:0 for the row to actually clip. */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 420ms cubic-bezier(.32, .72, 0, 1),
    opacity 260ms ease;
}

.faq-card.is-open .faq-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-body-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-a {
  margin: 0;
  padding: 0 clamp(16px, 1.7vw, 20px) clamp(18px, 1.9vw, 22px);
  color: #5c5c6b;
  font-size: clamp(13px, 1.25vw, 15px);
  letter-spacing: -.015em;
  line-height: 1.52;
}


.footer {
  padding: clamp(54px, 6vw, 76px) 24px 34px;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
  border: 1px solid #252525;
  border-radius: 64px 64px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.footer-container {
  max-width: 1060px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 90px);
  margin-bottom: 0;
}

.footer-brand {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  max-width: 260px;
}

.footer-tagline {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: -.015em;
  line-height: 1.45;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 9px 16px;
  border: 1px solid #303030;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -.015em;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer-cta svg {
  transition: transform 220ms cubic-bezier(.32, .72, 0, 1);
}

.footer-cta:hover {
  border-color: #616161;
  background: #141414;
}

.footer-cta:hover svg { transform: translateX(3px); }

.footer-columns {
  display: flex;
  gap: clamp(36px, 5.5vw, 84px);
}

.footer-title {
  margin: 0 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -.01em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

.footer-links a {
  display: inline-block;
  color: #eeeeee;
  transition: color 160ms ease, transform 200ms cubic-bezier(.32, .72, 0, 1);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-brand-watermark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 86px;
  margin: clamp(88px, 10vw, 132px) auto clamp(70px, 8vw, 104px);
  width: 100%;
  color: #ffffff;
  user-select: none;
}

.footer-brand-watermark svg {
  width: min(370px, 42vw);
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-made-in {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  letter-spacing: -.01em;
}

.footer-made-in span { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid #30383a;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  color: #ffffff;
}

.footer-copyright {
  margin: 0;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

.footer-socials a {
  display: flex;
  align-items: center;
  color: #ffffff;
  opacity: .85;
  transition: opacity 160ms ease;
}

.footer-socials a:hover {
  opacity: 1;
}

@keyframes arch-crawl {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

@media (max-width: 560px) {
  .hero { padding-inline: 16px; }
  /* Links collapse into a dropdown so the bar only ever holds brand + CTA +
     toggle, no matter how many sections get added. */
  .nav {
    width: clamp(250px, 72vw, 340px);
    max-width: calc(100vw - 24px);
    gap: 16px;
    justify-content: space-between;
    padding: 13px 20px;
    font-size: 11px;
    border-radius: 0 0 20px 20px;
  }
  .nav::before,
  .nav::after {
    width: 14px;
    height: 14px;
  }
  .nav::before {
    border-top-right-radius: 10px;
    box-shadow: 4px -4px 0 4px #020204;
  }
  .nav::after {
    border-top-left-radius: 10px;
    box-shadow: -4px -4px 0 4px #020204;
  }
  .brand { flex: 0 0 auto; }
  .brand-logo { height: 16px; }
  .nav-toggle { display: flex; margin-left: auto; width: 32px; height: 32px; }
  /* The bar keeps only brand + toggle; Waitlist moves into the dropdown. */
  .nav-cta { display: none; }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-width: 186px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    background: rgba(10, 10, 14, .85);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }

  .nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a {
    padding: 11px 13px;
    border-radius: 11px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .nav-links a:active { background: rgba(255, 255, 255, .09); }

  .nav-menu-cta {
    display: block;
    margin-top: 6px;
    padding: 11px 13px;
    border-radius: 12px;
    background: #fff;
    color: #101015;
    font-weight: 600;
    text-align: center;
  }
  .intro { padding-top: 120px; }
  .intro p { max-width: 280px; }
  .actions { flex-direction: column; margin-top: 35px; }
  .video-frame { width: calc(100vw - 32px); margin-top: 36px; }
  .ai-section { padding: 54px 16px 28px; }
  .desktop-break { display: none; }
  .section-heading p { max-width: 330px; margin-inline: auto; font-size: 15px; }
  .demo-tabs { width: calc(100vw - 32px); margin-top: 20px; border-radius: 999px; padding: 3px; }
  .demo-tab { flex: 1 1 0; min-width: 0; min-height: 36px; padding-inline: 4px; font-size: 11.5px; }
  .feature-video-frame { width: calc(100vw - 32px); margin-top: 24px; border-radius: 18px; }
  .feature-video-label { white-space: normal; font-size: 12.5px; padding: 9px 16px; }
  .work-section { padding-top: 54px; }
  .work-video { margin-top: 0; }
  .rewrite-section { padding: 54px 16px 38px; }
  .rewrite-raw { max-width: calc(100vw - 32px); font-size: 13.5px; letter-spacing: .03em; }
  .rewrite-flow-in { --spread-a: 54px; --dist: 74px; }
  /* Shorter fall keeps the composer near the app content instead of leaving a
     dead gap down the middle of a phone-sized card. */
  .rewrite-flow-out { --dist: 60px; }
  .rewrite-card { width: calc(100vw - 32px); padding: 50px 14px 24px; border-radius: 24px; --notch-w: 134px; }
  .rewrite-notch { height: 37px; border-radius: 0 0 14px 14px; --fillet: 9px; }
  .rewrite-output { gap: 10px; padding: 12px 14px; }
  .app-bar { height: 37px; padding: 0 11px; }
  /* Drop the window dots on phones so the app name keeps a readable width. */
  .app-dots { display: none; }
  .app-bar-title { font-size: 10.5px; }
  .app-body { padding: 10px 13px; gap: 7px; }
  /* Keep every skeleton row: hiding the tail made the app window look sliced
     off rather than like content continuing behind the composer. */
  .speed-section { padding: 54px 16px 28px; }
  .speed-grid { grid-template-columns: 1fr; width: calc(100vw - 32px); gap: 24px; margin-top: 24px; }
  .speed-screen { min-height: 132px; }
  .speed-sub { white-space: normal; }
  /* Stacked cards put the badge between them, so it rotates to read across. */
  .speed-vs { top: 50%; left: 50%; width: 32px; height: 32px; }
  .privacy-section { padding: 54px 16px 28px; }
  .privacy-media-wrap { width: calc(100vw - 32px); margin-top: 115px; }
  .lock-shackle { bottom: calc(100% - 18px); width: 160px; }
  .buddy-section { padding: 54px 16px 54px; }
  .pricing-section { padding: 54px 16px 56px; }
  .pricing-card { padding: 26px 20px 24px; }
  .pricing-tiers { width: 100%; }
  .waitlist-section { padding: 48px 16px 54px; }
  .waitlist-form { width: calc(100vw - 32px); }
  /* Stack on phones so the button keeps a tappable width. */
  .waitlist-row { flex-direction: column; }
  .waitlist-submit { width: 100%; }
  .footer { padding: 42px 20px 26px; border-radius: 32px 32px 0 0; }
  /* align-items on the desktop rule is flex-start, which shrinks the stacked
     children to content width. Stretch them so the link grid spans the page. */
  .footer-top { flex-direction: column; align-items: stretch; gap: 30px; margin-bottom: 4px; }
  .footer-brand { align-items: center; max-width: none; text-align: center; }
  .footer-tagline { margin-top: 0; }
  .footer-cta { margin-top: 17px; }

  /* Three stacked groups made the footer nearly a full screen tall. A two
     column grid halves that; Legal has only two links so it sits alone on the
     second row without looking short. */
  .footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 14px;
  }
  .footer-title { margin-bottom: 12px; }
  .footer-links { gap: 9px; }

  .footer-brand-watermark { min-height: 60px; margin: 58px 0 44px; }
  .footer-brand-watermark svg { width: min(260px, 72vw); }

  /* Socials above the copyright reads better centred than a squeezed row. */
  .footer-bottom { flex-direction: column-reverse; align-items: center; gap: 16px; text-align: center; }
}

@media (min-width: 561px) and (max-width: 1024px) {
  .hero { padding-inline: 24px; }
  .nav { max-width: calc(100vw - 48px); }
  .section-heading h2 { font-size: clamp(38px, 5.5vw, 56px); }
  .demo-tabs { width: min(480px, calc(100vw - 48px)); margin-top: 24px; }
  .demo-tab { font-size: 13px; padding-inline: 10px; }
  .feature-video-frame { width: calc(100vw - 48px); margin-top: 32px; border-radius: 22px; }
  .rewrite-card { width: calc(100vw - 48px); }
  .buddy-section { padding: 60px 24px 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-card { animation: none; }
  .tab-indicator, .feature-video-frame, .demo-tab { transition: none; }
  .voice-bars i, .notch-wave i { animation: none; transform: scaleY(.7); }
  .rewrite-flow i { animation: none; opacity: .3; transform: translate3d(calc(var(--x1) * var(--spread-b)), calc(var(--dist) * .5), 0); }
  .rewrite-raw, .rewrite-clean { transition: none; }
  .rewrite-caret { animation: none; }
  .rewrite-app, .rewrite-output, .rewrite-spark, .rewrite-flow-out { transition: none; }
  .speed-caret { animation: none; }
  .nav { animation: none; transform: translate(-50%, 0); opacity: 1; }
  .faq-plus { transition: none; }
  .faq-body { transition: none; }
}
