/* ==========================================================================
   Pipo — landing
   1. Tokens and base          6. Como funciona       11. Suas escolhas
   2. Shared pieces            7. Por dentro do app   12. Dúvidas
   3. Opening and header       8. Respostas           13. Fechamento
   4. Phone                    9. Suas palavras       14. Rodapé
   5. Hero                    10. Organização, campo  15. Narrow screens, print

   Motion stays on regardless of the OS "reduce motion" preference, by the
   owner's explicit decision for this landing (8 Oct 2026).
   ========================================================================== */

@font-face {
  font-family: Manrope;
  src: url("assets/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* 1. Tokens and base ------------------------------------------------------ */

:root {
  color-scheme: light dark;

  /* Brand v3: the orange, paper and ink are fixed by the identity guide. */
  --paper: #fff8f1;
  --surface: #fff;
  --tint: #f9efe5;
  --ink: #261c18;
  --muted: #6f615a;
  --accent: #d03919;
  --accent-press: #b92e10;
  --accent-ink: #d03919;
  --accent-soft: #ffe4d7;
  --line: rgb(38 28 24 / 9%);
  --line-strong: rgb(38 28 24 / 15%);
  --dot: rgb(38 28 24 / 14%);
  --skeleton: rgb(38 28 24 / 11%);
  --bubble: #f4ebe2;
  --shadow: 74 40 20;
  --scrim: 0.2;
  /* Stops between paper and the orange in the hero backdrop and the footer. */
  --ember-soft: #f3a988;
  --ember: #de5a34;

  --gutter: clamp(20px, 5vw, 64px);
  --page: 1120px;
  --section: clamp(84px, 11vw, 152px);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 20px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.5, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1e1714;
    --surface: #2b211c;
    --tint: #251c18;
    --ink: #fff6ef;
    --muted: #c0afa4;
    --accent-ink: #ffab8c;
    --accent-soft: #462b21;
    --line: rgb(255 246 239 / 10%);
    --line-strong: rgb(255 246 239 / 17%);
    --dot: rgb(255 246 239 / 14%);
    --skeleton: rgb(255 246 239 / 13%);
    --bubble: #3a2d26;
    --shadow: 0 0 0;
    --scrim: 0.5;
    --ember-soft: #56241a;
    --ember: #a9310f;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--ink);
  background: var(--accent-soft);
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 650;
  text-wrap: balance;
}

h2 {
  font-size: clamp(34px, 4.3vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

h3 {
  font-size: 19px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

img,
picture,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 4px;
}

[tabindex="-1"]:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

/* Icons: one stroke family. Symbols inherit from the element that uses them. */
svg[viewBox="0 0 24 24"] {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg[viewBox="0 0 256 256"] {
  flex: none;
  fill: currentColor;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 70;
  padding: 12px 20px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}

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

/* 2. Shared pieces -------------------------------------------------------- */

.section {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--section) var(--gutter);
}

.section-head-center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-head p,
.tour-lede,
.answers-lede,
.faq-head p,
.field-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.5;
}

.caption,
figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.caption-center {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease-out, scale 150ms ease-out, box-shadow 150ms ease-out;
}

.button:active {
  scale: 0.96;
}

.button svg {
  width: 1.2em;
  height: 1.2em;
  margin-right: -4px;
  transition: translate 320ms var(--ease-out);
}

.button:hover svg {
  translate: 2px -2px;
}

.button-accent {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 28px -18px rgb(208 57 25 / 75%);
}

.button-accent:hover {
  background: var(--accent-press);
}

.button-light {
  color: #261c18;
  background: #fff;
  box-shadow: 0 16px 34px -20px rgb(20 10 4 / 60%);
}

.button-light:hover {
  background: #fff3ea;
}

.button-light:focus-visible,
.hero-copy :focus-visible,
.closing-card :focus-visible,
.ownership-banner :focus-visible {
  outline-color: #fff;
}

/* Tinted panel with a dotted grid: the surface the product mock-ups sit on. */
.panel {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.panel-dots::before {
  position: absolute;
  inset: 20px;
  content: "";
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.4px);
  background-size: 18px 18px;
  background-position: center;
  mask-image: radial-gradient(120% 100% at 50% 50%, #000 30%, transparent 78%);
  pointer-events: none;
}

.panel > * {
  position: relative;
}

/* Scroll reveal. Hidden only when script.js is there to show it again. */
html.js [data-reveal] {
  opacity: 0;
  translate: 0 26px;
  filter: blur(6px);
  transition:
    opacity 800ms var(--ease-out),
    translate 900ms var(--ease-out),
    scale 900ms var(--ease-out),
    filter 700ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

html.js [data-reveal="rise"] {
  translate: 0 48px;
  scale: 0.985;
  filter: none;
}

html.js [data-reveal].is-in,
html.no-enhance [data-reveal] {
  opacity: 1;
  translate: none;
  scale: none;
  filter: none;
}

/* 3. Opening and header --------------------------------------------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

html.intro-on .intro {
  display: grid;
}

.intro::after {
  position: absolute;
  top: calc(100% - 1px);
  left: -10%;
  width: 120%;
  height: 10svh;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: inherit;
  content: "";
}

.intro-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  width: clamp(210px, 22vw, 270px);
}

.intro-symbol {
  flex: 0 0 34%;
  width: 34%;
  height: auto;
  overflow: visible;
  translate: 0 10%;
}

.intro-cloud,
.intro-bubble,
.intro-eye {
  transform-box: fill-box;
  transform-origin: center;
}

.intro-cloud,
.intro-bubble {
  animation: intro-pop 900ms var(--ease-spring) 120ms both;
}

.intro-bubble-one { animation-delay: 300ms; }
.intro-bubble-two { animation-delay: 400ms; }

.intro-eye {
  animation: intro-blink 260ms ease-in-out 1300ms both;
}

.intro-wordmark {
  display: flex;
  padding-bottom: 0.12em;
  font-size: clamp(62px, 6.7vw, 82px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1;
}

.intro-wordmark > span {
  display: inline-block;
  animation: intro-letter 800ms var(--ease-out) calc(400ms + var(--i) * 70ms) both;
}

html.intro-out .intro {
  pointer-events: none;
  animation: intro-lift 1050ms cubic-bezier(0.76, 0, 0.24, 1) both;
}

html.intro-out .intro-logo {
  animation: intro-logo-out 700ms cubic-bezier(0.6, 0, 0.4, 1) both;
}

@keyframes intro-pop {
  from { opacity: 0; transform: translateY(22px) scale(0.6); }
  to { opacity: 1; transform: none; }
}

@keyframes intro-letter {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}

@keyframes intro-blink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); }
}

@keyframes intro-lift {
  to { transform: translate3d(0, calc(-100% - 10svh), 0); }
}

@keyframes intro-logo-out {
  to { opacity: 0; transform: translate3d(0, -9svh, 0) scale(0.96); }
}

/* Header: white over the desk, then a floating bar once the story is behind. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  max-width: 1480px;
  height: 56px;
  margin-inline: auto;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  pointer-events: auto;
  /* "backwards" only: afterwards the scroll choreography owns this element. */
  animation: enter-fade 900ms var(--ease-out) backwards;
  animation-delay: calc(var(--arrive, 0ms) + 120ms);
}

html.js:not(.is-arrived) .header-bar {
  animation-play-state: paused;
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}

.brand svg {
  width: 36px;
  height: 36px;
  translate: 0 2px;
}

.brand span {
  font-size: 32px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.055em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-nav a,
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease-out, color 150ms ease-out, scale 150ms ease-out;
}

.header-nav a:hover {
  background: rgb(255 255 255 / 16%);
}

.header-nav a:active,
.header-cta:active {
  scale: 0.96;
}

.header-cta {
  margin-left: auto;
  padding-inline: 20px;
  color: #261c18;
  background: #fff;
  box-shadow: 0 10px 24px -16px rgb(20 10 4 / 70%);
}

.header-cta:hover {
  background: #fff3ea;
}

.site-header.is-floating .header-bar {
  max-width: var(--page);
  padding-inline: 20px 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-color: var(--line);
  box-shadow: 0 16px 40px -28px rgb(var(--shadow) / 55%);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  animation: none;
  transition: translate 420ms var(--ease-out), opacity 300ms ease-out;
}

.site-header.is-floating .brand svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.site-header.is-floating .brand span {
  font-size: 27px;
}

.site-header.is-floating .header-nav a:hover {
  background: var(--line);
}

.site-header.is-floating .header-cta {
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}

.site-header.is-floating .header-cta:hover {
  background: var(--accent-press);
}

.site-header.is-floating.is-tucked .header-bar:not(:focus-within) {
  translate: 0 -140%;
  opacity: 0;
}

@keyframes enter-fade {
  from { opacity: 0; translate: 0 -10px; }
  to { opacity: 1; translate: 0 0; }
}

/* 4. Phone ----------------------------------------------------------------
   The reference iPhone, cropped losslessly to its bezel, over real captures.
   data-screen walks thoughts → chat → sources → original with the same sheet
   motion as the app. Geometry was measured on the 1170 × 2532 captures. */

.phone {
  --sw: calc(var(--pw) * 0.8840425);
  position: relative;
  width: var(--pw);
  aspect-ratio: 470 / 952;
}

.phone-display {
  position: absolute;
  left: 5.95744681%;
  top: 2.67857143%;
  width: 88.40425532%;
  height: 94.32773109%;
  overflow: hidden;
  clip-path: url("#iphone-display-clip");
  background: var(--paper);
  isolation: isolate;
}

.screen {
  position: absolute;
  inset: 0;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.screen-chat {
  opacity: 0;
  transition: opacity 340ms ease;
}

.screen-scrim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 500ms ease;
}

.screen-sheet {
  will-change: transform;
}

.screen-sheet-sources {
  clip-path: inset(46.64% 2.05% 1.03% 2.05% round calc(var(--sw) * 0.0923));
  transform: translate3d(0, 56%, 0);
  transition: transform 640ms var(--ease-sheet);
}

.screen-sheet-original {
  clip-path: inset(5.57% 0 0 0 round calc(var(--sw) * 0.094) calc(var(--sw) * 0.094) 0 0);
  transform: translate3d(0, 96%, 0);
  transition: transform 680ms var(--ease-sheet);
}

.phone[data-screen="chat"] .screen-chat,
.phone[data-screen="sources"] .screen-chat,
.phone[data-screen="original"] .screen-chat {
  opacity: 1;
}

.phone[data-screen="sources"] .screen-scrim,
.phone[data-screen="original"] .screen-scrim {
  opacity: var(--scrim);
}

.phone[data-screen="sources"] .screen-sheet-sources,
.phone[data-screen="original"] .screen-sheet-sources,
.phone[data-screen="original"] .screen-sheet-original {
  transform: none;
}

/* Hero only: a ring around the thought the story follows, and the light
   that crosses the glass while the phone tilts. */
.screen-focus {
  position: absolute;
  left: 4.1%;
  top: 19%;
  width: 44.8%;
  height: 21.9%;
  border-radius: calc(var(--sw) * 0.058);
  box-shadow: 0 0 0 calc(var(--sw) * 0.009) var(--accent), 0 0 0 calc(var(--sw) * 0.03) rgb(208 57 25 / 16%);
  opacity: 0;
  scale: 1.08;
  transition: opacity 260ms ease, scale 500ms var(--ease-out);
  pointer-events: none;
}

.hero-stage[data-beat="2"] .screen-focus {
  opacity: 1;
  scale: 1;
  transition: opacity 400ms ease 500ms, scale 800ms var(--ease-spring) 500ms;
}

.screen-glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(104deg, transparent 34%, rgb(255 255 255 / 55%) 50%, transparent 66%);
  opacity: 0;
  transform: translate3d(-130%, 0, 0);
  pointer-events: none;
  will-change: transform, opacity;
}

/* App screens drawn in HTML. Lengths are written in points of a 352pt-wide
   iPhone screen and resolve against the display's width (cqw), so one
   definition serves every phone size on the page. */
.phone-display {
  container-type: inline-size;
}

.ui {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.3;
  letter-spacing: -0.012em;
  opacity: 0;
  transform: translate3d(0, 1.6%, 0) scale(0.985);
  transition: opacity 340ms ease, transform 620ms var(--ease-out);
}

.phone[data-screen="thoughts"] .ui[data-s="thoughts"],
.phone[data-screen="graph"] .ui[data-s="graph"],
.phone[data-screen="chat"] .ui[data-s="chat"],
.phone[data-screen="alarms"] .ui[data-s="alarms"],
.phone[data-screen="media"] .ui[data-s="media"],
.phone[data-screen="plan"] .ui[data-s="plan"],
.phone[data-screen="sources"] .ui[data-s="plan"],
.phone[data-screen="collections"] .ui[data-s="collections"] {
  z-index: 1;
  opacity: 1;
  transform: none;
}

.ui p, .ui b, .ui em, .ui small, .ui i { margin: 0; font-style: normal; }
.ui svg[viewBox="0 0 24 24"] { width: 4.830cqw; height: 4.830cqw; }
.ui-status { position: absolute; top: 5.398cqw; left: 9.091cqw; font-size: 4.261cqw; font-weight: 700; }
.ui-battery { position: absolute; top: 6.250cqw; right: 8.522cqw; width: 6.818cqw; height: 3.126cqw; background: var(--ink); border-radius: 0.994cqw; }
.ui-body { position: absolute; inset: 16.477cqw 0 0; padding: 0 5.113cqw; }
.ui-head { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 2.272cqw; }
.ui-title { font-size: 7.670cqw; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.ui-sub { margin-top: 0.852cqw !important; color: var(--muted); font-size: 3.693cqw; }
.ui-rounds { display: flex; gap: 2.272cqw; }
.ui-round { display: grid; place-items: center; width: 10.228cqw; height: 10.228cqw; background: var(--bubble); border-radius: 50%; }
.ui-label { margin: 4.830cqw 1.137cqw 2.557cqw !important; color: var(--muted); font-size: 2.983cqw; font-weight: 700; letter-spacing: 0.12em; }
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.557cqw; }
.ui-card { display: flex; flex-direction: column; gap: 1.137cqw; min-height: 30.113cqw; padding: 3.409cqw; background: var(--surface); border-radius: 5.682cqw; box-shadow: 0 0 0 1px var(--line); }
.ui-card b { font-size: 4.119cqw; font-weight: 650; line-height: 1.25; }
.ui-card p { color: var(--muted); font-size: 3.267cqw; line-height: 1.35; }
.ui-meta { display: flex; align-items: center; gap: 1.137cqw; margin-top: auto; color: var(--muted); font-size: 2.841cqw; white-space: nowrap; }
.ui .ui-meta svg { width: 3.126cqw; height: 3.126cqw; }
.ui-meta .ui-chip { margin-left: auto; }
.ui-chip { display: inline-flex; align-items: center; padding: 0.852cqw 2.272cqw; background: var(--tint); border-radius: 28.125cqw; font-size: 2.983cqw; font-weight: 650; }
.ui-chip.is-accent { color: var(--accent-ink); background: var(--accent-soft); }
.ui-photo { display: block; height: 16.477cqw; border-radius: 3.126cqw; }
.ui-photo-board {
  background:
    linear-gradient(#f2b84b, #f2b84b) 12% 28% / 17% 34% no-repeat,
    linear-gradient(#e9825a, #e9825a) 38% 58% / 17% 34% no-repeat,
    linear-gradient(#8fb996, #8fb996) 64% 24% / 17% 34% no-repeat,
    linear-gradient(#8aa9c9, #8aa9c9) 88% 62% / 15% 30% no-repeat,
    linear-gradient(#c9c2b8, #c9c2b8) 50% 92% / 80% 2.5% no-repeat,
    linear-gradient(135deg, #f7f3ec, #e6dfd4);
}
.ui-wave { display: flex; align-items: center; gap: 0.710cqw; height: 7.387cqw; }
.ui-wave i { width: 0.710cqw; height: 40%; background: var(--accent); border-radius: 28.125cqw; }
.ui-wave i:nth-child(3n) { height: 95%; }
.ui-wave i:nth-child(4n + 1) { height: 65%; }
.ui-wave i:nth-child(5n + 2) { height: 80%; }
.ui-search { position: absolute; left: 5.113cqw; right: 23.863cqw; bottom: 30.113cqw; z-index: 1; display: flex; align-items: center; gap: 2.557cqw; height: 14.205cqw; padding: 0 4.830cqw; color: var(--muted); background: var(--surface); border-radius: 28.125cqw; box-shadow: 0 0 0 1px var(--line), 0 2.841cqw 6.818cqw -3.978cqw rgb(var(--shadow) / 50%); font-size: 4.261cqw; }
.ui-fab { position: absolute; right: 5.113cqw; bottom: 29.546cqw; z-index: 1; display: grid; place-items: center; width: 15.341cqw; height: 15.341cqw; color: #fff; background: var(--accent); border-radius: 50%; box-shadow: 0 2.841cqw 5.682cqw -2.272cqw rgb(208 57 25 / 70%); }
.ui .ui-fab svg { width: 6.818cqw; height: 6.818cqw; stroke-width: 2.2; }
.ui-tabs { position: absolute; left: 5.113cqw; right: 5.113cqw; bottom: 7.954cqw; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); height: 18.182cqw; padding: 1.420cqw; background: var(--surface); border-radius: 28.125cqw; box-shadow: 0 0 0 1px var(--line), 0 2.841cqw 7.387cqw -3.978cqw rgb(var(--shadow) / 50%); }
.ui-tabs span { display: grid; place-items: center; align-content: center; gap: 0.568cqw; border-radius: 28.125cqw; font-size: 2.841cqw; font-weight: 650; }
.ui .ui-tabs svg { width: 6.250cqw; height: 6.250cqw; }
.ui-tabs .is-on { color: var(--accent-ink); background: var(--bubble); }

.ui-seg { display: inline-flex; margin-top: 1.137cqw; padding: 0.852cqw; background: var(--bubble); border-radius: 28.125cqw; font-size: 3.551cqw; font-weight: 650; }
.ui-seg span { padding: 1.704cqw 3.693cqw; border-radius: 28.125cqw; }
.ui-seg .is-on { background: var(--surface); }
.ui-graph { display: block; width: calc(100% + 10.228cqw); margin: 3.978cqw -5.113cqw 0; }
.ui-graph .g-line { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.ui-graph .g-node { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.ui-graph .g-near { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
.ui-graph .g-hub { fill: var(--accent); }
.ui-graph text { fill: var(--ink); font-size: 11.5px; font-weight: 650; text-anchor: middle; }
.ui-graph .g-hub-t { fill: #fff; font-size: 13px; }
.ui-legend { position: absolute; left: 5.113cqw; right: 5.113cqw; bottom: 30.113cqw; display: flex; gap: 1.704cqw; }
.ui-legend .ui-chip { padding: 1.704cqw 3.126cqw; font-size: 3.267cqw; }

.ui-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 1.704cqw; }
.ui-mark svg { width: 8.522cqw; height: 8.522cqw; color: var(--accent); }
.ui-msg { width: fit-content; max-width: 84%; margin: 4.546cqw 0 0 auto !important; padding: 3.126cqw 4.261cqw; background: var(--bubble); border-radius: 5.682cqw 5.682cqw 1.704cqw 5.682cqw; font-size: 4.261cqw; line-height: 1.35; }
.ui-think { display: flex; align-items: center; gap: 1.989cqw; margin-top: 4.546cqw !important; color: var(--muted); font-size: 3.551cqw; }
.ui-think i { display: grid; place-items: center; width: 4.546cqw; height: 4.546cqw; color: #fff; background: var(--accent); border-radius: 50%; }
.ui .ui-think svg { width: 2.841cqw; height: 2.841cqw; stroke-width: 3.2; }
.ui-answer { margin-top: 2.841cqw; font-size: 4.119cqw; line-height: 1.42; }
.ui-answer ol { display: grid; gap: 1.989cqw; margin: 2.557cqw 0; padding: 0; list-style: none; }
.ui-answer li { position: relative; padding-left: 3.978cqw; }
.ui-answer li::before { position: absolute; left: 0.284cqw; top: 0.55em; width: 1.420cqw; height: 1.420cqw; background: var(--accent); border-radius: 50%; content: ""; }
.ui-answer sup { margin-left: 0.284cqw; color: var(--accent-ink); font-size: 0.68em; font-weight: 700; }
.ui-actions { display: flex; flex-wrap: wrap; gap: 1.989cqw; margin-top: 3.693cqw; }
.ui-btn { display: inline-flex; align-items: center; gap: 1.704cqw; padding: 2.272cqw 3.693cqw; background: var(--bubble); border-radius: 28.125cqw; font-size: 3.551cqw; font-weight: 650; }
.ui-btn.is-primary { color: #fff; background: var(--accent); }
.ui .ui-btn svg { width: 3.693cqw; height: 3.693cqw; }
.ui-input { position: absolute; left: 5.113cqw; right: 5.113cqw; bottom: 29.546cqw; display: flex; align-items: center; gap: 2.841cqw; height: 14.205cqw; padding: 0 1.704cqw 0 4.546cqw; color: var(--muted); background: var(--surface); border-radius: 28.125cqw; box-shadow: 0 0 0 1px var(--line); font-size: 4.261cqw; }
.ui-send { display: grid; place-items: center; width: 10.796cqw; height: 10.796cqw; margin-left: auto; color: #fff; background: var(--accent); border-radius: 50%; opacity: 0.45; }

.ui-suggest { padding: 4.261cqw; background: var(--accent-soft); border-radius: 6.250cqw; }
.ui-suggest b { display: block; font-size: 4.546cqw; font-weight: 650; }
.ui-suggest p { margin-top: 0.852cqw !important; color: var(--muted); font-size: 3.551cqw; }
.ui-suggest .ui-btn:not(.is-primary) { background: var(--surface); }
.ui-row { display: flex; align-items: center; gap: 3.409cqw; margin-top: 2.557cqw; padding: 3.693cqw 3.978cqw; background: var(--surface); border-radius: 5.682cqw; box-shadow: 0 0 0 1px var(--line); }
.ui-time { min-width: 18.182cqw; font-size: 6.818cqw; font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.ui-time small { display: block; margin-top: 1.137cqw; color: var(--muted); font-size: 2.983cqw; font-weight: 550; letter-spacing: 0; }
.ui-row p { flex: 1; font-size: 3.693cqw; line-height: 1.3; }
.ui-toggle { position: relative; flex: none; width: 11.932cqw; height: 7.102cqw; background: var(--accent); border-radius: 28.125cqw; }
.ui-toggle::after { position: absolute; top: 0.852cqw; right: 0.852cqw; width: 5.398cqw; height: 5.398cqw; background: #fff; border-radius: 50%; content: ""; }

.ui-top { display: flex; align-items: center; justify-content: space-between; margin-top: 1.704cqw; }
.ui-pill { padding: 2.557cqw 4.261cqw; background: var(--surface); border-radius: 28.125cqw; box-shadow: 0 0 0 1px var(--line); font-size: 3.978cqw; font-weight: 600; }
.ui-date { margin-top: 3.978cqw !important; color: var(--muted); font-size: 3.551cqw; }
.ui-media { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2.272cqw; height: 40.341cqw; margin-top: 2.841cqw; }
.ui-media .ui-photo { height: auto; border-radius: 5.113cqw; }
.ui-video { position: relative; display: grid; place-items: center; color: #fff; background: linear-gradient(165deg, #f1b98a 0%, #c9663c 42%, #5b3519 43%, #2e1a0d 100%); border-radius: 5.113cqw; }
.ui .ui-video svg { width: 8.522cqw; height: 8.522cqw; padding: 1.989cqw; background: rgb(0 0 0 / 38%); border-radius: 50%; }
.ui-video small { position: absolute; right: 2.272cqw; bottom: 1.989cqw; padding: 0.568cqw 1.704cqw; background: rgb(0 0 0 / 45%); border-radius: 1.704cqw; font-size: 2.841cqw; font-weight: 650; }
.ui-text { margin-top: 3.409cqw !important; font-size: 4.403cqw; line-height: 1.4; }
.ui-audio { display: flex; align-items: center; gap: 2.841cqw; margin-top: 3.126cqw; padding: 2.557cqw 3.409cqw; color: var(--muted); background: var(--surface); border-radius: 4.546cqw; box-shadow: 0 0 0 1px var(--line); font-size: 3.267cqw; }
.ui-audio .ui-wave { flex: 1; justify-content: space-between; }
.ui-play { display: grid; flex: none; place-items: center; width: 8.522cqw; height: 8.522cqw; color: #fff; background: var(--accent); border-radius: 50%; }
.ui .ui-play svg { width: 3.978cqw; height: 3.978cqw; }
.ui-org { display: grid; gap: 2.557cqw; margin-top: 3.126cqw; padding: 3.693cqw 3.978cqw; background: var(--tint); border-radius: 5.682cqw; font-size: 3.409cqw; }
.ui-org b { font-size: 3.836cqw; font-weight: 650; }
.ui-org > span { display: flex; flex-wrap: wrap; align-items: center; gap: 1.420cqw; }
.ui-org .ui-chip:not(.is-accent) { background: var(--surface); }
.ui-linked { color: var(--accent-ink); font-weight: 650; }
.ui .ui-linked svg { width: 3.693cqw; height: 3.693cqw; }
.ui-foot { position: absolute; left: 5.113cqw; right: 5.113cqw; bottom: 9.659cqw; display: grid; grid-template-columns: 1fr 1fr; gap: 2.557cqw; }
.ui-foot span { display: flex; align-items: center; justify-content: center; gap: 1.989cqw; height: 13.068cqw; background: var(--bubble); border-radius: 28.125cqw; font-size: 4.119cqw; font-weight: 650; }
.ui-foot span:first-child { color: var(--paper); background: var(--ink); }
.ui .ui-foot svg { width: 4.261cqw; height: 4.261cqw; }

.ui-scrim { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; transition: opacity 500ms ease; }
.ui-sheet { position: absolute; left: 2.272cqw; right: 2.272cqw; bottom: 2.272cqw; z-index: 3; height: 52%; padding: 2.557cqw 5.113cqw; background: var(--surface); border-radius: 9.659cqw; transform: translate3d(0, 112%, 0); transition: transform 640ms var(--ease-sheet); }
.phone[data-screen="sources"] .ui-scrim { opacity: var(--scrim); }
.phone[data-screen="sources"] .ui-sheet { transform: none; }
.ui-grabber { display: block; width: 10.228cqw; height: 1.420cqw; margin: 0 auto 3.409cqw; background: var(--line-strong); border-radius: 28.125cqw; }
.ui-sheet-title { color: var(--muted); font-size: 3.978cqw; font-weight: 700; }
.ui-src { display: flex; gap: 2.841cqw; padding: 3.409cqw 0; border-bottom: 1px solid var(--line); }
.ui-src i { display: grid; flex: none; place-items: center; width: 5.682cqw; height: 5.682cqw; color: #fff; background: var(--accent); border-radius: 50%; font-size: 3.126cqw; font-weight: 700; }
.ui-src b { display: block; font-size: 4.119cqw; font-weight: 650; }
.ui-src small { display: block; color: var(--muted); font-size: 3.267cqw; }

.ui-grid-cols { margin-top: 4.546cqw; }
.ui-col { display: grid; gap: 0.568cqw; padding: 3.126cqw; background: var(--surface); border-radius: 5.682cqw; box-shadow: 0 0 0 1px var(--line); }
.ui-tile { display: grid; place-items: center; height: 14.205cqw; margin-bottom: 1.989cqw; color: #fff; background: var(--c); border-radius: 3.409cqw; }
.ui .ui-tile svg { width: 6.250cqw; height: 6.250cqw; }
.ui-col b { font-size: 3.978cqw; font-weight: 650; }
.ui-col small { color: var(--muted); font-size: 3.126cqw; }
.ui-tags { display: flex; flex-wrap: wrap; gap: 1.704cqw; }
.ui-tags .ui-chip { padding: 1.704cqw 3.126cqw; font-size: 3.409cqw; }

.home-indicator {
  position: absolute;
  z-index: 5;
  bottom: 1.1%;
  left: 34%;
  width: 32%;
  height: 0.62%;
  border-radius: 999px;
  background: var(--ink);
  pointer-events: none;
}

.phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 5. Hero -----------------------------------------------------------------
   One pinned stage. Lift, wash, shadows and the final card follow an eased
   scroll position (script.js); words, screens and the mascot change on beats
   and animate in time, so nothing rests half-way. */

.hero {
  --track: 3.7;
  position: relative;
  background: var(--paper);
}

html.js .hero {
  height: calc(100svh * (1 + var(--track)));
}

.hero-pin {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  overflow: clip;
}

html.js .hero-pin {
  position: sticky;
  top: 0;
  min-height: 0;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  visibility: hidden;
  background: linear-gradient(180deg, #d03919 0%, var(--ember) 30%, var(--ember-soft) 66%, var(--paper) 100%);
  background: linear-gradient(in oklab 180deg, #d03919 0%, var(--ember) 30%, var(--ember-soft) 66%, var(--paper) 100%);
}

.hero-backdrop.is-on {
  visibility: visible;
}

.backdrop-dots,
.backdrop-glow {
  position: absolute;
  inset: 0;
}

.backdrop-dots {
  background-image: radial-gradient(circle, rgb(255 255 255 / 55%) 1px, transparent 1.5px);
  background-size: 22px 22px;
  background-position: center top;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

.backdrop-glow {
  background: radial-gradient(60% 50% at 50% 0%, rgb(255 228 215 / 40%), transparent 70%);
}

.hero-stage {
  /* Numbers script.js reads back. Lengths derive from the phone height. */
  --ph: min(88svh, 77.6vw);
  --pw: calc(var(--ph) * 470 / 952);
  --mw: calc(var(--ph) * 0.2925);
  --rest-scale: 0.96;
  --rest-shift: 0;
  --beat-shift: -0.012;
  --card-inset: 44;
  --card-radius: 36;
  --beat-size: clamp(44px, min(7.3vw, 15svh), 128px);
  position: absolute;
  inset: 0;
  overflow: hidden;
  overflow: clip;
  background: var(--paper);
  isolation: isolate;
}

.stage-inner,
.scene,
.scene-rig {
  position: absolute;
  inset: 0;
}

.stage-inner {
  transform-origin: 50% 50%;
}

.scene-rig {
  transform-origin: 50% 50%;
  will-change: transform;
}

/* The same 19.2 × 10.8 orthographic plane as the Blender desk render. */
.desk {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, calc(100svh * 16 / 9));
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  animation: enter-desk 2000ms var(--ease-out) both;
  animation-delay: var(--arrive, 0ms);
}

html.js:not(.is-arrived) .desk,
html.js:not(.is-arrived) .enter {
  animation-play-state: paused;
}

.desk-wood {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desk-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.desk-shade {
  background:
    linear-gradient(90deg, rgb(14 8 4 / 52%), rgb(14 8 4 / 18%) 34%, transparent 52%),
    linear-gradient(180deg, rgb(14 8 4 / 30%), transparent 20%),
    rgb(14 8 4 / 5%);
}

@keyframes enter-desk {
  from { scale: 1.09; }
  to { scale: 1; }
}

.desk-prop {
  position: absolute;
  margin: 0;
  line-height: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.desk-prop-coffee {
  left: 82.552083%;
  top: 22%;
  width: 30%;
  aspect-ratio: 1;
}

.desk-prop-notebook {
  --atlas-columns: 5;
  --atlas-rows: 5;
  left: 10.677083%;
  top: 86.574074%;
  width: 60%;
  aspect-ratio: 4 / 3;
}

.desk-prop-pen {
  --atlas-columns: 6;
  --atlas-rows: 3;
  left: 83.072917%;
  top: 72%;
  width: 20%;
  aspect-ratio: 1 / 2;
}

.prop-trigger {
  position: absolute;
  z-index: 1;
  inset: 18%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}

.prop-trigger:disabled { cursor: default; }
.prop-trigger.is-loading { cursor: progress; }
.prop-trigger:focus-visible { outline: none; border-color: #fff8f1; }
.desk-prop-coffee .prop-trigger { border-radius: 50%; }
.desk-prop-notebook .prop-trigger { inset: 20% 14% 32% 45%; }
.desk-prop-pen .prop-trigger { inset: 24% 22%; }

.prop-view,
.prop-view img {
  display: block;
  width: 100%;
  height: 100%;
}

.prop-view {
  position: relative;
  pointer-events: none;
}

.coffee-surface,
.coffee-fallback {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.coffee-fallback {
  /* Cup centre and meniscus radius projected by the Blender camera. */
  clip-path: circle(18.58% at 46.875% 48.958333%);
}

.coffee-fallback span {
  position: absolute;
  inset: 0;
  background: url("assets/desk-coffee.webp") center / 100% 100% no-repeat;
  transform-origin: 46.875% 48.958333%;
}

.prop-trigger.is-liquid + .prop-view .coffee-surface,
.prop-trigger.is-liquid + .prop-view .coffee-fallback {
  display: block;
}

.prop-frames {
  position: absolute;
  inset: 0;
  display: none;
  background-repeat: no-repeat;
  background-size: calc(var(--atlas-columns) * 100%) calc(var(--atlas-rows) * 100%);
}

.prop-trigger.is-animating + .prop-view .prop-poster { visibility: hidden; }
.prop-trigger.is-animating + .prop-view .prop-frames { display: block; }

.scene-wash {
  position: absolute;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.scene-wash-edge {
  background: radial-gradient(75% 75% at 50% 50%, transparent 22%, var(--paper) 100%);
}

/* Phone, its three shadow layers and the mascot share one anchor at the
   centre of the stage. */
.phone-rig,
.phone-arrive,
.mascot-rig {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}

.phone-arrive,
.mascot-rig {
  left: 0;
  top: 0;
}

.hero-stage .phone,
.phone-shadow {
  position: absolute;
  left: calc(var(--pw) / -2);
  top: calc(var(--ph) / -2);
  width: var(--pw);
  height: var(--ph);
  will-change: transform;
}

.hero-stage .phone {
  transform: translate3d(0, calc(var(--rest-shift) * 100svh), 0) scale(var(--rest-scale));
}

/* Light comes from the top left, like the Blender scene. A tight contact
   shadow hands over to two softer ones as the phone leaves the wood. */
.phone-shadow {
  pointer-events: none;
  will-change: transform, opacity;
}

.phone-shadow::before {
  position: absolute;
  inset: 1.2% 1.8%;
  border-radius: 15% / 7.4%;
  background: #140a04;
  content: "";
}

.phone-shadow-contact {
  filter: blur(calc(var(--ph) * 0.007));
  opacity: 0.55;
  transform: translate3d(calc(var(--ph) * 0.004), calc(var(--rest-shift) * 100svh + var(--ph) * 0.006), 0) scale(var(--rest-scale));
}

.phone-shadow-near {
  filter: blur(calc(var(--ph) * 0.028));
  opacity: 0.32;
  transform: translate3d(calc(var(--ph) * 0.014), calc(var(--rest-shift) * 100svh + var(--ph) * 0.02), 0) scale(var(--rest-scale));
}

.phone-shadow-far {
  filter: blur(calc(var(--ph) * 0.08));
  opacity: 0;
}

.mascot-rig {
  will-change: transform;
}

.mascot {
  position: absolute;
  left: calc(var(--mw) / -2);
  top: calc(var(--mw) / -2);
  width: var(--mw);
  height: var(--mw);
  transform: translate3d(calc(var(--mx) * var(--ph)), calc(var(--my) * var(--ph) + var(--perch-shift, 0px)), 0) rotate(var(--mr)) scale(var(--ms));
  transition: transform 1100ms var(--ease-spring);
}

/* On the desk the mascot is placed from the centre of the stage; on a perch
   it follows the lifted phone. Offsets are in phone heights. */
.hero-stage:not([data-perch="desk"]) { --perch-shift: calc(var(--beat-shift) * 100svh); }
.hero-stage[data-perch="desk"] { --mx: 0.47; --my: 0.215; --mr: -7deg; --ms: 1; }
.hero-stage[data-perch="1"] { --mx: 0.325; --my: -0.375; --mr: 13deg; --ms: 0.8; }
.hero-stage[data-perch="2"] { --mx: -0.34; --my: 0.33; --mr: -11deg; --ms: 0.86; }
.hero-stage[data-perch="3"] { --mx: 0.345; --my: 0.35; --mr: 9deg; --ms: 0.86; }
.hero-stage[data-perch="4"] { --mx: -0.34; --my: -0.36; --mr: -12deg; --ms: 0.8; }

.mascot-arrive {
  width: 100%;
  height: 100%;
}

.mascot-shadow {
  position: absolute;
  inset: 62% 2% 4% 16%;
  border-radius: 50%;
  background: #140a04;
  filter: blur(calc(var(--mw) * 0.07));
  opacity: 0.34;
  transition: opacity 500ms ease;
}

.hero-stage:not([data-perch="desk"]) .mascot-shadow {
  opacity: 0;
}

.mascot-trigger {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 42%;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: scale 150ms ease-out;
}

.mascot-trigger:disabled { cursor: default; }
.mascot-trigger:active:not(:disabled) { scale: 0.96; }
.mascot-trigger:focus-visible { outline-offset: -10px; }

.mascot-float,
.mascot-reaction {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mascot-float {
  animation: mascot-float 4800ms ease-in-out infinite;
}

.cloud-character {
  width: 100%;
}

@keyframes mascot-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -4.5%, 0) rotate(1deg); }
}

/* Entry, once per load. The scroll choreography owns the outer elements, so
   these run on inner wrappers and use the individual transform properties. */
.enter {
  animation-duration: 900ms;
  animation-timing-function: var(--ease-out);
  animation-fill-mode: both;
  animation-delay: calc(var(--arrive, 0ms) + var(--i, 0) * 85ms);
}

.line > .enter {
  display: block;
  animation-name: enter-line;
  animation-duration: 1150ms;
}

.hero-sub.enter,
.hero-note.enter,
.button.enter,
.scroll-cue > .enter {
  animation-name: enter-rise;
}

.phone-arrive.enter {
  animation-name: enter-phone;
  animation-duration: 1500ms;
  animation-delay: calc(var(--arrive, 0ms) + 80ms);
}

.mascot-arrive.enter {
  animation-name: enter-mascot;
  animation-duration: 1000ms;
  animation-timing-function: var(--ease-spring);
  animation-delay: calc(var(--arrive, 0ms) + 640ms);
}

@keyframes enter-line {
  from { translate: 0 110%; }
  to { translate: 0 0; }
}

@keyframes enter-rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes enter-phone {
  from { opacity: 0; translate: 0 6svh; scale: 0.93; }
  22% { opacity: 1; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes enter-mascot {
  from { opacity: 0; scale: 0.5; }
  to { opacity: 1; scale: 1; }
}

.hero-copy {
  --copy-left: max(var(--gutter), calc((100% - 1480px) / 2 + var(--gutter)));
  position: absolute;
  z-index: 3;
  left: var(--copy-left);
  top: 50%;
  /* From the gutter to the resting phone, less a gap. The title is sized
     from this width (cqi), so it never runs into the phone. */
  width: calc(50% - var(--copy-left) - var(--pw) * var(--rest-scale) / 2 - clamp(22px, 3vw, 56px));
  container-type: inline-size;
  color: #fff;
  transform: translateY(-46%);
  /* The copy overlaps the notebook; only its link takes the pointer. */
  pointer-events: none;
}

.hero-copy a {
  pointer-events: auto;
}

.hero-copy h1 {
  font-size: clamp(34px, min(17.6cqi, 15svh), 96px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.line {
  display: block;
  /* Room for descenders inside the clip that masks the entry. */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  overflow: hidden;
  overflow: clip;
  white-space: nowrap;
}

.hero-sub {
  max-width: 26ch;
  text-wrap: balance;
  margin-top: clamp(14px, 2.8svh, 26px);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 550;
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.hero-actions {
  margin-top: clamp(18px, 3.6svh, 34px);
}

.hero-actions .button svg {
  width: 1.15em;
  height: 1.15em;
}

.hero-actions .button:hover svg {
  translate: 0 3px;
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.86;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(14px, 2.6svh, 28px);
  width: 26px;
  height: 40px;
  margin-left: -13px;
  pointer-events: none;
}

.scroll-cue > .enter {
  display: block;
  width: 100%;
  height: 100%;
  border: 1.5px solid rgb(255 255 255 / 75%);
  border-radius: 999px;
}

.scroll-cue-dot {
  display: block;
  width: 4px;
  height: 8px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: #fff;
  animation: scroll-cue 1900ms var(--ease-in-out) infinite;
}

/* Narrow layouts put the copy over the foot of the phone; this keeps it legible. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  background: linear-gradient(0deg, rgb(14 8 4 / 92%) 0%, rgb(14 8 4 / 80%) 32%, rgb(14 8 4 / 42%) 50%, transparent 68%);
  pointer-events: none;
}

@keyframes scroll-cue {
  0% { opacity: 0; transform: translateY(-3px); }
  30% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(13px); }
}

/* Beats: big words either side of the phone, a short line under each. */
.beats {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.beat {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pw) minmax(0, 1fr);
  column-gap: clamp(26px, 3.4vw, 60px);
  align-content: center;
  padding-inline: var(--gutter);
  transform: translate3d(0, calc(var(--beat-shift) * 100svh), 0);
}

.beat-title {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  font-size: var(--beat-size);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
  text-wrap: nowrap;
}

.beat-word {
  /* The clip masks the slide; the padding keeps descenders inside it. */
  padding: 0.08em 0.06em 0.2em;
  margin: -0.08em -0.06em -0.2em;
  overflow: hidden;
  overflow: clip;
  white-space: nowrap;
}

.beat-word-left {
  grid-column: 1;
  justify-self: end;
}

.beat-word-right {
  grid-column: 3;
  justify-self: start;
}

.beat-word > span {
  display: block;
  transform: translate3d(0, 140%, 0);
  transition: transform 950ms var(--ease-out);
}

.beat-word-right > span {
  transition-delay: 70ms;
}

.beat-text {
  margin-top: clamp(14px, 2.4svh, 26px);
  max-width: 23ch;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 550;
  line-height: 1.42;
  letter-spacing: -0.012em;
}

.beat-text-left {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.beat-text-right {
  grid-column: 3;
  grid-row: 2;
  justify-self: start;
}

.beat-text > span {
  display: block;
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 20px, 0);
  transition: opacity 500ms ease, filter 500ms ease, transform 800ms var(--ease-out);
}

.beat.is-active .beat-word > span {
  transform: none;
}

.beat.is-active .beat-text > span {
  opacity: 1;
  filter: none;
  transform: none;
  transition-delay: 160ms;
}

.beat.is-before .beat-word > span {
  transform: translate3d(0, -140%, 0);
}

.beat.is-before .beat-text > span {
  transform: translate3d(0, -20px, 0);
}

/* Floating glimpses of the app around the lifted phone. Sizes are in em, and
   the em follows the phone height, so they scale with the scene. */
.floats {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 0;
  height: 0;
  font-size: clamp(11px, calc(var(--ph) * 0.02), 15.5px);
  transform: translate3d(0, calc(var(--beat-shift) * 100svh), 0);
  pointer-events: none;
}

.float {
  position: absolute;
  left: calc(var(--x) * var(--ph));
  top: calc(var(--y) * var(--ph));
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.7em 1.05em 0.7em 0.75em;
  color: var(--ink);
  background: var(--surface);
  border-radius: 1.35em;
  box-shadow: 0 0 0 1px var(--line), 0 1.4em 2.4em -1.2em rgb(var(--shadow) / 50%);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
  white-space: nowrap;
  translate: -50% -50%;
  rotate: var(--r, 0deg);
  opacity: 0;
  scale: 0.7;
  transition: opacity 220ms ease, scale 380ms var(--ease-out);
}

.hero-stage[data-beat="1"] .float[data-b="1"],
.hero-stage[data-beat="2"] .float[data-b="2"],
.hero-stage[data-beat="3"] .float[data-b="3"],
.hero-stage[data-beat="4"] .float[data-b="4"] {
  opacity: 1;
  scale: 1;
  transition: opacity 320ms ease, scale 700ms var(--ease-spring);
  transition-delay: calc(320ms + var(--n) * 110ms);
}

.float small {
  display: block;
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 550;
  letter-spacing: 0;
}

.float-icon,
.float-app {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 50%;
}

.float-icon svg {
  width: 1.25em;
  height: 1.25em;
}

.float-app {
  color: #fff;
  background: var(--accent);
  border-radius: 0.7em;
}

.float-app svg {
  width: 1.6em;
  height: 1.6em;
}

.float-wave {
  display: flex;
  align-items: center;
  gap: 0.22em;
  height: 1.8em;
}

.float-wave i {
  width: 0.22em;
  height: 40%;
  background: var(--accent);
  border-radius: 999px;
}

.float-wave i:nth-child(2) { height: 85%; }
.float-wave i:nth-child(3) { height: 55%; }
.float-wave i:nth-child(4) { height: 100%; }
.float-wave i:nth-child(5) { height: 65%; }
.float-wave i:nth-child(6) { height: 90%; }
.float-wave i:nth-child(7) { height: 35%; }

.float-photo {
  flex: none;
  width: 2.9em;
  height: 2.9em;
  background: linear-gradient(160deg, #f6c9a2 0%, #e58a5c 46%, #7a4a25 47%, #5b3519 100%);
  border-radius: 0.7em;
}

.float-chips {
  display: flex;
  gap: 0.35em;
}

.float-chips b,
.float-chips i {
  padding: 0.3em 0.75em;
  background: var(--tint);
  border-radius: 999px;
  font-size: 0.86em;
  font-style: normal;
  font-weight: 650;
}

.float-chips b {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.float-graph {
  flex-direction: column;
  gap: 0.35em;
  padding: 0.8em 1.1em 0.75em;
  font-size: 0.9em;
}

.graph {
  width: 9.5em;
  height: 5.5em;
  fill: var(--accent-soft);
  stroke: var(--line-strong);
  stroke-width: 1.6;
}

.graph circle {
  stroke: var(--accent);
}

.graph .graph-main {
  fill: var(--accent);
}

.float-time {
  font-size: 1.45em;
  letter-spacing: -0.04em;
  line-height: 1;
}

.float-time small {
  margin-top: 0.3em;
  font-size: 0.56em;
}

.float-switch {
  position: relative;
  width: 2.9em;
  height: 1.75em;
  margin-left: 0.5em;
  background: var(--accent);
  border-radius: 999px;
}

.float-switch::after {
  position: absolute;
  top: 0.2em;
  right: 0.2em;
  width: 1.35em;
  height: 1.35em;
  background: #fff;
  border-radius: 50%;
  content: "";
}

.beat-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(clamp(12px, 2.4svh, 26px) + 30px);
  display: flex;
  gap: 6px;
  translate: -50% 0;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.beat-dots span {
  width: 6px;
  height: 6px;
  background: var(--line-strong);
  border-radius: 999px;
  transition: width 500ms var(--ease-out), background-color 300ms ease;
}

.hero-stage:not([data-beat="0"]) .beat-dots {
  opacity: 1;
  transition-delay: 300ms;
}

.hero-stage[data-beat="1"] .beat-dots span:nth-child(1),
.hero-stage[data-beat="2"] .beat-dots span:nth-child(2),
.hero-stage[data-beat="3"] .beat-dots span:nth-child(3),
.hero-stage[data-beat="4"] .beat-dots span:nth-child(4) {
  width: 22px;
  background: var(--accent);
}

.stage-caption {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: clamp(12px, 2.4svh, 26px);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.hero-stage:not([data-beat="0"]) .stage-caption {
  opacity: 1;
  transition-delay: 300ms;
}

/* Without script.js the stage is the opening scene and the beats read as
   plain text below it. */
html:not(.js) .hero-stage {
  position: relative;
  height: 100svh;
  min-height: 520px;
}

html:not(.js) .hero-pin {
  height: auto;
  overflow: visible;
}

html:not(.js) .hero-backdrop,
html:not(.js) .floats,
html:not(.js) .beat-dots,
html:not(.js) .stage-caption {
  display: none;
}

html:not(.js) .beats {
  position: relative;
  inset: auto;
  top: 100svh;
  display: none;
}

/* 6. Como funciona -------------------------------------------------------- */

.steps-card {
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.steps-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  text-wrap: balance;
}

.steps-banner svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.steps-banner strong {
  color: var(--ink);
  font-weight: 700;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 -1px -1px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -48px rgb(var(--shadow) / 50%);
}

.step {
  padding: 40px clamp(18px, 2.6vw, 36px) 46px;
  text-align: center;
}

.step + .step {
  border-left: 1px solid var(--line);
}

.step h3 {
  margin-top: 30px;
}

.step p {
  max-width: 27ch;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.45;
}

.step-art {
  display: grid;
  place-items: end center;
  height: 200px;
}

/* Small wireframe phones. Each tells its step on a six second loop that only
   runs while the card is on screen. */
.mini {
  position: relative;
  width: 188px;
  height: 190px;
  padding: 22px 15px 0;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  mask-image: linear-gradient(#000 58%, transparent 98%);
}

.mini i,
.mini b {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: var(--skeleton);
}

.mini *,
.mini *::before {
  animation-duration: 6s;
  animation-timing-function: var(--ease-out);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-play-state: paused;
}

.steps-card.is-live .mini *,
.steps-card.is-live .mini *::before {
  animation-play-state: running;
}

.mini-bar {
  display: block;
  width: 52%;
  height: 9px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--skeleton);
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-card {
  display: grid;
  align-content: start;
  gap: 6px;
  height: 58px;
  padding: 11px 9px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.mini-card i:first-child { width: 82%; }
.mini-card i:last-child { width: 54%; opacity: 0.6; }

.mini-card-new {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform-origin: 70% 90%;
  animation-name: mini-card-new;
}

.mini-card-new i {
  background: var(--accent);
  opacity: 0.45;
}

.mini-fab {
  position: absolute;
  right: 16px;
  bottom: 40px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 8px 16px -8px rgb(208 57 25 / 80%);
  animation-name: mini-fab;
}

.mini-fab svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

@keyframes mini-fab {
  0%, 6% { transform: scale(1); }
  9% { transform: scale(0.82); }
  15%, 100% { transform: scale(1); }
}

@keyframes mini-card-new {
  0%, 10% { opacity: 0; transform: scale(0.4); }
  20% { opacity: 1; transform: scale(1.04); }
  24%, 88% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(0.92); }
}

.mini-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -4px auto 14px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.mini-avatar svg {
  width: 18px;
  height: 18px;
}

.mini-bubble {
  display: block;
  width: 62%;
  margin-left: auto;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bubble);
  transform-origin: 100% 100%;
  animation-name: mini-bubble;
}

.mini-bubble i {
  background: var(--line-strong);
}

.mini-answer {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mini-answer > i {
  transform-origin: 0 50%;
  animation-name: mini-line;
}

.mini-answer > i:nth-child(1) { width: 88%; }
.mini-answer > i:nth-child(2) { width: 70%; animation-delay: 0.36s; }
.mini-answer > i:nth-child(3) { width: 46%; animation-delay: 0.72s; }

.mini-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 66%;
  margin-top: 6px;
  padding: 7px 9px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transform-origin: 0 50%;
  animation-name: mini-chip;
}

.mini-chip b {
  flex: none;
  width: 11px;
  height: 11px;
  background: var(--accent);
}

.mini-chip i {
  flex: 1;
}

@keyframes mini-bubble {
  0%, 5% { opacity: 0; transform: scale(0.5); }
  13%, 90% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(1); }
}

@keyframes mini-line {
  0%, 20% { opacity: 0; transform: scaleX(0); }
  30%, 90% { opacity: 1; transform: scaleX(1); }
  97%, 100% { opacity: 0; transform: scaleX(1); }
}

@keyframes mini-chip {
  0%, 44% { opacity: 0; transform: scale(0.6); }
  52%, 90% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(1); }
}

.mini-answer-static {
  margin-top: 4px;
}

.mini-answer-static > i {
  animation: none;
}

.mini-answer-static .mini-chip {
  animation-name: mini-chip-press;
}

.mini-sheet {
  position: absolute;
  inset: 78px 8px 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--surface);
  box-shadow: 0 -10px 24px -16px rgb(var(--shadow) / 45%);
  animation-name: mini-sheet;
  animation-timing-function: var(--ease-sheet);
}

.mini-grabber {
  display: block;
  width: 30px;
  height: 4px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: var(--line-strong);
}

.mini-quote {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.mini-sheet > i:nth-of-type(1) { width: 92%; }
.mini-sheet > i:nth-of-type(2) { width: 76%; }
.mini-sheet > i:nth-of-type(3) { width: 40%; }

@keyframes mini-chip-press {
  0%, 8% { transform: scale(1); border-color: var(--line); }
  12% { transform: scale(0.9); border-color: var(--accent); }
  18%, 86% { transform: scale(1); border-color: var(--accent); }
  94%, 100% { transform: scale(1); border-color: var(--line); }
}

@keyframes mini-sheet {
  0%, 14% { transform: translateY(105%); }
  30%, 86% { transform: translateY(0); }
  96%, 100% { transform: translateY(105%); }
}

.steps-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14.5px;
}

/* 7. Por dentro do app ---------------------------------------------------- */

.tour {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: start;
}

.tour-copy {
  padding-top: 14px;
}

.tour-lede {
  max-width: 30ch;
}

.cta-row {
  margin-top: 32px;
}

.tour-tabs {
  display: grid;
  margin-top: clamp(44px, 6vw, 76px);
}

.tour-item {
  position: relative;
  padding-left: 62px;
  padding-bottom: 18px;
}

.tour-item::before {
  position: absolute;
  left: 21px;
  top: 50px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
  content: "";
}

.tour-item:last-child {
  padding-bottom: 0;
}

.tour-item:last-child::before {
  display: none;
}

.tour-tab {
  display: flex;
  align-items: center;
  gap: 18px;
  width: calc(100% + 62px);
  min-height: 44px;
  margin-left: -62px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.tour-icon {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  background: var(--tint);
  border-radius: 50%;
  transition: color 300ms ease, background-color 300ms ease, scale 150ms ease-out;
}

.tour-tab:active .tour-icon {
  scale: 0.94;
}

.tour-icon .icon {
  width: 20px;
  height: 20px;
}

.tour-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 128.9;
  stroke-dashoffset: 128.9;
  rotate: -90deg;
  opacity: 0;
}

.tour-item.is-active .tour-icon {
  color: var(--accent-ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line);
}

.tour-item.is-active .tour-ring {
  opacity: 1;
  animation: tour-ring 5600ms linear forwards;
  animation-play-state: paused;
}

.tour[data-running] .tour-item.is-active .tour-ring {
  animation-play-state: running;
}

@keyframes tour-ring {
  to { stroke-dashoffset: 0; }
}

.tour-name {
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 650;
  letter-spacing: -0.03em;
  transition: color 300ms ease;
}

.tour-tab:hover .tour-name,
.tour-item.is-active .tour-name {
  color: var(--ink);
}

.tour-text {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 520ms var(--ease-out), opacity 300ms ease;
}

.tour-text p {
  min-height: 0;
  max-width: 32ch;
  overflow: hidden;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.5;
}

.tour-item.is-active .tour-text {
  grid-template-rows: 1fr;
  opacity: 1;
  transition-delay: 0ms, 120ms;
}

.tour-item.is-active .tour-text p {
  padding: 2px 0 14px;
}

.tour-panel {
  display: grid;
  place-items: center;
  padding: clamp(36px, 4.4vw, 56px) 24px;
}

.phone-tour {
  --pw: min(300px, 64vw);
  filter: drop-shadow(0 30px 34px rgb(var(--shadow) / 22%));
}

/* 8. Respostas ------------------------------------------------------------ */

.answers {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: center;
}

.demo {
  padding: clamp(18px, 3.4vw, 44px);
}

.demo-window {
  display: flex;
  flex-direction: column;
  min-height: 452px;
  padding: 16px 20px 18px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgb(var(--shadow) / 55%);
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.demo-avatar img {
  width: 34px;
  height: 34px;
}

.demo-name {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.demo-badge {
  margin-left: auto;
  padding: 5px 11px;
  color: var(--muted);
  background: var(--tint);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.demo-thread {
  display: grid;
  flex: 1;
  align-content: start;
  padding: 20px 0 16px;
}

.demo-exchange {
  display: grid;
  grid-area: 1 / 1;
  gap: 16px;
}

.demo-question {
  justify-self: end;
  max-width: 86%;
  padding: 11px 18px;
  background: var(--bubble);
  border-radius: 22px 22px 6px;
  font-size: 16px;
  line-height: 1.4;
}

.demo-answer {
  display: grid;
  gap: 12px;
}

.demo-found {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13.5px;
}

.demo-found svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  stroke-width: 3;
}

.demo-text {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.demo-source {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.demo-source summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  border-radius: 18px;
  cursor: pointer;
  list-style: none;
}

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

.source-number {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 700;
}

.source-title {
  flex: 1;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.source-title small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
}

.demo-source summary svg {
  color: var(--muted);
  transition: rotate 320ms var(--ease-out);
}

.demo-source[data-expanded] summary svg,
html:not(.js) .demo-source[open] summary svg {
  rotate: 180deg;
}

.disclosure-body {
  overflow: hidden;
}

.demo-original {
  padding: 2px 16px 16px 50px;
}

.demo-original p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.demo-original blockquote {
  margin-top: 6px;
  font-size: 16.5px;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.demo-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

html:not(.js) .demo-prompts {
  display: none;
}

.demo-prompts button {
  min-height: 40px;
  padding: 8px 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, scale 150ms ease-out;
}

.demo-prompts button:hover {
  background: var(--tint);
}

.demo-prompts button:active {
  scale: 0.96;
}

.demo-prompts button.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: transparent;
}

/* A chosen example arrives piece by piece. It is an entrance, not a wait. */
.demo-exchange.is-entering .demo-question {
  transform-origin: 100% 100%;
  animation: demo-pop 520ms var(--ease-spring) both;
}

.demo-exchange.is-entering .demo-answer > * {
  animation: demo-rise 560ms var(--ease-out) both;
}

.demo-exchange.is-entering .demo-answer > :nth-child(1) { animation-delay: 220ms; }
.demo-exchange.is-entering .demo-answer > :nth-child(2) { animation-delay: 320ms; }
.demo-exchange.is-entering .demo-answer > :nth-child(3) { animation-delay: 430ms; }

@keyframes demo-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.86); }
  to { opacity: 1; transform: none; }
}

@keyframes demo-rise {
  from { opacity: 0; translate: 0 12px; filter: blur(4px); }
  to { opacity: 1; translate: 0 0; filter: none; }
}

.feature-list {
  margin-top: clamp(32px, 4vw, 52px);
}

.feature-list li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
}

.feature-list li + li {
  border-top: 1px solid var(--line);
}

.feature-list li:last-child {
  padding-bottom: 0;
}

.feature-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--tint);
  border-radius: 14px;
}

.feature-list p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* 9. Suas palavras -------------------------------------------------------- */

.ownership {
  padding-block: calc(var(--section) * 0.4);
}

.ownership-card {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.ownership-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 24px;
  min-height: 440px;
  margin: -1px;
  padding: clamp(32px, 5vw, 68px);
  overflow: hidden;
  overflow: clip;
  color: #fff;
  background: radial-gradient(120% 150% at 0% 0%, #e2512f 0%, #d03919 46%, #b42b0e 100%);
  border-radius: var(--radius-xl);
}

.banner-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(255 255 255 / 34%) 1px, transparent 1.5px);
  background-size: 20px 20px;
  mask-image: radial-gradient(70% 90% at 82% 46%, #000, transparent 72%);
}

.ownership-copy {
  position: relative;
}

.ownership-copy h2 {
  max-width: 13ch;
  font-size: clamp(34px, 4.3vw, 58px);
}

.ownership-copy p {
  max-width: 27ch;
  text-wrap: balance;
  margin-top: 22px;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 550;
  line-height: 1.38;
  letter-spacing: -0.015em;
}

.ownership-copy .button {
  margin-top: 36px;
}

.ownership-mascot {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  rotate: -6deg;
  filter: drop-shadow(0 34px 30px rgb(92 20 0 / 42%));
}

.ownership-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 30px clamp(20px, 3.4vw, 44px);
}

.ownership-points li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: clamp(12px, 2vw, 28px);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.ownership-points li + li {
  border-left: 1px solid var(--line-strong);
}

.point-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

/* 10. Organização and the field ------------------------------------------- */

.widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(40px, 5vw, 64px);
}

.widget > p {
  max-width: 30ch;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.45;
  text-align: center;
}

.widget-panel {
  display: grid;
  place-items: center;
  height: 340px;
  padding: 70px 20px 26px;
}

.widget-label {
  position: absolute !important;
  top: 20px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 11px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  translate: -50% 0;
}

.widget-label svg {
  width: 17px;
  height: 17px;
  color: var(--accent-ink);
}

.mock {
  width: 100%;
  max-width: 292px;
}

.mock-tags,
.mock-note,
.mock-alarm {
  padding: 18px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line), 0 22px 40px -30px rgb(var(--shadow) / 55%);
}

.mock-title {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.mock-body {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.42;
}

.mock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  background: var(--tint);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
}

.chip-accent {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.chip-ghost {
  color: var(--muted);
  background: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.chip-ghost svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

html.js .chip-pop {
  opacity: 0;
  scale: 0.6;
  transition: opacity 400ms ease 900ms, scale 600ms var(--ease-spring) 900ms;
}

html.js .is-in .chip-pop,
html.no-enhance .chip-pop {
  opacity: 1;
  scale: 1;
}

.mock-links {
  display: grid;
  justify-items: center;
}

.mock-note {
  width: 86%;
  padding: 14px 16px;
  border-radius: 18px;
}

.mock-note:first-child {
  justify-self: start;
  rotate: -2deg;
}

.mock-note:last-child {
  justify-self: end;
  rotate: 1.5deg;
}

.mock-connector {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-block: -9px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--tint);
}

.mock-connector svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

html.js .mock-connector {
  scale: 0;
  rotate: -90deg;
  transition: scale 600ms var(--ease-spring) 800ms, rotate 700ms var(--ease-out) 800ms;
}

html.js .is-in .mock-connector,
html.no-enhance .mock-connector {
  scale: 1;
  rotate: 0deg;
}

.mock-alarm-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mock-alarm-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 50%;
}

.mock-time {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.mock-alarm-row .mock-body {
  margin-top: 3px;
}

.mock-switch {
  position: relative;
  flex: none;
  width: 50px;
  height: 30px;
  margin-left: auto;
  background: var(--accent);
  border-radius: 999px;
  transition: background-color 500ms ease 1000ms;
}

.mock-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgb(0 0 0 / 22%);
  content: "";
  translate: 20px 0;
  transition: translate 600ms var(--ease-spring) 1000ms;
}

html.js .widget:not(.is-in) .mock-switch {
  background: var(--line-strong);
}

html.js .widget:not(.is-in) .mock-switch::after {
  translate: 0 0;
}

html.no-enhance .mock-switch {
  background: var(--accent) !important;
}

html.no-enhance .mock-switch::after {
  translate: 20px 0 !important;
}

.mock-alarm-source {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--tint);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.mock-alarm-source svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

/* The field: faint tiles, a few named ones, and a light that follows the pointer. */
.field {
  --cell: 76px;
  --pitch: 90px;
  --columns: 15;
  --rows: 5;
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(var(--rows) * var(--pitch) + 2 * clamp(70px, 9vw, 120px));
  padding-inline: var(--gutter);
  overflow: hidden;
  overflow: clip;
}

.field-grid {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--columns) * var(--pitch) - (var(--pitch) - var(--cell)));
  height: calc(var(--rows) * var(--pitch) - (var(--pitch) - var(--cell)));
  translate: -50% -50%;
}

.field-cells {
  position: absolute;
  inset: calc(var(--pitch) * -2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Crect width='76' height='76' rx='20' fill='%23261c18' fill-opacity='.04'/%3E%3C/svg%3E") 0 0 / var(--pitch) var(--pitch);
  mask-image:
    radial-gradient(50% 50% at 50% 50%, transparent 30%, #000 58%),
    radial-gradient(50% 50% at 50% 50%, #000 52%, transparent 96%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.field-cells-lit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Crect width='76' height='76' rx='20' fill='%23d03919' fill-opacity='.16'/%3E%3C/svg%3E");
  mask-image: radial-gradient(circle 230px at var(--px, -999px) var(--py, -999px), #000, transparent);
  mask-composite: add;
  -webkit-mask-composite: source-over;
  opacity: var(--lit, 0);
}

.field-chips li {
  position: absolute;
  left: calc((var(--c) - 1) * var(--pitch));
  top: calc((var(--r) - 1) * var(--pitch));
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  width: var(--cell);
  height: var(--cell);
  color: var(--muted);
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--line), 0 16px 28px -20px rgb(var(--shadow) / 55%);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
  transform: translate3d(0, calc(var(--p, 0) * -5px), 0) scale(calc(1 + var(--p, 0) * 0.13));
}

.field-chips svg {
  width: 24px;
  height: 24px;
  color: var(--accent-ink);
}

.field-copy {
  position: relative;
  max-width: 440px;
  text-align: center;
}

.field-copy h2 {
  font-size: clamp(40px, 5vw, 66px);
}

.field-copy p {
  max-width: 28ch;
  margin-inline: auto;
}

/* 11. Suas escolhas ------------------------------------------------------- */

.choices {
  background: var(--tint);
}

.choices-mark {
  display: inline-flex;
  width: 76px;
  height: 46px;
  margin-bottom: 28px;
  padding: 5px;
  background: var(--line-strong);
  border-radius: 999px;
  transition:
    background-color 500ms ease 400ms,
    opacity 800ms var(--ease-out),
    translate 900ms var(--ease-out),
    filter 700ms var(--ease-out) !important;
}

.choices-knob {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgb(0 0 0 / 20%);
  transition: translate 700ms var(--ease-spring) 400ms;
}

.choices-mark.is-in,
html:not(.js) .choices-mark,
html.no-enhance .choices-mark {
  background: var(--accent);
}

.choices-mark.is-in .choices-knob,
html:not(.js) .choices-knob,
html.no-enhance .choices-knob {
  translate: 30px 0;
}

.choices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  overflow: hidden;
  overflow: clip;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -48px rgb(var(--shadow) / 50%);
}

.choices-grid li {
  padding: 40px clamp(18px, 2.6vw, 34px) 44px;
  text-align: center;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.choices-grid p {
  max-width: 29ch;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.45;
}

/* 12. Dúvidas ------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 104px);
  align-items: start;
}

.faq-head {
  position: sticky;
  top: 112px;
  padding-top: 20px;
}

.faq-head h2 {
  font-size: clamp(32px, 3.7vw, 50px);
}

.faq-list {
  display: grid;
  gap: 4px;
}

.faq-list details {
  border-radius: 22px;
  transition: background-color 320ms ease;
}

.faq-list details[data-expanded],
html:not(.js) .faq-list details[open] {
  background: var(--tint);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 18px 24px;
  border-radius: 22px;
  cursor: pointer;
  list-style: none;
}

.faq-list h3 {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
}

.faq-symbol {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.faq-symbol::before,
.faq-symbol::after {
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
  transition: rotate 360ms var(--ease-out), opacity 240ms ease;
}

.faq-symbol::after {
  rotate: 90deg;
}

details[data-expanded] .faq-symbol::after,
html:not(.js) details[open] .faq-symbol::after {
  rotate: 0deg;
  opacity: 0;
}

.faq-list .disclosure-body p {
  max-width: 60ch;
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.55;
}

.faq-list .disclosure-body a {
  color: var(--accent-ink);
  font-weight: 600;
}

/* 13. Fechamento ---------------------------------------------------------- */

.closing {
  padding-top: calc(var(--section) * 0.35);
  padding-bottom: calc(var(--section) * 0.6);
}

.closing-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  min-height: 520px;
  overflow: hidden;
  overflow: clip;
  color: #fff;
  background: #7a4a25;
  border-radius: var(--radius-xl);
  isolation: isolate;
}

.closing-wood,
.closing-shade {
  position: absolute;
  inset: 0;
}

.closing-wood {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 100%;
  scale: 1.5;
  transform-origin: 100% 100%;
}

.closing-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgb(14 8 4 / 62%), rgb(14 8 4 / 24%) 46%, rgb(14 8 4 / 4%) 72%);
}

.closing-copy {
  padding: clamp(32px, 5vw, 68px);
}

.closing-copy h2 {
  max-width: 13ch;
  font-size: clamp(34px, 4.3vw, 58px);
}

.closing-copy > p:not(.closing-note) {
  max-width: 28ch;
  text-wrap: balance;
  margin-top: 22px;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 550;
  line-height: 1.38;
  letter-spacing: -0.015em;
}

.closing-copy .button {
  margin-top: 36px;
}

.closing-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 14.5px;
  font-weight: 600;
  opacity: 0.86;
}

.closing-scene {
  position: relative;
  align-self: stretch;
  min-height: 420px;
}

.closing-coffee {
  position: absolute;
  top: -72px;
  right: -84px;
  width: clamp(240px, 26vw, 330px);
  max-width: none;
}

.closing-phone {
  --pw: clamp(230px, 24vw, 300px);
  position: absolute;
  top: 64px;
  left: 20%;
  rotate: 7deg;
  translate: -50% 0;
}

.closing-phone-shadow {
  position: absolute;
  inset: 1.2% 1.8%;
  background: #140a04;
  border-radius: 15% / 7.4%;
  filter: blur(14px);
  opacity: 0.5;
  translate: 12px 16px;
}

/* 14. Rodapé -------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: clamp(90px, 12vw, 150px) var(--gutter) 30px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--ember-soft) 34%, var(--ember) 68%, #d03919 100%);
  background: linear-gradient(in oklab 180deg, var(--paper) 0%, var(--ember-soft) 34%, var(--ember) 68%, #d03919 100%);
}

.footer-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(255 255 255 / 55%) 1px, transparent 1.5px);
  background-size: 22px 22px;
  background-position: center bottom;
  mask-image: linear-gradient(0deg, #000 0%, transparent 78%);
  pointer-events: none;
}

.footer-card {
  position: relative;
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(26px, 3.6vw, 44px);
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px -40px rgb(80 16 0 / 60%);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: clamp(30px, 4vw, 48px);
}

.footer-brand .brand svg {
  color: var(--accent);
}

.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.footer-nav {
  display: flex;
  gap: clamp(40px, 8vw, 110px);
}

.footer-nav h2 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-size: 15.5px;
  text-decoration: none;
  transition: color 150ms ease-out;
}

.footer-nav a:hover,
.footer-top-link:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease-out;
}

.footer-legal {
  position: relative;
  margin-top: 26px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

/* Legal pages (/termos, /privacidade) -------------------------------------- */

.legal-header,
.legal,
.legal-footer {
  max-width: calc(720px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}

.legal-header .brand svg {
  color: var(--accent);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}

.legal-back:hover {
  background: var(--tint);
}

.legal {
  padding-block: clamp(36px, 7vw, 80px) clamp(56px, 9vw, 110px);
}

.legal h1 {
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.legal-lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
}

.legal-date {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.legal section {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.legal h2 {
  font-size: clamp(21px, 2.4vw, 25px);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.legal section p,
.legal section ul {
  max-width: 66ch;
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.65;
}

.legal section ul {
  display: grid;
  gap: 8px;
}

.legal section li {
  position: relative;
  padding-left: 20px;
}

.legal section li::before {
  position: absolute;
  top: 0.68em;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}

.legal a {
  color: var(--accent-ink);
  font-weight: 600;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-block: 26px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
}

.legal-footer span {
  margin-left: auto;
}

/* 15. Narrow screens and print -------------------------------------------- */

@media (prefers-color-scheme: dark) {
  .field-cells {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Crect width='76' height='76' rx='20' fill='%23fff6ef' fill-opacity='.045'/%3E%3C/svg%3E");
  }

  .field-cells-lit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Crect width='76' height='76' rx='20' fill='%23ffab8c' fill-opacity='.2'/%3E%3C/svg%3E");
  }

  .demo-prompts button.is-active {
    color: #261c18;
    background: #fff6ef;
  }
}

/* Stacked story: the phone sits high and the words go under it. A phone on
   its side keeps the wide scene. */
@media (max-width: 899px) and (max-aspect-ratio: 4 / 3), (max-aspect-ratio: 1 / 1) {
  .hero-stage {
    --ph: min(60svh, calc((100vw - 72px) * 2.0255));
    --mw: calc(var(--ph) * 0.2333);
    --rest-scale: 0.98;
    --rest-shift: -0.105;
    --beat-shift: -0.105;
    --card-inset: 10;
    --card-radius: 28;
    --beat-size: clamp(38px, 11.6vw, 76px);
  }

  .hero-stage[data-perch="desk"] { --mx: 0.27; --my: 0.24; --mr: -7deg; --ms: 1.05; }
  .hero-stage[data-perch="1"] { --mx: 0.12; --my: -0.518; --mr: 9deg; --ms: 0.92; }
  .hero-stage[data-perch="2"] { --mx: -0.12; --my: -0.518; --mr: -9deg; --ms: 0.92; }
  .hero-stage[data-perch="3"] { --mx: 0.12; --my: -0.518; --mr: 9deg; --ms: 0.92; }
  .hero-stage[data-perch="4"] { --mx: -0.12; --my: -0.518; --mr: -9deg; --ms: 0.92; }

  /* No room beside the phone here, and the screens speak for themselves. */
  .floats {
    display: none;
    font-size: clamp(10px, calc(var(--ph) * 0.021), 13.5px);
  }

  .float {
    top: calc(var(--ym) * var(--ph));
    translate: 0 -50%;
  }

  .float[data-m="l"] {
    left: max(calc(-50vw + 10px), calc(var(--pw) * -0.5 - 6em));
  }

  .float[data-m="r"] {
    left: auto;
    right: max(calc(-50vw + 10px), calc(var(--pw) * -0.5 - 6em));
  }

  .float-chips i:last-child {
    display: none;
  }

  .hero-scrim {
    display: block;
  }

  .desk {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .desk-wood {
    object-position: 0 0;
  }

  .desk-shade {
    background:
      linear-gradient(0deg, rgb(14 8 4 / 82%) 0%, rgb(14 8 4 / 58%) 26%, transparent 54%),
      linear-gradient(180deg, rgb(14 8 4 / 34%), transparent 18%),
      rgb(14 8 4 / 5%);
  }

  .desk-prop-coffee { left: 89%; top: 15%; width: min(62vw, 300px); }
  .desk-prop-pen { left: 92%; top: 53%; width: min(41vw, 204px); }
  .desk-prop-notebook { display: none; }

  .hero-copy {
    left: var(--gutter);
    right: var(--gutter);
    top: auto;
    bottom: clamp(22px, 4svh, 40px);
    width: auto;
    max-width: 520px;
    transform: none;
  }

  .hero-copy h1 {
    font-size: clamp(38px, min(11.6vw, 8.6svh), 68px);
  }

  .hero-sub {
    max-width: 30ch;
    margin-top: 16px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-note {
    margin-top: 14px;
    font-size: 13.5px;
  }

  .scroll-cue {
    display: none;
  }

  .beat {
    grid-template-columns: minmax(0, 1fr);
    align-content: end;
    justify-items: center;
    padding-bottom: clamp(44px, 8.5svh, 92px);
    text-align: center;
    transform: none;
  }

  .beat-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.2em;
  }

  .beat-word-left,
  .beat-word-right {
    justify-self: auto;
  }

  .beat-text {
    max-width: 32ch;
    margin-top: 0;
    font-size: clamp(15px, 4.1vw, 18.5px);
  }

  .beat-dots {
    bottom: calc(clamp(10px, 2svh, 22px) + 26px);
  }

  .beat-text-left,
  .beat-text-right {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    text-align: center;
  }

  .beat-text-left {
    margin-top: 10px;
  }

  .stage-caption {
    bottom: clamp(10px, 2svh, 22px);
    font-size: 12px;
  }
}

/* Short and wide, like a phone on its side: the opening copy tightens up. */
@media (max-height: 540px) and (min-aspect-ratio: 4 / 3) {
  .hero-copy {
    top: 56%;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-actions .button {
    min-height: 44px;
    padding-block: 10px;
  }

  .hero-note,
  .scroll-cue,
  .beat-dots {
    display: none;
  }
}

@media (max-width: 1060px) {
  .header-nav a {
    padding-inline: 11px;
    font-size: 14px;
  }
}

@media (max-width: 960px) {
  .header-nav {
    display: none;
  }

  .tour,
  .answers,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .tour-copy,
  .faq-head {
    padding-top: 0;
  }

  .faq-head {
    position: static;
  }

  .tour-tabs {
    margin-top: 40px;
  }

  .answers-copy {
    order: -1;
  }

  .steps-list,
  .choices-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step + .step {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .step {
    padding-block: 34px 38px;
  }

  .widgets {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    max-width: 460px;
    margin-inline: auto;
  }

  .ownership-banner,
  .closing-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .ownership-mascot {
    width: min(64%, 260px);
    margin-block: -10px -30px;
  }

  .ownership-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-block: 26px;
  }

  .ownership-points li + li {
    border-left: 0;
  }

  .closing-scene {
    min-height: 330px;
  }

  .closing-phone {
    --pw: 240px;
    top: 8px;
    left: 40%;
  }

  .closing-coffee {
    top: auto;
    right: -70px;
    bottom: -60px;
    width: 250px;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .field {
    --cell: 60px;
    --pitch: 72px;
    --columns: 5;
    --rows: 10;
    min-height: calc(var(--rows) * var(--pitch) + 96px);
  }

  /* Three rows of tiles above the copy and two below it. */
  .field-copy {
    translate: 0 36px;
  }

  .field-chip-wide {
    display: none !important;
  }

  .field-cells,
  .field-cells-lit {
    background-size: var(--pitch) var(--pitch);
  }

  .field-chips li {
    left: calc((var(--cm) - 1) * var(--pitch));
    top: calc((var(--rm) - 1) * var(--pitch));
    border-radius: 16px;
    font-size: 9.5px;
  }

  .field-chips svg {
    width: 20px;
    height: 20px;
  }

  .field-cells {
    mask-image:
      radial-gradient(64% 30% at 50% 54%, transparent 44%, #000 90%),
      radial-gradient(70% 56% at 50% 50%, #000 62%, transparent 100%);
  }
}

@media (max-width: 640px) {
  :root {
    --radius-xl: 28px;
  }

  .site-header {
    padding-top: 10px;
  }

  .brand span {
    font-size: 29px;
  }

  .brand svg {
    width: 32px;
    height: 32px;
  }

  .header-cta {
    min-height: 38px;
    padding-inline: 16px;
    font-size: 13.5px;
  }

  .site-header.is-floating .header-bar {
    padding-inline: 16px 7px;
  }

  .button {
    min-height: 52px;
    padding-inline: 24px;
  }

  .mini {
    width: 200px;
  }

  .demo {
    padding: 12px;
    border-radius: 30px;
  }

  .demo-window {
    min-height: 0;
    padding: 14px 16px 16px;
  }

  .demo-thread {
    min-height: 262px;
  }

  .demo-original {
    padding-left: 16px;
  }

  .ownership-banner {
    min-height: 0;
  }

  .faq-list summary {
    padding: 16px 18px;
  }

  .faq-list .disclosure-body p {
    padding: 0 18px 20px;
    font-size: 16px;
  }

  .closing-card {
    min-height: 0;
  }

  .footer-nav {
    gap: 48px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

@media print {
  .intro,
  .site-header,
  .scene,
  .scroll-cue,
  .hero-backdrop,
  .field-grid,
  .closing-scene,
  .footer-dots {
    display: none !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js .hero,
  html.js .hero-pin,
  .hero-stage {
    position: static;
    height: auto;
    min-height: 0;
  }

  .stage-inner,
  .hero-copy,
  .beats,
  .beat {
    position: static;
    display: block;
    color: #000;
    transform: none !important;
  }

  .beat-word > span,
  .beat-text > span,
  html.js [data-reveal] {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    translate: none !important;
  }

  .section,
  .beat {
    padding-block: 28px;
    break-inside: avoid;
  }
}
