/*
 * The calm look: frosted header, large type, generous space, nothing that moves by itself.
 * Loaded last on every page. Brand fonts, colours and logo come from site.css unchanged.
 * The opening screen's markup in home.html relies on these rules: undo the whole commit,
 * not only this file, to go back.
 */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --bar: 52px;
  --card-radius: 22px;
  /* Buttons are message bubbles: three soft corners and one tight one, bottom left. */
  --bubble: 18px 18px 18px 5px;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

p { font-size: 17px; line-height: 1.55; }
h1, h2 { letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
p, figcaption { text-wrap: pretty; }

/* Header: a quiet frosted bar. Text behind it is blurred away, never bent. */
.nav, .home-page .nav {
  min-height: var(--bar);
  padding: calc(4px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px))
    4px max(24px, env(safe-area-inset-left, 0px));
  color: var(--text);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: 0 1px 0 var(--edge);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.nav::before { display: none; }
.nav .wordmark, .nav .desktop-nav > a:not(.button), .nav .theme-toggle,
.home-page .nav .menu-toggle, .nav > .menu-toggle {
  color: var(--text);
  text-shadow: none;
}
.nav .wordmark img { width: 28px; height: 28px; }
@media (min-width: 1081px) { .nav { grid-template-columns: auto minmax(0, 1fr); } }
.nav .brand-name { height: calc(17px * var(--wordmark-canvas-scale)); }
.nav .desktop-nav { padding-block: 0; gap: 26px; }
.nav .desktop-nav > a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
}
.nav .desktop-nav .button.small { min-height: 32px; padding: 6px 14px; font-size: 13px; gap: 8px; }
.nav .desktop-nav .button.small span { display: none; }
@media (max-width: 700px) {
  .nav, .home-page .nav { padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .home-page .nav {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Phone menu wears the page's own colours. */
.mobile-menu {
  background: var(--bg);
  color: var(--text);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu nav {
  min-height: 100%;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 84px 28px calc(32px + env(safe-area-inset-bottom, 0px));
}
.mobile-menu nav > a:not(.button) {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 26px;
  animation: none;
}
.mobile-menu .button { background: var(--text); color: var(--bg); margin: 20px 0 8px; }
.mobile-menu .theme-toggle { min-height: 44px; }
.menu-toggle[aria-expanded=true], .home-page .nav .menu-toggle[aria-expanded=true] {
  color: var(--text);
}

/* Buttons: bubble shaped, roomy, and they answer the press. */
.button {
  min-height: 44px;
  gap: 10px;
  padding: 11px 22px;
  border-radius: var(--bubble);
  font-size: 15px;
  transition: transform 160ms var(--ease-out), filter 160ms ease, background-color 160ms ease;
}
.button.small { font-size: 14px; }
.billing-switch { border-radius: 22px 22px 22px 8px; }
.billing-switch a { border-radius: var(--bubble); }
.button:hover { transform: none; }
.button:active, summary:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { filter: brightness(1.12); }
  [data-theme=dark] .button:hover { filter: brightness(0.92); }
}
button, summary { -webkit-user-select: none; user-select: none; }
.text-link, .visual-text-link { font-size: 15px; }
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]), textarea, select { font-size: 16px; min-height: 44px; }
  .text-link, .visual-text-link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Opening screen: the film sets the mood, then the real app rises out of it. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-film {
  --overlap: clamp(140px, 22vh, 220px);
  justify-content: center;
  min-height: min(100svh, 980px);
  padding: calc(var(--bar) + 24px) 24px calc(var(--overlap) + 24px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #0d0f12;
}
.film, .film::after, .film-poster, .film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.film { z-index: -1; }
.film-poster, .film-video { object-fit: cover; }
.film-video { opacity: 0; transition: opacity 600ms ease; }
.film-video.active { opacity: 1; }
/* Darker under the header and the words, so both stay readable on any frame. */
.film::after {
  content: "";
  background: linear-gradient(
    rgba(8, 10, 14, 0.72), rgba(8, 10, 14, 0.5) 40%, rgba(8, 10, 14, 0.55) 70%, rgba(8, 10, 14, 0.72)
  );
}
.hero h1 {
  margin: 0 auto 20px;
  color: #fff;
  font-size: clamp(28px, 8.9vw, 96px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}
.hero-line { display: block; white-space: nowrap; }
/* App icons sit in the headline as if they were words. */
.tool-slot {
  display: inline-block;
  position: relative;
  width: 0.86em;
  height: 0.86em;
  margin: 0 0.03em;
  vertical-align: -0.11em;
}
/* Order of arrival. Set here because the site's security policy blocks inline styles. */
.tool-slot { --i: 0; }
.hero-line + .hero-line .tool-slot { --i: 1; }
.hero-line + .hero-line .tool-slot ~ .tool-slot { --i: 2; }
.tool-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 23%;
  /* Three shadows, tight to wide, lift each icon off the film; the faint ring keeps black ones visible. */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0.02em 0.04em rgba(0, 0, 0, 0.4),
    0 0.09em 0.16em rgba(0, 0, 0, 0.34),
    0 0.22em 0.42em -0.06em rgba(0, 0, 0, 0.5);
}
.tool-slot img.first {
  animation: tool-arrive 520ms cubic-bezier(0.34, 1.45, 0.64, 1) backwards;
  animation-delay: calc(1050ms + var(--i) * 140ms);
}
@keyframes tool-arrive { from { opacity: 0; filter: blur(10px); transform: scale(0.4); } }
/* The opening: the words come into focus, the app rises, the headline makes room, the icons pop in. */
/* The lines move, not the h1: the header watches the h1 to know when to turn solid. */
.hero-copy > :not(h1), .hero-line { animation: hero-arrive 760ms cubic-bezier(0.23, 1, 0.32, 1) backwards; }
.hero-copy > :nth-child(2) { animation-delay: 120ms; }
.hero-copy > :nth-child(n + 3) { animation-delay: 220ms; }
.hero-rise .hero-product { animation: hero-lift 900ms cubic-bezier(0.23, 1, 0.32, 1) 320ms backwards; }
.tool-slot { animation: tool-room 460ms cubic-bezier(0.23, 1, 0.32, 1) backwards; animation-delay: calc(820ms + var(--i) * 140ms); }
@keyframes hero-arrive { from { opacity: 0; filter: blur(14px); transform: translateY(22px) scale(0.97); } }
@keyframes hero-lift { from { opacity: 0; transform: translateY(90px) scale(0.96); } }
@keyframes tool-room { from { width: 0; margin: 0 -0.05em; } }
/* One quiet row: what is still planned, and the way to stop the motion. */
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; margin-top: 14px; }
.hero-meta > .hero-tools-note { margin: 0; color: rgba(255, 255, 255, 0.92); font-size: 13px; line-height: 1.45; }
/* A soft shadow keeps the small words readable over bright frames of the film. */
.hero-copy > :is(p, div) { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.55); }
/* Each sentence stays whole; lines break between them. */
.hero-lede > span { display: inline-block; }
.hero-copy > p {
  max-width: 32em;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
}
.hero-copy > .hero-availability { margin: 0 auto 14px; color: #fff; font-size: 15px; font-weight: 600; }
.hero-cta { padding-inline: 28px; font-size: 17px; }
.hero-film .button { background: #fff; color: #14181f; }
.film-toggle {
  display: block;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--bubble);
  color: #fff;
  background: rgba(8, 10, 14, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 13px;
}
.hero-film :focus-visible { outline-color: #fff; }

.hero-rise {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(140px, 22vh, 220px));
  padding: 0 24px;
  text-align: center;
}
.hero-product { width: min(1200px, 100%); margin: 0 auto; padding-bottom: clamp(40px, 6vw, 80px); }
/* Small laptops, Chromebooks among them: the whole demo fits on screen under the header, with room
   at both sides. Without this it outgrew the window and its own zoom read as edge to edge. */
@media (min-width: 701px) {
  .hero-product { width: min(1200px, 100%, max(720px, (100svh - 130px) * 1.6)); }
}
.demo-stage {
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 34px 90px rgba(8, 10, 14, 0.34);
}
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.demo-toggle {
  display: block;
  min-height: 44px;
  margin: 8px auto 0;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
}
.hero-product figcaption { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) {
  .hero-rise { padding: 0 14px; }
  .demo-video { aspect-ratio: 4 / 5; }
  .hero-film {
    --overlap: 132px;
    min-height: min(88svh, 760px);
    padding: calc(var(--bar) + 16px) 20px calc(var(--overlap) + 28px);
  }
  .hero-rise { margin-top: -132px; }
  /* A phone gets three taller lines, then one steady rhythm down to the button. */
  .hero h1 { margin-bottom: 18px; font-size: clamp(36px, min(12.4vw, 7.4svh), 64px); line-height: 1.16; }
  /* Too narrow for "working", so it drops to its own line. No markup, so wide screens are untouched. */
  .hero-line:first-child { max-width: 7em; margin-inline: auto; white-space: normal; }
  /* Phones hold each icon's place from the first frame. Opening the space while the line wraps
     left an empty row in Safari, so here the icons only pop into places already there. */
  .tool-slot { animation: none; }
  .tool-slot img.first { animation-delay: calc(420ms + var(--i) * 120ms); }
  .hero-copy > p { max-width: 20em; margin-bottom: 24px; font-size: 17px; }
  .hero-copy > .hero-availability { margin-bottom: 12px; font-size: 14px; }
  .hero-meta { gap: 8px; margin-top: 14px; }
  .hero-meta > .hero-tools-note { max-width: 27em; font-size: 12px; }
}
/* Short laptop windows: the words give up height so the app is properly in view. */
@media (min-width: 701px) and (max-height: 820px) {
  .hero-film { --overlap: 150px; padding-top: calc(var(--bar) + 8px); padding-bottom: calc(var(--overlap) + 12px); }
  .hero-rise { margin-top: -150px; }
  .hero h1 { margin-bottom: 12px; font-size: min(96px, 8.9vw, 10.8svh); line-height: 1.12; }
  .hero-copy > p { margin-bottom: 14px; font-size: 18px; }
  .hero-copy > .hero-availability { margin-bottom: 8px; }
  .hero-meta { margin-top: 10px; }
}
/* Very large screens: grow with the room instead of floating small in it. */
@media (min-width: 1800px) and (min-height: 1000px) {
  .hero-film { min-height: min(86svh, 1180px); }
  .hero h1 { margin-bottom: 28px; font-size: min(136px, 6.2vw); }
  .hero-copy > p { max-width: 36em; margin-bottom: 36px; font-size: 26px; }
  .hero-copy > .hero-availability { font-size: 18px; }
  .hero-cta { min-height: 54px; padding-inline: 36px; font-size: 20px; }
  .hero-meta > .hero-tools-note { font-size: 15px; }
  .hero-product { width: min(1500px, 100%); }
}
@media (min-width: 701px) { .workspace-peek { display: none; } }

/* The header is clear only while the film is behind it. */
@media (scripting: enabled) {
  .nav.nav-over-film, .home-page .nav.nav-over-film {
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .home-page .nav.nav-over-film .wordmark,
  .home-page .nav.nav-over-film .desktop-nav > a:not(.button),
  .home-page .nav.nav-over-film .theme-toggle,
  .home-page .nav.nav-over-film .menu-toggle { color: #fff; }
  .home-page .nav.nav-over-film .desktop-nav .button { background: #fff; color: #14181f; }
  .menu-open.home-page .nav.nav-over-film .wordmark,
  .menu-open.home-page .nav.nav-over-film .menu-toggle { color: var(--text); }
}
.nav { transition: background-color 200ms ease; }

/* Chapters: full-width fields that alternate light and near-black. */
.visual-home { width: auto; margin: 0; }
.visual-home > section, .feature-chapters > article {
  margin: 0;
  padding: clamp(88px, 11vw, 148px) max(20px, calc((100% - 1100px) / 2));
}
.visual-home h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.chapter { scroll-margin-top: var(--bar); }
.chapter-heading { max-width: 860px; margin: 0 auto 64px; text-align: center; }
.visual-home .chapter-heading p { max-width: 30em; margin: 0 auto; font-size: clamp(19px, 2vw, 23px); line-height: 1.45; }
.chapter-heading .visual-text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; }

.band-dark {
  --bg: #0b0d11;
  --surface: #171b22;
  --soft: #222731;
  --text: #f5f6f8;
  --muted: #a3aec0;
  --edge: rgba(255, 255, 255, 0.1);
  --blue: #6c9eff;
  --glass: rgba(28, 28, 30, 0.7);
  --scene-bg: #171b22;
  --scene-blue: #6c9eff;
  --scene-wash: #253a5c;
  --scene-green: #85c8a5;
  --scene-green-wash: #243b31;
  --scene-red: #e6a0a7;
  --scene-red-wash: #422c32;
  --scene-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 3px 10px rgba(0, 0, 0, 0.12);
  color-scheme: dark;
  color: var(--text);
  background: var(--bg);
}
/* In the dark theme the page is already deep, so the chapters step down to true night. */
[data-theme=dark] .band-dark { --bg: #050608; --surface: #14181f; --scene-bg: #14181f; }
.band-dark .button { background: var(--text); color: var(--bg); }
.band-dark .meeting-image-dark { display: block !important; }
.band-dark .meeting-image-light { display: none !important; }

/* The real app, large. */
.product-shot { margin: 0 auto; }
.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--edge), 0 40px 100px rgba(0, 0, 0, 0.28);
}
.product-shot-build { max-width: 820px; }
.product-shot-build img { box-shadow: 0 0 0 1px var(--edge), 0 30px 80px rgba(16, 19, 24, 0.14); }
.product-shot figcaption { margin-top: 20px; color: var(--muted); font-size: 13px; text-align: center; }

/* One idea beside its picture. */
.chapter-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 56px;
}
.chapter-split .feature-copy, .chapter-split .connected-copy { margin: 0; }
.visual-home .chapter-split h2 { font-size: clamp(34px, 3.8vw, 52px); }
.visual-home .chapter-split .feature-copy p, .visual-home .chapter-split .connected-copy p { font-size: 19px; }
.chapter-split figure { margin: 0; }
.feature-chapters > #ai-teammates .feature-copy { order: 2; }
.feature-chapters > #ai-teammates { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-scene { border-radius: var(--card-radius); }
.scene-caption { font-size: 13px; }
.illustration-motion { display: none; }

/* These two had their own narrow boxes. The padding above does the centring now, so the box
   must stay full width, or the side padding eats the words on large screens. */
.visual-home > .visual-faq, .visual-home > .team-invitation { width: auto; max-width: none; }
.visual-home > .visual-faq { padding-inline: max(20px, calc((100% - 760px) / 2)); }
.visual-home .visual-faq h2 { font-size: clamp(34px, 4.4vw, 56px); }
.visual-home .team-invitation {
  margin: 0;
  padding: 56px max(20px, calc((100% - 1100px) / 2));
  border-top: 1px solid var(--edge);
}

/* Endings: one line, one action, in the dark. */
.visual-cta, .statement { text-align: center; }
.visual-home > .visual-cta { padding-block: clamp(110px, 14vw, 180px); }
.visual-cta h2 { margin: 0 auto 32px; max-width: 12em; }
.visual-home .visual-cta .button { padding-inline: 28px; font-size: 17px; }
.statement.band-dark { max-width: none; margin: 0; padding: clamp(100px, 12vw, 150px) 24px; }
.statement h2 { font-size: clamp(38px, 6vw, 72px); }
.statement .text-link { color: var(--text); }
.trust-footer.band-dark { margin: 0; max-width: none; border-top: 1px solid var(--edge); }
.band-dark .footer-social img:not(.footer-social-dark) { display: none !important; }
.band-dark .footer-social-dark { display: block !important; }
.band-dark .brand-name, .band-dark .footer-columns h2 { color: var(--text); }
.band-dark select { background-color: var(--surface); color: var(--text); border-color: var(--edge); }

@media (max-width: 860px) {
  .chapter-split, .feature-chapters > #ai-teammates { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature-chapters > #ai-teammates .feature-copy { order: 0; }
  .chapter-heading { margin-bottom: 40px; }
}

/* The one moment that moves: the app settles into place as you start to scroll. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .demo-stage {
      display: block;
      transform-origin: 50% 0;
      animation: product-arrive linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 48%;
    }
  }
}
@keyframes product-arrive {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}

/* Plans: four clear cards, the suggested one in the dark. */
.plans { gap: 16px; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.plans .plan { border: 0; border-radius: var(--card-radius); background: var(--surface); box-shadow: 0 1px 2px rgba(16, 19, 24, 0.05); }
.plans .plan.recommended {
  --surface: #14181f;
  --text: #f5f6f8;
  --muted: #a3aec0;
  --edge: rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 30px 70px rgba(16, 19, 24, 0.22);
}
[data-theme=dark] .plans .plan.recommended { --surface: #252e3f; box-shadow: 0 0 0 1px #6c9eff; }
.plans .plan h2, .plans .plan .price { color: var(--text); }
.plans .plan.recommended .button { background: #1f5fe0; color: #fff; }
.plans .plan p, .plans .plan li { font-size: 14px; }
.plans .price small { display: inline-block; font-size: 13px; }

/* Reading pages: a comfortable measure and clear steps between topics. */
.inner-page .page-header { padding-top: calc(var(--bar) + clamp(56px, 8vw, 104px)); padding-bottom: 48px; }
.inner-page .page-header h1 { font-size: clamp(42px, 6.4vw, 80px); letter-spacing: -0.03em; }
.inner-page main h2 { margin-top: 1.6em; margin-bottom: 0.6em; }
.inner-page main p, .inner-page main li { max-width: 68ch; }
.inner-page .page-header p, .pricing-disclosure { margin-inline: auto; }
.inner-page .plans .plan h2, .inner-page .statement h2, .inner-page .wizard h2,
.inner-page .login-panel h2 { margin-top: 0; }
.inner-page main img.meeting-image-light, .inner-page main img.meeting-image-dark { border-radius: 14px; }

.inner-page p.eyebrow { font-size: 14px; font-weight: 400; letter-spacing: normal; line-height: 1.5; }

/* The parts the browser draws. */
::selection { background: color-mix(in srgb, var(--blue) 28%, transparent); }
input, textarea { caret-color: var(--blue); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
a { text-underline-offset: 0.2em; }
.price, .plans .price { font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .footer-columns a, .nav .desktop-nav > a:not(.button) { transition: color 150ms ease, opacity 150ms ease; }
  .nav .desktop-nav > a:not(.button):hover { opacity: 0.65; }
}

summary { min-height: 44px; }

.page-header { padding: calc(var(--bar) + 20px) 24px 40px; }
.page-header h1 { font-size: clamp(40px, 5.6vw, 64px); }
.page-header p { max-width: 34em; font-size: 19px; }

/* Footer: readable, and every link is easy to hit. */
.footer-columns > div { gap: 0; }
.footer-columns a, .footer-columns .storage-settings {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  text-align: start;
}
@media (pointer: coarse) {
  .footer-columns a, .footer-columns .storage-settings { min-height: 44px; font-size: 14px; }
}
.trust-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }

/* The storage question sits in a corner instead of covering the page. */
.storage-notice {
  left: auto;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: min(380px, calc(100% - 32px));
  max-height: 60dvh;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(16, 19, 24, 0.16);
}
.storage-notice[hidden] { display: none; }
.storage-notice h2 { font-size: 15px; }
.storage-notice p { font-size: 13px; line-height: 1.45; }
.storage-actions { display: grid; grid-template-columns: 1fr 1fr; }
.storage-actions .button { padding: 10px 12px; font-size: 13px; }
@media (max-width: 500px) {
  .storage-notice { right: 8px; width: calc(100% - 16px); gap: 8px; padding: 12px; }
  .storage-notice p { line-height: 1.35; }
}

/* Nothing loops, floats or waits for a scroll before it can be read. */
.agent-art > img, .sweep, .scroll-arrow svg, .bud-role .site-bud, .bud-peek .site-bud,
.visual-home.motion-enabled .bud-portrait > .site-bud,
.visual-home.motion-enabled .audio-wave > span {
  animation: none !important;
}
.js-motion :is(.reveal, .team-member), .js-motion :is(.reveal, .team-member).visible {
  opacity: 1;
  transform: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .button, summary { transition: filter 160ms ease, background-color 160ms ease; }
  .button:active, summary:active { transform: none; filter: brightness(0.9); }
}

/* No caption smaller than 12px, however small the screen. */
.visual-home .feature-scene :is(code, .code-lines span, .source-sheet p, .evidence-reference,
  .build-outcome-detail, .tool-source span, .connected-bud-note p) {
  font-size: 12px;
}
.team-page .team-tier-label, .team-tier-label { font-size: 12px; }
.visual-home .build-phase-controls button { min-height: 44px; }

@media (min-width: 701px) and (max-height: 820px), (orientation: landscape) and (max-height: 500px) {
  /* A low bar instead of a tall card, so it never sits on the headline's button. */
  .storage-notice {
    right: 12px; bottom: 12px; left: 12px; width: auto;
    flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between;
    gap: 8px 20px; padding: 10px 16px;
  }
  .storage-notice h2 { display: none; }
  .storage-notice p { flex: 1 1 0; min-width: 0; margin: 0; }
  .storage-notice .storage-actions { flex: 0 0 auto; width: auto; margin: 0; }
}

/* A phone held sideways: very little height, so everything tightens and clears the header. */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-film { --overlap: 60px; min-height: 100svh; padding-top: calc(var(--bar) + 18px); }
  .hero-rise { margin-top: -60px; }
  .hero h1 { margin-bottom: 8px; font-size: clamp(30px, 10svh, 44px); line-height: 1.12; }
  .hero-line:first-child { max-width: none; white-space: nowrap; }
  .hero-copy > p { max-width: none; margin-bottom: 8px; font-size: 14px; }
  .hero-copy > .hero-availability { margin-bottom: 6px; font-size: 13px; }
  .hero-cta { min-height: 44px; font-size: 15px; }
  .storage-notice { max-height: none; }
  .storage-notice h2 { display: none; }
  .storage-notice p { font-size: 12px; line-height: 1.35; }
}
