:root {
  color-scheme: light;
  --ink: #22301f;
  --muted: #5e5d4b;
  --canvas: #faf6ec;
  --paper: #fffdf6;
  --line: rgba(34, 48, 31, .12);
  --accent: #d97a3d;
  --overview: #f6e3c2;
  --overview-deep: #c96f38;
  --finance: #f8ecc0;
  --finance-deep: #8f7a1e;
  --insight: #dcebf0;
  --insight-deep: #3f7391;
  --persona: #e2eeda;
  --persona-deep: #4c7a44;
  --sticker: #f7e0d3;
  --sticker-deep: #b45a34;
  --security: #e8e2f2;
  --security-deep: #66549e;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(246, 227, 194, .55), transparent 60%),
    radial-gradient(1000px 640px at -15% 30%, rgba(226, 238, 218, .5), transparent 62%),
    var(--canvas);
  letter-spacing: 0;
}

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

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

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

[id] {
  scroll-margin-top: 88px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 max(clamp(24px, 5vw, 72px), calc((100% - 1240px) / 2 + 64px));
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 236, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-weight: 800;
  font-size: 17px;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(34, 48, 31, .16);
}

.site-header nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color .25s ease;
}

.site-header nav a:hover {
  color: var(--ink);
}

.store-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px dashed rgba(34, 48, 31, .3);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

a.store-status {
  border: 1px solid rgba(34, 48, 31, .35);
  color: var(--ink);
  transition: background .25s ease, border-color .25s ease;
}

a.store-status:hover {
  background: rgba(34, 48, 31, .06);
  border-color: rgba(34, 48, 31, .6);
}

/* ---------- shared type ---------- */

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 52px);
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(56px, 9vh, 110px) clamp(24px, 5vw, 64px) clamp(40px, 7vh, 84px);
  overflow: hidden;
}

.hero-blob {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  animation: blob-drift 16s ease-in-out infinite alternate;
}

.hero-blob--mint {
  width: 420px;
  height: 420px;
  left: -140px;
  top: 8%;
  background: #cfe6cd;
}

.hero-blob--peach {
  width: 380px;
  height: 380px;
  right: -100px;
  top: -8%;
  background: #f3cfae;
  animation-delay: -6s;
}

.hero-blob--butter {
  width: 460px;
  height: 460px;
  right: 12%;
  bottom: -40%;
  background: #f2e2ae;
  animation-delay: -11s;
}

@keyframes blob-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(34px, -26px, 0) scale(1.08);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(100%, 540px);
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 88px);
}

.hero-summary {
  margin: 22px 0 0;
  max-width: 24em;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.8;
  font-weight: 560;
  text-wrap: balance;
}

.hero-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 34px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fdfaf1;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(34, 48, 31, .22);
}

a.store-button {
  transition: transform .25s ease, box-shadow .25s ease;
}

a.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(34, 48, 31, .28);
}

.hero-action small {
  color: var(--muted);
  font-size: 13px;
}

.hero-scene {
  position: relative;
  z-index: 1;
  justify-self: start;
  width: min(100%, 560px);
  min-height: clamp(440px, 58vw, 640px);
  perspective: 1200px;
}

.hero-card {
  position: absolute;
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(34, 48, 31, .20),
    0 4px 14px rgba(34, 48, 31, .10);
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-card img {
  width: 100%;
  height: auto;
}

.hero-card--main {
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(300px, 52%);
  transform: translate(-50%, -50%) translate(var(--mx, 0px), var(--my, 0px));
  animation: card-float 7s ease-in-out infinite;
}

.hero-card--left {
  z-index: 2;
  left: 4%;
  top: 12%;
  width: min(220px, 38%);
  transform: rotate(-7deg) translate(var(--mx, 0px), var(--my, 0px));
  animation: card-float 8s ease-in-out -2.5s infinite;
}

.hero-card--right {
  z-index: 1;
  right: -2%;
  bottom: 6%;
  width: min(220px, 38%);
  transform: rotate(6deg) translate(var(--mx, 0px), var(--my, 0px));
  animation: card-float 9s ease-in-out -5s infinite;
}

@keyframes card-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

.section-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .25s ease;
}

.section-cue:hover {
  color: var(--ink);
}

.section-cue span {
  display: inline-block;
  animation: cue-bounce 1.8s ease-in-out infinite;
}

@keyframes cue-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 246, .6);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track span {
  color: rgba(34, 48, 31, .55);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .12em;
  white-space: nowrap;
}

.marquee-track i {
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- story intro ---------- */

.story-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(72px, 12vh, 130px) clamp(24px, 5vw, 64px) clamp(28px, 5vh, 56px);
}

.story-intro h2 {
  font-size: clamp(32px, 4.4vw, 56px);
}

.story-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.9;
  font-weight: 540;
}

/* ---------- chapters ---------- */

.chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(64px, 11vh, 120px) clamp(24px, 5vw, 64px);
}

.chapter--reverse .chapter-copy {
  order: 2;
}

.chapter--reverse .chapter-visual {
  order: 1;
}

.chapter-number {
  position: absolute;
  top: clamp(28px, 6vh, 64px);
  left: clamp(18px, 4vw, 56px);
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(34, 48, 31, .2);
  font-size: clamp(88px, 12vw, 180px);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.chapter--reverse .chapter-number {
  left: auto;
  right: clamp(18px, 4vw, 56px);
}

.chapter-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.chapter h2 {
  font-size: clamp(34px, 4.6vw, 60px);
}

.chapter-copy > p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.9;
  font-weight: 540;
}

.chapter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chapter-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, .78);
  font-size: 13px;
  font-weight: 700;
}

.chapter-note {
  display: block;
  margin-top: 18px;
  color: rgba(34, 48, 31, .45);
  font-size: 12px;
}

.chapter .eyebrow {
  color: var(--chapter-deep, var(--accent));
}

.chapter-visual {
  position: relative;
  z-index: 1;
  justify-self: center;
  margin: 0;
  width: min(340px, 100%);
  will-change: transform;
}

.chapter-visual .visual-plane {
  position: absolute;
  inset: -7% -12%;
  border-radius: 44px;
  background: var(--chapter-tint, #eee);
  transform: rotate(-2.5deg);
  transition: transform .6s cubic-bezier(.22, .8, .28, 1);
}

.chapter--reverse .chapter-visual .visual-plane {
  transform: rotate(2.5deg);
}

.chapter-visual picture {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 34px 64px rgba(34, 48, 31, .22),
    0 4px 14px rgba(34, 48, 31, .10);
  transform: rotate(1.5deg);
  transition: transform .6s cubic-bezier(.22, .8, .28, 1), box-shadow .6s ease;
}

.chapter--reverse .chapter-visual picture {
  transform: rotate(-1.5deg);
}

.chapter-visual:hover picture {
  transform: rotate(0deg) translateY(-8px);
  box-shadow:
    0 48px 88px rgba(34, 48, 31, .26),
    0 6px 18px rgba(34, 48, 31, .12);
}

.chapter-visual:hover .visual-plane {
  transform: rotate(0deg) scale(1.02);
}

.chapter-visual img {
  width: 100%;
  height: auto;
}

.chapter--overview {
  --chapter-tint: var(--overview);
  --chapter-deep: var(--overview-deep);
}

.chapter--finance {
  --chapter-tint: var(--finance);
  --chapter-deep: var(--finance-deep);
}

.chapter--insight {
  --chapter-tint: var(--insight);
  --chapter-deep: var(--insight-deep);
}

.chapter--persona {
  --chapter-tint: var(--persona);
  --chapter-deep: var(--persona-deep);
}

.chapter--sticker {
  --chapter-tint: var(--sticker);
  --chapter-deep: var(--sticker-deep);
}

.chapter--security {
  --chapter-tint: var(--security);
  --chapter-deep: var(--security-deep);
}

/* ---------- closing ---------- */

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin: clamp(48px, 9vh, 96px) max(clamp(20px, 5vw, 64px), calc((100% - 1240px) / 2));
  padding: clamp(44px, 7vh, 80px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(600px 320px at 90% 0%, rgba(232, 226, 242, .6), transparent 65%),
    radial-gradient(560px 300px at 0% 100%, rgba(226, 238, 218, .55), transparent 65%),
    var(--paper);
}

.privacy-copy h2 {
  font-size: clamp(28px, 3.6vw, 46px);
}

.privacy-copy > p {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
  font-weight: 540;
}

.download-compact {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 20px 44px rgba(34, 48, 31, .12);
}

.download-compact img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(34, 48, 31, .18);
}

.download-compact strong {
  font-size: 19px;
  font-weight: 800;
}

.download-compact p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 30px max(clamp(24px, 5vw, 64px), calc((100% - 1240px) / 2 + 64px)) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color .25s ease;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ---------- reveal animation ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .8s cubic-bezier(.22, .8, .28, 1),
    transform .8s cubic-bezier(.22, .8, .28, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    text-align: center;
  }

  .hero-copy {
    justify-self: center;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-scene {
    justify-self: center;
    width: 100%;
  }

  .hero-summary {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-action {
    justify-content: center;
  }

  .hero-scene {
    min-height: clamp(400px, 92vw, 560px);
    margin-top: 12px;
  }

  .story-intro,
  .closing {
    grid-template-columns: 1fr;
  }

  .download-compact {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 64px;
  }

  .site-header nav {
    display: none;
  }

  .hero-card--left {
    left: 2%;
    width: min(190px, 34%);
  }

  .hero-card--right {
    right: 0;
    width: min(190px, 34%);
  }

  .chapter {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .chapter--reverse .chapter-copy {
    order: 1;
  }

  .chapter--reverse .chapter-visual {
    order: 2;
  }

  .chapter-number {
    font-size: 84px;
  }

  .chapter-visual {
    width: min(320px, 82vw);
  }

  .chapter-visual .visual-plane {
    inset: -3.5% -5%;
    border-radius: 32px;
  }

  .closing {
    margin-left: 20px;
    margin-right: 20px;
    padding: 32px 22px;
  }
}

/* ---------- mobile full-screen paging ---------- */

@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y mandatory;
  }

  .hero,
  .story-intro,
  .chapter,
  .closing {
    scroll-snap-align: start;
  }

  .hero,
  .story-intro,
  .chapter {
    min-height: 100vh;
    min-height: 100svh;
    align-content: center;
    scroll-margin-top: 0;
  }

  .hero {
    height: 100vh;
    height: 100svh;
    padding-top: 84px;
    padding-bottom: 44px;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .hero-copy .eyebrow {
    display: none;
  }

  .has-app-vh .hero,
  .has-app-vh .chapter {
    height: var(--app-vh);
  }

  .has-app-vh .story-intro {
    min-height: var(--app-vh);
  }

  .has-app-vh .closing {
    min-height: calc(var(--app-vh) - 48px);
  }

  .hero-scene {
    min-height: 220px;
  }

  .hero-card--main {
    width: min(210px, 42%);
  }

  .hero-card--left {
    width: min(170px, 30%);
  }

  .hero-card--right {
    width: min(170px, 30%);
  }

  .story-intro {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .chapter {
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 24px;
    height: 100vh;
    height: 100svh;
    grid-template-rows: auto minmax(0, 1fr);
    scroll-margin-top: 0;
  }

  .chapter h2 {
    font-size: clamp(26px, 7vw, 32px);
  }

  .chapter h2 br {
    display: none;
  }

  .chapter .eyebrow {
    margin-bottom: 8px;
  }

  .chapter-copy > p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .chapter-tags {
    margin-top: 14px;
  }

  .chapter-tags span {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .chapter-note {
    margin-top: 10px;
  }

  .chapter-number {
    font-size: 60px;
    top: 12px;
  }

  .chapter-visual {
    width: min(210px, 52vw);
    height: 100%;
    min-height: 0;
  }

  .chapter-visual .visual-plane {
    inset: -4% -7%;
  }

  .chapter-visual picture {
    height: 100%;
  }

  .chapter-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .closing {
    min-height: calc(100vh - 48px);
    min-height: calc(100svh - 48px);
    align-content: center;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 24px 18px;
    scroll-margin-top: 0;
  }

  .closing .download-compact {
    padding: 18px;
    gap: 10px;
  }

  .closing .download-compact img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .privacy-copy h2 {
    font-size: clamp(24px, 6.4vw, 30px);
  }

  .privacy-copy > p {
    font-size: 13px;
    line-height: 1.75;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-blob,
  .hero-card,
  .marquee-track,
  .section-cue span {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .chapter-visual picture,
  .chapter-visual .visual-plane {
    transition: none;
  }
}
