/* Saywit landing page. Depends on base.css (tokens, header, footer) and chat.css. */

/* One vertical rhythm between numbered sections. */
.landing { --section-space: clamp(96px, 9.5vw, 136px); }
/* Decorative layers (dot grid, glow, tilted bubbles) may bleed past the shell, never past the viewport. */
.landing main { overflow-x: clip; }

/* Calls to action: shared rows live in base.css. */
.hero__actions + .scene-picker { margin-top: 32px; }
.closing__hint { margin: 24px 0 0; color: var(--faint); }

/* ───────── 01 · Hero ───────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: min(860px, calc(100svh - 70px));
  padding: 40px 0 72px;
}

.hero__title {
  margin: 0 0 30px;
  font-size: clamp(52px, 5.6vw, 88px);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.06em;
  word-spacing: .08em;
}
.hero__title .line { display: block; overflow: hidden; padding: .02em .08em .1em 0; margin-bottom: -.08em; }
.hero__title .line > span { display: block; }


.hero__lede { max-width: 450px; margin: 0; font-size: 20px; line-height: 1.55; letter-spacing: -.01em; color: var(--muted); }
.hero__lede > span { display: block; }
.hero__lede strong { font-weight: 650; color: var(--ink); }

.scene-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.scene-picker__label { margin-right: 4px; color: var(--faint); }
.scene-chip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 560;
  cursor: pointer;
  transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease);
}
.scene-chip:hover { border-color: var(--ink); color: var(--ink); }
.scene-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.scene-chip__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .8s var(--ease);
}
.scene-chip[aria-pressed="true"] .scene-chip__fill { transform: scaleX(var(--p, 1)); }

/* Intro choreography (only when JS is available to add .js; never hides content otherwise). */
.js .hero__copy .eyebrow,
.js .hero__lede,
.js .hero__actions,
.js .hero__copy .scene-picker { opacity: 0; animation: fade-up .9s var(--ease) forwards; }
.js .hero__copy .eyebrow { animation-delay: .05s; }
.js .hero__lede { animation-delay: .4s; }
.js .hero__actions { animation-delay: .5s; }
.js .hero__copy .scene-picker { animation-delay: .6s; }
.js .hero__title .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease) .1s forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .22s; }
.js .mark::before { transform: scaleX(0); animation: mark-in .9s var(--ease) .95s forwards; }

/* Stage: the preview sits on the shell's right edge, in line with the header action. */
.hero__stage { position: relative; display: grid; align-items: center; justify-items: end; min-height: 704px; perspective: 1600px; }
.stage__frame { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 440px; }
.stage__grid {
  position: absolute;
  inset: -6% -12%;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(35, 53, 47, .2) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
}
.stage__glow {
  position: absolute;
  top: 2%;
  right: -4%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(168, 190, 146, .95), rgba(168, 190, 146, 0) 66%);
  animation: float 9s ease-in-out infinite;
}
.chat--hero .chat__body { height: 480px; }
.chat--hero .msg__photo { width: 220px; }
.chat--hero {
  z-index: 1;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
}
.js .chat--hero { opacity: 0; animation: chat-in 1.2s var(--ease) .25s forwards; }

/* A small toolbar above each live example: what it is on the left, the pause control on the right. */
.demo-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.demo-toolbar .motion-toggle {
  flex: none;
  align-self: center;
  gap: 8px;
  min-height: 36px;
  margin: 0 0 0 auto;
  padding: 6px 14px 6px 12px;
  border-color: var(--line);
  background: rgba(252, 252, 247, .72);
  color: var(--muted);
}
.demo-toolbar .motion-toggle::before {
  content: "";
  width: 8px;
  height: 9px;
  flex: none;
  border-inline: 2.5px solid currentColor;
}
.demo-toolbar .motion-toggle[aria-pressed="true"]::before {
  width: 0;
  height: 0;
  margin-left: 1px;
  border-block: 5px solid transparent;
  border-inline: 8px solid currentColor;
  border-inline-end-width: 0;
}
.demo-toolbar .motion-toggle:disabled::before { display: none; }
.demo-toolbar .motion-toggle:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }

.stage__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  box-shadow: 0 10px 24px -16px rgba(26, 40, 35, .4);
}
.stage__note i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); animation: blink 1.6s steps(1) infinite; }
.stage__hint { align-self: flex-end; margin: 0; color: var(--faint); font-size: 10px; letter-spacing: .07em; }
.js .stage__bar, .js .stage__hint { opacity: 0; animation: fade-up .8s var(--ease) 1.1s forwards; }
.motion-paused .stage__bar, .motion-paused .stage__hint { opacity: 1 !important; transform: none !important; }

/* ───────── Ticker ───────── */
.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 50s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; gap: 56px; padding-right: 56px; }
.ticker__set span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.ticker__set b { font-size: 15px; font-weight: 500; color: var(--ink); }


/* ───────── 02 · Modes ───────── */
.modes {
  position: relative;
  overflow: hidden;
  margin: var(--section-space) 16px 0;
  padding: 112px 0 104px;
  border-radius: 44px;
  background: #e8ecdf;
  color: var(--ink);
}
.modes::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(63, 95, 77, .1) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 62%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 62%, #000, transparent);
}
.modes::after {
  content: "";
  position: absolute;
  top: 62%;
  left: 50%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  pointer-events: none;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(168, 190, 146, .16), transparent 64%);
  transition: opacity .6s var(--ease);
}
.modes[data-mode="private"]::after { opacity: .35; }
.modes .shell { position: relative; z-index: 1; }
.modes .eyebrow { color: var(--faint); }
.modes .eyebrow-index { color: var(--ink-2); }
.modes .dim { color: var(--faint); }
.modes__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }

.segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border: 1px solid rgba(63, 95, 77, .2);
  border-radius: 999px;
  background: rgba(252, 252, 247, .7);
}
.segmented button {
  position: relative;
  z-index: 1;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color .35s var(--ease);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { color: var(--ink); }
.segmented__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 8px 28px -10px rgba(168, 190, 146, .9);
  transition: transform .55s var(--ease-spring);
}
.modes[data-mode="private"] .segmented__thumb { transform: translateX(100%); }

/* Screens share one height so the wires meet every screen at its middle. */
.pipeline {
  --screen-h: 300px;
  --wire: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--wire) minmax(0, 1.25fr) var(--wire) minmax(0, 1fr);
  align-items: start;
  margin-top: 48px;
}
.node { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.node__label { line-height: 14px; color: var(--faint); text-align: center; }
.node__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--screen-h);
  padding: 44px 18px 28px;
  border-radius: 28px;
}
.node--device .node__screen { justify-content: flex-start; padding-top: 60px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 70px -36px rgba(53, 72, 63, .16); }
.node__note { font-size: 10px; line-height: 1.5; color: var(--faint); text-align: center; }

/* Each phone is a small chat: who it is with, the mode, then the conversation. */
.node--device .phone { align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.phone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 13px;
  border-bottom: 1px solid var(--line-soft);
}
.phone__head strong { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.phone__mode {
  padding: 3px 9px;
  border: 1px solid #d0dcc1;
  border-radius: 999px;
  background: var(--lime-wash);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.modes[data-mode="private"] .phone__mode { border-color: #cfe2d8; background: #e3efea; color: #2d6851; }
.phone__chat { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; }
.phone .pbubble { max-width: 88%; padding: 9px 13px; font-size: 14px; line-height: 1.4; }
.phone .pbubble--in { align-self: flex-start; }
.phone .pbubble--out { align-self: flex-end; }
.modes[data-mode="smart"] [data-when="private"],
.modes[data-mode="private"] [data-when="smart"] { display: none; }
.node--server .node__screen { border: 1px solid rgba(63, 95, 77, .2); background: rgba(252, 252, 247, .82); }

.pbubble {
  max-width: 100%;
  margin: 0;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px) scale(.94);
  transition: opacity .45s var(--ease), transform .5s var(--ease-spring);
}
.pbubble.is-shown { opacity: 1; transform: none; }
.pipeline:not(.is-ready) .pbubble { opacity: 1; transform: none; }
.pbubble--out { border-radius: 20px 20px 6px 20px; background: #e7ebdc; color: var(--ink); }
.pbubble--in { border-radius: 20px 20px 20px 6px; background: var(--paper-2); color: var(--ink); }

.server__caption { font-size: 10px; color: var(--faint); }
.server__text {
  display: block;
  max-width: 100%;
  min-height: 3em;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-all;
  transition: color .4s var(--ease);
}
.modes[data-mode="private"] .server__text { color: var(--ink-2); }
.server__tag {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(168, 190, 146, .12);
  color: var(--ink-2);
  font-size: 10px;
  white-space: nowrap;
}
.modes[data-mode="private"] .server__tag { background: rgba(252, 252, 247, .7); color: var(--ink); }

.wire {
  position: relative;
  height: 2px;
  margin: calc(28px + var(--screen-h) / 2) 8px 0;
  background: repeating-linear-gradient(90deg, rgba(63, 95, 77, .3) 0 6px, transparent 6px 12px);
}
.packet {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(168, 190, 146, .16), 0 0 24px 4px rgba(168, 190, 146, .55);
  opacity: 0;
}
.packet.is-moving { animation: packet-x .9s var(--ease) forwards; }
.packet.is-returning { animation: packet-x-back .85s var(--ease) forwards; }

/* The server flashes as a message lands and as a proposal leaves. */
.node--server .node__screen.is-receiving { animation: server-ripple .9s var(--ease); }
.node--server .node__screen.is-sending { animation: server-ripple .9s var(--ease) reverse; }

/* Optional background assistance: context, MCP servers, tools, decision. */
.assist { display: flex; flex-direction: column; align-items: center; }
.assist__stem {
  position: relative;
  width: 2px;
  height: 26px;
  background: repeating-linear-gradient(180deg, rgba(63, 95, 77, .3) 0 4px, transparent 4px 8px);
  transition: opacity .4s var(--ease);
}
.assist__stem i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 14px 3px rgba(168, 190, 146, .6);
  opacity: 0;
}
.assist__stem.is-down i { animation: stem-down .55s var(--ease) forwards; }
.assist__stem.is-up i { animation: stem-up .45s var(--ease) forwards; }

.assist__panel {
  position: relative;
  width: 100%;
  padding: 14px 14px 12px;
  overflow: hidden;
  border: 1px solid rgba(63, 95, 77, .2);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(252, 252, 247, .95), rgba(242, 245, 235, .86));
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.assist[data-state="thinking"] .assist__panel { border-color: rgba(168, 190, 146, .35); box-shadow: 0 0 0 1px rgba(168, 190, 146, .06), 0 24px 60px -30px rgba(168, 190, 146, .45); }
.assist[data-state="ready"] .assist__panel { border-color: rgba(168, 190, 146, .55); }
.assist__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 8px; font-size: 10px; color: var(--faint); }
.assist__state { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); white-space: nowrap; }
.assist[data-state="thinking"] .assist__state, .assist[data-state="ready"] .assist__state, .assist[data-state="done"] .assist__state { color: var(--ink-2); }
.assist[data-state="thinking"] .assist__state::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(168, 190, 146, .3);
  border-top-color: var(--ink-2);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.assist__steps { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 10px;
  padding: 6px 8px;
  overflow: hidden;
  border-radius: 12px;
  transition: background-color .3s var(--ease), opacity .3s var(--ease);
}
.step__icon {
  position: relative;
  grid-row: 1 / 3;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border: 1.5px solid rgba(63, 95, 77, .2);
  border-radius: 50%;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.step__label { font-family: var(--font-mono); font-size: 10px; line-height: 17px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.step__result { min-height: 17px; overflow: hidden; font-size: 12.5px; line-height: 17px; color: var(--faint); white-space: nowrap; text-overflow: ellipsis; }
.step[data-status="pending"] { opacity: .38; }
.step[data-status="active"] { background: rgba(168, 190, 146, .06); }
.step[data-status="active"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(168, 190, 146, .13), transparent);
  transform: translateX(-100%);
  animation: step-scan 1.15s var(--ease) infinite;
}
.step[data-status="active"] .step__icon { border-color: rgba(168, 190, 146, .25); border-top-color: var(--ink-2); animation: spin .7s linear infinite; }
.step[data-status="done"] .step__icon { border-color: var(--lime); background: var(--lime); animation: tick-pop .4s var(--ease-spring); }
.step[data-status="done"] .step__icon::after {
  content: "";
  position: absolute;
  top: 1.5px;
  left: 4.2px;
  width: 3.5px;
  height: 7px;
  border: solid var(--ink);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.step[data-status="done"] .step__result { color: var(--ink); }
.step[data-status="quiet"] .step__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  right: 3px;
  height: 1.5px;
  margin-top: -.75px;
  background: var(--ink-2);
}
.step[data-status="quiet"] .step__result { color: var(--faint); }
.assist__off { display: none; margin: 0; padding: 16px 0 14px; font-size: 10px; color: var(--faint); text-align: center; }
.modes[data-mode="private"] .assist__steps { display: none; }
.modes[data-mode="private"] .assist__off { display: block; }
.modes[data-mode="private"] .assist__stem { opacity: .3; }

/* Connected services sit inside the assistance card, one equal column each:
   Google services through Saywit's MCP bridge, ClickUp, and your own MCP servers. */
.tools {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 2px 7px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), opacity .4s var(--ease), filter .4s var(--ease), box-shadow .3s var(--ease);
}
.tool__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(63, 95, 77, .14);
  transition: filter .4s var(--ease);
}
.tool__icon svg { width: 16px; height: 16px; }
.tool__icon--mcp { background: var(--lime-wash); color: var(--ink); box-shadow: none; outline: 1px dashed rgba(63, 95, 77, .45); outline-offset: -1px; }
.tool__name { max-width: 100%; overflow-wrap: anywhere; }
.tool:not(.is-scanning):not(.is-checked):not(.is-match) .tool__icon { filter: saturate(.35) brightness(.94); }
.tool.is-scanning, .tool.is-checked { border-color: rgba(168, 190, 146, .45); background: rgba(168, 190, 146, .08); color: var(--ink); }
.tool.is-scanning .tool__icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--lime-strong);
  border-radius: 50%;
  animation: radar .75s var(--ease) infinite;
}
.tool.is-match { border-color: var(--lime-strong); background: var(--lime-wash); color: var(--ink); box-shadow: 0 10px 22px -16px rgba(83, 135, 62, .55); }
.tool.is-match::after {
  content: "✓";
  position: absolute;
  top: 4px;
  left: calc(50% + 8px);
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--lime-strong);
  color: var(--ink);
  font-size: 8px;
  font-weight: 800;
  animation: tick-pop .4s var(--ease-spring);
}
.modes[data-mode="private"] .tool { opacity: .38; filter: grayscale(1); box-shadow: none; }
.modes[data-mode="private"] .tool::after { display: none; }
.modes[data-mode="private"] .tools { margin-top: 0; }
.tools__caption { margin: 14px 0 0; font-size: 10px; line-height: 1.5; color: var(--faint); text-align: center; }

/* The proposal lands only on your phone: Allow or Skip, like in the app. */
.ptoast {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 3px;
  padding: 10px 12px 11px;
  border: 1px solid #cbd8b9;
  border-radius: 16px;
  background: linear-gradient(165deg, #f4f6eb 0%, #e8eedb 100%);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 18px 30px -20px rgba(83, 135, 62, .75);
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transition: opacity .45s var(--ease), transform .55s var(--ease-spring);
  pointer-events: none;
}
.ptoast.is-shown { opacity: 1; transform: none; }
.pipeline:not(.is-ready) .ptoast { opacity: 1; transform: none; }
.modes[data-mode="private"] .ptoast { opacity: 0; transform: translateY(14px) scale(.96); }
.ptoast__head { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: #557040; }
.ptoast__title { overflow: hidden; font-size: 13px; font-weight: 650; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.ptoast__detail { overflow: hidden; font-size: 11px; line-height: 1.35; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.ptoast__actions { display: flex; gap: 6px; margin-top: 6px; font-size: 11px; font-weight: 650; }
.ptoast__actions b { padding: 4px 12px; border-radius: 999px; background: #e8eada; color: var(--ink-2); }
.ptoast__actions span { padding: 4px 8px; color: var(--muted); }
.ptoast.is-shown .ptoast__actions b { animation: allow-pulse 1.8s var(--ease) .5s 2; }

.mode-facts { margin-top: 56px; }
.mode-facts ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mode-facts li {
  padding: 10px 16px;
  border: 1px solid rgba(63, 95, 77, .2);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  animation: fade-up .6s var(--ease) backwards;
}
.mode-facts li:nth-child(2) { animation-delay: .08s; }
.mode-facts li:nth-child(3) { animation-delay: .16s; }
.mode-facts li::before { content: "✓"; margin-right: 8px; color: var(--ink-2); }

/* Story choices extend the hero's compact controls without a progress overlay.
   The chips share the row with the pause control, so they wrap beside it rather than under it. */
.modes__toolbar { margin-top: 40px; }
.modes__toolbar .scene-picker { flex: 1 1 0; min-width: 0; margin: 0; }

/* ───────── 03 · Factual checks ───────── */
.fact-check { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: 76px; align-items: start; padding-top: var(--section-space); }
.fact-check__lede { max-width: 450px; margin: 28px 0 32px; color: var(--muted); font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.fact-check__steps { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.fact-check__steps li { display: flex; gap: 16px; }
.fact-check__number { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); transition: background .5s var(--ease), border-color .5s var(--ease); }
.fact-check__steps .is-active .fact-check__number { background: var(--lime); border-color: var(--lime-strong); color: var(--ink); }
.fact-check__steps h3 { margin: 2px 0 7px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.fact-check__steps p { max-width: 400px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.fact-check__choice { max-width: 430px; margin: 30px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; text-wrap: pretty; }
.fact-check__visual { min-width: 0; }
/* The label, examples, preview and note share one left edge. Examples use the shared scene chips. */
.fact-check__toolbar { margin: 0 0 16px; color: var(--faint); }
.fact-check__examples { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.fact-preview { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 30px; background: var(--surface); box-shadow: 0 32px 70px -48px rgba(53, 72, 63, .35); }
.fact-preview__head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.fact-preview__head > div { flex: 1; min-width: 0; }
.fact-preview__head strong { display: block; font-size: 14px; letter-spacing: -.015em; }
.fact-preview__head div > span { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.fact-preview__body { padding: 26px; }
.fact-preview__message { max-width: 90%; }
.fact-preview__message p { width: fit-content; max-width: 100%; margin: 7px 0 10px; padding: 16px 18px; border-radius: 20px 20px 20px 6px; background: var(--paper-2); font-size: 16px; line-height: 1.5; }
.fact-preview__time { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); }
.fact-marker { display: inline-flex; align-items: center; gap: 5px; letter-spacing: .04em; }
.fact-marker[hidden] { display: none; }
.fact-marker i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fact-check[data-verdict="false"] .fact-marker, .fact-check[data-verdict="false"] .fact-evidence__status { color: #914431; }
.fact-check[data-verdict="true"] .fact-marker, .fact-check[data-verdict="true"] .fact-evidence__status { color: var(--signal); }
.fact-check[data-verdict="checking"] .fact-marker, .fact-check[data-verdict="checking"] .fact-evidence__status { color: #b8812f; }
.fact-check[data-verdict="checking"] .fact-marker i { animation: fact-marker-pulse 1.6s ease-in-out infinite; }
.fact-preview__trace { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding-left: 22px; color: var(--faint); }
.fact-preview__trace > i { position: relative; align-self: stretch; width: 1px; margin: 7px 0; background: var(--line); }
.fact-preview__trace > i::after { content: ""; position: absolute; top: 0; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); }
.fact-preview__trace .mono { font-size: 10px; letter-spacing: .06em; }
.fact-check[data-phase="sources"] .fact-preview__trace > i::after { animation: fact-evidence-trace 1.2s var(--ease) infinite; }
.fact-evidence { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--lime-wash); }
.fact-evidence__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.fact-evidence__head .mono { font-size: 10px; letter-spacing: .06em; }
.fact-evidence__status { padding: 5px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 650; }
.fact-evidence__source { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fact-evidence__source-icon { flex: 0 0 24px; display: grid; place-items: center; height: 24px; border-radius: 8px; background: var(--paper-2); color: var(--ink-2); }
.fact-evidence__source a { display: inline-block; color: var(--ink-2); font-size: 12px; font-weight: 650; line-height: 1.5; text-decoration-color: var(--lime-strong); text-underline-offset: 3px; }
.fact-evidence__source a:hover { text-decoration-color: var(--ink-2); }
.fact-evidence__source p, .fact-evidence__empty p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.fact-evidence__empty { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; }
.fact-evidence__empty > span { font-size: 23px; }
.fact-evidence__empty p { margin: 0; }
.fact-evidence__result { margin-top: 18px; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fact-evidence__result .mono { color: var(--faint); font-size: 10px; }
.fact-evidence__result p { margin: 9px 0 0; font-size: 14px; line-height: 1.6; }
.fact-evidence__hint { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; transition: opacity .6s var(--ease); }
.fact-check[data-phase="claim"] .fact-evidence__source, .fact-check[data-phase="claim"] .fact-evidence__empty { opacity: 0; visibility: hidden; transform: translateY(6px); }
.fact-check:not([data-phase="result"]) .fact-evidence__result, .fact-check:not([data-phase="result"]) .fact-evidence__hint { opacity: 0; visibility: hidden; transform: translateY(6px); }
.fact-preview__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line-soft); }
.fact-preview__footer .mono { color: var(--faint); font-size: 10px; letter-spacing: .06em; }
.fact-preview__footer button { border: 0; background: none; font-size: 12px; padding: 8px 0; cursor: pointer; }
.fact-preview__footer button:disabled { color: var(--muted); cursor: default; }
.fact-check__note { margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; text-wrap: pretty; }
.fact-check__note strong { color: var(--ink-2); font-weight: 650; }
@keyframes fact-marker-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fact-evidence-trace { from { transform: translateY(0); opacity: 0; } 20%, 70% { opacity: 1; } to { transform: translateY(35px); opacity: 0; } }

/* ───────── Section heading with a short supporting line ─────────
   Three columns with the bento's gap share its column lines, so the supporting line starts
   exactly where the right-hand tiles below begin. */
.section-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 24px 16px; }
.section-head > :first-child { grid-column: span 2; }
.section-head__lede { max-width: 340px; margin: 0 0 8px; color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: balance; }

/* ───────── 04 · Details (bento) ───────── */
.details { padding: var(--section-space) 0 0; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 30px;
  background: var(--surface);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { translate: 0 -4px; box-shadow: 0 36px 60px -44px rgba(26, 40, 35, .5); }
.js .tile.reveal {
  transition: opacity 1s var(--ease), transform 1s var(--ease), translate .5s var(--ease), box-shadow .5s var(--ease);
  transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s, 0s;
}
.tile--search { grid-column: span 4; }
/* Visuals keep one height, so titles line up across each row. */
.tile__visual {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 320px;
  padding: 24px 0;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle, rgba(35, 53, 47, .09) 1px, transparent 1.4px) 0 0 / 18px 18px,
    var(--paper-2);
}
.tile__copy { padding: 22px 14px 14px; }
.tile__copy h3 { margin: 0 0 8px; font-size: 21px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.tile__copy p { max-width: 460px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* Animations only run while a tile is on screen. */
.js .tile:not(.is-live) .tile__visual *,
.js .tile:not(.is-live) .tile__visual *::before,
.js .tile:not(.is-live) .tile__visual *::after { animation-play-state: paused !important; }


/* Search */
.palette { width: min(88%, 540px); padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -30px rgba(26, 40, 35, .38), 0 0 0 1px rgba(35, 53, 47, .06); }
.palette__input { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; border-bottom: 1px solid var(--line-soft); }
.palette__input svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.palette__q {
  box-sizing: content-box;
  width: 21ch;
  padding-right: 2px;
  overflow: hidden;
  border-right: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
  animation: type-q 9s steps(21) infinite, caret-border .9s steps(1) infinite;
}
.palette kbd {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.palette__results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 8px 0 0; list-style: none; }
.result { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; animation: result-in 9s var(--ease) infinite both; }
.result:nth-child(2) { animation-delay: .15s; }
.result:nth-child(3) { animation-delay: .3s; }
.result--hit { background: var(--lime-wash); box-shadow: inset 0 0 0 1px #d0dcc1; }
.result img, .result > i { width: 52px; height: 40px; flex: none; border-radius: 9px; object-fit: cover; }
.result > i { display: grid; place-items: center; background: var(--paper-2); font-size: 16px; font-style: normal; }
.result > span { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
.result b { font-weight: 650; color: var(--ink); }
.result small { display: block; margin-top: 2px; overflow: hidden; font-size: 14px; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.result em { flex: none; padding: 4px 8px; border-radius: 999px; background: #e8eada; color: var(--ink-2); font-size: 10px; font-style: normal; }
.result__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.result .result__time { border: 1px solid var(--line); background: transparent; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Follow-ups */
.followups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 86%; margin: 0; padding: 0; list-style: none; }
.followups li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 28px -20px rgba(26, 40, 35, .45), 0 0 0 1px rgba(35, 53, 47, .05);
}
.followups li > span { flex: 1; min-width: 0; font-size: 14px; font-weight: 620; }
.followups small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--signal);
  white-space: nowrap;
  text-overflow: ellipsis;
  animation: tick-note 8s var(--ease) infinite both;
}
.followups .av { width: 28px; height: 28px; flex: none; margin: 0; border: 0; font-size: 11px; }
.tick {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1.5px solid var(--lime-strong);
  border-radius: 7px;
  background: var(--lime);
  animation: tick-box 8s var(--ease) infinite both;
}
.tick::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6.5px;
  width: 5px;
  height: 10px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(1);
  animation: tick-mark 8s var(--ease-spring) infinite both;
}
.followups li:nth-child(2) :is(.tick, small),
.followups li:nth-child(2) .tick::after { animation-delay: 1.1s; }
.followups li:nth-child(3) :is(.tick, small),
.followups li:nth-child(3) .tick::after { animation-delay: 2.2s; }

/* Video call */
.call { position: relative; width: 86%; aspect-ratio: 4 / 3.1; overflow: hidden; border-radius: 22px; background: var(--ink-deep); box-shadow: 0 30px 60px -30px rgba(26, 40, 35, .55); }
.call__main { position: absolute; inset: 0; animation: breathe 7s ease-in-out infinite; }
.call__main::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--lime); border-radius: 22px; opacity: 0; animation: speak 2.6s ease-in-out infinite; }
.person { position: absolute; inset: 0; display: block; }
.person--a {
  background:
    radial-gradient(ellipse 12% 16% at 50% 48%, #b98a6c 96%, transparent 100%),
    radial-gradient(ellipse 28% 34% at 50% 100%, #2f463e 97%, transparent 100%),
    linear-gradient(160deg, #f4d8c2 0%, #e2b99c 55%, #c99b7f 100%);
}
.person--b {
  background:
    radial-gradient(ellipse 15% 13% at 50% 46%, #8a6a55 96%, transparent 100%),
    radial-gradient(ellipse 36% 26% at 50% 100%, var(--lime) 97%, transparent 100%),
    linear-gradient(160deg, #d3e2e3, #a3bec0);
}
.call__pip {
  position: absolute;
  right: 12px;
  bottom: 60px;
  width: 26%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 12px;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .45);
}
.call__rec,
.call__toast {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.call__rec { left: 12px; background: rgba(26, 40, 35, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 10px; animation: rec-show 9s var(--ease) infinite both; }
.call__rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: blink 1.2s steps(1) infinite; }
.call__toast { left: 50%; translate: -50% 0; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; opacity: 0; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .4); animation: toast 9s var(--ease) infinite both; }
.call__toast::before { content: "✓"; color: var(--signal); font-weight: 700; }
.call__bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  translate: -50% 0;
  background: rgba(26, 40, 35, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.call__bar i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-style: normal; }
.call__bar .call__end { background: var(--coral); }

/* Review before action */
.proposal {
  position: relative;
  width: 82%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(26, 40, 35, .38), 0 0 0 1px rgba(35, 53, 47, .06);
}
.proposal__label { margin-bottom: 6px; font-size: 10px; color: var(--muted); }
.proposal strong { font-size: 19px; letter-spacing: -.02em; }
.proposal__when { font-size: 13px; color: var(--muted); }
.proposal__actions { display: flex; gap: 8px; margin-top: 14px; }
.proposal__ghost { flex: 1; display: grid; place-items: center; height: 42px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.proposal__confirm {
  position: relative;
  flex: 1.5;
  height: 42px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  animation: confirm-bg 7s var(--ease) infinite both;
}
.proposal__confirm span { position: absolute; inset: 0; display: grid; place-items: center; }
.proposal__confirm span:first-child { opacity: 0; animation: label-out 7s var(--ease) infinite both; }
.proposal__confirm span:last-child { animation: label-in 7s var(--ease) infinite both; }
.cursor {
  position: absolute;
  right: 21%;
  bottom: 14px;
  width: 22px;
  height: 22px;
  fill: var(--ink);
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25));
  animation: cursor 7s var(--ease) infinite both;
}

/* Replies & reactions */
.react { position: relative; width: 84%; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 50px; }
.react__tray {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 2px;
  padding: 5px 7px;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
  box-shadow: 0 16px 32px -16px rgba(26, 40, 35, .45), 0 0 0 1px rgba(35, 53, 47, .05);
  transform-origin: 20% 100%;
  animation: tray 7s var(--ease) infinite both;
}
.react__tray i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; font-style: normal; }
.react__pick { animation: pick 7s var(--ease-spring) infinite both; }
.react__bubble {
  position: relative;
  margin: 0;
  padding: 12px 16px;
  border-radius: 20px 20px 20px 6px;
  background: #fff;
  font-size: 15px;
  box-shadow: 0 14px 28px -20px rgba(26, 40, 35, .45);
}
.react__chip {
  position: absolute;
  right: -10px;
  bottom: -14px;
  padding: 3px 8px;
  border: 2px solid var(--paper-2);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  animation: chip 7s var(--ease-spring) infinite both;
}
.react__reply { align-self: flex-end; max-width: 92%; padding: 10px 14px; border-radius: 20px 20px 6px 20px; background: #e7ebdc; color: var(--ink); font-size: 14px; }
.react__quote {
  display: block;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-left: 2px solid #91a681;
  border-radius: 6px;
  background: rgba(252, 252, 247, .7);
  font-size: 12px;
  color: var(--ink);
}

/* ───────── 04 · Closing ───────── */
.closing {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: var(--section-space) 0;
}
.closing__art { display: flex; flex-direction: column; padding: 20px 0; }
.bubble {
  width: 92%;
  padding: 36px 32px;
  border-radius: 38px 38px 38px 7px;
  background: #e7ebdc;
  color: var(--ink);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -.04em;
  transform: rotate(-5deg);
  animation: float 8s ease-in-out infinite;
}
.bubble--lime {
  width: 87%;
  align-self: flex-end;
  margin-top: 24px;
  border-radius: 35px 35px 7px 35px;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(5deg);
  animation-delay: -4s;
}
.closing .section-title { margin-bottom: 32px; }

/* ───────── Keyframes ───────── */
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: none; } }
@keyframes mark-in { to { transform: scaleX(1); } }
@keyframes chat-in {
  from { opacity: 0; translate: 0 48px; scale: .95; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes blink { 50% { opacity: .25; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes packet-x {
  0% { left: 0; opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes packet-y {
  0% { top: 0; opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes packet-x-back {
  0% { left: 100%; opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { left: 0; opacity: 0; }
}
@keyframes packet-y-back {
  0% { top: 100%; opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { top: 0; opacity: 0; }
}
@keyframes server-ripple {
  0% { box-shadow: 0 0 0 0 rgba(168, 190, 146, .4); border-color: rgba(168, 190, 146, .7); }
  100% { box-shadow: 0 0 0 18px rgba(168, 190, 146, 0); border-color: rgba(63, 95, 77, .2); }
}
@keyframes stem-down {
  0% { top: 0; opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes stem-up {
  0% { top: 100%; opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { top: 0; opacity: 0; }
}
@keyframes step-scan { to { transform: translateX(100%); } }
@keyframes tick-pop {
  0% { transform: scale(.4); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes radar {
  0% { opacity: .9; transform: scale(.8); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes allow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(35, 53, 47, .35); }
  50% { box-shadow: 0 0 0 6px rgba(35, 53, 47, 0); }
}
@keyframes type-q {
  0% { width: 0; }
  28%, 88% { width: 21ch; }
  94%, 100% { width: 0; }
}
@keyframes caret-border { 50% { border-color: transparent; } }
@keyframes result-in {
  0%, 30% { opacity: 0; transform: translateY(10px); }
  36%, 86% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes tick-box {
  0%, 14% { background: transparent; border-color: var(--line); }
  18%, 86% { background: var(--lime); border-color: var(--lime-strong); }
  92%, 100% { background: transparent; border-color: var(--line); }
}
@keyframes tick-mark {
  0%, 14% { transform: rotate(45deg) scale(0); }
  20%, 86% { transform: rotate(45deg) scale(1); }
  92%, 100% { transform: rotate(45deg) scale(0); }
}
@keyframes tick-note {
  0%, 16% { opacity: 0; transform: translateY(-4px); }
  22%, 86% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: none; }
}
@keyframes breathe { 50% { scale: 1.035; } }
@keyframes speak { 0%, 100% { opacity: 0; } 40%, 60% { opacity: .9; } }
@keyframes toast {
  0%, 8% { opacity: 0; transform: translateY(-8px); }
  12%, 28% { opacity: 1; transform: none; }
  32%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes rec-show {
  0%, 30% { opacity: 0; transform: scale(.8); }
  34%, 94% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: scale(.8); }
}
@keyframes cursor {
  0% { opacity: 0; translate: 80px 70px; scale: 1; }
  10% { opacity: 1; }
  38% { translate: 0 0; scale: 1; }
  43% { scale: .8; }
  48% { scale: 1; }
  72% { opacity: 1; translate: 0 0; }
  86%, 100% { opacity: 0; translate: 80px 70px; }
}
@keyframes confirm-bg {
  0%, 45% { background: #e8eada; color: var(--ink); }
  49%, 88% { background: var(--lime); color: var(--ink); }
  94%, 100% { background: #e8eada; color: var(--ink); }
}
@keyframes label-out {
  0%, 45% { opacity: 1; transform: none; }
  49%, 88% { opacity: 0; transform: translateY(-10px); }
  94%, 100% { opacity: 1; transform: none; }
}
@keyframes label-in {
  0%, 45% { opacity: 0; transform: translateY(10px); }
  49%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateY(10px); }
}
@keyframes tray {
  0%, 8% { opacity: 0; transform: translateY(8px) scale(.7); }
  14%, 40% { opacity: 1; transform: none; }
  46%, 100% { opacity: 0; transform: translateY(4px) scale(.9); }
}
@keyframes pick {
  0%, 26% { transform: none; background: transparent; }
  31% { transform: scale(1.5); background: var(--lime-wash); }
  36%, 40% { transform: scale(1.2); background: var(--lime-wash); }
  46%, 100% { transform: none; background: transparent; }
}
@keyframes chip {
  0%, 44% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.25); }
  54%, 92% { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(0); }
}

/* ───────── Responsive ───────── */
/* Narrower phones wrap the conversation onto more lines; the screens grow so the proposal never covers it. */
@media (max-width: 1320px) {
  .pipeline { --screen-h: 340px; }
}

@media (max-width: 1100px) {
  .fact-check { gap: 40px; }
  .section-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head > :first-child { grid-column: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile--search { grid-column: span 1; }
  .tile--search { grid-column: 1 / -1; }
  .pipeline { --screen-h: 350px; }
  .node__screen { padding-inline: 14px; }
  .pbubble { font-size: 14px; }
  .phone .pbubble { font-size: 13px; }
  .server__text { font-size: 12px; }
  .tool { font-size: 10px; }
  .assist__head { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .fact-check { grid-template-columns: 1fr; gap: 44px; padding-top: 104px; }
  .fact-check__copy { max-width: 620px; }
  .fact-check__lede, .fact-check__steps p, .fact-check__choice { max-width: none; }
  .fact-check__visual { width: 100%; max-width: 620px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; padding: 56px 0 64px; }
  .hero__stage { min-height: 0; padding: 40px 0; justify-items: center; }
  .stage__grid { inset: -4% 0; }
  .stage__glow { right: 0; }
  .modes { padding: 88px 0 80px; border-radius: 36px; }
  .modes__head { align-items: flex-start; flex-direction: column; gap: 32px; }
  .pipeline { --screen-h: 300px; grid-template-columns: 1fr; max-width: 400px; margin: 40px auto 0; }
  .node--server .node__screen { min-height: 200px; }
  .tool { font-size: 11px; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head > :first-child { grid-column: auto; }
  .section-head__lede { margin: 0; }
  .wire {
    width: 2px;
    height: 56px;
    margin: 12px auto;
    background: repeating-linear-gradient(180deg, rgba(63, 95, 77, .3) 0 6px, transparent 6px 12px);
  }
  .packet { top: 0; left: 50%; }
  .packet.is-moving { animation-name: packet-y; }
  .packet.is-returning { animation-name: packet-y-back; }
  .closing { grid-template-columns: 1fr; }
  .closing__art { max-width: 460px; }
}

@media (max-width: 600px) {
  .landing { --section-space: 80px; }
  /* Each title sentence keeps to one line on common phone widths instead of leaving a lone word. */
  .section-title { font-size: clamp(32px, calc(10.4vw - 5px), 40px); }
  /* The pause control keeps its accessible name and shows only its glyph, so it fits beside the examples. */
  .demo-toolbar .motion-toggle:not(:disabled) { align-self: flex-start; width: 44px; min-height: 44px; padding: 0; gap: 0; font-size: 0; }
  .fact-preview__head { gap: 9px; padding: 18px; }
  .fact-preview__body { padding: 20px 16px; }
  .fact-preview__message { max-width: 100%; }
  .fact-preview__message p { font-size: 15px; }
  .fact-evidence { padding: 16px; }
  .fact-evidence__source { padding: 12px; gap: 9px; }
  .fact-preview__footer { padding: 12px 18px; }
  .fact-preview__head div > span { font-size: 10px; }
  .fact-check__examples { gap: 8px; }
  .fact-check__lede { font-size: 17px; }
  .hero { padding-top: 40px; }
  .hero__title { font-size: clamp(46px, 13.4vw, 72px); }
  .hero__lede { font-size: 17px; }
  .scene-picker { margin-top: 32px; gap: 8px; }
  .scene-chip { padding-inline: 14px; font-size: 14px; }
  .hero__stage { padding: 16px 0 8px; }
  .stage__hint { align-self: flex-start; }
  .modes { margin-inline: 8px; padding: 72px 0 64px; border-radius: 30px; }
  .modes__toolbar { margin-top: 32px; }
  .section-head__lede { font-size: 16px; }
  .segmented button { padding: 0 20px; font-size: 14px; }
  .mode-facts li { font-size: 13px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--search { grid-column: 1 / -1; }
  .tile__visual { min-height: 260px; }
  .palette { width: 94%; }
  .result em:not(.result__time) { display: none; }
  .bubble { padding: 28px 24px; font-size: 27px; }
}


@media (max-width: 360px) {
  .hero__title { font-size: 44px; }
  .scene-picker__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fact-check[data-verdict="checking"] .fact-marker i { animation: none; }
  .ticker__track { animation: none; }
  .tile__visual *, .tile__visual *::before, .tile__visual *::after { animation: none !important; }
}
