:root {
  color-scheme: light;
  --paper: #fffaf6;
  --ink: #291639;
  --muted: #634e6e;
  --line: #e7d8f1;
  --purple: #6426bb;
  --purple-dark: #4e189d;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
button[hidden] { display: none; }
.shell { width: min(1096px, calc(100% - 56px)); margin-inline: auto; }
.site-header { background: #fffafb; border-bottom: 1px solid #eedff3; }
.header-inner, .header-inner nav { display: flex; align-items: center; }
.header-inner { min-height: 73px; justify-content: space-between; gap: 1rem; }
.header-inner nav { gap: 1.4rem; }
.header-inner a { text-decoration: none; }
.brand { display: flex; align-items: center; gap: .62rem; font-size: 1.23rem; font-weight: 900; letter-spacing: -.05em; white-space: nowrap; }
.brand img { border-radius: 12px; }
.install-link, .header-play { font-size: .91rem; font-weight: 780; }
.header-play { border: 1px solid #dec8ef; padding: .53rem .95rem; border-radius: 999px; color: var(--purple-dark); background: #f5eaff; }
.header-play:hover, .install-link:hover, .text-link:hover, .help-link:hover { color: var(--purple); }
.hero-zone { background: radial-gradient(ellipse at 84% 32%, #e2baff 0, transparent 46%), radial-gradient(ellipse at 5% 78%, #ffe6b9 0, transparent 48%), #fce8f5; border-bottom: 1px solid #efddec; }
.hero { display: grid; grid-template-columns: 1fr minmax(0, .96fr); align-items: center; gap: clamp(36px, 7.5vw, 115px); padding-block: clamp(45px, 7.5vw, 91px); }
.eyebrow { display: inline-flex; align-items: center; gap: .48rem; color: #55177e; border: 1px solid #eacbee; background: #ffffff92; border-radius: 999px; font-weight: 840; font-size: .8rem; padding: .35rem .7rem; margin: 0 0 1rem; }
.eyebrow span { color: #a93296; }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; line-height: 1.05; }
h1 { font-size: clamp(3.8rem, 7.35vw, 7rem); font-weight: 900; line-height: .91; }
h1 em { font-style: normal; color: #a72073; }
.intro { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: #503053; max-width: 36ch; margin: 1.25rem 0 1.4rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.16rem; min-height: 50px; padding: .68rem 1.2rem; text-decoration: none; border-radius: 13px; font: inherit; font-size: .94rem; font-weight: 830; cursor: pointer; }
.primary { color: #fff; background: var(--purple); box-shadow: 0 4px 0 #42178a; }
.primary span { font-size: 1.26rem; line-height: 1; }
.primary:hover { background: var(--purple-dark); }
.secondary { color: var(--purple); border: 1px solid currentColor; background: #fff; }
.text-link, .help-link { color: #56217f; font-size: .88rem; font-weight: 800; text-underline-offset: 4px; }
.access-note { color: var(--muted); font-size: .83rem; margin: 1rem 0 0; }
.sample-side { position: relative; min-width: 0; isolation: isolate; }
.sample-side::before { content: ''; position: absolute; z-index: -1; inset: 7% 0 -1% 2%; border: 2px solid #e7a3d7; border-radius: 32px; background: #ffc4e5; transform: rotate(4deg); }
.sample-card { padding: clamp(16px, 2.5vw, 29px); background: #fffdfd; border: 1px solid #e2c9f0; border-radius: 25px; box-shadow: 0 15px 41px #7142932b, 0 5px 0 #ddc5f2; }
.sample-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sample-top h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
.sample-age { color: #5b1b81; background: #efdcff; border-radius: 999px; padding: .3rem .65rem; font-size: .78rem; font-weight: 850; white-space: nowrap; }
.sample-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; background: #f3edf9; padding: 4px; margin: 14px 0; border-radius: 11px; }
.sample-stages button { min-height: 40px; border: 1px solid transparent; border-radius: 8px; padding: 4px; background: transparent; color: #684f77; font: inherit; font-size: .77rem; font-weight: 800; cursor: pointer; }
.sample-stages button[aria-pressed=true] { color: #542184; border-color: #e8dbf1; background: #fff; box-shadow: 0 1px 2px #41206216; }
.sample-scene { display: grid; grid-template-columns: clamp(79px, 11vw, 122px) minmax(0, 1fr); align-items: center; gap: clamp(11px, 2vw, 17px); padding: 11px; border-radius: 15px; background: #ffe7e6; }
.sample-card[data-stage=childhood] .sample-scene { background: #ffedbb; }
.sample-card[data-stage=later] .sample-scene { background: #d8f5e8; }
.sample-scene img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 11px; object-fit: cover; background: #ebc9bc; }
.sample-topic { color: #74315c; font-size: .77rem; font-weight: 820; margin: 0 0 .35rem; }
.sample-scene h3 { font-size: clamp(1.16rem, 2vw, 1.63rem); line-height: 1.13; }
.sample-choices { display: grid; gap: 7px; margin-top: 12px; }
.sample-choices button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; width: 100%; text-align: left; border: 1px solid #e4d7ef; border-radius: 10px; padding: .6rem .76rem; background: #faf6ff; color: #4a226b; font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; }
.sample-choices button:hover, .sample-choices button[aria-pressed=true] { border-color: #ab76d6; background: #f1ddff; }
.sample-result { min-height: 3em; margin: .65rem 0 0; color: var(--muted); font-size: .81rem; line-height: 1.45; }
.sample-result.has-result { font-weight: 700; color: #463054; }
.story, .install { padding-block: 57px; }
.story h2, .install h2 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 890; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 19px; }
.story-card { padding: clamp(17px, 2.65vw, 27px); border-radius: 17px; border: 1px solid #0000000a; }
.story-money { background: #fff0b9; }
.story-people { background: #ffe2ed; }
.story-legacy { background: #dcf5e6; }
.story-icon { display: block; font-size: 1.55rem; line-height: 1; margin-bottom: 13px; }
.story-card h3 { font-size: 1.32rem; }
.story-card p, .install-heading p { color: #543d60; margin: .55rem 0 0; }
.story-card p { font-size: .95rem; }
.install { border-top: 1px solid var(--line); scroll-margin-top: 15px; }
.install-heading p { margin: .75rem 0 1.2rem; }
.install-heading button { margin-bottom: 1rem; }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.install-card { background: #f3eaff; border: 1px solid #e8d7f8; border-radius: 16px; padding: clamp(16px, 3vw, 26px); }
.install-card:nth-child(2) { background: #e6f6eb; border-color: #d0ebd8; }
.install-card h3 { font-size: 1.38rem; }
.install-card h3 span { margin-left: .35rem; font-size: .84rem; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.install-card ol { color: #4d3a57; padding-left: 1.45rem; margin: .85rem 0 1.15rem; display: grid; gap: .5rem; }
.install-card li { padding-left: .25rem; }
.install-card li::marker { color: var(--purple-dark); font-weight: 800; }
.install-card strong, .save-note strong { color: var(--ink); }
.save-note { margin: 1.2rem 0 1.25rem; max-width: 70ch; color: var(--muted); font-size: .88rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1.25rem 0; color: var(--muted); font-size: .86rem; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 1rem; }
@media (max-width: 790px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 63px; }
  .header-inner nav { gap: .8rem; }
  .brand img { width: 35px; height: 35px; }
  .brand { font-size: 1.1rem; }
  .hero { grid-template-columns: 1fr; gap: 33px; padding-block: 38px 48px; }
  h1 { font-size: clamp(3.6rem, 11.8vw, 5.9rem); }
  .sample-side { width: min(510px, 100%); }
  .sample-side::before { transform: rotate(2deg); }
  .story, .install { padding-block: 42px; }
}
@media (max-width: 590px) {
  .story-grid, .install-grid { grid-template-columns: 1fr; }
}
@media (max-width: 355px) {
  .install-link { display: none; }
}
