/*
 * The aday.chat look: docs/landing/DESIGN.md (version 1, 2026-09-25), light
 * theme only. Tokens, one Nunito family, components, phone and desktop
 * layouts and the motion of section 4. The main button is the only element
 * in Atardecer.
 *
 * Nunito is self-hosted (the CSP allows fonts from 'self' only), variable
 * weight 400 to 800, from Google Fonts, under the SIL Open Font License 1.1.
 */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --arena: #F6EFE4;
  --white: #FFFFFF;
  --atlantico: #0B4F6C;
  --alisio: #157F84;
  --atardecer: #C9472F;
  --basalto: #1E2426;
  --text-2: #3A4447;
  --text-3: #5C6769;
  --line: #E4DACB;
  --line-strong: #C9BFAF;
  --chip: #E6EEEC;
  --bubble-customer: #DCEFF0;
  --bubble-aday: #F6EFE4;
  --trial-bg: #F9DDD4;
  --trial-text: #7A2A1B;
  --photo-slot: #EFE6D8;

  --font: "Nunito", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.21, 0.47, 0.32, 0.98);
  --shadow-float: 0 18px 40px rgba(11, 79, 108, 0.16);

  /* Phone sizes; desktop overrides below. */
  --h1: 800 34px / 40px var(--font);
  --h2: 800 30px / 36px var(--font);
  --body-large: 400 17px / 25px var(--font);
  --body: 400 15px / 22px var(--font);
  --caption: 400 13px / 19px var(--font);
  --button-size: 17px;
  --button-height: 56px;
  --badge-size: 13px;
  --gutter: 20px;
  --section-space: 48px;
}

@media (min-width: 1024px) {
  :root {
    --h1: 800 52px / 58px var(--font);
    --h2: 800 40px / 46px var(--font);
    --body-large: 400 20px / 30px var(--font);
    --body: 400 16px / 24px var(--font);
    --caption: 400 14px / 20px var(--font);
    --button-size: 18px;
    --button-height: 58px;
    --badge-size: 14px;
    --gutter: clamp(20px, 8.34vw, 120px);
    --section-space: 72px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--arena);
  color: var(--basalto);
  font: var(--body);
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--atlantico);
}

:focus-visible {
  outline: 3px solid var(--alisio);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type */

.h1 {
  font: var(--h1);
  color: var(--atlantico);
  text-wrap: balance;
}

.h2 {
  font: var(--h2);
  color: var(--atlantico);
  text-wrap: balance;
}

.sub, .body-large {
  font: var(--body-large);
  color: var(--text-2);
  max-width: 65ch;
}

.body {
  font: var(--body);
  color: var(--text-2);
  max-width: 65ch;
}

.caption {
  font: var(--caption);
  color: var(--text-3);
}

.centred {
  text-align: center;
}

/* Top bar: pinned, at most 64 px high, a shadow once the page scrolls. */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--arena);
  transition: box-shadow 0.2s ease;
}

.topbar[data-scrolled] {
  box-shadow: 0 4px 16px rgba(11, 79, 108, 0.10);
}

/* Anchor targets land below the pinned bar. */
[id] {
  scroll-margin-top: 72px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  max-height: 64px;
  padding-block: 10px;
}

.topbar-logo img {
  width: auto;
  height: 32px;
}

/* Top-bar button: the trial action, filled Atardecer (DESIGN.md v2). */
.topbar-button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--atardecer);
  color: var(--white);
  font: 700 15px / 1 var(--font);
  text-decoration: none;
  white-space: nowrap;
}

.topbar-button:hover {
  filter: brightness(0.95);
}

/* Main button: Atardecer, like the top-bar button (the trial action). */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--atardecer);
  color: var(--white);
  font: 700 var(--button-size) / 1.2 var(--font);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  filter: brightness(0.95);
}

/* Badges and chips */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--atlantico);
  font: 700 var(--badge-size) / 1 var(--font);
}

/* Language flags (flag-icons, MIT), 16 px high. */
.flags {
  display: inline-flex;
  gap: 4px;
}

.flag {
  display: inline-block;
  width: auto;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line);
}

/* Cards */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
}

/* Sections */

main {
  display: flex;
  flex-direction: column;
  gap: var(--section-space);
  padding-bottom: var(--section-space);
}

.column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: calc(760px + 2 * var(--gutter));
}

.split {
  display: grid;
  gap: 32px;
}

.split-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: center;
}

/* Screen 1 */

/* Identity line (D-044): directly under the H1, above the sub. */
.identity {
  font: 700 17px / 25px var(--font);
  color: var(--text-2);
  text-wrap: balance;
  max-width: 65ch;
}

/* ADAY-62 (W1): the identity line is the H1's second line; the margin keeps
 * the old gap between the headline and it, so nothing moves. */
.h1 .identity {
  display: block;
  margin-top: 16px;
}

.hero {
  position: relative;
  padding-top: 8px;
}

/* Teide contour texture (board 5D): decorative, about 10 % strong, faded
 * out from a point behind the photo. Only text-2 or darker sits on it. */
.texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/bg/teide-contours.svg") center / cover no-repeat;
  opacity: 0.11;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 78%,
    #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 78%,
    #000 40%, transparent 100%);
}

.hero > .wrap,
.screen-textured > .wrap {
  position: relative;
  z-index: 1;
}

.screen-textured {
  position: relative;
  padding-block: 24px;
}

/* Behind the form: the radial fade intersected with a 120 px vertical fade,
 * so no straight edge shows at the top or bottom of the section. */
.texture-form {
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 120px,
      #000 calc(100% - 120px), transparent 100%),
    radial-gradient(ellipse 70% 60% at 50% 55%, #000 30%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 120px,
      #000 calc(100% - 120px), transparent 100%),
    radial-gradient(ellipse 70% 60% at 50% 55%, #000 30%, transparent 100%);
  mask-composite: intersect;
}

.photo-local img {
  object-position: center 40%;
}

/* Headline accent: a hand-drawn Alisio wave under the key word. */
.accent {
  position: relative;
  white-space: nowrap;
}

.accent-wave {
  position: absolute;
  left: 0;
  /* Hugs its own word: in the descender zone, clear of the next line. */
  bottom: 0.04em;
  width: 100%;
  height: 0.2em;
  fill: none;
  stroke: var(--alisio);
  stroke-width: 4;
  stroke-linecap: round;
  overflow: visible;
}

/* Section 2 on white, joined to screen 1 by the board 5D wave. */
.screen-white {
  position: relative;
  margin-top: calc(var(--section-space) * -0.5);
  padding-bottom: var(--section-space);
  background: linear-gradient(transparent 0, transparent 61px, var(--white) 61px);
}

.wave {
  display: block;
  width: 100%;
  height: 62px;
  margin-bottom: 24px;
  fill: var(--white);
}

.hero-grid {
  display: grid;
  gap: 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.price {
  font: var(--body);
  color: var(--text-2);
  text-align: center;
}

.price strong {
  color: var(--atlantico);
}

.banners {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--atlantico);
  color: var(--white);
  text-align: center;
}

.column > .channel {
  align-self: stretch;
}

.channel-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--atlantico);
  font: 700 var(--badge-size) / 1 var(--font);
}

/* The official WhatsApp and Telegram marks, unmodified, with clear space. */
.brand-mark {
  width: 18px;
  height: 18px;
  margin: 4px;
}

.channel-text {
  font: 700 15px / 22px var(--font);
}

.channel-text-desktop {
  display: none;
}

.trial {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--trial-bg);
  color: var(--trial-text);
  font: 700 15px / 22px var(--font);
  text-align: center;
}

.photo {
  overflow: hidden;
  border-radius: 24px;
  background: var(--photo-slot);
}

.photo picture,
.photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.photo img {
  object-fit: cover;
}

.photo-hero {
  aspect-ratio: 4 / 3;
}

.hero-visual {
  position: relative;
}

.float-card {
  display: none;
}

/* Chat and owner alert */

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font: var(--body);
  color: var(--basalto);
}

.bubble-customer {
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 4px;
  background: var(--bubble-customer);
}

.bubble-aday {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--bubble-aday);
}

.demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat {
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.chat-logo {
  width: 40px;
  height: 40px;
  padding: 3px;
  border-radius: 12px;
  background: var(--arena);
  object-fit: contain;
}

.chat-title {
  display: flex;
  flex-direction: column;
  font: var(--body);
  color: var(--atlantico);
}

.chat-title span {
  font: var(--caption);
  color: var(--text-3);
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  padding: 16px;
  transition: opacity 0.2s ease;
}

.chat-body[data-fading] {
  opacity: 0;
}

.typing {
  display: none;
  align-self: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--bubble-aday);
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
  animation: dot 1s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.owner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.owner-label {
  font: 700 15px / 22px var(--font);
  color: var(--atlantico);
}

.alert {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.alert-text {
  font: var(--body);
  color: var(--basalto);
}

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

.alert-confirm, .alert-reject {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--atlantico);
  font: 700 15px / 1 var(--font);
}

.alert-confirm {
  background: var(--atlantico);
  color: var(--white);
}

.alert-reject {
  background: var(--white);
  color: var(--atlantico);
}

.lang-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 52px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--atlantico);
  font: 700 15px / 1 var(--font);
  cursor: pointer;
}

.lang[aria-pressed="true"] {
  border-color: var(--atlantico);
  background: var(--atlantico);
  color: var(--white);
}

/* Screen 4 */

.steps {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  font: 700 var(--body);
  font-weight: 700;
  color: var(--basalto);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--atlantico);
  font: 800 17px / 1 var(--font);
}

/* Screen 6 */

.photo-local {
  aspect-ratio: 4 / 3;
}

/* Screen 7 */

.form-column {
  display: flex;
  flex-direction: column;
  max-width: calc(560px + 2 * var(--gutter));
}

[data-form-area] {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

[data-form-area][hidden] {
  display: none;
}

.form-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust {
  font: 700 15px / 22px var(--font);
  color: var(--atlantico);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.field label, .field legend {
  padding: 0;
  font: 700 15px / 22px var(--font);
  color: var(--basalto);
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--basalto);
  font: 400 16px / 1.3 var(--font);
}

.field input:focus-visible {
  border-color: var(--alisio);
}

.volume legend {
  margin-bottom: 8px;
}

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

.radio {
  position: relative;
  display: flex;
}

.radio input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.radio span {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--atlantico);
  font: 700 15px / 1.2 var(--font);
  text-align: center;
}

.radio input:checked + span {
  border-color: var(--alisio);
  background: var(--chip);
  box-shadow: inset 0 0 0 1px var(--alisio);
}

.radio input:focus-visible + span {
  outline: 3px solid var(--alisio);
  outline-offset: 2px;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--alisio);
}

.consent label {
  font: var(--body);
  color: var(--text-2);
}

.form .button {
  width: 100%;
}

.form .caption {
  text-align: center;
}

.form-message {
  font: 700 15px / 22px var(--font);
  color: var(--trial-text);
}

.form[data-busy] .button {
  opacity: 0.7;
  cursor: progress;
}

.sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px;
  text-align: center;
}

.sent-logo {
  width: 72px;
  height: 72px;
  padding: 6px;
  border-radius: 20px;
  background: var(--arena);
  object-fit: contain;
}

.sent .h2:focus {
  outline: none;
}

.link {
  font: 700 var(--body);
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Screen 8 */

.faqs {
  gap: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
}

.faq {
  padding: 0 20px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 12px;
  color: var(--atlantico);
  font: 700 16px / 22px var(--font);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--alisio);
  font: 800 22px / 1 var(--font);
}

.faq[open] summary::after {
  content: "\2212";
}

.faq p {
  padding-bottom: 16px;
  color: var(--text-2);
}

/* Footer and the WhatsApp button (left out until ADAY-55) */

.footer {
  padding: 32px var(--gutter) 40px;
  color: var(--text-3);
  font: var(--caption);
  text-align: center;
}

.footer a {
  color: var(--text-3);
}

.footer .credit {
  max-width: 72ch;
  margin: 8px auto 0;
  font-size: 12px;
  line-height: 17px;
}

/* The WhatsApp button with its privacy notice (ADAY-78), pinned together */
.whatsapp-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: min(280px, calc(100vw - 32px));
}

.whatsapp-notice {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
  color: var(--text-2);
  font: var(--caption);
}

.whatsapp-notice a {
  color: inherit;
}

.whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--atlantico);
  color: var(--white);
  font: 700 15px / 1 var(--font);
  text-decoration: none;
}

/* Legal pages */

.legal-page .legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: calc(720px + 2 * var(--gutter));
  margin-inline: auto;
  padding: 32px var(--gutter);
}

.legal h1 {
  font: var(--h2);
  color: var(--atlantico);
}

.legal h2 {
  font: 800 20px / 28px var(--font);
  color: var(--atlantico);
}

.legal p, .legal li {
  color: var(--text-2);
  max-width: 65ch;
}

.legal h3 {
  font: 800 17px / 24px var(--font);
  color: var(--atlantico);
}

.legal ul, .legal ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
}

.legal ul {
  list-style: disc;
}

.legal ol {
  list-style: decimal;
}

.legal h2, .legal h3 {
  scroll-margin-top: 16px;
}

.legal .updated {
  color: var(--text-3);
  font: var(--caption);
}

.kicker {
  font: 700 15px / 22px var(--font);
}

/* 404 page (ADAY-62, W4): the legal column, a little more air */

.not-found {
  padding-block: 64px 96px;
}

/* Tablet and desktop */

@media (min-width: 768px) {
  .cta-row {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .cta-row .button {
    flex: none;
  }

  .price {
    text-align: left;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .form {
    padding: 32px;
  }
}

@media (min-width: 1024px) {
  .h1 .identity {
    margin-top: 20px;
  }

  .texture-hero {
    -webkit-mask-image: radial-gradient(ellipse 70% 75% at 72% 45%,
      #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 75% at 72% 45%,
      #000 40%, transparent 100%);
  }

  .topbar-logo img {
    height: 40px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 600px;
    align-items: center;
    gap: 72px;
  }

  .hero-copy {
    gap: 20px;
  }

  .channel-text-phone {
    display: none;
  }

  .channel-text-desktop {
    display: block;
  }

  .trial {
    text-align: left;
  }

  .photo-hero {
    aspect-ratio: auto;
    height: 640px;
  }

  .float-card {
    position: absolute;
    display: block;
    width: 300px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-float);
  }

  .float-card .bubble {
    max-width: none;
  }

  .float-customer {
    top: 72px;
    left: -48px;
  }

  /* Version D: the sun sits top left in photo 1D; the card moves right. */
  [data-version="D"] .float-customer {
    right: -48px;
    left: auto;
  }

  /* Version C: the barber's hands and scissors sit low in the middle of
   * photo 1C; the alert card moves to the bottom left, over the wall and
   * shelf (Gus's review, 2026-09-27). */
  [data-version="C"] .float-alert {
    right: auto;
    left: -72px;
  }

  .float-alert {
    right: -40px;
    bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
  }

  .demo-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .demo-intro {
    align-self: center;
  }

  .column {
    align-items: center;
    text-align: center;
  }

  .faqs {
    align-items: stretch;
    text-align: left;
  }

  .step {
    padding: 24px;
  }
}

/* ---------------------------------------------------------------------
 * Motion, DESIGN.md section 4. Only when the script is on (html[data-js],
 * set before first paint by js-on.js); without it everything stays at rest
 * and visible. The demo's typing dots show only while playing.
 * ------------------------------------------------------------------ */

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes rise-blur {
  from { opacity: 0; transform: translateY(12px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero sequence (D-044): badges from 0 s (0.1 s apart), H1 0.2 s with
   * the blur, identity line 0.25 s, sub 0.3 s, button 0.4 s, trial banner
   * and photo 0.5 s; each 0.5 s. CSS only, so it needs no observer. */
  [data-js] [data-hero] {
    animation: rise 0.5s var(--ease) both;
  }
  [data-js] [data-hero="badges"] {
    animation: none;
  }
  [data-js] [data-hero="badges"] > * {
    animation: rise 0.5s var(--ease) both;
  }
  [data-js] [data-hero="badges"] > :nth-child(2) { animation-delay: 0.1s; }
  [data-js] [data-hero="h1"] {
    animation-name: rise-blur;
    animation-delay: 0.2s;
  }
  [data-js] [data-hero="sub"] { animation-delay: 0.3s; }
  [data-js] [data-hero="button"] { animation-delay: 0.4s; }
  [data-js] [data-hero="banners"] { animation-delay: 0.5s; }

  /* Scroll-in, once, when 10 % is visible; no blur below the H1. */
  [data-js] [data-reveal]:not([data-shown]),
  [data-js] [data-reveal-group]:not([data-shown]) > * {
    opacity: 0;
  }
  [data-js] [data-reveal][data-shown],
  [data-js] [data-reveal-group][data-shown] > * {
    animation: rise 0.5s var(--ease) both;
  }
  [data-js] [data-reveal-group][data-shown] > :nth-child(2) { animation-delay: 0.1s; }
  [data-js] [data-reveal-group][data-shown] > :nth-child(3) { animation-delay: 0.2s; }
  [data-js] [data-reveal-group][data-shown] > :nth-child(4) { animation-delay: 0.3s; }
  [data-js] [data-reveal-group][data-shown] > :nth-child(5) { animation-delay: 0.4s; }

  /* The demo sequence. */
  [data-js] [data-demo-step]:not([data-shown]) {
    opacity: 0;
  }
  [data-js] [data-demo-step][data-shown] {
    animation: rise 0.5s var(--ease) both;
  }
  [data-js] [data-demo-step="typing"][data-shown]:not([data-done]) {
    display: flex;
  }

  /* Floating cards, desktop only, half a cycle apart. */
  @media (min-width: 1024px) {
    .float-card {
      animation: float 6s ease-in-out infinite;
    }
    .float-alert {
      animation-delay: -3s;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  /* A plain 0.2 s fade, no rise, no blur, no float; the demo is complete. */
  [data-js] [data-hero],
  [data-js] [data-reveal][data-shown],
  [data-js] [data-reveal-group][data-shown] > * {
    animation: fade 0.2s ease both;
  }
  [data-js] [data-reveal]:not([data-shown]),
  [data-js] [data-reveal-group]:not([data-shown]) > * {
    opacity: 0;
  }
  .chat-body {
    transition: none;
  }
}
