:root {
  --ink: #24103a;
  --ink-soft: #513c61;
  --ink-faint: #796b82;
  --coral: #ff626b;
  --coral-deep: #d94b67;
  --violet: #8460e8;
  --violet-deep: #4b2a83;
  --lavender: #cab5ef;
  --peach: #fff1e8;
  --paper: #fffaf6;
  --paper-clear: rgba(255, 250, 246, 0.91);
  --line: rgba(55, 26, 77, 0.13);
  --line-light: rgba(255, 255, 255, 0.78);
  --shadow: 0 28px 86px rgba(55, 23, 74, 0.18);
  --font-sans: 'Plus Jakarta Sans', 'Avenir Next', Avenir, sans-serif;
  --font-display: 'Italiana', 'Iowan Old Style', Georgia, serif;
  --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
  --header-height: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--peach); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--peach);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
button, input { font: inherit; }
button { border: 0; color: inherit; background: transparent; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; }
::selection { color: #fff; background: var(--coral-deep); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* Warm loading gate: only the first 4K scene blocks initial playback. */
.preflight {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  background: var(--peach);
  opacity: 1;
  visibility: visible;
  transition: opacity 850ms var(--ease-soft), visibility 850ms;
}
body:not(.is-loading) .preflight { opacity: 0; visibility: hidden; }
.preflight__scene { position: absolute; inset: 0; }
.preflight__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; filter: blur(7px); transform: scale(1.04); opacity: 0.42; }
.preflight__scene::after { content: ''; position: absolute; inset: 0; background: rgba(255, 244, 235, 0.56); }
.preflight__content { position: relative; width: min(270px, 72vw); text-align: center; }
.preflight__content > img { width: 58px; margin: 0 auto 18px; animation: preflightFloat 2.6s ease-in-out infinite; }
.preflight__content strong { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.preflight__track { display: block; height: 2px; margin-top: 18px; overflow: hidden; background: rgba(36, 16, 58, 0.13); }
.preflight__track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--coral), var(--violet)); transition: width 260ms ease; }
.preflight__content small { display: block; margin-top: 8px; color: var(--ink-faint); font-size: 0.65rem; letter-spacing: 0.12em; }
@keyframes preflightFloat { 50% { transform: translateY(-7px) rotate(3deg); } }

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 0 clamp(24px, 4.4vw, 72px);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color 500ms ease, background 500ms ease, border-color 500ms ease, transform 500ms var(--ease-cinema);
}
.site-header.is-scrolled { background: rgba(255, 247, 240, 0.66); border-color: rgba(255, 255, 255, 0.55); backdrop-filter: blur(20px) saturate(1.1); }
.site-header.is-dark-tone { color: #fff; }
.site-header.is-dark-tone.is-scrolled { background: rgba(28, 12, 47, 0.42); border-color: rgba(255, 255, 255, 0.13); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.site-nav { position: relative; display: flex; align-items: center; gap: clamp(26px, 4vw, 58px); }
.site-nav > button, .site-nav > a, .nav-dropdown__trigger { position: relative; padding: 10px 0; font-size: 0.8rem; font-weight: 600; }
.site-nav > button::after, .site-nav > a::after, .nav-dropdown__trigger::after { content: ''; position: absolute; right: 50%; bottom: 4px; left: 50%; height: 1px; background: currentColor; transition: right 260ms ease, left 260ms ease; }
.site-nav > button:hover::after, .site-nav > button[aria-current='true']::after, .site-nav > a:hover::after, .nav-dropdown__trigger:hover::after, .nav-dropdown.is-open .nav-dropdown__trigger::after { right: 0; left: 0; }
.nav-dropdown { position: relative; }
.nav-dropdown__trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-dropdown__trigger svg { width: 15px; height: 15px; transition: transform 260ms var(--ease-cinema); }
.nav-dropdown.is-open .nav-dropdown__trigger svg { transform: rotate(180deg); }
.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  width: min(650px, calc(100vw - 40px));
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 250, 246, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 30px 82px rgba(48, 21, 66, 0.2), inset 0 1px rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(1.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -10px) scale(0.985);
  transform-origin: top center;
  transition: opacity 220ms ease, visibility 220ms, transform 300ms var(--ease-cinema);
}
.nav-dropdown__panel::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(255, 250, 246, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.88);
  border-left: 1px solid rgba(255, 255, 255, 0.88);
  transform: translateX(-50%) rotate(45deg);
}
.nav-dropdown.is-open .nav-dropdown__panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.nav-legal-home {
  position: relative;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid rgba(255, 98, 107, 0.14);
  border-radius: 17px;
  background: linear-gradient(115deg, rgba(255, 235, 229, 0.82), rgba(243, 237, 255, 0.78));
}
.nav-legal-home::after { content: ''; position: absolute; top: -84px; right: -42px; width: 176px; height: 176px; border: 1px solid rgba(132, 96, 232, 0.14); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.2), 0 0 0 29px rgba(255, 98, 107, 0.07); pointer-events: none; }
.nav-legal-home > span { position: relative; z-index: 1; display: grid; gap: 4px; }
.nav-legal-home small { color: var(--coral-deep); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-legal-home strong { font-family: var(--font-display); font-size: 1.42rem; font-weight: 400; letter-spacing: -0.025em; }
.nav-legal-home i { position: relative; z-index: 1; width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-style: normal; transition: transform 220ms var(--ease-cinema), background 220ms ease; }
.nav-legal-home:hover i { background: #fff; transform: translateX(3px); }
.nav-legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.nav-legal-grid a { min-height: 68px; display: grid; align-content: center; gap: 4px; padding: 12px 16px; background: rgba(255, 252, 249, 0.94); transition: color 180ms ease, background 180ms ease, padding 220ms var(--ease-cinema); }
.nav-legal-grid a:hover { padding-left: 20px; color: var(--coral-deep); background: #fff; }
.nav-legal-grid a:last-child { grid-column: 1 / -1; }
.nav-legal-grid span { font-size: 0.69rem; font-weight: 700; }
.nav-legal-grid small { color: var(--ink-faint); font-size: 0.53rem; line-height: 1.35; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-cta, .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 23px;
  color: #fff;
  background: linear-gradient(105deg, var(--coral) 0%, #f05e82 48%, var(--violet) 100%);
  border-radius: 16px;
  box-shadow: 0 15px 32px rgba(210, 74, 102, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform 300ms var(--ease-cinema), box-shadow 300ms ease;
}
.header-cta:hover, .primary-action:hover { transform: translateY(-3px); box-shadow: 0 19px 40px rgba(210, 74, 102, 0.28); }
.header-cta img, .primary-action img, .feature-action img { filter: brightness(0) invert(1); }
.header-cta.app-store-link,
.app-store-action {
  color: #fff;
  background: linear-gradient(135deg, #170d22 0%, #251436 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px rgba(24, 13, 34, 0.22);
}
.header-cta.app-store-link:hover,
.app-store-action:hover { box-shadow: 0 22px 44px rgba(24, 13, 34, 0.31); }
.apple-mark { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 1.35rem; font-weight: 500; line-height: 1; }
.header-cta__mobile { display: none; }
.menu-button { display: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.42); }
.site-header.is-dark-tone .menu-button img { filter: brightness(0) invert(1); }

/* One uninterrupted film stage */
.story-film { position: relative; height: 1000svh; background: var(--peach); }
.film-stage {
  --welcome-opacity: 1;
  --portal-opacity: 0;
  --flight-opacity: 0;
  --media-scale: 1.025;
  --media-x: 0%;
  --media-y: 0%;
  --ribbon-opacity: 0.64;
  --ribbon-x: 0%;
  --ribbon-y: 0%;
  --ribbon-scale: 1;
  --grade-color: rgba(255, 246, 238, 0.16);
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--peach);
}
.film-media, .film-layer, .film-grade, .film-bloom { position: absolute; inset: 0; }
.film-media { z-index: -2; inset: -10vh 0; overflow: hidden; background: var(--peach); }
.film-layer { width: 100%; height: 100%; object-fit: cover; will-change: opacity, transform; transform: translate3d(var(--media-x), var(--media-y), 0) scale(var(--media-scale)); }
.film-layer--welcome { object-position: 58% center; opacity: var(--welcome-opacity); }
.film-layer--portal { object-position: center; opacity: var(--portal-opacity); filter: brightness(1.2) saturate(0.72) contrast(0.88) sepia(0.08); }
.film-layer--flight { object-position: center; opacity: var(--flight-opacity); }
.story-ribbon { position: absolute; z-index: 2; right: -10%; bottom: -18%; width: min(111vw, 1750px); max-width: none; opacity: var(--ribbon-opacity); mix-blend-mode: screen; pointer-events: none; transform: translate3d(var(--ribbon-x), var(--ribbon-y), 0) scale(var(--ribbon-scale)); transform-origin: 70% 70%; will-change: transform, opacity; }
.film-grade { z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(255, 246, 238, 0.87) 0%, rgba(255, 243, 233, 0.56) 31%, rgba(255, 240, 230, 0.04) 64%), var(--grade-color); transition: background 600ms ease; }
.film-bloom { z-index: 4; pointer-events: none; background: radial-gradient(circle at 45% 85%, rgba(255, 214, 195, 0.32), transparent 37%), linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 22%, transparent 78%, rgba(38, 17, 59, 0.12)); }
.film-stage[data-tone='twilight'] .film-grade { background: linear-gradient(90deg, rgba(30, 13, 49, 0.72) 0%, rgba(31, 13, 54, 0.28) 35%, rgba(26, 12, 45, 0.05) 69%), rgba(42, 18, 66, 0.1); }
.film-stage[data-tone='world'] .film-grade { background: linear-gradient(90deg, rgba(255, 243, 232, 0.76) 0%, rgba(255, 239, 226, 0.2) 34%, rgba(255, 239, 226, 0) 70%), linear-gradient(180deg, rgba(255, 247, 238, 0.08), transparent 55%, rgba(52, 25, 72, 0.2)); }

.chapters { position: absolute; z-index: 10; inset: 0; }
.chapter {
  --chapter-opacity: 0;
  --chapter-x: 54px;
  --chapter-y: 44px;
  --chapter-scale: 0.985;
  --chapter-blur: 3px;
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 24px) clamp(28px, 5vw, 82px) 104px;
  opacity: var(--chapter-opacity);
  pointer-events: none;
  filter: blur(var(--chapter-blur));
  transform: translate3d(var(--chapter-x), var(--chapter-y), 0) scale(var(--chapter-scale));
  transform-origin: 50% 52%;
  will-change: opacity, transform;
}
.chapter.is-active { pointer-events: auto; }
.welcome-copy { width: min(660px, 47vw); }
.mira-intro { margin-bottom: 20px; color: var(--ink); font-size: clamp(0.8rem, 1vw, 1rem); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.mira-intro em { color: var(--coral); font-style: normal; }
.welcome-copy h1, .chapter-copy h2, .feature-heading h2, .profile-copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.94;
}
.welcome-copy h1 { font-size: clamp(4.1rem, 6.2vw, 7.1rem); }
.chapter-lead { width: min(500px, 90%); margin-top: 24px; color: var(--ink-soft); font-size: clamp(1rem, 1.18vw, 1.18rem); line-height: 1.62; }
.chapter-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.primary-action { min-width: 226px; min-height: 56px; border-radius: 18px; font-size: 0.9rem; }
.app-store-action { min-width: 258px; }
.text-action { display: inline-flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid currentColor; font-size: 0.86rem; font-weight: 600; }
.platform-note { margin-top: 12px; color: var(--ink-faint); font-size: 0.66rem; }
.scroll-story-cue { position: absolute; bottom: 106px; left: clamp(28px, 5vw, 82px); display: flex; align-items: center; gap: 11px; color: var(--ink-faint); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-story-cue i { width: 72px; height: 1px; background: currentColor; transform-origin: left; animation: cueLine 2.2s ease-in-out infinite; }
@keyframes cueLine { 50% { transform: scaleX(0.34); opacity: 0.5; } }

/* Shared narrative layout */
.chapter-layout { width: 100%; max-width: 1460px; margin: 0 auto; display: grid; grid-template-columns: minmax(330px, 0.74fr) minmax(630px, 1.26fr); align-items: center; gap: clamp(34px, 5vw, 90px); }
.chapter-layout--wide { grid-template-columns: minmax(300px, 0.62fr) minmax(700px, 1.38fr); gap: clamp(28px, 4vw, 70px); }
.chapter-copy { max-width: 470px; }
.chapter-copy--compact { max-width: 420px; }
.mira-speaks { margin-bottom: 12px; color: var(--coral-deep); font-size: 0.77rem; font-weight: 600; letter-spacing: 0.02em; }
.chapter-copy h2, .feature-heading h2, .profile-copy h2 { font-size: clamp(3.4rem, 5.25vw, 6.4rem); }
.chapter-copy > p:not(.mira-speaks, .chapter-note, .live-reading), .feature-heading > p:last-child, .profile-copy > p:not(.mira-speaks) { margin-top: 23px; color: var(--ink-soft); font-size: clamp(0.9rem, 1.08vw, 1.08rem); line-height: 1.72; }
.chapter-note { margin-top: 22px; padding-left: 18px; color: var(--ink-faint); border-left: 2px solid var(--coral); font-size: 0.74rem; line-height: 1.65; }
.live-reading { margin-top: 28px; color: var(--ink); font-size: 0.9rem; }
.live-reading strong { margin-left: 7px; color: var(--coral); font-size: 1.35rem; }

/* Purposeful app canvases */
.product-canvas, .app-window, .support-window, .profile-window {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper-clear);
  border: 1px solid var(--line-light);
  border-radius: 36px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(1.08);
}
.onboarding-canvas { height: min(64vh, 570px); min-height: 500px; padding: 27px 30px; }
.canvas-topbar, .app-window__top, .calendar-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 38px; }
.canvas-brand, .app-window__top > span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.69rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.canvas-topbar b { justify-self: end; color: var(--ink-faint); font-size: 0.68rem; }
.onboarding-flow { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.onboarding-flow button { min-height: 72px; padding: 10px 12px; color: var(--ink-faint); border-right: 1px solid var(--line); text-align: left; font-size: 0.69rem; line-height: 1.35; transition: color 240ms ease, background 240ms ease; }
.onboarding-flow button:last-child { border-right: 0; }
.onboarding-flow button span { display: block; margin-bottom: 5px; color: var(--coral); font-size: 0.58rem; letter-spacing: 0.12em; }
.onboarding-flow button.is-active { color: var(--ink); background: rgba(255, 255, 255, 0.45); }
.onboarding-detail { position: relative; z-index: 2; width: 100%; min-height: 250px; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 20px; }
.onboarding-detail > div:first-child { max-width: 690px; }
.onboarding-detail > div:first-child > span, .feature-detail__copy > span { color: var(--coral-deep); font-size: 0.61rem; font-weight: 700; letter-spacing: 0.13em; }
.onboarding-detail h3 { margin-top: 8px; font-family: var(--font-display); font-size: clamp(2rem, 2.6vw, 2.75rem); font-weight: 400; line-height: 1; }
.onboarding-detail p { margin-top: 13px; color: var(--ink-soft); font-size: 0.76rem; line-height: 1.65; }
.consent-lines { display: grid; gap: 9px; width: 78%; margin-top: 23px; }
.consent-lines i { height: 10px; border-radius: 999px; background: rgba(83, 49, 99, 0.09); }
.consent-lines i:nth-child(2) { width: 84%; }
.consent-lines i:nth-child(3) { width: 64%; background: linear-gradient(90deg, rgba(255, 98, 107, 0.25), rgba(132, 96, 232, 0.22)); }

.app-window { min-height: min(69vh, 630px); padding: 24px 28px 78px; }
.app-window__top > strong { justify-self: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.app-window__top > button { justify-self: end; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.44); }
.today-dashboard { display: grid; grid-template-columns: 0.76fr 1.24fr; align-items: stretch; gap: 18px; margin-top: 18px; }
.cycle-compass { position: relative; display: grid; place-items: center; min-height: 235px; }
.cycle-compass::before { content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: conic-gradient(from -34deg, var(--coral) 0 28%, #f2a1bd 28% 48%, var(--violet) 48% 73%, #8ca2ef 73% 88%, #ffc38e 88% 100%); -webkit-mask: radial-gradient(circle, transparent 0 63%, #000 64%); mask: radial-gradient(circle, transparent 0 63%, #000 64%); opacity: 0.9; }
.cycle-compass div { position: relative; z-index: 1; display: grid; justify-items: center; }
.cycle-compass span, .cycle-compass small { color: var(--ink-faint); font-size: 0.63rem; }
.cycle-compass strong { margin: 3px 0; font-family: var(--font-display); font-size: 3rem; font-weight: 400; line-height: 1; }
.checkin-panel { padding: 21px 22px; background: rgba(255, 255, 255, 0.36); border: 1px solid rgba(255, 255, 255, 0.66); border-radius: 25px; }
.checkin-heading { display: flex; justify-content: space-between; gap: 18px; }
.checkin-heading div { display: grid; gap: 3px; }
.checkin-heading span { color: var(--coral-deep); font-size: 0.61rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.checkin-heading strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; }
.checkin-heading small { color: var(--ink-faint); font-size: 0.62rem; white-space: nowrap; }
.mood-row, .energy-row { display: grid; grid-template-columns: minmax(70px, 1fr) repeat(3, auto); align-items: center; gap: 8px; min-height: 52px; border-bottom: 1px solid var(--line); }
.energy-row { grid-template-columns: minmax(70px, 1fr) repeat(5, 32px); }
.mood-row > span, .energy-row > span { font-size: 0.68rem; font-weight: 600; }
.mood-row button { padding: 7px 9px; color: var(--ink-faint); border-radius: 999px; font-size: 0.62rem; }
.energy-row button { width: 30px; height: 30px; border-radius: 50%; color: var(--ink-soft); font-size: 0.67rem; }
.mood-row button.is-selected, .energy-row button.is-selected { color: #fff; background: var(--coral); box-shadow: 0 7px 16px rgba(255, 98, 107, 0.23); }
.signal-row { width: 100%; min-height: 48px; display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 10px; text-align: left; }
.signal-row span { font-size: 0.68rem; font-weight: 600; }
.signal-row strong { color: var(--coral-deep); font-size: 0.65rem; }
.daily-pattern { display: grid; grid-template-columns: 82px 1fr minmax(200px, 0.7fr); align-items: end; gap: 20px; min-height: 120px; margin-top: 18px; padding: 18px 20px 14px; border-top: 1px solid var(--line); }
.daily-pattern > span { align-self: start; color: var(--ink-faint); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; }
.daily-pattern p { align-self: center; color: var(--ink-faint); font-size: 0.65rem; line-height: 1.5; }
.pattern-line { height: 73px; display: flex; align-items: end; justify-content: space-around; gap: 9px; border-bottom: 1px solid var(--line); }
.pattern-line i { width: 5px; height: var(--h); min-height: 12px; border-radius: 999px 999px 0 0; background: rgba(83, 49, 99, 0.19); }
.pattern-line i.is-today { background: linear-gradient(var(--coral), var(--violet)); box-shadow: 0 0 16px rgba(255, 98, 107, 0.22); }
.app-tabs { position: absolute; right: 0; bottom: 0; left: 0; height: 64px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 16px; border-top: 1px solid var(--line); background: rgba(255, 250, 246, 0.68); backdrop-filter: blur(14px); }
.app-tabs button { position: relative; height: 100%; color: var(--ink-faint); font-size: 0.64rem; font-weight: 600; }
.app-tabs button::before { content: ''; position: absolute; top: 10px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: translateX(-50%); opacity: 0.28; }
.app-tabs button.is-active { color: var(--coral-deep); }
.app-tabs button.is-active::before { width: 8px; height: 8px; opacity: 1; box-shadow: 0 0 0 5px rgba(255, 98, 107, 0.12); }

/* Calendar */
.calendar-head > span { font-family: var(--font-display); font-size: 1.55rem; }
.calendar-head > strong { justify-self: center; font-size: 0.74rem; }
.calendar-head > button { justify-self: end; width: 38px; height: 38px; display: grid; place-items: center; }
.calendar-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--line); }
.calendar-summary div { display: grid; gap: 3px; padding: 16px 17px; background: rgba(255, 255, 255, 0.48); }
.calendar-summary span { color: var(--ink-faint); font-size: 0.59rem; }
.calendar-summary strong { font-size: 0.72rem; }
.calendar-body { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 22px; margin-top: 22px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: center; }
.calendar-grid > span { color: var(--ink-faint); text-align: center; font-size: 0.59rem; }
.calendar-grid button { aspect-ratio: 1; max-width: 54px; justify-self: center; width: 100%; border-radius: 50%; font-size: 0.7rem; transition: color 220ms ease, background 220ms ease, transform 220ms ease; }
.calendar-grid button:hover { transform: translateY(-2px); }
.calendar-grid button.is-selected { color: #fff; background: var(--coral); box-shadow: 0 10px 22px rgba(255, 98, 107, 0.25); }
.day-story { padding: 20px; border-left: 1px solid var(--line); }
.day-story > span { color: var(--coral-deep); font-size: 0.62rem; font-weight: 600; }
.day-story h3 { margin-top: 8px; font-family: var(--font-display); font-size: 1.65rem; font-weight: 400; line-height: 1.05; }
.day-story ul { margin-top: 18px; list-style: none; }
.day-story li { display: flex; align-items: center; justify-content: space-between; min-height: 40px; border-bottom: 1px solid var(--line); font-size: 0.66rem; }
.day-story li b { font-weight: 600; }
.day-story li span { color: var(--ink-faint); }

/* Full feature navigator */
.features-stage { width: min(1460px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(310px, 0.48fr) minmax(780px, 1.52fr); align-items: center; gap: clamp(28px, 4vw, 70px); }
.feature-heading { max-width: 430px; color: #fff; text-shadow: 0 3px 30px rgba(31, 12, 52, 0.25); }
.feature-heading .mira-speaks { color: #ffb4b6; text-shadow: none; }
.feature-heading h2 { font-size: clamp(3.1rem, 4.6vw, 5.6rem); }
.feature-heading > p:last-child { color: rgba(255, 255, 255, 0.74); }
.feature-explorer { min-width: 0; overflow: hidden; color: var(--ink); background: rgba(255, 250, 246, 0.88); border: 1px solid var(--line-light); border-radius: 36px; box-shadow: 0 32px 90px rgba(14, 7, 31, 0.32); backdrop-filter: blur(24px); }
.feature-rail { display: flex; align-items: center; gap: 6px; padding: 14px 16px 13px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.feature-rail::-webkit-scrollbar { display: none; }
.feature-rail button { flex: 0 0 auto; min-height: 40px; padding: 0 16px; color: var(--ink-faint); border-radius: 13px; font-size: 0.67rem; font-weight: 600; transition: color 220ms ease, background 220ms ease; }
.feature-rail button.is-active { color: #fff; background: var(--ink); }
.feature-detail { min-height: min(59vh, 530px); display: grid; grid-template-columns: 1.05fr 0.95fr; }
.feature-detail__copy { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(30px, 3vw, 52px); }
.feature-detail__copy h3 { margin-top: 9px; font-family: var(--font-display); font-size: clamp(2.5rem, 3.1vw, 3.7rem); font-weight: 400; line-height: 0.98; letter-spacing: -0.045em; }
.feature-detail__copy > p { margin-top: 16px; color: var(--ink-soft); font-size: 0.77rem; line-height: 1.68; }
.feature-detail__copy ul { margin-top: 20px; list-style: none; }
.feature-detail__copy li { position: relative; min-height: 32px; display: flex; align-items: center; padding-left: 18px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: 0.67rem; }
.feature-detail__copy li::before { content: ''; position: absolute; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.feature-action { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 0 18px; min-height: 43px; color: #fff; background: var(--ink); border-radius: 14px; font-size: 0.68rem; font-weight: 600; }
.feature-detail__art { position: relative; overflow: hidden; display: grid; place-items: end center; background: linear-gradient(155deg, rgba(255, 228, 214, 0.78), rgba(217, 196, 243, 0.68)); }
.feature-detail__art::before { content: ''; position: absolute; inset: 14% 6% 4%; border-radius: 50% 50% 20% 20%; background: rgba(255, 255, 255, 0.28); filter: blur(2px); }
.feature-detail__art > img { position: relative; z-index: 1; width: 92%; height: 88%; object-fit: contain; object-position: center bottom; transition: opacity 240ms ease, transform 420ms var(--ease-cinema); }
.feature-detail__art > img.is-changing { opacity: 0; transform: translateY(16px) scale(0.97); }
.feature-detail__art > span { position: absolute; z-index: 2; right: 16px; bottom: 15px; left: 16px; padding: 10px 13px; color: var(--ink-soft); background: rgba(255, 250, 246, 0.73); border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 12px; font-size: 0.58rem; text-align: center; backdrop-filter: blur(10px); }

/* World arrival */
.world-layout { width: min(1500px, 100%); height: 100%; margin: 0 auto; display: grid; grid-template-columns: minmax(350px, 0.62fr) minmax(650px, 1.38fr); align-items: center; gap: clamp(20px, 2vw, 44px); }
.chapter-copy--world { align-self: center; max-width: 500px; }
.chapter-copy--world h2 { font-size: clamp(3.6rem, 5.5vw, 6.7rem); }
.world-canvas { position: relative; justify-self: end; width: min(68vw, 800px); height: min(72vh, 650px); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.78); border-radius: 44px; box-shadow: 0 36px 100px rgba(59, 28, 75, 0.22); background: rgba(255, 250, 246, 0.45); }
.world-canvas > img { width: 100%; height: 100%; object-fit: cover; }
.world-canvas figcaption { position: absolute; inset: 0; pointer-events: none; }
.world-canvas figcaption button { position: absolute; min-height: 38px; padding: 0 16px; color: var(--ink); background: rgba(255, 250, 246, 0.84); border: 1px solid rgba(255, 255, 255, 0.88); border-radius: 13px; box-shadow: 0 12px 28px rgba(59, 28, 75, 0.13); font-size: 0.66rem; font-weight: 700; pointer-events: auto; backdrop-filter: blur(12px); transition: transform 220ms var(--ease-cinema), background 220ms ease; }
.world-canvas figcaption button:hover, .world-canvas figcaption button.is-active { color: #fff; background: var(--ink); transform: translateY(-4px); }
.world-canvas figcaption button:nth-child(1) { top: 27%; left: 12%; }
.world-canvas figcaption button:nth-child(2) { top: 26%; right: 11%; }
.world-canvas figcaption button:nth-child(3) { bottom: 21%; left: 13%; }
.world-canvas figcaption button:nth-child(4) { right: 11%; bottom: 20%; }
.world-canvas > p { position: absolute; right: 20px; bottom: 17px; left: 20px; padding: 11px 15px; color: var(--ink-soft); background: rgba(255, 250, 246, 0.79); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 13px; font-size: 0.61rem; text-align: center; backdrop-filter: blur(12px); }

/* Support and profile */
.support-window, .profile-window { min-height: min(70vh, 640px); padding: 28px 28px 78px; }
.window-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 0 4px 18px; border-bottom: 1px solid var(--line); }
.window-title span { font-family: var(--font-display); font-size: 1.55rem; }
.window-title strong { color: var(--ink-faint); font-size: 0.69rem; }
.support-list, .profile-list { display: grid; gap: 0; margin-top: 7px; }
.support-list > button, .profile-list > button { width: 100%; min-height: 78px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 15px; padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; transition: background 220ms ease, transform 220ms var(--ease-cinema); }
.support-list > button:hover, .profile-list > button:hover, .support-list > button.is-active, .profile-list > button.is-active { background: rgba(255, 255, 255, 0.42); transform: translateX(5px); }
.support-list > button > span:first-child, .profile-list > button > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 98, 107, 0.09); }
.support-list > button > span:first-child img, .profile-list > button > span:first-child img { opacity: 0.8; }
.support-list div, .profile-list div { display: grid; gap: 3px; }
.support-list strong, .profile-list strong { font-family: var(--font-display); font-size: 1.16rem; font-weight: 400; }
.support-list small, .profile-list small { color: var(--ink-faint); font-size: 0.61rem; }
.coming-soon { padding: 5px 8px; color: var(--coral-deep); background: rgba(255, 98, 107, 0.1); border-radius: 8px; font-size: 0.55rem; font-weight: 700; }
.profile-layout { width: min(1420px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(380px, 0.72fr) minmax(580px, 1.28fr); align-items: center; gap: clamp(42px, 7vw, 120px); }
.chapter--profile .profile-layout { transform: translateY(20px); }
.profile-copy { max-width: 560px; }
.download-benefits { display: grid; gap: 8px; margin-top: 22px; list-style: none; }
.download-benefits li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 0.72rem; line-height: 1.5; }
.download-benefits li::before { content: ''; position: absolute; top: 0.62em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--violet)); box-shadow: 0 0 0 4px rgba(255, 98, 107, 0.1); }
.profile-copy .primary-action { margin-top: 24px; }
.profile-copy > .download-note { margin-top: 10px; color: var(--ink-faint); font-size: 0.61rem; line-height: 1.45; }
.profile-window { min-height: min(66vh, 600px); }
.profile-list > button { grid-template-columns: 44px 1fr; }
.profile-detail { margin-top: 18px; min-height: 46px; padding: 12px 14px; color: var(--ink-soft); background: rgba(255, 255, 255, 0.36); border-radius: 13px; font-size: 0.63rem; line-height: 1.55; }

/* Cinematic device showroom: real App Store captures, presented as the product. */
.hero-device-tease {
  position: absolute;
  z-index: 2;
  top: 15%;
  right: clamp(46px, 8vw, 138px);
  width: min(25vw, 320px);
  height: min(68vh, 650px);
  pointer-events: none;
  filter: drop-shadow(0 38px 48px rgba(50, 21, 67, 0.22));
  transform: rotate(3.5deg);
}
.hero-device-tease::before {
  content: '';
  position: absolute;
  inset: 16% -24% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 223, 206, 0.62), rgba(211, 174, 242, 0.25) 52%, transparent 72%);
  filter: blur(20px);
}
.hero-device-tease__note {
  position: absolute;
  z-index: 4;
  top: 16%;
  left: -34%;
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 250, 246, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(48, 20, 66, 0.13);
  backdrop-filter: blur(18px);
  transform: rotate(-3.5deg);
}
.hero-device-tease__note span { color: var(--coral-deep); font-size: 0.48rem; font-weight: 700; letter-spacing: 0.12em; }
.hero-device-tease__note strong { font-family: var(--font-display); font-size: 1rem; font-weight: 400; }

.device-showcase {
  position: relative;
  min-width: 0;
  height: min(72vh, 650px);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(220px, 0.46fr) minmax(390px, 0.54fr);
  grid-template-rows: 52px minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 250, 246, 0.79), rgba(255, 239, 233, 0.55) 48%, rgba(232, 219, 251, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 40px;
  box-shadow: 0 34px 100px rgba(50, 21, 67, 0.22), inset 0 1px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(28px) saturate(1.08);
}
.device-showcase::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: -14%;
  bottom: 6%;
  width: 84%;
  height: 26%;
  border: 2px solid rgba(255, 126, 151, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255, 107, 141, 0.28), inset 0 0 24px rgba(142, 105, 236, 0.18);
  filter: blur(0.2px);
  transform: rotate(-13deg);
  pointer-events: none;
}
.showcase-glow {
  position: absolute;
  z-index: 0;
  top: 10%;
  right: -2%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.76), rgba(255, 198, 201, 0.28) 36%, rgba(150, 112, 235, 0.13) 62%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
}
.showcase-meta {
  position: relative;
  z-index: 8;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 24px;
  padding: 4px 2px 0;
  border-bottom: 1px solid rgba(62, 33, 78, 0.1);
  color: var(--ink-faint);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.showcase-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.showcase-meta img { width: 21px; }
.showcase-meta b { color: var(--coral-deep); font-size: inherit; }
.device-stage {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 2 / 4;
  min-width: 0;
  min-height: 0;
  perspective: 1400px;
}
.phone-mockup {
  position: absolute;
  z-index: 4;
  height: min(59vh, 530px);
  aspect-ratio: 828 / 1800;
  padding: 6px;
  border-radius: 42px;
  background: linear-gradient(145deg, #4b4750 0%, #0b0910 18%, #252129 68%, #6c6870 100%);
  box-shadow: 0 38px 66px rgba(31, 12, 43, 0.32), 0 9px 20px rgba(31, 12, 43, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.23);
  transform-style: preserve-3d;
  transition: opacity 300ms ease, transform 520ms var(--ease-cinema);
}
.phone-mockup::before {
  content: '';
  position: absolute;
  z-index: 10;
  top: 13px;
  left: 50%;
  width: 31%;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: #060509;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
}
.phone-mockup::after {
  content: '';
  position: absolute;
  z-index: 11;
  inset: 7px;
  border-radius: 35px;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.2), transparent 16%, transparent 72%, rgba(255, 255, 255, 0.09));
  pointer-events: none;
  mix-blend-mode: screen;
}
.phone-mockup__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #fff7f2;
}
.phone-mockup__screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 240ms ease, transform 440ms var(--ease-cinema);
}
.phone-mockup__screen > img.is-changing { opacity: 0.16; transform: scale(1.025); }
.phone-mockup--front {
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 85px) rotateY(-3deg);
}
.phone-mockup--rear {
  z-index: 2;
  height: min(51vh, 458px);
  opacity: 0.76;
  filter: saturate(0.88) brightness(0.98);
}
.phone-mockup--rear-left { top: 52%; left: 22%; transform: translate3d(-50%, -50%, -28px) rotate(-8deg) rotateY(8deg); }
.phone-mockup--rear-right { top: 48%; left: 79%; transform: translate3d(-50%, -50%, -40px) rotate(8deg) rotateY(-8deg); }
.showcase-caption,
.showcase-explainer {
  position: relative;
  z-index: 6;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  max-width: 300px;
  margin: 0 0 30px 30px;
}
.showcase-caption > span,
.showcase-explainer > span { color: var(--coral-deep); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.13em; }
.showcase-caption > strong,
.showcase-explainer h3 { display: block; margin-top: 8px; font-family: var(--font-display); font-size: clamp(1.8rem, 2.2vw, 2.65rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; }
.showcase-caption > p,
.showcase-explainer > p { margin-top: 12px; color: var(--ink-soft); font-size: 0.69rem; line-height: 1.62; }
.mockup-selector {
  position: relative;
  z-index: 9;
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  display: flex;
  gap: 5px;
  margin: 0 0 25px 26px;
  padding: 5px;
  background: rgba(255, 250, 246, 0.69);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(53, 25, 67, 0.11);
  backdrop-filter: blur(15px);
}
.mockup-selector button {
  min-height: 35px;
  padding: 0 13px;
  color: var(--ink-faint);
  border-radius: 11px;
  font-size: 0.59rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 220ms ease, background 220ms ease, transform 220ms var(--ease-cinema);
}
.mockup-selector button:hover { color: var(--ink); transform: translateY(-1px); }
.mockup-selector button.is-active { color: #fff; background: var(--ink); box-shadow: 0 8px 18px rgba(37, 16, 55, 0.2); }
.mockup-selector--steps button { display: grid; place-items: center; gap: 1px; min-width: 62px; padding: 5px 8px; }
.mockup-selector--steps button span { color: var(--coral); font-size: 0.43rem; letter-spacing: 0.1em; }
.mockup-selector--steps button.is-active span { color: #ffb5bb; }
.device-showcase--onboarding .device-stage { grid-row: 2 / 4; }
.device-showcase--onboarding .phone-mockup--front { height: min(55vh, 495px); }
.device-showcase--onboarding .phone-mockup--rear { height: min(47vh, 420px); }

/* A narrow, high-end screen showroom inside the feature explorer. */
.feature-phone-stage { isolation: isolate; }
.feature-phone-stage::before {
  inset: 8% -18% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78), rgba(255, 183, 191, 0.27) 42%, rgba(137, 98, 225, 0.17) 64%, transparent 74%);
  filter: blur(10px);
}
.feature-orbit { position: absolute; z-index: 0; width: 130%; height: 31%; border: 2px solid rgba(255, 103, 139, 0.28); border-radius: 50%; box-shadow: 0 0 24px rgba(255, 103, 139, 0.19); transform: rotate(-12deg); }
.feature-phone-stage .phone-mockup--feature-front {
  z-index: 3;
  top: 50%;
  left: 53%;
  height: 88%;
  transform: translate3d(-50%, -50%, 50px) rotateY(-4deg);
}
.feature-phone-stage .phone-mockup--feature-rear {
  z-index: 1;
  top: 51%;
  left: 22%;
  height: 72%;
  opacity: 0.68;
  transform: translate3d(-50%, -50%, -20px) rotate(-8deg);
}
.feature-detail__art > span { z-index: 8; }
.feature-detail__art #featureArt { transition: opacity 240ms ease, transform 420ms var(--ease-cinema); }
.feature-detail__art #featureArt.is-changing { opacity: 0.12; transform: scale(1.025); }

.device-showcase--final .final-showcase-note {
  position: relative;
  z-index: 7;
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 30px 28px;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 600;
}
.final-showcase-note i { width: 17px; height: 1px; background: linear-gradient(90deg, var(--coral), var(--violet)); }

/* Persistent story rail */
.story-progress { position: absolute; z-index: 50; right: clamp(30px, 6vw, 96px); bottom: 21px; left: clamp(30px, 6vw, 96px); height: 66px; display: grid; grid-template-columns: repeat(8, 1fr); align-items: start; padding-top: 9px; }
.story-progress__line { position: absolute; top: 14px; right: 6.25%; left: 6.25%; height: 1px; overflow: hidden; background: rgba(50, 25, 69, 0.24); }
.story-progress__line i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--coral), var(--violet)); transform-origin: left; }
.story-progress button { position: relative; display: grid; justify-items: center; gap: 9px; color: rgba(45, 24, 60, 0.58); font-size: 0.58rem; font-weight: 600; }
.story-progress button > i { position: relative; z-index: 2; width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 247, 241, 0.94); border: 1px solid currentColor; box-shadow: 0 0 0 4px rgba(255, 247, 241, 0.38); transition: transform 300ms var(--ease-cinema), color 300ms ease, background 300ms ease; }
.story-progress button:hover > i { transform: scale(1.25); }
.story-progress button.is-active { color: var(--coral-deep); }
.story-progress button.is-active > i { width: 17px; height: 17px; margin-top: -3px; background: var(--coral); border: 4px solid #fff7f1; box-shadow: 0 0 0 2px var(--coral), 0 0 22px rgba(255, 98, 107, 0.55); }
.film-stage[data-tone='twilight'] .story-progress button { color: rgba(255, 255, 255, 0.62); }
.film-stage[data-tone='twilight'] .story-progress__line { background: rgba(255, 255, 255, 0.28); }
.film-stage[data-tone='twilight'] .story-progress button > i { background: rgba(47, 26, 70, 0.9); box-shadow: 0 0 0 4px rgba(47, 26, 70, 0.3); }
.film-stage[data-tone='twilight'] .story-progress button.is-active { color: #ffafb4; }
.film-stage[data-tone='twilight'] .story-progress button.is-active > i { background: var(--coral); border-color: #39205a; }
.chapter-status { display: none; }

.noscript { position: fixed; z-index: 1000; right: 12px; bottom: 12px; left: 12px; padding: 12px; color: #fff; background: var(--ink); text-align: center; }

/* Trust hand-off: the cinematic story resolves into a quiet, editorial legal center. */
.trust-entry {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-content: center;
  overflow: hidden;
  padding: clamp(90px, 10vw, 150px) clamp(28px, 6vw, 96px) 70px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 22%, rgba(137, 98, 225, 0.12), transparent 34%),
    radial-gradient(circle at 5% 87%, rgba(255, 138, 142, 0.12), transparent 32%),
    #fff9f4;
  border-top: 1px solid rgba(54, 28, 72, 0.1);
}
.trust-entry::before {
  content: '';
  position: absolute;
  top: -34%;
  right: -12%;
  width: min(56vw, 780px);
  aspect-ratio: 1;
  border: 1px solid rgba(132, 96, 232, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 66px rgba(255, 255, 255, 0.24), 0 0 0 67px rgba(255, 98, 107, 0.08), 0 0 0 142px rgba(255, 255, 255, 0.2), 0 0 0 143px rgba(132, 96, 232, 0.07), inset 20px 34px 110px rgba(255, 98, 107, 0.08);
  pointer-events: none;
}
.trust-entry__halo { position: absolute; top: 36%; right: 7%; width: 360px; height: 3px; background: linear-gradient(90deg, transparent, rgba(255, 98, 107, 0.7), rgba(132, 96, 232, 0.45), transparent); filter: blur(2px); transform: rotate(-27deg); box-shadow: 0 0 28px rgba(255, 98, 107, 0.42); }
.trust-entry__inner { position: relative; z-index: 2; width: min(100%, 1380px); margin-inline: auto; display: grid; grid-template-columns: minmax(380px, 0.74fr) minmax(520px, 1.26fr); align-items: center; gap: clamp(56px, 8vw, 130px); }
.trust-entry__copy h2 { margin-top: 16px; font-family: var(--font-display); font-size: clamp(3.7rem, 6vw, 6.6rem); font-weight: 400; line-height: 0.92; letter-spacing: -0.055em; }
.trust-entry__copy > p:not(.mira-speaks) { max-width: 560px; margin-top: 27px; color: var(--ink-soft); font-size: clamp(0.9rem, 1.15vw, 1.05rem); line-height: 1.75; }
.trust-entry__action { margin-top: 32px; }
.trust-entry__index { position: relative; z-index: 2; border-top: 1px solid var(--line); }
.trust-entry__index a { min-height: 88px; display: grid; grid-template-columns: 48px minmax(200px, 0.9fr) minmax(190px, 1fr) 34px; align-items: center; gap: 20px; padding: 12px 8px; border-bottom: 1px solid var(--line); transition: padding 260ms var(--ease-cinema), background 220ms ease; }
.trust-entry__index a:hover { padding-inline: 16px; background: rgba(255, 255, 255, 0.55); }
.trust-entry__index span { color: var(--coral); font-family: var(--font-display); font-size: 1.35rem; }
.trust-entry__index strong { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 400; line-height: 1.15; }
.trust-entry__index small { color: var(--ink-faint); font-size: 0.62rem; line-height: 1.55; }
.trust-entry__index i { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-style: normal; transition: transform 220ms var(--ease-cinema), background 220ms ease; }
.trust-entry__index a:hover i { background: #fff; transform: translateX(3px); }
.trust-entry__principle { position: relative; z-index: 2; width: min(100%, 1380px); margin: 58px auto 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.68rem; }
.trust-entry__principle strong { color: var(--ink); font-family: var(--font-display); font-size: 1rem; font-weight: 400; }

.world-footer { padding: 0 clamp(28px, 6vw, 96px); color: var(--ink); background: #f5ece7; border-top: 1px solid var(--line); }
.world-footer__main { width: min(100%, 1380px); min-height: 150px; margin-inline: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.world-footer .brand { justify-self: start; }
.world-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 13px 25px; }
.world-footer nav a { color: var(--ink-soft); font-size: 0.68rem; font-weight: 600; }
.world-footer nav a:hover { color: var(--coral-deep); }
.world-footer__bottom { width: min(100%, 1380px); min-height: 54px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.58rem; }

/* Laptop */
@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .chapter { padding-right: 32px; padding-left: 32px; }
  .chapter-layout, .chapter-layout--wide { grid-template-columns: minmax(280px, 0.58fr) minmax(620px, 1.42fr); gap: 28px; }
  .features-stage { grid-template-columns: 300px minmax(650px, 1fr); gap: 28px; }
  .feature-detail__copy { padding: 30px; }
  .world-layout { grid-template-columns: 340px 1fr; }
  .profile-layout { grid-template-columns: 0.7fr 1.3fr; gap: 40px; }
  .story-progress { right: 28px; left: 28px; }
  .trust-entry__inner { grid-template-columns: minmax(330px, 0.8fr) minmax(460px, 1.2fr); gap: 50px; }
}

/* Tablet / compact desktop */
@media (max-width: 960px) {
  :root { --header-height: 70px; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 20px; }
  .site-nav { position: fixed; top: 70px; right: 14px; left: 14px; display: grid; gap: 0; max-height: calc(100svh - 86px); padding: 8px 18px; overflow-y: auto; color: var(--ink); background: rgba(255, 250, 246, 0.97); border: 1px solid var(--line-light); border-radius: 20px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 220ms ease, transform 220ms ease, visibility 220ms; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav > button, .site-nav > a, .nav-dropdown__trigger { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); text-align: left; }
  .site-nav > :last-child { border-bottom: 0; }
  .site-nav > button::after, .site-nav > a::after, .nav-dropdown__trigger::after { display: none; }
  .nav-dropdown { border-bottom: 0; }
  .nav-dropdown__trigger { color: var(--coral-deep); font-size: 0.72rem; letter-spacing: 0.04em; }
  .nav-dropdown__panel {
    position: static;
    width: 100%;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: max-height 340ms var(--ease-cinema), opacity 220ms ease, visibility 220ms;
  }
  .nav-dropdown__panel::before { display: none; }
  .nav-dropdown.is-open .nav-dropdown__panel { max-height: 510px; padding: 8px 0 5px; opacity: 1; visibility: visible; transform: none; }
  .nav-legal-home { min-height: 74px; padding: 13px 15px; border-radius: 14px; }
  .nav-legal-home strong { font-size: 1.2rem; }
  .nav-legal-grid { grid-template-columns: 1fr; margin-top: 7px; border-radius: 13px; }
  .nav-legal-grid a, .nav-legal-grid a:last-child { grid-column: auto; min-height: 56px; padding: 9px 14px; }
  .nav-legal-grid a:hover { padding-left: 17px; }
  .header-actions { grid-column: 2; }
  .header-cta { min-height: 44px; padding: 0 17px; border-radius: 14px; font-size: 0.69rem; }
  .menu-button { display: grid; }
  .chapter { padding: 84px 24px 90px; }
  .welcome-copy { width: min(590px, 72vw); }
  .welcome-copy h1 { font-size: clamp(3.8rem, 8.5vw, 6rem); }
  .hero-device-tease { right: 28px; width: 220px; opacity: 0.92; }
  .hero-device-tease__note { display: none; }
  .chapter-layout, .chapter-layout--wide { grid-template-columns: 0.55fr 1.45fr; gap: 20px; }
  .chapter-copy h2 { font-size: clamp(2.8rem, 5.7vw, 4.7rem); }
  .app-window { padding-right: 20px; padding-left: 20px; }
  .today-dashboard { grid-template-columns: 0.7fr 1.3fr; }
  .cycle-compass::before { width: 150px; height: 150px; }
  .daily-pattern { grid-template-columns: 70px 1fr; }
  .daily-pattern p { display: none; }
  .features-stage { grid-template-columns: 0.45fr 1.55fr; gap: 20px; }
  .feature-heading h2 { font-size: clamp(2.7rem, 5vw, 4.2rem); }
  .feature-detail { grid-template-columns: 1.15fr 0.85fr; }
  .world-layout { grid-template-columns: 0.6fr 1.4fr; }
  .world-canvas { width: min(67vw, 650px); }
  .profile-layout { grid-template-columns: 0.7fr 1.3fr; gap: 26px; }
  .device-showcase { grid-template-columns: minmax(145px, 0.4fr) minmax(270px, 0.6fr); }
  .showcase-caption, .showcase-explainer { margin-left: 22px; }
  .mockup-selector { margin-left: 18px; }
  .support-list > button, .profile-list > button { min-height: 68px; }
  .story-progress span { font-size: 0.52rem; }
  .trust-entry { min-height: auto; }
  .trust-entry__inner { grid-template-columns: 1fr; gap: 50px; }
  .trust-entry__copy { max-width: 690px; }
  .trust-entry__index { width: 100%; }
}

/* Phone */
@media (max-width: 700px) {
  body { font-size: 15px; }
  .brand span { font-size: 1rem; }
  .brand img { width: 32px; height: 32px; }
  .site-header { padding: 0 14px; gap: 10px; }
  .header-actions { gap: 7px; }
  .header-cta { min-height: 42px; padding: 0 12px; gap: 7px; border-radius: 13px; }
  .header-cta__desktop { display: none; }
  .header-cta__mobile { display: inline; }
  .header-cta .apple-mark { font-size: 1.05rem; }
  .header-cta img { width: 12px; height: 12px; }
  .menu-button { width: 42px; height: 42px; }
  .story-film { height: 960svh; }
  .film-layer--welcome { object-position: 63% center; }
  .film-grade { background: linear-gradient(180deg, rgba(255, 247, 240, 0.72) 0%, rgba(255, 245, 237, 0.3) 48%, rgba(255, 244, 236, 0.72) 100%); }
  .film-stage[data-tone='twilight'] .film-grade { background: linear-gradient(180deg, rgba(27, 12, 46, 0.58), rgba(27, 12, 46, 0.2) 46%, rgba(27, 12, 46, 0.75)); }
  .story-ribbon { right: -76%; bottom: -3%; width: 240vw; opacity: calc(var(--ribbon-opacity) * 0.72); }
  .chapter { align-items: stretch; padding: 76px 16px 78px; }
  .chapter--welcome { align-items: center; }
  .welcome-copy { width: 100%; padding: 58px 4px 62px; }
  .mira-intro { margin-bottom: 12px; font-size: 0.64rem; letter-spacing: 0.2em; }
  .welcome-copy h1 { max-width: 360px; font-size: clamp(3rem, 13.8vw, 4.15rem); line-height: 0.92; }
  .chapter-lead { width: 92%; max-width: 355px; margin-top: 17px; font-size: 0.74rem; line-height: 1.57; }
  .chapter-actions { width: min(100%, 355px); flex-direction: column; align-items: stretch; gap: 9px; margin-top: 20px; }
  .primary-action { width: 100%; min-width: 0; min-height: 51px; padding: 0 16px; border-radius: 15px; font-size: 0.74rem; }
  .chapter--welcome .text-action { width: 100%; min-height: 46px; justify-content: center; padding: 0 15px; border: 1px solid rgba(36, 16, 58, 0.24); border-radius: 14px; background: rgba(255, 250, 246, 0.28); font-size: 0.69rem; backdrop-filter: blur(8px); }
  .platform-note { margin-top: 9px; font-size: 0.55rem; }
  .scroll-story-cue { display: none; }
  .chapter-layout, .chapter-layout--wide { height: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-content: center; gap: 14px; }
  .chapter-copy, .chapter-copy--compact { max-width: 100%; padding: 0 4px; }
  .mira-speaks { margin-bottom: 5px; font-size: 0.61rem; }
  .chapter-copy h2, .feature-heading h2, .profile-copy h2 { font-size: clamp(2.3rem, 10vw, 3.2rem); line-height: 0.95; }
  .chapter-copy > p:not(.mira-speaks, .chapter-note, .live-reading), .feature-heading > p:last-child, .profile-copy > p:not(.mira-speaks) { margin-top: 8px; font-size: 0.68rem; line-height: 1.5; }
  .chapter-note { margin-top: 8px; padding-left: 11px; font-size: 0.57rem; line-height: 1.45; }
  .live-reading { margin-top: 9px; font-size: 0.66rem; }
  .live-reading strong { font-size: 0.94rem; }
  .product-canvas, .app-window, .support-window, .profile-window { border-radius: 24px; }
  .onboarding-canvas { min-height: 0; height: 100%; max-height: 430px; padding: 14px; }
  .canvas-topbar { min-height: 28px; }
  .canvas-brand { font-size: 0.56rem; }
  .onboarding-flow { margin-top: 9px; overflow-x: auto; grid-template-columns: repeat(4, minmax(112px, 1fr)); }
  .onboarding-flow button { min-height: 54px; padding: 7px 8px; font-size: 0.55rem; }
  .onboarding-detail { width: 100%; min-height: 180px; padding: 18px 0 10px; }
  .onboarding-detail h3 { font-size: 1.65rem; }
  .onboarding-detail p { margin-top: 8px; font-size: 0.6rem; line-height: 1.45; }
  .consent-lines { margin-top: 12px; }
  .app-window { min-height: 0; height: 100%; max-height: 438px; padding: 12px 12px 51px; }
  .app-window__top { min-height: 28px; }
  .app-window__top > span { font-size: 0.53rem; }
  .app-window__top > strong { font-size: 1.05rem; }
  .app-window__top > button { width: 30px; height: 30px; }
  .today-dashboard { grid-template-columns: 0.64fr 1.36fr; gap: 7px; margin-top: 7px; }
  .cycle-compass { min-height: 180px; }
  .cycle-compass::before { width: 118px; height: 118px; }
  .cycle-compass strong { font-size: 2rem; }
  .cycle-compass span, .cycle-compass small { font-size: 0.5rem; }
  .checkin-panel { padding: 10px; border-radius: 17px; }
  .checkin-heading strong { font-size: 0.9rem; }
  .checkin-heading span, .checkin-heading small { font-size: 0.48rem; }
  .mood-row, .energy-row { min-height: 40px; gap: 2px; }
  .mood-row { grid-template-columns: 48px repeat(3, auto); }
  .energy-row { grid-template-columns: 48px repeat(5, 22px); }
  .mood-row > span, .energy-row > span { font-size: 0.5rem; }
  .mood-row button { padding: 4px 5px; font-size: 0.46rem; }
  .energy-row button { width: 21px; height: 21px; font-size: 0.48rem; }
  .signal-row { min-height: 36px; grid-template-columns: 1fr auto 13px; }
  .signal-row span, .signal-row strong { font-size: 0.49rem; }
  .daily-pattern { min-height: 70px; grid-template-columns: 52px 1fr; gap: 9px; margin-top: 7px; padding: 7px 8px; }
  .daily-pattern > span { font-size: 0.48rem; }
  .pattern-line { height: 45px; }
  .app-tabs { height: 45px; padding: 0 5px; }
  .app-tabs button { font-size: 0.48rem; }
  .app-tabs button::before { top: 6px; }
  .calendar-head > span { font-size: 1.02rem; }
  .calendar-head > strong { font-size: 0.55rem; }
  .calendar-summary { margin-top: 7px; border-radius: 12px; }
  .calendar-summary div { padding: 8px 7px; }
  .calendar-summary span { font-size: 0.45rem; }
  .calendar-summary strong { font-size: 0.52rem; }
  .calendar-body { grid-template-columns: 1fr 0.72fr; gap: 8px; margin-top: 9px; }
  .calendar-grid { gap: 4px; }
  .calendar-grid > span { font-size: 0.44rem; }
  .calendar-grid button { font-size: 0.52rem; }
  .day-story { padding: 8px; }
  .day-story > span { font-size: 0.46rem; }
  .day-story h3 { font-size: 1rem; }
  .day-story ul { margin-top: 6px; }
  .day-story li { min-height: 28px; font-size: 0.48rem; }
  .features-stage { height: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
  .feature-heading { max-width: 100%; padding: 0 4px; }
  .feature-heading h2 { font-size: 2.6rem; }
  .feature-heading > p:last-child { margin-top: 7px; font-size: 0.62rem; }
  .feature-explorer { border-radius: 24px; }
  .feature-explorer { height: 100%; }
  .feature-rail { padding: 8px; }
  .feature-rail button { min-height: 32px; padding: 0 11px; font-size: 0.52rem; }
  .feature-detail { min-height: 0; height: calc(100% - 49px); grid-template-columns: 0.92fr 1.08fr; }
  .feature-detail__copy { padding: 16px; }
  .feature-detail__copy > span { font-size: 0.48rem; }
  .feature-detail__copy h3 { font-size: 1.8rem; }
  .feature-detail__copy > p { margin-top: 8px; font-size: 0.56rem; line-height: 1.45; }
  .feature-detail__copy ul { margin-top: 8px; }
  .feature-detail__copy li { min-height: 24px; padding-left: 12px; font-size: 0.5rem; }
  .feature-detail__copy li::before { width: 4px; height: 4px; }
  .feature-action { min-height: 34px; margin-top: 10px; padding: 0 11px; font-size: 0.5rem; }
  .feature-detail__art > span { right: 6px; bottom: 6px; left: 6px; padding: 6px; font-size: 0.43rem; }
  .world-layout { height: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
  .chapter-copy--world h2 { font-size: 2.7rem; }
  .world-canvas { justify-self: stretch; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 25px; }
  .world-canvas figcaption button { min-height: 30px; padding: 0 10px; border-radius: 10px; font-size: 0.5rem; }
  .world-canvas > p { right: 8px; bottom: 8px; left: 8px; padding: 7px 9px; font-size: 0.47rem; }
  .support-window, .profile-window { min-height: 0; height: 100%; max-height: 440px; padding: 14px 14px 49px; }
  .window-title { padding-bottom: 8px; }
  .window-title span { font-size: 1.05rem; }
  .window-title strong { font-size: 0.52rem; }
  .support-list > button, .profile-list > button { min-height: 55px; grid-template-columns: 32px 1fr auto; gap: 8px; padding: 4px; }
  .profile-list > button { grid-template-columns: 32px 1fr; }
  .support-list > button > span:first-child, .profile-list > button > span:first-child { width: 30px; height: 30px; }
  .support-list > button > span:first-child img, .profile-list > button > span:first-child img { width: 15px; }
  .support-list strong, .profile-list strong { font-size: 0.86rem; }
  .support-list small, .profile-list small { font-size: 0.46rem; }
  .coming-soon { font-size: 0.43rem; }
  .profile-layout { height: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-content: center; gap: 12px; }
  .chapter--profile .profile-layout { transform: translateY(60px); }
  .profile-copy { max-width: 100%; padding: 0 4px; }
  .download-benefits { grid-template-columns: 1fr; gap: 3px; margin-top: 7px; }
  .download-benefits li { padding-left: 13px; font-size: 0.5rem; line-height: 1.35; }
  .download-benefits li::before { top: 0.55em; width: 4px; height: 4px; box-shadow: none; }
  .profile-copy .primary-action { width: min(100%, 300px); min-height: 42px; margin-top: 8px; }
  .profile-copy > .download-note { margin-top: 5px; font-size: 0.46rem; }
  .chapter--profile .profile-window { max-height: 310px; }
  .profile-detail { min-height: 33px; margin-top: 7px; padding: 7px; font-size: 0.46rem; }
  .hero-device-tease {
    top: auto;
    right: -30px;
    bottom: 84px;
    width: 155px;
    height: 330px;
    opacity: 0.94;
    transform: rotate(5deg);
  }
  .hero-device-tease__note { display: none; }
  .hero-device-tease .phone-mockup { height: 315px; }
  .welcome-copy { position: relative; z-index: 4; }
  .welcome-copy::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 3% -18px 1% -18px;
    background: radial-gradient(ellipse at 20% 46%, rgba(255, 244, 235, 0.94), rgba(255, 244, 235, 0.68) 58%, transparent 77%);
    filter: blur(5px);
  }
  .chapter-layout > .device-showcase,
  .profile-layout > .device-showcase { min-height: 0; }
  .device-showcase {
    height: 100%;
    min-height: 0;
    max-height: 475px;
    grid-template-columns: 1fr;
    grid-template-rows: 38px minmax(0, 1fr) 49px;
    border-radius: 27px;
    box-shadow: 0 22px 60px rgba(50, 21, 67, 0.2), inset 0 1px rgba(255, 255, 255, 0.7);
  }
  .device-showcase::after { right: -22%; bottom: 11%; width: 102%; height: 23%; }
  .showcase-glow { top: 1%; right: 3%; width: 79%; }
  .showcase-meta { height: 38px; margin: 0 12px; font-size: 0.42rem; }
  .showcase-meta img { width: 17px; }
  .device-stage,
  .device-showcase--onboarding .device-stage {
    grid-column: 1;
    grid-row: 2;
  }
  .phone-mockup,
  .device-showcase--onboarding .phone-mockup--front {
    height: min(38svh, 345px);
    padding: 4px;
    border-radius: 29px;
    box-shadow: 0 25px 43px rgba(31, 12, 43, 0.3), 0 6px 14px rgba(31, 12, 43, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }
  .phone-mockup::before { top: 9px; height: 12px; }
  .phone-mockup::after { inset: 5px; border-radius: 24px; }
  .phone-mockup__screen { border-radius: 25px; }
  .phone-mockup--front { left: 56%; }
  .phone-mockup--rear,
  .device-showcase--onboarding .phone-mockup--rear {
    height: min(33svh, 296px);
    opacity: 0.7;
  }
  .phone-mockup--rear-left { left: 20%; }
  .phone-mockup--rear-right { display: none; }
  .showcase-caption { display: none; }
  .showcase-explainer {
    position: absolute;
    top: 53px;
    left: 13px;
    z-index: 7;
    display: block;
    width: 116px;
    margin: 0;
    padding: 10px;
    background: rgba(255, 250, 246, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 13px;
    box-shadow: 0 12px 30px rgba(53, 25, 67, 0.12);
    backdrop-filter: blur(14px);
  }
  .showcase-explainer > span { font-size: 0.39rem; }
  .showcase-explainer h3 { margin-top: 4px; font-size: 1rem; }
  .showcase-explainer > p { display: none; }
  .mockup-selector {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    align-self: center;
    max-width: calc(100% - 18px);
    margin: 0;
    padding: 4px;
    overflow-x: auto;
    border-radius: 13px;
    scrollbar-width: none;
  }
  .mockup-selector::-webkit-scrollbar { display: none; }
  .mockup-selector button { min-height: 31px; padding: 0 12px; font-size: 0.49rem; }
  .mockup-selector--steps button { min-width: 62px; padding: 3px 8px; }
  .mockup-selector--steps button span { font-size: 0.36rem; }
  .feature-phone-stage .phone-mockup--feature-front { left: 52%; height: 79%; padding: 3px; border-radius: 23px; }
  .feature-phone-stage .phone-mockup--feature-rear { left: 9%; height: 59%; padding: 3px; border-radius: 21px; opacity: 0.46; }
  .feature-phone-stage .phone-mockup::before { top: 7px; height: 9px; }
  .feature-phone-stage .phone-mockup::after { inset: 4px; border-radius: 18px; }
  .feature-phone-stage .phone-mockup__screen { border-radius: 19px; }
  .device-showcase--final .final-showcase-note { display: none; }
  .chapter--profile .profile-layout { transform: none; }
  .story-progress { right: 14px; bottom: 10px; left: 14px; height: 53px; padding-top: 8px; }
  .story-progress__line { top: 12px; }
  .story-progress button { gap: 6px; }
  .story-progress button > i { width: 8px; height: 8px; }
  .story-progress button.is-active > i { width: 14px; height: 14px; }
  .story-progress button span { display: none; }
  .story-progress button.is-active span { display: block; position: absolute; top: 23px; white-space: nowrap; font-size: 0.46rem; }
  .chapter-status { position: absolute; z-index: 52; top: 74px; right: 15px; display: flex; align-items: center; gap: 7px; padding: 6px 8px; color: var(--ink-soft); background: rgba(255, 250, 246, 0.7); border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 10px; font-size: 0.46rem; backdrop-filter: blur(10px); }
  .chapter-status b { color: var(--coral-deep); font-size: 0.44rem; }
  .film-stage[data-tone='twilight'] .chapter-status { color: #fff; background: rgba(40, 19, 63, 0.6); border-color: rgba(255, 255, 255, 0.18); }
}

@media (max-width: 430px) and (max-height: 760px) {
  .chapter { padding-top: 70px; padding-bottom: 66px; }
  .welcome-copy { padding-top: 48px; padding-bottom: 44px; }
  .welcome-copy h1 { font-size: 2.9rem; }
  .chapter-copy h2, .feature-heading h2, .profile-copy h2 { font-size: 2.2rem; }
  .onboarding-canvas, .app-window, .support-window, .profile-window { max-height: 390px; }
  .device-showcase { max-height: 400px; }
  .phone-mockup, .device-showcase--onboarding .phone-mockup--front { height: min(35svh, 285px); }
  .phone-mockup--rear, .device-showcase--onboarding .phone-mockup--rear { height: min(30svh, 244px); }
  .cycle-compass { min-height: 155px; }
  .support-list > button, .profile-list > button { min-height: 50px; }
}

@media (max-width: 700px) {
  .trust-entry { padding: 84px 18px 52px; }
  .trust-entry::before { top: -9%; right: -58%; width: 125vw; opacity: 0.7; }
  .trust-entry__halo { top: 18%; right: -22%; width: 260px; opacity: 0.7; }
  .trust-entry__inner { gap: 42px; }
  .trust-entry__copy h2 { font-size: clamp(3.8rem, 18vw, 5.1rem); }
  .trust-entry__copy > p:not(.mira-speaks) { font-size: 0.79rem; }
  .trust-entry__action { width: min(100%, 330px); }
  .trust-entry__index a { min-height: 98px; grid-template-columns: 42px 1fr 34px; gap: 12px; padding-block: 14px; }
  .trust-entry__index span { font-size: 1.2rem; }
  .trust-entry__index strong { font-size: 1.23rem; }
  .trust-entry__index small { grid-column: 2; margin-top: -10px; font-size: 0.56rem; }
  .trust-entry__index i { grid-column: 3; grid-row: 1 / 3; width: 32px; height: 32px; }
  .trust-entry__principle { margin-top: 40px; font-size: 0.59rem; line-height: 1.55; }
  .trust-entry__principle strong { display: block; margin-bottom: 4px; }
  .world-footer { padding-inline: 18px; }
  .world-footer__main { grid-template-columns: 1fr; gap: 24px; padding-block: 38px; }
  .world-footer nav { justify-content: flex-start; gap: 12px 20px; }
  .world-footer__bottom { min-height: 82px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .film-layer { transform: none !important; }
  .story-ribbon { transform: none !important; }
}
