/* ahval — promotional site.
   Colors mirror the app's asset catalog and AccentPalette; type is Literata + the system sans. */

/* Registered so accent changes animate across the whole page. */
@property --l-accent { syntax: '<color>'; inherits: true; initial-value: #C15C6E; }
@property --l-accent-deep { syntax: '<color>'; inherits: true; initial-value: #9C4456; }
@property --l-accent-soft { syntax: '<color>'; inherits: true; initial-value: #F8E3E7; }
@property --l-accent-line { syntax: '<color>'; inherits: true; initial-value: #EFC8D0; }
@property --l-flame { syntax: '<color>'; inherits: true; initial-value: #D98879; }
@property --d-accent { syntax: '<color>'; inherits: true; initial-value: #DD8092; }
@property --d-accent-deep { syntax: '<color>'; inherits: true; initial-value: #E9A7B4; }
@property --d-accent-soft { syntax: '<color>'; inherits: true; initial-value: #3E1A24; }
@property --d-accent-line { syntax: '<color>'; inherits: true; initial-value: #5E2A38; }
@property --d-flame { syntax: '<color>'; inherits: true; initial-value: #D98879; }

:root {
  --joyful: #FF6325;
  --calm: #F4BB21;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 52px;
  --gutter: 22px;
  --max: 1080px;
  transition: --l-accent .7s var(--ease), --l-accent-deep .7s var(--ease), --l-accent-soft .7s var(--ease),
    --l-accent-line .7s var(--ease), --l-flame .7s var(--ease), --d-accent .7s var(--ease),
    --d-accent-deep .7s var(--ease), --d-accent-soft .7s var(--ease), --d-accent-line .7s var(--ease),
    --d-flame .7s var(--ease);
}

/* Light tokens (default, and any subtree pinned to light). */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #FBF7F0;
  --bg2: #F4ECDD;
  --surface-warm: #FCF8F1;
  --card: #FFFCF8;
  --elevated: #FFFFFF;
  --text: #2A241E;
  --text2: #6E645A;
  --text3: #A89B89;
  --hair: rgba(42, 36, 30, .09);
  --hair-strong: rgba(42, 36, 30, .15);
  --empty: #EDE4D4;
  --reflective: #68689F;
  --accent: var(--l-accent);
  --accent-deep: var(--l-accent-deep);
  --accent-soft: var(--l-accent-soft);
  --accent-line: var(--l-accent-line);
  --flame: var(--l-flame);
  --on-accent: #FFFFFF;
  --glass: rgba(255, 255, 255, .6);
  --glass-edge: rgba(255, 255, 255, .9);
  --shadow: 92 60 34;
  --map-land: #F0E7D7;
  --map-park: #DCE5C9;
  --map-water: #C6D7E2;
  --map-road: #FFFFFF;
  --map-street: rgba(255, 255, 255, .7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #181310;
    --bg2: #120E0B;
    --surface-warm: #1F1812;
    --card: #1F1812;
    --elevated: #2A221A;
    --text: #EFE6D8;
    --text2: #B5A692;
    --text3: #7A6D5C;
    --hair: rgba(239, 230, 216, .09);
    --hair-strong: rgba(239, 230, 216, .16);
    --empty: #2B231A;
    --reflective: #8787C0;
    --accent: var(--d-accent);
    --accent-deep: var(--d-accent-deep);
    --accent-soft: var(--d-accent-soft);
    --accent-line: var(--d-accent-line);
    --flame: var(--d-flame);
    --on-accent: #17110D;
    --glass: rgba(58, 48, 38, .55);
    --glass-edge: rgba(255, 255, 255, .13);
    --shadow: 0 0 0;
    --map-land: #241D16;
    --map-park: #26301F;
    --map-water: #1A2932;
    --map-road: #3A3027;
    --map-street: rgba(255, 255, 255, .05);
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181310;
  --bg2: #120E0B;
  --surface-warm: #1F1812;
  --card: #1F1812;
  --elevated: #2A221A;
  --text: #EFE6D8;
  --text2: #B5A692;
  --text3: #7A6D5C;
  --hair: rgba(239, 230, 216, .09);
  --hair-strong: rgba(239, 230, 216, .16);
  --empty: #2B231A;
  --reflective: #8787C0;
  --accent: var(--d-accent);
  --accent-deep: var(--d-accent-deep);
  --accent-soft: var(--d-accent-soft);
  --accent-line: var(--d-accent-line);
  --flame: var(--d-flame);
  --on-accent: #17110D;
  --glass: rgba(58, 48, 38, .55);
  --glass-edge: rgba(255, 255, 255, .13);
  --shadow: 0 0 0;
  --map-land: #241D16;
  --map-park: #26301F;
  --map-water: #1A2932;
  --map-road: #3A3027;
  --map-street: rgba(255, 255, 255, .05);
}

.is-instant,
.is-instant * {
  transition: none !important;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
}

.skip:focus {
  top: 12px;
}

.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.center {
  text-align: center;
}

/* Grid items may shrink below their content (nowrap rails, ellipsized titles). */
.scene-grid > *,
.bento > *,
.lookback-grid > *,
.yours-grid > *,
.mood-orbs > *,
.privacy-cols > * {
  min-width: 0;
}

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent);
}

.h-xl,
.h-lg {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 600;
  text-wrap: balance;
}

.h-xl {
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.h-lg {
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.lede {
  max-width: 660px;
  margin: 0;
  font-size: clamp(19px, 1.9vw, 23px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.014em;
  color: var(--text2);
  text-wrap: pretty;
}

.center .lede {
  margin-inline: auto;
}

.lede strong {
  font-weight: 600;
  color: var(--text);
}

.fineprint {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 0;
}

.section {
  padding: clamp(110px, 14vw, 180px) 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  transition: background-color .3s var(--ease), transform .2s var(--ease);
}

.btn:hover {
  background: var(--accent-deep);
}

.btn:active {
  transform: scale(.97);
}

.btn--small {
  padding: 7px 14px;
  font-size: 13px;
  letter-spacing: 0;
}

.link-arrow {
  font-size: 19px;
  font-weight: 500;
  color: var(--accent);
}

.link-arrow::after {
  content: " \203A";
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px 9px 15px;
  border-radius: 13px;
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 1px #A6A6A6;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  margin-top: -3px;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  text-align: left;
}

.store-badge small {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px #A6A6A6, 0 14px 28px -12px rgba(0, 0, 0, .45);
}

.store-badge--lg {
  padding: 12px 26px 12px 20px;
  border-radius: 16px;
}

.store-badge--lg svg {
  width: 32px;
  height: 32px;
}

.store-badge--lg span {
  font-size: 27px;
}

.store-badge--lg small {
  font-size: 13px;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--hair);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), 100% - 2 * var(--gutter));
  height: 100%;
  margin-inline: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.nav-brand img {
  border-radius: 7px;
  box-shadow: 0 0 0 .5px var(--hair-strong);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--text2);
}

.nav-links a {
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 96px));
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg) 85%);
  pointer-events: none;
}

.hero-aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-aura i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: drift 16s ease-in-out infinite alternate;
}

.hero-aura i:nth-child(1) {
  left: 50%;
  top: 44%;
  width: 640px;
  height: 640px;
  margin-left: -320px;
  background: var(--accent);
  opacity: .22;
}

.hero-aura i:nth-child(2) {
  left: 8%;
  top: 58%;
  width: 380px;
  height: 380px;
  background: var(--joyful);
  opacity: .12;
  animation-delay: -5s;
}

.hero-aura i:nth-child(3) {
  right: 8%;
  top: 54%;
  width: 380px;
  height: 380px;
  background: var(--calm);
  opacity: .14;
  animation-delay: -10s;
}

@keyframes drift {
  from { transform: translate3d(-30px, 10px, 0) scale(1); }
  to { transform: translate3d(30px, -30px, 0) scale(1.12); }
}

.hero-title {
  display: flex;
  justify-content: center;
  margin: 4px 0 18px;
  font-family: var(--serif);
  font-size: clamp(100px, 17vw, 212px);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.055em;
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  filter: blur(16px);
  transform: translateY(.22em);
  animation: letter-in 1.3s var(--ease-out) forwards;
}

.hero-title span:nth-child(1) { animation-delay: .1s; }
.hero-title span:nth-child(2) { animation-delay: .17s; }
.hero-title span:nth-child(3) { animation-delay: .24s; }
.hero-title span:nth-child(4) { animation-delay: .31s; }
.hero-title span:nth-child(5) { animation-delay: .38s; }

@keyframes letter-in {
  to { opacity: 1; filter: blur(0); transform: none; }
}

.hero-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes fade-up {
  to { opacity: 1; transform: none; }
}

.hero-tagline {
  margin: 0 0 34px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 31px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.018em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 30px;
}

.hero-stage {
  --pw: clamp(250px, 26vw, 330px);
  position: relative;
  height: calc(var(--pw) * 2.107 * .9);
  margin-top: clamp(56px, 8vh, 88px);
}

.hero-stage .hero-phone {
  position: absolute;
  top: 0;
  left: 50%;
  animation: phone-in 1.6s var(--ease-out) both;
}

.phone--center {
  z-index: 3;
  translate: -50% calc(var(--hp, 0) * -28px);
  scale: calc(1 + var(--hp, 0) * .04);
  animation-delay: .5s;
}

.phone--left {
  z-index: 1;
  translate: calc(-50% - 80% - var(--hp, 0) * 14%) calc(56px + var(--hp, 0) * 40px);
  rotate: calc(-4deg - var(--hp, 0) * 4deg);
  scale: .86;
  animation-delay: .7s;
}

.phone--right {
  z-index: 2;
  translate: calc(-50% + 80% + var(--hp, 0) * 14%) calc(56px + var(--hp, 0) * 40px);
  rotate: calc(4deg + var(--hp, 0) * 4deg);
  scale: .86;
  animation-delay: .8s;
}

@keyframes phone-in {
  from { opacity: 0; transform: translateY(140px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Phone ---------- */

.phone {
  --pw: 320px;
  --u: calc(var(--pw) / 410);
  position: relative;
  width: var(--pw);
  aspect-ratio: 410 / 864;
  border-radius: calc(var(--u) * 66);
  background: linear-gradient(145deg, #5b5650 0%, #26231f 22%, #1a1816 50%, #2b2723 78%, #5a554e 100%);
  box-shadow:
    inset 0 0 0 calc(var(--u) * 1.2) rgba(255, 255, 255, .12),
    0 calc(var(--u) * 50) calc(var(--u) * 90) calc(var(--u) * -30) rgb(var(--shadow) / .45),
    0 calc(var(--u) * 18) calc(var(--u) * 36) calc(var(--u) * -14) rgb(0 0 0 / .3);
}

.phone::before {
  content: "";
  position: absolute;
  inset: calc(var(--u) * 4);
  border-radius: calc(var(--u) * 62);
  background: #050505;
}

.phone::after {
  content: "";
  position: absolute;
  top: 25%;
  right: calc(var(--u) * -2.6);
  width: calc(var(--u) * 3.4);
  height: 11%;
  border-radius: 0 calc(var(--u) * 3) calc(var(--u) * 3) 0;
  background: linear-gradient(90deg, #2d2a26, #5a554e);
}

.screen {
  position: absolute;
  inset: calc(var(--u) * 10);
  isolation: isolate;
  overflow: hidden;
  border-radius: calc(var(--u) * 56);
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: calc(var(--u) * 10);
  line-height: 1.3;
  letter-spacing: -.01em;
  text-align: left;
}

.island {
  position: absolute;
  top: calc(var(--u) * 11);
  left: 50%;
  z-index: 20;
  width: calc(var(--u) * 124);
  height: calc(var(--u) * 36);
  border-radius: 999px;
  background: #000;
  translate: -50% 0;
}

.status {
  position: relative;
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 54);
  padding: calc(var(--u) * 6) calc(var(--u) * 30) 0 calc(var(--u) * 46);
}

.status-time {
  font-size: calc(var(--u) * 17);
  font-weight: 600;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
}

.s-signal { width: calc(var(--u) * 18); height: calc(var(--u) * 12); }
.s-wifi { width: calc(var(--u) * 16); height: calc(var(--u) * 12); }
.s-battery { width: calc(var(--u) * 27); height: calc(var(--u) * 13); }

.home-indicator {
  position: absolute;
  bottom: calc(var(--u) * 8);
  left: 50%;
  z-index: 20;
  width: calc(var(--u) * 134);
  height: calc(var(--u) * 5);
  border-radius: 9px;
  background: var(--text);
  translate: -50% 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 50);
  padding: 0 calc(var(--u) * 16);
}

.toolbar-right {
  display: flex;
  gap: calc(var(--u) * 10);
}

.g-btn {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 44);
  height: calc(var(--u) * 44);
  border-radius: 50%;
  color: var(--text);
}

.g-btn svg {
  width: calc(var(--u) * 19);
  height: calc(var(--u) * 19);
}

.g-spacer {
  width: calc(var(--u) * 44);
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  backdrop-filter: blur(16px) saturate(1.8);
  box-shadow:
    inset 0 0 0 calc(var(--u, 1px) * .8) var(--glass-edge),
    0 calc(var(--u, 1px) * 4) calc(var(--u, 1px) * 16) rgb(0 0 0 / .08);
}

.glass-accent {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow:
    inset 0 calc(var(--u) * 1) 0 rgb(255 255 255 / .35),
    0 calc(var(--u) * 6) calc(var(--u) * 16) calc(var(--u) * -4) var(--accent);
}

.large-title {
  margin: 0 calc(var(--u) * 20) calc(var(--u) * 14);
  font-family: var(--serif);
  font-size: calc(var(--u) * 34);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.tabbar {
  position: absolute;
  right: calc(var(--u) * 16);
  bottom: calc(var(--u) * 24);
  left: calc(var(--u) * 16);
  z-index: 15;
  display: flex;
  align-items: center;
  height: calc(var(--u) * 62);
  padding: 0 calc(var(--u) * 5);
  border-radius: 999px;
}

.tab {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 2);
  padding: calc(var(--u) * 6) 0;
  border-radius: 999px;
  font-size: calc(var(--u) * 10);
  font-weight: 600;
  color: var(--text);
}

.tab svg {
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
}

.tab.is-active {
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--accent);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .45em .85em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--text2);
  font-size: calc(var(--u, 1px) * 11.5);
  font-weight: 500;
  white-space: nowrap;
}

.chip svg {
  width: 1.1em;
  height: 1.1em;
}

.chip--mood i {
  width: .7em;
  height: .7em;
  border-radius: 50%;
  background: var(--c);
}

/* Journals screen */

.shelf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--u) * 18) calc(var(--u) * 16);
  padding: 0 calc(var(--u) * 20);
}

.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: calc(var(--u) * 138);
  padding: 0 calc(var(--u) * 14) calc(var(--u) * 13) calc(var(--u) * 25);
  overflow: hidden;
  border-radius: calc(var(--u) * 4) calc(var(--u) * 12) calc(var(--u) * 12) calc(var(--u) * 4);
  background: var(--fl);
  color: var(--tl);
  box-shadow: 0 calc(var(--u) * 6) calc(var(--u) * 18) rgb(109 73 52 / .16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cover {
    background: var(--fd);
    color: var(--td);
    box-shadow: 0 calc(var(--u) * 6) calc(var(--u) * 18) rgb(0 0 0 / .4);
  }
}

:root[data-theme="dark"] .cover {
  background: var(--fd);
  color: var(--td);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--u) * 15);
  background: linear-gradient(90deg, rgb(0 0 0 / .26), rgb(0 0 0 / .06));
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgb(255 255 255 / .16), transparent 42%);
  pointer-events: none;
}

.cover b {
  font-family: var(--serif);
  font-size: calc(var(--u) * 17);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.cover small {
  margin-top: calc(var(--u) * 2);
  font-size: calc(var(--u) * 11.5);
  opacity: .82;
}

.cover-updated {
  display: block;
  margin: calc(var(--u) * 7) 0 0 calc(var(--u) * 3);
  font-size: calc(var(--u) * 11);
  color: var(--text3);
}

.fab {
  position: absolute;
  right: calc(var(--u) * 22);
  bottom: calc(var(--u) * 102);
  z-index: 14;
  display: grid;
  place-items: center;
  width: calc(var(--u) * 58);
  height: calc(var(--u) * 58);
  border-radius: 50%;
}

.fab svg {
  width: calc(var(--u) * 24);
  height: calc(var(--u) * 24);
}

/* Editor screen */

.ed-body {
  padding: calc(var(--u) * 4) calc(var(--u) * 24) 0;
}

.ed-date {
  margin: 0 0 calc(var(--u) * 6);
  font-size: calc(var(--u) * 11.5);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text3);
}

.ed-title {
  margin: 0 0 calc(var(--u) * 12);
  font-family: var(--serif);
  font-size: calc(var(--u) * 28);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.ed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--u) * 6);
  margin-bottom: calc(var(--u) * 14);
}

.ed-text {
  margin: 0 0 calc(var(--u) * 14);
  font-family: var(--serif);
  font-size: calc(var(--u) * 16.5);
  line-height: 1.55;
}

.ed-photo {
  margin: 0 0 calc(var(--u) * 14);
}

.ed-photo svg {
  width: 100%;
  height: calc(var(--u) * 168);
  border-radius: calc(var(--u) * 14);
}

.ed-photo figcaption {
  margin-top: calc(var(--u) * 6);
  font-family: var(--serif);
  font-size: calc(var(--u) * 14);
  font-style: italic;
  color: var(--text2);
}

.ed-voice {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  margin-bottom: calc(var(--u) * 14);
  padding: calc(var(--u) * 10) calc(var(--u) * 14) calc(var(--u) * 10) calc(var(--u) * 10);
  border-radius: calc(var(--u) * 18);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.play {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(var(--u) * 36);
  height: calc(var(--u) * 36);
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

.play svg {
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 15);
  margin-left: calc(var(--u) * 2);
}

.wave {
  display: flex;
  flex: 1;
  align-items: center;
  gap: calc(var(--u, 1px) * 2.4);
  height: calc(var(--u, 1px) * 28);
}

.wave i {
  flex: 1;
  height: calc(var(--h) * 100%);
  min-height: 2px;
  border-radius: 9px;
  background: var(--text3);
}

.wave i.is-played {
  background: var(--accent);
}

.voice-time {
  font-size: calc(var(--u) * 12.5);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text2);
}

.ed-bar {
  position: absolute;
  inset: auto 0 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: calc(var(--u) * 84);
  padding: calc(var(--u) * 14) calc(var(--u) * 20) 0;
  background: var(--surface-warm);
  border-top: 1px solid var(--hair);
}

.ed-icons {
  display: flex;
  gap: calc(var(--u) * 18);
  color: var(--text2);
}

.ed-icons svg {
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
}

.ed-icons .is-liked {
  color: var(--accent);
}

.ed-count {
  padding-top: calc(var(--u) * 3);
  font-size: calc(var(--u) * 13);
  font-weight: 700;
  color: var(--text3);
}

/* Moments screen */

.mo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 50);
  padding: 0 calc(var(--u) * 16);
}

.mo-title {
  font-size: calc(var(--u) * 17);
  font-weight: 600;
}

.mo-viewport {
  position: absolute;
  top: calc(var(--u) * 104);
  right: 0;
  bottom: calc(var(--u) * 74);
  left: 0;
  overflow: hidden;
}

.mo-track {
  height: 100%;
  transition: transform 1.1s var(--ease-out);
}

.mo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: calc(var(--u) * 60) calc(var(--u) * 36) calc(var(--u) * 10);
}

.mo-card.has-photos {
  padding-top: calc(var(--u) * 168);
}

.qm {
  display: block;
  height: calc(var(--u) * 28);
  font-family: var(--serif);
  font-size: calc(var(--u) * 64);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  opacity: .85;
}

.qm--close {
  margin-top: calc(var(--u) * 10);
  text-align: right;
}

.mo-passage p {
  margin: calc(var(--u) * 8) 0 0;
  font-family: var(--serif);
  font-size: calc(var(--u) * 19);
  line-height: 1.5;
  letter-spacing: -.012em;
}

.mo-info {
  margin-top: calc(var(--u) * 28);
}

.mo-rule {
  display: block;
  width: calc(var(--u) * 26);
  height: calc(var(--u) * 2);
  margin-bottom: calc(var(--u) * 12);
  border-radius: 2px;
  background: var(--accent);
}

.mo-entry-title {
  margin: 0;
  font-family: var(--serif);
  font-size: calc(var(--u) * 15.5);
  font-style: italic;
  color: var(--text2);
}

.mo-date {
  margin: calc(var(--u) * 6) 0 0;
  font-size: calc(var(--u) * 12);
  color: var(--text3);
}

.mo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--u) * 6);
  margin-top: calc(var(--u) * 14);
}

.mo-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 6);
  align-self: flex-end;
  margin-top: auto;
  font-size: calc(var(--u) * 11.5);
  font-weight: 600;
  color: var(--text2);
}

.mo-open-btn {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 52);
  height: calc(var(--u) * 52);
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.mo-open-btn svg {
  width: calc(var(--u) * 20);
  height: calc(var(--u) * 20);
}

.polaroids {
  position: absolute;
  top: calc(var(--u) * 16);
  right: calc(var(--u) * 34);
  width: calc(var(--u) * 150);
  height: calc(var(--u) * 140);
}

.polaroid {
  position: absolute;
  top: 0;
  right: 0;
  padding: calc(var(--u) * 8) calc(var(--u) * 8) calc(var(--u) * 28);
  border-radius: calc(var(--u) * 3);
  background: #fff;
  box-shadow: 0 calc(var(--u) * 4) calc(var(--u) * 12) rgb(0 0 0 / .16);
  rotate: 4deg;
}

.polaroid svg {
  width: calc(var(--u) * 96);
  height: calc(var(--u) * 96);
}

.polaroids .polaroid:first-child:not(:last-child) {
  rotate: -7deg;
  translate: calc(var(--u) * -34) calc(var(--u) * 14);
}

.mo-hint {
  position: absolute;
  right: 0;
  bottom: calc(var(--u) * 26);
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 2);
  font-size: calc(var(--u) * 12);
  font-weight: 500;
  color: var(--text3);
}

.mo-hint svg {
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  50% { transform: translateY(calc(var(--u, 1px) * -4)); }
}

/* Calendar screen */

.cal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: calc(var(--u) * 10) calc(var(--u) * 20) calc(var(--u) * 16);
}

.cal-month {
  margin: 0;
  font-family: var(--serif);
  font-size: calc(var(--u) * 30);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}

.cal-year {
  display: block;
  margin-top: calc(var(--u) * 6);
  font-size: calc(var(--u) * 13);
  font-weight: 600;
  color: var(--text3);
}

.cal-nav {
  display: flex;
  gap: calc(var(--u) * 8);
}

.cal-nav .g-btn {
  width: calc(var(--u) * 38);
  height: calc(var(--u) * 38);
}

.cal-nav .g-btn svg {
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
}

.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: calc(var(--u) * 6);
  padding: 0 calc(var(--u) * 20);
}

.cal-week {
  margin-bottom: calc(var(--u) * 8);
  font-size: calc(var(--u) * 11);
  font-weight: 700;
  text-align: center;
  color: var(--text3);
}

.day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: calc(var(--u) * 12);
  background: var(--empty);
  color: var(--text3);
  font-size: calc(var(--u) * 13);
  font-weight: 600;
  transition: background-color .45s var(--ease), color .45s var(--ease), transform .6s var(--ease-out), box-shadow .45s var(--ease);
}

.day.is-blank {
  background: transparent;
}

.day.is-future {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hair);
}

.day[data-mood]:not(.is-lit) {
  transform: scale(.9);
}

.day.is-lit {
  background: var(--c);
  color: #fff;
}

.day.is-lit[data-mood="calm"] {
  color: rgb(70 48 0 / .8);
}

.day.is-today {
  box-shadow: 0 0 0 calc(var(--u) * 2) var(--bg), 0 0 0 calc(var(--u) * 3.5) var(--accent);
}

.cal-screen[data-focus="1"] .day.in-streak.is-lit {
  transform: scale(.86);
  box-shadow: 0 0 0 calc(var(--u) * 2) var(--bg), 0 0 0 calc(var(--u) * 3.5) var(--accent);
}

.cal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--u) * 10);
  padding: calc(var(--u) * 18) calc(var(--u) * 20) 0;
}

.stat-card,
.mood-card {
  padding: calc(var(--u) * 14) calc(var(--u) * 16);
  border-radius: calc(var(--u) * 18);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: box-shadow .5s var(--ease), transform .6s var(--ease-out);
}

.stat-card small,
.mood-card small {
  display: block;
  font-size: calc(var(--u) * 10.5);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text2);
}

.stat-card b {
  display: block;
  margin-top: calc(var(--u) * 6);
  font-family: var(--serif);
  font-size: calc(var(--u) * 26);
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.stat-card b i {
  font-family: var(--sans);
  font-size: calc(var(--u) * 13);
  font-style: normal;
  font-weight: 600;
  color: var(--text3);
}

.mood-card {
  margin: calc(var(--u) * 10) calc(var(--u) * 20) 0;
}

.cal-screen[data-focus="1"] .stat-card:last-child,
.cal-screen[data-focus="2"] .stat-card,
.cal-screen[data-focus="2"] .mood-card {
  box-shadow: inset 0 0 0 calc(var(--u) * 1.5) var(--accent);
}

.mood-bar {
  display: flex;
  height: calc(var(--u) * 10);
  margin: calc(var(--u) * 12) 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--empty);
}

.mood-bar i {
  width: calc(var(--share, 0) * 100%);
  background: var(--c);
  transition: width .6s var(--ease);
}

.legend {
  display: flex;
  gap: calc(var(--u) * 14);
  font-size: calc(var(--u) * 12);
  color: var(--text2);
}

.legend span {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
}

.legend i {
  width: calc(var(--u) * 8);
  height: calc(var(--u) * 8);
  border-radius: 50%;
  background: var(--c);
}

/* Me screen */

.me-screen,
.me-screen * {
  transition: background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease);
}

.card {
  border-radius: calc(var(--u) * 20);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.me-profile {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 14);
  margin: 0 calc(var(--u) * 20) calc(var(--u) * 12);
  padding: calc(var(--u) * 16);
}

.me-profile > div {
  flex: 1;
  min-width: 0;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: calc(var(--u) * 54);
  height: calc(var(--u) * 54);
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--serif);
  font-size: calc(var(--u) * 24);
  font-weight: 600;
}

.me-profile b {
  display: block;
  font-family: var(--serif);
  font-size: calc(var(--u) * 20);
  font-weight: 600;
}

.me-profile small {
  display: block;
  margin-top: calc(var(--u) * 3);
  font-size: calc(var(--u) * 12);
  color: var(--text3);
}

.pro-pill {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 3);
  padding: calc(var(--u) * 5) calc(var(--u) * 8);
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--accent-deep);
  font-size: calc(var(--u) * 10.5);
  font-weight: 800;
  letter-spacing: .06em;
}

.pro-pill svg {
  width: calc(var(--u) * 11);
  height: calc(var(--u) * 11);
}

.me-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 calc(var(--u) * 20) calc(var(--u) * 20);
  padding: calc(var(--u) * 18) 0;
}

.me-stats > div {
  text-align: center;
}

.me-stats > div + div {
  border-left: 1px solid var(--hair);
}

.me-stats b {
  display: block;
  font-family: var(--serif);
  font-size: calc(var(--u) * 24);
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.me-stats small {
  font-size: calc(var(--u) * 12);
  color: var(--text3);
}

.me-group {
  margin: 0 calc(var(--u) * 20) calc(var(--u) * 16);
}

.me-group > small {
  display: block;
  margin: 0 0 calc(var(--u) * 8) calc(var(--u) * 6);
  font-size: calc(var(--u) * 11.5);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
}

.me-row {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 12);
  padding: calc(var(--u) * 12) calc(var(--u) * 14);
  font-size: calc(var(--u) * 15.5);
  font-weight: 500;
}

.row-icon {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 30);
  height: calc(var(--u) * 30);
  border-radius: calc(var(--u) * 8);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.row-icon svg {
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
}

.row-icon--flame {
  color: var(--flame);
}

.row-value {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 4);
  margin-left: auto;
  font-size: calc(var(--u) * 14.5);
  color: var(--text3);
}

.row-value svg {
  width: calc(var(--u) * 13);
  height: calc(var(--u) * 13);
}

/* ---------- Statement ---------- */

.statement {
  position: relative;
  height: 230vh;
}

.statement-sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1000px, 100% - 2 * var(--gutter));
  height: 100vh;
  height: 100svh;
  margin-inline: auto;
}

.statement-text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.3vw, 56px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.028em;
}

.js .statement-text .w {
  opacity: .14;
  transition: opacity .4s var(--ease);
}

.js .statement-text .w.is-lit {
  opacity: 1;
}

.statement-text .hl {
  color: var(--accent);
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Moods ---------- */

.mood-orbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 76px;
}

.mood-orb {
  padding: 44px 26px 40px;
  border-radius: 30px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hair);
  text-align: center;
}

.orb {
  display: block;
  width: 124px;
  height: 124px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 35%, white) 0%, var(--c) 48%, color-mix(in srgb, var(--c) 72%, black) 100%);
  box-shadow: 0 28px 60px -18px var(--c), inset 0 -10px 24px rgb(0 0 0 / .12);
  animation: breathe 6s ease-in-out infinite;
}

.mood-orb:nth-child(2) .orb { animation-delay: -2s; }
.mood-orb:nth-child(3) .orb { animation-delay: -4s; }

@keyframes breathe {
  50% { transform: scale(1.06) translateY(-6px); }
}

.mood-orb h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.mood-orb p {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--text2);
}

/* ---------- Sticky scenes ---------- */

.scene {
  position: relative;
  height: 360vh;
}

.scene--moments {
  height: 400vh;
}

.scene-sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.scene-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
}

.scene-grid--reverse {
  grid-template-columns: auto 1fr;
}

.scene-device .phone {
  --pw: min(340px, calc((100svh - var(--nav-h) - 72px) / 2.107));
}

.scene-steps {
  position: relative;
  min-height: 360px;
}

.scene-step {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s var(--ease), transform .9s var(--ease-out);
  pointer-events: none;
}

.scene-step.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.scene-steps--single {
  display: flex;
  align-items: center;
}

.scene-steps--single .scene-step {
  position: relative;
}

.scene-progress {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 120px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--hair-strong);
  translate: -50% 0;
}

.scene-progress i {
  display: block;
  width: calc(var(--p, 0) * 100%);
  height: 100%;
  background: var(--accent);
}

.mo-dots {
  display: flex;
  gap: 8px;
  margin-top: 34px;
}

.mo-dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--hair-strong);
  transition: width .5s var(--ease-out), background-color .5s;
}

.mo-dots i.is-on {
  width: 28px;
  background: var(--accent);
}

/* ---------- Writing bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 76px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 38px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.tile-copy {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.tile h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.022em;
}

.tile-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text2);
}

.tile--type { grid-column: span 4; grid-row: span 2; }
.tile--voice { grid-column: span 2; }
.tile--photos { grid-column: span 2; }
.tile--prompts { grid-column: span 3; }
.tile--meta { grid-column: span 3; }

.pro-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Rich text demo */

.type-demo {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 34px;
}

.type-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-bottom: 20px;
  padding: 5px;
  border-radius: 24px;
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
}

.type-toolbar button {
  min-width: 36px;
  padding: 7px 13px;
  border-radius: 999px;
}

.type-toolbar button:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
}

.type-toolbar button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.type-toolbar .fmt-bold {
  font-weight: 800;
}

.type-toolbar .fmt-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
}

.type-toolbar .fmt-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.type-toolbar .sep {
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: var(--hair-strong);
}

.tile-copy .tile-hint {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-deep);
}

.type-page {
  width: 100%;
  flex: 1;
  padding: 30px 34px;
  border-radius: 22px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

/* One block per line, matching the app's EntryTextBlockType. */
.type-page > [data-block] {
  margin: 0 -10px 10px;
  padding: 2px 10px;
  border-radius: 10px;
}

.type-page > [data-block]:last-child {
  margin-bottom: 0;
}

.type-page [data-block="title"] {
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.type-page [data-block="heading"] {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.type-page [data-block="list"] {
  position: relative;
  margin-bottom: 2px;
  padding-left: 32px;
}

.type-page [data-block="list"]::before {
  content: "";
  position: absolute;
  top: calc(.8em - 3px);
  left: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.type-page [data-block="list"] + :not([data-block="list"]) {
  margin-top: 8px;
}

.type-page [data-block="quote"] {
  margin-left: 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text2);
}

.type-page b {
  font-weight: 700;
}

.type-page u {
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* A pressed toolbar button highlights the text in its style and fades the rest. */
.type-page.is-focusing,
.type-page.is-focusing [data-block="quote"] {
  color: var(--text3);
}

.type-page.is-focusing [data-block="list"]:not(.is-highlighted)::before {
  opacity: .4;
}

.type-page .is-highlighted,
.type-page.is-focusing .is-highlighted {
  background: var(--accent-soft);
  color: var(--text);
}

.type-page :is(b, i, u).is-highlighted {
  border-radius: 4px;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Voice demo */

.voice-demo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 34px;
}

.rec-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #E84040;
  animation: rec 1.6s ease-in-out infinite;
}

@keyframes rec {
  0%, 100% { box-shadow: 0 0 0 0 rgb(232 64 64 / .45); }
  50% { box-shadow: 0 0 0 8px rgb(232 64 64 / 0); }
}

.wave--live {
  height: 64px;
  gap: 3px;
}

.wave--live i {
  background: var(--accent);
  animation: wave 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--k) * -.13s);
}

@keyframes wave {
  from { transform: scaleY(.3); }
  to { transform: scaleY(1); }
}

/* Photo fan */

.photo-fan {
  --u: 1.15px;
  position: relative;
  height: 170px;
  margin-top: auto;
}

.photo-fan .polaroid {
  top: 14px;
  right: auto;
  left: 50%;
  transition: rotate .8s var(--ease-out), translate .8s var(--ease-out);
}

.photo-fan .polaroid:nth-child(1) { rotate: -13deg; translate: -112% 14px; }
.photo-fan .polaroid:nth-child(2) { rotate: 3deg; translate: -50% -4px; }
.photo-fan .polaroid:nth-child(3) { rotate: 14deg; translate: 12% 16px; }

.tile--photos:hover .polaroid:nth-child(1) { rotate: -18deg; translate: -128% 6px; }
.tile--photos:hover .polaroid:nth-child(2) { rotate: 0deg; translate: -50% -14px; }
.tile--photos:hover .polaroid:nth-child(3) { rotate: 19deg; translate: 28% 8px; }

/* Prompt demo */

.prompt-demo {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.segmented,
.theme-toggle {
  display: inline-flex;
  align-self: flex-start;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.segmented button,
.theme-toggle button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}

.segmented button i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.theme-toggle button svg {
  width: 16px;
  height: 16px;
}

.segmented button[aria-checked="true"],
.theme-toggle button[aria-checked="true"] {
  background: var(--elevated);
  color: var(--text);
  box-shadow: 0 1px 4px rgb(0 0 0 / .1), 0 0 0 .5px var(--hair-strong);
}

.prompt-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.prompt-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.prompt-text {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--text);
  text-wrap: balance;
  transition: opacity .32s var(--ease), filter .32s var(--ease), transform .32s var(--ease);
}

.prompt-text.is-swapping {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(6px);
}

.prompt-shuffle {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--elevated);
  box-shadow: 0 1px 4px rgb(0 0 0 / .08), 0 0 0 .5px var(--hair-strong);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s var(--ease);
}

.prompt-shuffle svg {
  width: 16px;
  height: 16px;
}

.prompt-shuffle:active {
  transform: scale(.96);
}

/* Meta demo */

.meta-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
}

.chip--lg {
  font-size: 15px;
}

.heart-burst {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  animation: heartbeat 2.6s ease-in-out infinite;
}

.heart-burst svg {
  width: 24px;
  height: 24px;
}

@keyframes heartbeat {
  0%, 60%, 100% { transform: scale(1); }
  10% { transform: scale(1.18); }
  20% { transform: scale(.96); }
  30% { transform: scale(1.1); }
}

.js .tile--meta .meta-demo > * {
  opacity: 0;
  transform: translateY(14px) scale(.9);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
}

.js .tile--meta.is-in .meta-demo > * {
  opacity: 1;
  transform: none;
}

.tile--meta.is-in .meta-demo > :nth-child(1) { transition-delay: .3s; }
.tile--meta.is-in .meta-demo > :nth-child(2) { transition-delay: .4s; }
.tile--meta.is-in .meta-demo > :nth-child(3) { transition-delay: .5s; }
.tile--meta.is-in .meta-demo > :nth-child(4) { transition-delay: .6s; }
.tile--meta.is-in .meta-demo > :nth-child(5) { transition-delay: .7s; }

/* ---------- Journals shelf ---------- */

.shelf {
  margin-top: 56px;
}

.shelf-track {
  --u: 1.55px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  display: flex;
  gap: 26px;
  padding: 34px var(--edge) 46px;
  overflow-x: auto;
  scroll-padding-inline: var(--edge);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  perspective: 1400px;
}

.shelf-track::-webkit-scrollbar {
  display: none;
}

.shelf-item {
  flex: none;
  width: calc(var(--u) * 150);
  scroll-snap-align: start;
}

.shelf-item .cover {
  height: calc(var(--u) * 200);
  transform-origin: left center;
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}

.shelf-item .cover b {
  font-size: calc(var(--u) * 18);
}

.shelf-item:hover .cover {
  transform: translateY(-12px) rotateY(-16deg);
  box-shadow: 22px 30px 44px -14px rgb(var(--shadow) / .4);
}

.shelf-item p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
}

.shelf-item p span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.shelf-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shelf-caption {
  margin: 0;
  font-size: 15px;
  color: var(--text2);
}

.shelf-controls div {
  display: flex;
  gap: 12px;
}

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  transition: background-color .3s var(--ease), opacity .3s var(--ease);
}

.round-btn:hover {
  background: color-mix(in srgb, var(--text) 12%, transparent);
}

.round-btn:disabled {
  opacity: .35;
  cursor: default;
}

.round-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Look Back ---------- */

.lookback-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
}

.search-demo {
  padding: 22px;
  border-radius: 30px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hair), 0 50px 90px -50px rgb(var(--shadow) / .45);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text3);
}

.search-field svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.search-field span {
  font-size: 17px;
  font-weight: 500;
}

.filter-rail {
  display: flex;
  gap: 8px;
  padding: 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-rail::-webkit-scrollbar {
  display: none;
}

.filter {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}

.filter i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.filter svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.filter.is-on {
  background: var(--accent);
  box-shadow: none;
  color: var(--on-accent);
}

.filter.is-on svg {
  color: currentColor;
}

.results {
  min-height: 336px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 6px;
  border-top: 1px solid var(--hair);
  animation: row-in .45s var(--ease-out) both;
  animation-delay: calc(var(--k, 0) * 40ms);
}

.result:first-child {
  border-top: 0;
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(8px); }
}

.result-mood {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent);
}

.result-main {
  flex: 1;
  min-width: 0;
}

.result-title {
  margin: 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.result-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text3);
}

.result-heart {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ---------- Map ---------- */

.map-card {
  position: relative;
  height: clamp(440px, 56vw, 620px);
  margin-top: 64px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--map-land);
  box-shadow: 0 50px 100px -50px rgb(var(--shadow) / .45);
}

.map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--hair);
  pointer-events: none;
}

.map-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
}

/* Keeps the art's aspect ratio while covering the view, so pins stay on their streets. */
.map-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 100cqh * 1.875);
  height: max(100cqh, 100cqw / 1.875);
  translate: -50% -50%;
}

.map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.m-land { fill: var(--map-land); }
.m-park { fill: var(--map-park); }
.m-river {
  fill: none;
  stroke: var(--map-water);
  stroke-width: 64;
  stroke-linecap: round;
}

.m-streets path {
  fill: none;
  stroke: var(--map-street);
  stroke-width: 3;
}

.m-roads path {
  fill: none;
  stroke: var(--map-road);
  stroke-width: 9;
  stroke-linecap: round;
}

.m-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 11;
  opacity: .8;
  animation: stroll 26s linear infinite;
}

@keyframes stroll {
  to { stroke-dashoffset: -480; }
}

.pin {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 46px;
  height: 52px;
  translate: -50% -88%;
}

.pin::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  box-shadow: -3px 4px 12px rgb(0 0 0 / .25);
  rotate: -45deg;
  transition: scale .4s var(--ease-out), background-color .4s var(--ease);
}

.pin:hover::before {
  scale: 1.1;
}

.pin.is-active::before {
  background: var(--accent-deep);
  scale: 1.18;
}

.pin-shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 16px;
  height: 6px;
  margin-left: -8px;
  border-radius: 50%;
  background: rgb(0 0 0 / .2);
}

.pin.is-active .pin-shadow {
  background: var(--accent);
  animation: ping 1.8s var(--ease-out) infinite;
}

@keyframes ping {
  from { opacity: .7; transform: scale(1); }
  to { opacity: 0; transform: scale(4.5); }
}

.js .map-card:not(.is-in) .pin {
  opacity: 0;
}

.map-card.is-in .pin {
  animation: pin-drop .9s var(--ease-out) both;
  animation-delay: calc(.35s + var(--k) * .12s);
}

@keyframes pin-drop {
  0% { opacity: 0; transform: translateY(-70px); }
  55% { opacity: 1; transform: translateY(5px); }
  75% { transform: translateY(-3px); }
  100% { transform: none; }
}

.map-entry {
  position: absolute;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(380px, calc(100% - 44px));
  padding: 12px 22px 12px 12px;
  border-radius: 24px;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.map-entry.is-swapping {
  opacity: 0;
  transform: translateY(10px);
}

.map-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.map-entry-place {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text2);
}

.map-entry-place i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--accent));
}

.map-entry-title {
  margin: 4px 0 2px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.map-entry-date {
  margin: 0;
  font-size: 13px;
  color: var(--text3);
}

.map-hint {
  position: absolute;
  top: 20px;
  right: 20px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Make it yours ---------- */

.yours-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(36px, 8vw, 120px);
}

.yours-device .phone {
  --pw: clamp(270px, 28vw, 340px);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.swatch {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--sw) 60%, white), var(--sw) 62%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08);
  transition: transform .35s var(--ease-out);
}

.swatch::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--sw);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}

.swatch:hover {
  transform: scale(1.08);
}

.swatch[aria-checked="true"]::after {
  opacity: 1;
  transform: none;
}

.swatch:focus-visible {
  outline-offset: 9px;
}

.swatch-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.swatch-name small {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text3);
}

.theme-toggle {
  margin-top: 34px;
}

/* ---------- Privacy ---------- */

.privacy {
  position: relative;
  overflow: hidden;
  background: #110D0A;
  color: var(--text);
}

.privacy-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 62%);
  opacity: .5;
  translate: -50% -40%;
  pointer-events: none;
}

.privacy .container {
  position: relative;
}

.lock-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 0 auto 44px;
  color: #fff;
}

.lock-orb::before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--accent) 60%, white), var(--accent) 55%, var(--accent-soft));
  box-shadow: 0 24px 70px -10px var(--accent);
}

.lock-orb svg {
  position: relative;
  width: 46px;
  height: 46px;
}

.ring {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 50%;
  animation: ripple 4.5s var(--ease) infinite;
}

.ring.r2 { animation-delay: 1.5s; }
.ring.r3 { animation-delay: 3s; }

@keyframes ripple {
  0% { opacity: 0; transform: scale(.55); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.7); }
}

.privacy-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 96px;
}

.privacy-col {
  padding-top: 28px;
  border-top: 1px solid var(--hair-strong);
}

.p-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-deep);
}

.p-icon svg {
  width: 24px;
  height: 24px;
}

.privacy-col h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.privacy-col p {
  margin: 0;
  color: var(--text2);
}

/* ---------- Pro ---------- */

.pro-card {
  position: relative;
  max-width: 820px;
  margin: 64px auto 0;
  padding: 10px 38px 18px;
  border-radius: 32px;
  background: var(--card);
  box-shadow: 0 50px 90px -50px rgb(var(--shadow) / .45);
}

.pro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--hair) 35%, var(--hair) 65%, var(--flame));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pro-row {
  display: grid;
  grid-template-columns: 1fr 130px 130px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--hair);
}

.pro-row--head {
  border-top: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text2);
}

.pro-row > span:not(:first-child) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
}

.pro-row > span:last-child {
  font-weight: 600;
}

.is-pro {
  color: var(--accent);
}

.is-pro svg {
  width: 15px;
  height: 15px;
}

.ok {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.no {
  color: var(--text3);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: clamp(110px, 14vw, 180px) 0;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%);
  translate: -50% -50%;
  pointer-events: none;
}

.cta .container {
  position: relative;
}

.mascot {
  width: 136px;
  height: 136px;
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: 22.5%;
  box-shadow: 0 34px 60px -22px rgb(var(--shadow) / .5), 0 0 0 .5px var(--hair-strong);
  animation: float 6s ease-in-out infinite;
}

.mascot svg {
  width: 100%;
  height: 100%;
}

@keyframes float {
  50% { translate: 0 -10px; }
}

.m-leaf-fill {
  fill: var(--l-accent);
}

.m-leaf {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  animation: sway 4.5s ease-in-out infinite;
}

@keyframes sway {
  50% { transform: rotate(-7deg); }
}

.m-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 5s infinite;
}

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(.1); }
}

.cta .hero-ctas {
  margin-top: 40px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 26px 0 44px;
  background: var(--bg2);
  border-top: 1px solid var(--hair);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--text3);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
}

.footer-top .nav-brand {
  color: var(--text);
  font-size: 19px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--text2);
}

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

.legal {
  margin: 6px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .tile--type { grid-column: span 6; grid-row: auto; }
  .tile--voice,
  .tile--photos { grid-column: span 3; }
  .tile--prompts,
  .tile--meta { grid-column: span 6; min-height: 0; }
}

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

  .lookback-grid,
  .yours-grid {
    grid-template-columns: 1fr;
  }

  .yours-grid {
    justify-items: center;
    text-align: center;
  }

  .yours-copy .lede { margin-inline: auto; }
  .swatches { justify-content: center; }
  .swatch-name { justify-content: center; }

  .privacy-cols {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 72px;
  }

  .privacy-col {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 18px;
    padding: 24px 0;
  }

  .p-icon {
    grid-row: span 2;
    margin: 0;
  }

  /* Scenes stack: device on top, copy below, both inside the sticky viewport. */
  .scene-grid,
  .scene-grid--reverse {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
    text-align: center;
  }

  .scene-device {
    order: -1;
  }

  .scene-device .phone {
    --pw: min(300px, calc((100svh - var(--nav-h) - 300px) / 2.107));
  }

  .scene-steps {
    width: 100%;
    min-height: 210px;
  }

  .scene-step .eyebrow {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .scene-step .h-lg {
    margin-bottom: 10px;
    font-size: clamp(28px, 7.4vw, 40px);
  }

  .scene-step .h-lg br {
    display: none;
  }

  .scene-step .lede {
    max-width: 460px;
    margin-inline: auto;
    font-size: 16px;
  }

  .mo-dots {
    justify-content: center;
    margin-top: 18px;
  }

  .scene-progress {
    display: none;
  }
}

@media (max-width: 700px) {
  :root { --gutter: 16px; }

  .bento { gap: 14px; }

  .tile--voice,
  .tile--photos {
    grid-column: span 6;
  }

  .tile {
    min-height: 0;
    padding: 28px 24px;
    border-radius: 26px;
  }

  .type-page {
    padding: 22px 22px;
  }

  .mood-orbs {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 56px;
  }

  .mood-orb {
    display: grid;
    grid-template-columns: 76px 1fr;
    column-gap: 20px;
    align-items: center;
    padding: 22px;
    text-align: left;
  }

  .orb {
    grid-row: span 2;
    width: 76px;
    height: 76px;
    margin: 0;
  }

  .mood-orb h3 {
    margin-bottom: 4px;
    font-size: 24px;
  }

  .hero-stage {
    --pw: min(250px, 64vw);
  }

  .phone--left { translate: calc(-50% - 64% - var(--hp, 0) * 12%) calc(46px + var(--hp, 0) * 30px); }
  .phone--right { translate: calc(-50% + 64% + var(--hp, 0) * 12%) calc(46px + var(--hp, 0) * 30px); }

  .map-card {
    height: auto;
    border-radius: 26px;
    background: var(--card);
  }

  .map-view {
    position: relative;
    aspect-ratio: 4 / 3;
  }

  .map-hint {
    display: none;
  }

  .map-entry {
    position: relative;
    inset: auto;
    max-width: none;
    padding: 14px 16px;
    border-radius: 0;
    background: var(--card);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .pin {
    width: 36px;
    height: 42px;
  }

  .pin::before {
    width: 26px;
    height: 26px;
    margin-left: -13px;
    border-width: 2.5px;
  }

  .pro-card {
    padding: 6px 20px 12px;
  }

  .pro-row {
    grid-template-columns: 1fr 76px 84px;
    font-size: 15px;
  }

  .shelf-track {
    --u: 1.25px;
    gap: 18px;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
