/* Peach — speakpeach.xyz
 * Owned motif: Boarding Pass + Passport + Peach Speech Bubble.
 * Warm paper, crisp ink outlines, sun-yellow highlights, coral peach accent,
 * real mask-cut tear notches, steady-height stacked interactive tabs, warm night-flight dark mode.
 */

:root {
  --paper: #fcf5ed;
  --paper-card: #fffdf9;
  --paper-warm: #f4e8d8;
  --paper-deep: #ead9c3;
  --ink: #1a1714;
  --ink-soft: #5c534b;
  --ink-faint: #84786e;
  --sun: #ffcc33;
  --sun-deep: #ebb519;
  --peach: #ff9466;
  --peach-soft: #ffe3d3;
  --green: #1f934d;
  --green-bg: #e1f4e7;
  --amber-bg: #fff2c8;
  --stamp: #c83a2b;
  --hairline: #dfd0be;
  --border-ink: #1a1714;
  --shadow-ink: #1a1714;
  --shadow-sun: #ffcc33;
  --passport-bg: #1a1714;
  --passport-ink: #fcf5ed;
  --passport-soft: #cfc4b8;
  --passport-line: #3a3129;
  --doodle-opacity: 0.055;
  --radius-card: 26px;
  --radius-bubble: 22px 22px 22px 6px;
  --radius-bubble-right: 22px 22px 6px 22px;
  --font-sans: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-ui: cubic-bezier(0.32, 0.72, 0, 1);
}

:root[data-theme="dark"] {
  --paper: #171310;
  --paper-card: #221c17;
  --paper-warm: #2c241e;
  --paper-deep: #382e26;
  --ink: #fcf5ed;
  --ink-soft: #cabcb0;
  --ink-faint: #9c8f83;
  --sun: #ffcc33;
  --sun-deep: #e2ae1a;
  --peach: #ff9c70;
  --peach-soft: #41291e;
  --green: #38c06c;
  --green-bg: #173322;
  --amber-bg: #362c14;
  --stamp: #e45646;
  --hairline: #3d332a;
  --border-ink: #5a4c40;
  --shadow-ink: #090706;
  --shadow-sun: #b88e14;
  --passport-bg: #120e0c;
  --passport-ink: #fcf5ed;
  --passport-soft: #c5b8ab;
  --passport-line: #453930;
  --doodle-opacity: 0.06;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171310;
    --paper-card: #221c17;
    --paper-warm: #2c241e;
    --paper-deep: #382e26;
    --ink: #fcf5ed;
    --ink-soft: #cabcb0;
    --ink-faint: #9c8f83;
    --sun: #ffcc33;
    --sun-deep: #e2ae1a;
    --peach: #ff9c70;
    --peach-soft: #41291e;
    --green: #38c06c;
    --green-bg: #173322;
    --amber-bg: #362c14;
    --stamp: #e45646;
    --hairline: #3d332a;
    --border-ink: #5a4c40;
    --shadow-ink: #090706;
    --shadow-sun: #b88e14;
    --passport-bg: #120e0c;
    --passport-ink: #fcf5ed;
    --passport-soft: #c5b8ab;
    --passport-line: #453930;
    --doodle-opacity: 0.06;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  position: relative;
}

/* Owned low-contrast motif doodle background (260px tile, <= 6% opacity: clouds, mini plane, peach bubble) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--doodle-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%238c7b6c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M36 52c-10 0-17-7-17-16 0-10 8-18 19-18 9 0 17 7 17 17 0 10-7 17-15 17l-9 6 5-6z'/%3E%3Cpath d='M188 46l22-8-8 22-4-9-10-5z'/%3E%3Cpath d='M120 132c0-7 6-12 13-12 5 0 9 3 11 7 5 0 9 4 9 9 0 5-4 8-9 8h-20c-6 0-10-4-10-9 0-2 1-4 6-3z'/%3E%3Ccircle cx='54' cy='198' r='14' stroke-dasharray='4 4'/%3E%3Cpath d='M48 198h12M54 192v12'/%3E%3Cpath d='M196 196c-8 0-14-6-14-14s7-15 16-15 15 6 15 15c0 8-6 14-13 14l-7 5 3-5z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
}

:where(h1, h2, h3, h4, p, ul, ol) {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

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

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visibility */
:is(a, button, summary):focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

/* ============================================================
 * MOTIF PRIMITIVES
 * ============================================================ */

/* Speech-bubble buttons (sharp bottom-left corner + tactile ink shadow) */
.btn-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: var(--radius-bubble);
  border: 2.5px solid var(--border-ink);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  background: var(--sun);
  color: #1a1714;
  box-shadow: 4px 4px 0 var(--shadow-ink);
  transition: transform 160ms var(--ease-ui), box-shadow 160ms var(--ease-ui), background-color 160ms var(--ease-ui);
  white-space: nowrap;
}

.btn-bubble:hover {
  transform: translate(1.5px, 1.5px);
  box-shadow: 2.5px 2.5px 0 var(--shadow-ink);
}

.btn-bubble:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--shadow-ink);
}

.btn-bubble--paper {
  background: var(--paper-card);
  color: var(--ink);
}

.btn-bubble--ink {
  background: #1a1714;
  color: var(--sun);
  border-color: #1a1714;
  box-shadow: 4px 4px 0 var(--sun);
}

:root[data-theme="dark"] .btn-bubble--ink {
  border-color: var(--sun);
}

.btn-bubble--sm {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--shadow-ink);
}

/* Boarding strip header inside tickets */
.strip {
  background: #1a1714;
  color: var(--sun);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:root[data-theme="dark"] .strip {
  background: #100d0b;
  border-bottom: 1.5px solid var(--border-ink);
}

.strip__right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.plane-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Boarding-pass card with real CSS mask cutouts at the tear line */
.ticket {
  background: var(--paper-card);
  border: 2.5px solid var(--border-ink);
  border-radius: var(--radius-card);
  box-shadow: 8px 8px 0 var(--shadow-ink);
  overflow: hidden;
  position: relative;
}

.ticket--sun-shadow {
  box-shadow: 8px 10px 0 var(--shadow-sun);
}

.ticket--notched {
  --tear-y: 120px;
  -webkit-mask-image:
    radial-gradient(circle 11px at 0 var(--tear-y), transparent 10.5px, #000 11px),
    radial-gradient(circle 11px at 100% var(--tear-y), transparent 10.5px, #000 11px);
  -webkit-mask-composite: destination-in;
  mask-image:
    radial-gradient(circle 11px at 0 var(--tear-y), transparent 10.5px, #000 11px),
    radial-gradient(circle 11px at 100% var(--tear-y), transparent 10.5px, #000 11px);
  mask-composite: intersect;
}

.tear-line {
  border: 0;
  border-top: 2px dashed var(--border-ink);
  opacity: 0.45;
  margin: 0;
}

/* Route code kicker (not a generic SaaS gradient pill) */
.route-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.route-tag__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peach);
  border: 1.5px solid var(--border-ink);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
 * TOP HEADER
 * ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 2px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 2px solid var(--border-ink);
  box-shadow: 2.5px 2.5px 0 var(--shadow-ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 150ms var(--ease-ui), border-color 150ms var(--ease-ui);
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--sun);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 14px;
  border: 2px solid var(--border-ink);
  background: var(--paper-card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 150ms var(--ease-ui);
}

.icon-toggle:hover {
  background: var(--paper-warm);
}

/* ============================================================
 * SECTION 1 — HERO (Asymmetric Gate + Living Cast Boarding Pass)
 * ============================================================ */
.hero {
  padding: 44px 0 64px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.hero__title {
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

.hero__lead {
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.42;
  color: var(--ink-soft);
  max-width: 46ch;
  font-weight: 500;
}

/* Anna's reply directly under the lead (answers "why this one" without a badge) */
.hero__reply {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  max-width: 460px;
}

.hero__reply-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sun);
  border: 2.5px solid var(--border-ink);
  flex-shrink: 0;
  object-fit: cover;
}

.hero__reply-bubble {
  background: var(--paper-card);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-bubble);
  padding: 11px 16px;
  box-shadow: 3px 3px 0 var(--shadow-sun);
  font-size: 15px;
  line-height: 1.35;
}

.hero__reply-bubble strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero__subnote {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* HERO SIGNATURE MOMENT: Living Boarding Pass & Gate */
.gate-pass {
  background: var(--paper-card);
  border: 2.5px solid var(--border-ink);
  border-radius: 28px;
  box-shadow: 10px 12px 0 var(--shadow-sun);
  overflow: hidden;
  position: relative;
}

.gate-pass__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 2px dashed var(--hairline);
}

.meta-cell {
  min-width: 0;
}

.meta-cell__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.meta-cell__value {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gate-stage {
  position: relative;
  padding: 20px 20px 0;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fbf2de;
  overflow: hidden;
}

:root[data-theme="dark"] .gate-stage {
  background: #251f19;
}

.gate-stage__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: bottom center;
  opacity: 0.92;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 32%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 32%, #000 100%);
}

:root[data-theme="dark"] .gate-stage__skyline {
  opacity: 0.48;
  filter: saturate(0.85) contrast(1.05);
}

.gate-stage__plane {
  position: absolute;
  top: 16px;
  left: 22px;
  width: 78px;
  pointer-events: none;
  animation: plane-drift 6.5s ease-in-out infinite;
  z-index: 2;
}

@keyframes plane-drift {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50% { transform: translate(12px, -7px) rotate(2deg); }
}

.gate-stage__stamp {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 76px;
  transform: rotate(12deg) scale(0.92);
  opacity: 0.85;
  pointer-events: none;
  z-index: 3;
  transition: transform 240ms var(--ease-ui), opacity 240ms var(--ease-ui);
}

.gate-stage__stamp.is-stamped {
  transform: rotate(-8deg) scale(1.05);
  opacity: 1;
}

/* Steady-height speech area for the active speaking cast member */
.gate-speech {
  position: relative;
  z-index: 4;
  display: grid;
  min-height: 112px;
  align-items: center;
  margin: 26px 80px 10px 6px;
}

.gate-speech__bubble {
  grid-area: 1 / 1;
  background: var(--paper-card);
  border: 2.5px solid var(--border-ink);
  border-radius: var(--radius-bubble);
  padding: 13px 16px;
  box-shadow: 4px 4px 0 var(--shadow-ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity 190ms var(--ease-ui), transform 190ms var(--ease-ui), visibility 0s linear 190ms;
}

.gate-speech__bubble.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 190ms var(--ease-ui), transform 190ms var(--ease-ui), visibility 0s linear 0s;
}

.gate-speech__who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.gate-speech__en {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--ink);
}

.gate-speech__pt {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 3px;
}

/* Group composition of the 5 real characters standing at the gate (back row + front row) */
.gate-cast {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 20px 10px 14px;
  margin: 0 -20px;
  background: linear-gradient(to top, rgba(255, 253, 249, 0.94) 40%, rgba(255, 253, 249, 0.65) 72%, rgba(255, 253, 249, 0) 100%);
}

:root[data-theme="dark"] .gate-cast {
  background: linear-gradient(to top, rgba(34, 28, 23, 0.95) 42%, rgba(34, 28, 23, 0.68) 74%, rgba(34, 28, 23, 0) 100%);
}

.cast-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-radius: 18px;
  transition: transform 180ms var(--ease-ui);
  position: relative;
}

.cast-btn:nth-child(2),
.cast-btn:nth-child(4) {
  transform: translateY(-10px);
}

.cast-btn:hover,
.cast-btn.is-speaking {
  transform: translateY(-16px) scale(1.06);
  z-index: 6;
}

.cast-btn__ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2.5px solid var(--border-ink);
  background: var(--paper-card);
  box-shadow: 0 4px 0 var(--shadow-ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background-color 180ms var(--ease-ui), box-shadow 180ms var(--ease-ui);
}

.cast-btn.is-speaking .cast-btn__ring {
  background: var(--sun);
  box-shadow: 0 6px 0 var(--shadow-ink);
}

.cast-btn__ring img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.cast-btn__name {
  font-size: 12px;
  font-weight: 800;
  background: var(--paper-card);
  color: var(--ink);
  border: 1.8px solid var(--border-ink);
  border-radius: 999px;
  padding: 2px 9px;
  line-height: 1.25;
}

.cast-btn.is-speaking .cast-btn__name {
  background: #1a1714;
  color: var(--sun);
  border-color: #1a1714;
}

.gate-pass__foot {
  background: var(--paper-card);
  border-top: 2px solid var(--border-ink);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

.gate-pass__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
 * SECTION COMMONS
 * ============================================================ */
.band {
  padding: 76px 0;
}

.band--warm {
  background: var(--paper-warm);
  border-top: 2px solid var(--hairline);
  border-bottom: 2px solid var(--hairline);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
  margin-bottom: 36px;
}

.section-title {
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-lead {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ============================================================
 * SECTION 2 — PLAYABLE PRODUCT STAGE (Steady-Height Stacked Tabs)
 * ============================================================ */
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}

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

.demo-tab {
  text-align: left;
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius-bubble);
  border: 2.5px solid var(--border-ink);
  background: var(--paper-card);
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 160ms var(--ease-ui), box-shadow 160ms var(--ease-ui), background-color 160ms var(--ease-ui);
}

.demo-tab:hover {
  background: var(--paper-warm);
}

.demo-tab[aria-selected="true"] {
  background: var(--sun);
  color: #1a1714;
  box-shadow: 5px 5px 0 var(--shadow-ink);
  transform: translate(-2px, -2px);
}

.demo-tab__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--paper-warm);
  color: var(--ink);
  border: 2px solid var(--border-ink);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

.demo-tab[aria-selected="true"] .demo-tab__num {
  background: #1a1714;
  color: var(--sun);
  border-color: #1a1714;
}

.demo-tab__title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.18;
}

.demo-tab__desc {
  display: block;
  font-size: 14.5px;
  margin-top: 4px;
  color: var(--ink-soft);
}

.demo-tab[aria-selected="true"] .demo-tab__desc {
  color: #2f2923;
}

.sound-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px dashed var(--hairline);
  background: var(--paper-card);
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}

.sound-row .icon-toggle {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Deliberately placed real product phone (whole object, all corners, yellow shadow) */
.phone-stage {
  background: var(--paper-card);
  border: 3px solid var(--border-ink);
  border-radius: 36px;
  box-shadow: 10px 12px 0 var(--shadow-sun);
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  margin-left: auto;
}

.phone-stage__bar {
  background: #1a1714;
  color: var(--sun);
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* Steady-height stack: every tab lives in grid-area 1/1 -> ZERO layout shift */
.phone-stack {
  display: grid;
}

.phone-pane {
  grid-area: 1 / 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms var(--ease-ui), transform 180ms var(--ease-ui), visibility 0s linear 180ms;
}

.phone-pane.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 180ms var(--ease-ui), transform 180ms var(--ease-ui), visibility 0s linear 0s;
}

/* Lesson inside phone */
.lesson-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lesson-track {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: var(--paper-warm);
  border: 2px solid var(--border-ink);
  overflow: hidden;
}

.lesson-fill {
  height: 100%;
  background: var(--sun);
  width: 34%;
  transition: width 260ms var(--ease-ui);
}

.lesson-step-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.lesson-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lesson-prompt__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2.5px solid var(--border-ink);
  background: var(--sun);
  flex-shrink: 0;
}

.lesson-prompt__bubble {
  flex: 1;
  background: var(--paper);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-bubble);
  padding: 12px 14px;
}

.lesson-prompt__kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lesson-prompt__phrase {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.quiz-opt {
  width: 100%;
  min-height: 48px;
  text-align: left;
  padding: 11px 15px;
  border-radius: 16px;
  border: 2px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 150ms var(--ease-ui), background-color 150ms var(--ease-ui), transform 150ms var(--ease-ui);
}

.quiz-opt:hover:not(:disabled) {
  border-color: var(--border-ink);
  transform: translateY(-1px);
}

.quiz-opt.is-right {
  border-color: var(--green);
  background: var(--green-bg);
}

.quiz-opt.is-wrong {
  border-color: var(--stamp);
  background: var(--peach-soft);
}

.builder-box {
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 2px dashed var(--border-ink);
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 16px;
}

.builder-placeholder {
  color: var(--ink-faint);
  font-weight: 600;
  font-size: 14.5px;
}

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

.word-tile {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 13px;
  border: 2px solid var(--border-ink);
  background: var(--paper-card);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 3px 0 var(--shadow-ink);
  transition: transform 140ms var(--ease-ui), opacity 140ms var(--ease-ui);
}

.word-tile:hover:not(:disabled) {
  transform: translateY(-1px);
}

.word-tile:disabled {
  opacity: 0.35;
  box-shadow: none;
  cursor: default;
}

.verdict-card {
  border-radius: 18px;
  border: 2px solid var(--border-ink);
  padding: 13px 15px;
  background: var(--green-bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verdict-card--warn {
  background: var(--amber-bg);
}

.verdict-card__title {
  font-weight: 800;
  font-size: 16px;
}

.verdict-card__tip {
  font-size: 14px;
  line-height: 1.38;
  color: var(--ink);
}

.lesson-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1.5px dashed var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.lesson-foot__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lesson-foot__pill {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1.5px solid var(--hairline);
  background: var(--paper);
  white-space: nowrap;
}

.lesson-foot__pill.is-now {
  background: var(--sun);
  color: #1a1714;
  border-color: var(--border-ink);
}

/* Chat inside phone */
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--hairline);
}

.chat-head img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-ink);
  background: var(--sun);
}

.chat-head__name {
  font-weight: 800;
  font-size: 17px;
  line-height: 1.1;
}

.chat-head__sub {
  font-size: 13px;
  color: var(--ink-soft);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 162px;
}

.msg {
  max-width: 88%;
  padding: 11px 14px;
  border: 2px solid var(--border-ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.msg--tutor {
  align-self: flex-start;
  background: var(--paper);
  border-radius: var(--radius-bubble);
}

.msg--user {
  align-self: flex-end;
  background: var(--sun);
  color: #1a1714;
  border-radius: var(--radius-bubble-right);
}

.msg--memory {
  align-self: flex-start;
  background: var(--paper-warm);
  border: 1.8px dashed var(--border-ink);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

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

.reply-chip {
  min-height: 42px;
  padding: 8px 13px;
  border-radius: var(--radius-bubble-right);
  border: 2px solid var(--border-ink);
  background: var(--paper-card);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color 150ms var(--ease-ui), transform 150ms var(--ease-ui);
}

.reply-chip:hover {
  background: var(--sun);
  color: #1a1714;
  transform: translateY(-1px);
}

/* Live Call inside phone */
.call-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 6px 4px;
}

.call-rings {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
}

.call-rings::before,
.call-rings::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--sun);
  opacity: 0.45;
  animation: ring-pulse 2.2s ease-out infinite;
}

.call-rings::after {
  animation-delay: 1.1s;
}

@keyframes ring-pulse {
  0% { transform: scale(0.84); opacity: 0.7; }
  100% { transform: scale(1.18); opacity: 0; }
}

.call-rings img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--border-ink);
  background: var(--sun);
  position: relative;
  z-index: 2;
}

.call-status {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.call-transcript {
  width: 100%;
  min-height: 92px;
  text-align: left;
  background: var(--paper);
  border: 2px solid var(--border-ink);
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
}

.call-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.call-actions .btn-bubble {
  flex: 1;
}

/* ============================================================
 * SECTION 3 — CAST SPEECH WALL (Character-first asymmetric spread)
 * ============================================================ */
.cast-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px 22px;
  align-items: stretch;
}

.cast-bubble-card {
  position: relative;
  background: var(--paper-card);
  border: 2.5px solid var(--border-ink);
  border-radius: var(--radius-bubble);
  padding: 22px 22px 20px;
  box-shadow: 6px 6px 0 var(--shadow-ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 200ms var(--ease-ui), box-shadow 200ms var(--ease-ui);
}

.cast-bubble-card--lead {
  grid-column: span 7;
  background: var(--sun);
  color: #1a1714;
}

.cast-bubble-card--2 {
  grid-column: span 5;
}

.cast-bubble-card--3 {
  grid-column: span 4;
}

.cast-bubble-card--4 {
  grid-column: span 4;
}

.cast-bubble-card--5 {
  grid-column: span 4;
}

.cast-bubble-card:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 var(--shadow-ink);
}

.cast-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cast-card__avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2.5px solid var(--border-ink);
  background: var(--paper-warm);
  box-shadow: 0 3px 0 var(--shadow-ink);
  object-fit: contain;
  flex-shrink: 0;
}

.cast-bubble-card--lead .cast-card__avatar {
  width: 74px;
  height: 74px;
  background: var(--paper-card);
}

.cast-card__city {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.cast-bubble-card--lead .cast-card__city {
  color: #362f28;
}

.cast-bubble-card__quote {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.cast-bubble-card--lead .cast-bubble-card__quote {
  font-size: 24px;
}

.cast-bubble-card__bio {
  font-size: 15px;
  line-height: 1.44;
  color: var(--ink-soft);
}

.cast-bubble-card--lead .cast-bubble-card__bio {
  color: #2c251f;
}

.cast-bubble-card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1.5px dashed var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cast-bubble-card--lead .cast-bubble-card__foot {
  border-top-color: rgba(26, 23, 20, 0.28);
}

.cast-person__name {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
}

.cast-person__meta {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

.cast-bubble-card--lead .cast-person__meta {
  color: #2f2923;
}

.ambience-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 2px solid var(--border-ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.cast-bubble-card--lead .ambience-btn {
  background: #fffdf9;
  color: #1a1714;
  border-color: #1a1714;
}

.ambience-btn.is-playing {
  background: var(--peach);
  color: #1a1714;
}

.ai-honest-note {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ============================================================
 * SECTION 4 — WINDING PATH + INTERACTIVE DARK-LEATHER PASSPORT
 * ============================================================ */
.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.path-stops {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.path-stops::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 28px;
  bottom: 28px;
  width: 0;
  border-left: 3px dashed var(--border-ink);
  opacity: 0.35;
}

.path-stop {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.path-stop__badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2.5px solid var(--border-ink);
  background: var(--paper-card);
  box-shadow: 0 4px 0 var(--shadow-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.path-stop--active .path-stop__badge {
  background: var(--sun);
}

.path-stop__badge img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.path-stop__card {
  flex: 1;
  background: var(--paper-card);
  border: 2px solid var(--border-ink);
  border-radius: 18px;
  padding: 12px 16px;
  min-width: 0;
}

.path-stop__lvl {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.path-stop__title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.path-stop__sub {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.course-facts {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Interactive Dark-Leather Passport */
.passport {
  background: var(--passport-bg);
  color: var(--passport-ink);
  border: 3px solid var(--sun);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 10px 12px 0 var(--shadow-sun);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.passport__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1.5px dashed var(--passport-line);
}

.passport__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sun);
  text-transform: uppercase;
}

.passport__name {
  font-size: 26px;
  font-weight: 800;
  margin-top: 2px;
}

.passport__mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.passport__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.p-stat__num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--sun);
  line-height: 1.05;
}

.p-stat__label {
  font-size: 12.5px;
  color: var(--passport-soft);
  font-weight: 600;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stamp-slot {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(255, 245, 224, 0.28);
  background: rgba(255, 245, 224, 0.06);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--passport-soft);
  transition: transform 180ms var(--ease-ui), border-color 180ms var(--ease-ui), background-color 180ms var(--ease-ui);
}

.stamp-slot img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.56;
  filter: grayscale(0.75) brightness(1.18);
  transition: opacity 200ms var(--ease-ui), filter 200ms var(--ease-ui), transform 200ms var(--ease-ui);
}

.stamp-slot.is-earned {
  border-style: solid;
  border-color: var(--sun);
  background: rgba(255, 204, 51, 0.14);
}

.stamp-slot.is-earned img {
  opacity: 1;
  filter: none;
  transform: scale(1.06);
}

.stamp-slot:hover {
  transform: scale(1.04);
  border-color: var(--sun);
}

.passport__hint {
  font-size: 13.5px;
  color: var(--passport-soft);
}

/* ============================================================
 * SECTION 5 — PLANS (Two Asymmetric Boarding Tickets)
 * ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

.plan-ticket {
  border-radius: 26px;
  border: 2.5px solid var(--border-ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan-ticket--free {
  background: var(--paper-card);
  box-shadow: 6px 6px 0 var(--shadow-ink);
}

.plan-ticket--plus {
  background: var(--sun);
  color: #1a1714;
  box-shadow: 10px 10px 0 var(--shadow-ink);
}

.plan-ticket__body {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price__amount {
  font-size: clamp(34px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price__per {
  font-size: 15px;
  font-weight: 700;
  opacity: 0.78;
}

.plan-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 15.5px;
  font-weight: 600;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-list__bullet {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid currentColor;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
}

.plan-ticket__cta {
  margin-top: auto;
  padding-top: 6px;
}

.plan-ticket__cta .btn-bubble {
  width: 100%;
}

.plan-ticket--plus .btn-bubble--ink {
  box-shadow: 4px 4px 0 #fffdf9;
  border-color: #1a1714;
}

.plan-ticket__note {
  padding-top: 14px;
  border-top: 1.5px dashed rgba(26, 23, 20, 0.25);
  font-size: 13.5px;
  line-height: 1.4;
  opacity: 0.85;
}

:root[data-theme="dark"] .plan-ticket--free .plan-ticket--plus .btn-bubble--ink {
  box-shadow: 4px 4px 0 #fffdf9;
  border-color: #1a1714;
}

.plan-ticket__note {
  border-top-color: var(--hairline);
}

/* ============================================================
 * SECTION 6 — PLAIN QUESTIONS (2-column balanced spread)
 * ============================================================ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 40px;
  align-items: start;
}

.faq-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-aside .section-head {
  margin-bottom: 0;
}

.faq-desk-card {
  background: var(--paper-card);
  border: 2.5px solid var(--border-ink);
  border-radius: var(--radius-bubble);
  padding: 18px;
  box-shadow: 5px 5px 0 var(--shadow-sun);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.faq-desk-card img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--border-ink);
  background: var(--sun);
  flex-shrink: 0;
}

.faq-desk-card__title {
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.2;
}

.faq-desk-card__text {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.4;
}

.faq-desk-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 2px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: underline;
}

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

.faq-item {
  background: var(--paper-card);
  border: 2px solid var(--border-ink);
  border-radius: 18px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 17.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 160ms var(--ease-ui), background-color 160ms var(--ease-ui);
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--sun);
  color: #1a1714;
}

.faq-item__answer {
  padding: 0 20px 18px;
  font-size: 16px;
  line-height: 1.52;
  color: var(--ink-soft);
}

.faq-item__answer a {
  text-decoration: underline;
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================
 * SECTION 7 — BOOKEND DARK PASSPORT COVER + FOOTER
 * ============================================================ */
.bookend {
  padding: 20px 0 84px;
}

.bookend-card {
  background: var(--passport-bg);
  color: var(--passport-ink);
  border: 3px solid var(--sun);
  border-radius: 32px;
  padding: 40px;
  box-shadow: 10px 12px 0 var(--shadow-sun);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.bookend-card__title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 10px;
}

.bookend-card__lead {
  font-size: 18px;
  color: var(--passport-soft);
  margin-top: 12px;
  max-width: 44ch;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 20px;
  border-radius: var(--radius-bubble);
  border: 2.5px solid #1a1714;
  background: var(--sun);
  color: #1a1714;
  font-weight: 800;
  box-shadow: 4px 4px 0 #fcf5ed;
  transition: transform 160ms var(--ease-ui);
}

.store-btn--outline {
  background: transparent;
  color: var(--passport-ink);
  border-color: var(--passport-ink);
  box-shadow: 3px 3px 0 rgba(252, 245, 237, 0.35);
}

.store-btn:hover {
  transform: translate(1.5px, 1.5px);
}

.store-btn__small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
  line-height: 1.1;
}

.store-btn__big {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.store-launch-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--passport-soft);
  font-weight: 600;
}

.bookend-art {
  position: relative;
  width: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookend-art__learner {
  width: 190px;
  height: auto;
  position: relative;
  z-index: 2;
}

.bookend-art__stamp {
  position: absolute;
  right: -10px;
  top: -8px;
  width: 78px;
  transform: rotate(14deg);
  opacity: 0.92;
  z-index: 1;
}

.site-footer {
  border-top: 2px solid var(--hairline);
  padding: 28px 0 44px;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.site-footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.8px solid var(--border-ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-links a {
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 6px 2px;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ============================================================
 * RESPONSIVE (Tablet, Mobile 390px, Small Phone 320px)
 * ============================================================ */
@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .hero__grid,
  .demo-layout,
  .journey-grid,
  .plans-grid,
  .faq-layout,
  .bookend-card {
    grid-template-columns: 1fr;
  }

  .cast-bubble-card--lead,
  .cast-bubble-card--2,
  .cast-bubble-card--3,
  .cast-bubble-card--4,
  .cast-bubble-card--5 {
    grid-column: span 12;
  }

  .bookend-art {
    width: 160px;
    margin-inline: auto;
  }

  .phone-stage {
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 28px, 680px);
  }

  .header-actions .icon-toggle span {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .hero {
    padding: 28px 0 48px;
  }

  .band {
    padding: 52px 0;
  }

  .gate-stage {
    min-height: 360px;
    padding: 16px 14px 0;
  }

  .gate-cast {
    margin: 0 -14px;
    padding: 18px 6px 12px;
    gap: 4px;
  }

  .gate-speech {
    margin: 22px 46px 8px 0;
    min-height: 108px;
  }

  .gate-stage__stamp {
    width: 54px;
    top: 10px;
    right: 10px;
  }

  .gate-stage__plane {
    width: 58px;
  }

  .cast-btn__ring {
    width: 56px;
    height: 56px;
  }

  .cast-btn__ring img {
    width: 50px;
    height: 50px;
  }

  .cast-btn:nth-child(2),
  .cast-btn:nth-child(4) {
    transform: translateY(-6px);
  }

  .cast-btn__name {
    font-size: 11px;
    padding: 2px 7px;
  }

  .stamp-grid {
    gap: 8px;
  }

  .bookend-card {
    padding: 26px 20px;
  }

  .btn-bubble {
    width: 100%;
    white-space: normal;
  }

  .header-actions .btn-bubble--sm {
    width: auto;
  }

  .store-btn {
    flex: 1 1 220px;
  }
}

@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 20px);
  }

  .brand {
    font-size: 19px;
    gap: 7px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .header-actions {
    gap: 6px;
  }

  .strip {
    font-size: 10px;
    padding: 9px 12px;
    letter-spacing: 0.1em;
  }

  .hero__title {
    font-size: 38px;
  }

  .cast-btn__ring {
    width: 48px;
    height: 48px;
  }

  .cast-btn__ring img {
    width: 42px;
    height: 42px;
  }

  .gate-pass__meta {
    padding: 10px 12px;
    gap: 6px;
  }

  .meta-cell__value {
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
