/* A shared day: soft daylight, quiet motion, and the real app at the centre. */
:root { --peach: #f3ddc4; --mist: #e7f0f3; --night: #142338; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; padding: 14px 22px; background: var(--white); border-radius: 12px; }
.skip-link:focus { top: 12px; }
button { -webkit-tap-highlight-color: transparent; }
.header { position: relative; z-index: 5; }
.hero { min-height: 780px; padding: 30px 0 64px; gap: 54px; }
.hero h1 { font-size: clamp(52px, 5.7vw, 78px); }
.hero .intro { max-width: 530px; font-size: 16px; }
.hero-art { min-height: 730px; padding-bottom: 90px; }
.hero-art .orbit { width: 460px; height: 460px; border-color: rgba(33,93,158,.13); background: radial-gradient(circle, #e5eff5 0%, transparent 70%); }
.hero-art .phone { width: 270px; height: 598px; position: relative; transform: rotate(2deg); }
.hero-art .note-a { left: -5px; top: 125px; padding-left: 31px; }
.note-dot { position: absolute; top: 18px; left: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.hero-art .note-b { right: -10px; bottom: 205px; transition: transform .7s, border-color .7s, box-shadow .7s; }
.shared-check { display: none; color: var(--sage); font-size: 20px; }
[data-demo-step="2"] .note-b { transform: translateY(-8px); border-color: var(--sage); box-shadow: 0 18px 40px #6d9f8a30; }
[data-demo-step="2"] .shared-check { display: block; }
.demo-sheet { position: absolute; left: 10px; right: 10px; bottom: 22px; padding: 13px 18px 21px; min-height: 260px; background: #fffefa; border: 1px solid #dbe4e7; border-radius: 26px; box-shadow: 0 -12px 45px #16365f20; text-align: center; }
.sheet-handle { width: 30px; height: 3px; background: #ccdae7; border-radius: 3px; margin: 0 auto 18px; }
.demo-kicker { display: block; font-size: 10px; letter-spacing: .035em; color: var(--muted); }
.demo-scene h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.3; }
.demo-scene p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 12px 0 0; }
.demo-amount { font-size: 46px; font-weight: 700; letter-spacing: -.06em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.demo-amount small { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.amount-scale { display: flex; align-items: center; justify-content: center; gap: 15px; height: 30px; margin-bottom: 11px; }
.amount-scale i { height: 10px; width: 1px; background: var(--line); }
.amount-scale i:nth-child(5) { height: 23px; width: 3px; background: var(--sage); }
.demo-save { display: block; width: 100%; border: 0; cursor: pointer; padding: 11px; background: var(--ink); color: white; border-radius: 12px; font-size: 12px; font-weight: 700; }
.demo-check { display: grid; place-items: center; width: 54px; height: 54px; margin: 18px auto; color: #4a8069; background: #e7f1ed; border-radius: 50%; font-size: 25px; }
.demo-time { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.caregivers { display: flex; justify-content: center; align-items: center; margin: 27px 0; }
.caregivers span { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; background: var(--peach); font-family: "Iowan Old Style", serif; font-size: 23px; }
.caregivers span:last-child { background: #dce9e2; }
.caregivers i { margin: 0 12px; color: var(--sage); font-size: 20px; font-style: normal; }
.demo-controls { position: absolute; bottom: 0; left: 0; width: 100%; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-steps { display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 30px; background: #ffffffb3; }
.demo-steps button { display: flex; align-items: center; gap: 7px; border: 0; padding: 9px 12px; border-radius: 22px; background: transparent; color: var(--muted); cursor: pointer; transition: background .3s, color .3s; font-size: 11px; }
.demo-steps button span { font-size: 10px; opacity: .65; }
.demo-steps button[aria-pressed="true"] { background: var(--ink); color: white; }
.demo-play { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 20px; cursor: pointer; }
.demo-play .play-symbol, .demo-play[aria-pressed="true"] .pause-symbol { display: none; }
.demo-play[aria-pressed="true"] .play-symbol { display: block; }
.demo-controls p { flex-basis: 100%; margin: 0; text-align: center; font-size: 10px; color: var(--muted); letter-spacing: .03em; }
.primary, .secondary, .nav-button { transition: transform .25s, box-shadow .25s; }
.primary:hover, .nav-button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px #16365f20; }
#screens { padding-top: 48px; }
#screens .section-title { max-width: 780px; }
.care-story { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; position: relative; }
.story-visual { position: sticky; top: 28px; padding: 20px 0; display: grid; justify-items: center; }
.story-halo { position: absolute; width: 420px; height: 420px; top: 100px; border-radius: 50%; background: var(--mist); z-index: -1; }
.story-phone { position: relative; width: 264px; aspect-ratio: 1344 / 2992; border: 8px solid white; border-radius: 36px; box-shadow: 0 22px 55px #284c711f; overflow: hidden; background: var(--mist); }
.story-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.story-phone img.is-active { opacity: 1; }
.story-nav { display: flex; gap: 3px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.story-nav button { padding: 12px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.story-nav button[aria-pressed="true"] { color: var(--deep); border-bottom-color: var(--deep); }
.story-chapter { min-height: 660px; display: flex; flex-direction: column; justify-content: center; padding: 65px 0; scroll-margin-top: 30px; }
.chapter-label { display: flex; gap: 12px; align-items: center; margin: 0 0 25px; color: var(--sage); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.chapter-label>span:first-child { font-size: 23px; font-weight: 400; }
.story-chapter h3 { font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.13; letter-spacing: -.03em; margin: 0 0 23px; }
.story-chapter>p:not(.chapter-label) { max-width: 430px; font-size: 16px; line-height: 1.9; color: var(--muted); margin: 0; }
.story-detail { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--deep); line-height: 1.6; }
.story-detail>span:first-child { font-size: 20px; }
.mini-day { display: flex; height: 26px; align-items: center; gap: 5px; margin-top: 30px; }
.mini-day span { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-day i { flex: 1; height: 12px; border-radius: 3px; background: var(--blue); transform-origin: left; }
.mini-day i:nth-of-type(2) { background: var(--peach); flex: .4; }
.mini-day i:nth-of-type(3) { background: var(--sage); flex: 1.4; }
.mini-day i:nth-of-type(4) { background: var(--peach); flex: .6; }
.night-experience { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; padding: 64px 80px; border: 1px solid var(--line); border-radius: 36px; background: #e7f0f3; transition: background .8s, color .8s, border-color .8s; overflow: hidden; }
.night-copy { min-width: 0; }
.sky-symbol { position: relative; width: 64px; height: 64px; font-size: 58px; line-height: 1; color: #be9158; margin-bottom: 32px; }
.sky-symbol span { position: absolute; inset: 0; transition: opacity .7s, transform .7s; }
.sky-symbol .moon { opacity: 0; transform: rotate(-30deg); color: #c4d9ee; }
.mode-switch { display: inline-flex; padding: 5px; gap: 3px; border: 1px solid #b8cbd4; border-radius: 30px; }
.mode-switch button { padding: 10px 15px; border: 0; border-radius: 22px; background: transparent; color: inherit; cursor: pointer; font-size: 12px; min-height: 44px; }
.mode-switch button[aria-pressed="true"] { background: white; color: var(--ink); box-shadow: 0 3px 10px #14233810; }
.night-copy h3 { font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif; font-size: clamp(36px, 4.3vw, 56px); line-height: 1.08; letter-spacing: -.035em; margin: 28px 0 22px; }
.night-experience .night-mode-note { margin: 0; text-align: left; font-size: 14px; transition: color .8s; }
.night-hint { margin: 26px 0 0; font-size: 11px; color: var(--deep); transition: color .8s; }
.night-phone { position: relative; width: 248px; aspect-ratio: 1344 / 2992; justify-self: center; border: 7px solid #fffefa; border-radius: 34px; box-shadow: 0 24px 60px #14233830; overflow: hidden; transform: rotate(3deg); transition: transform .8s, border-color .8s; }
.night-phone img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: opacity .8s; }
.night-dark-image { opacity: 0; }
.night-experience[data-night="true"] { background: var(--night); color: #eef5fc; border-color: #29415d; }
[data-night="true"] .night-mode-note { color: #afc1d4; }
[data-night="true"] .night-hint { color: #b2cde7; }
[data-night="true"] .sky-symbol .sun { opacity: 0; transform: rotate(30deg); }
[data-night="true"] .sky-symbol .moon { opacity: 1; transform: rotate(0); }
[data-night="true"] .night-phone { border-color: #29415d; transform: rotate(-3deg); }
[data-night="true"] .night-dark-image { opacity: 1; }
[data-night="true"] .night-light-image { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter-soft .8s both; }
  .demo-phone { animation: enter-soft 1s .15s both; }
  .demo-scene:not([hidden]) { animation: enter-soft .55s both; }
  .story-chapter.is-active .mini-day i { animation: draw-bar .8s both; }
  .story-chapter.is-active .mini-day i:nth-of-type(2) { animation-delay: .1s; }
  .story-chapter.is-active .mini-day i:nth-of-type(3) { animation-delay: .2s; }
  .story-chapter.is-active .mini-day i:nth-of-type(4) { animation-delay: .3s; }
  .reveal-ready { opacity: 0; translate: 0 18px; transition: opacity .7s, translate .7s; }
  .reveal-ready.is-visible { opacity: 1; translate: 0 0; }
}
@keyframes enter-soft { from { opacity: 0; translate: 0 15px; } to { opacity: 1; translate: 0 0; } }
@keyframes draw-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 25px; padding-top: 35px; }
  .hero h1 { font-size: 57px; }
  .hero dl { grid-template-columns: 1fr; gap: 9px; margin-top: 28px; }
  .hero dl div { display: flex; align-items: baseline; gap: 15px; justify-content: space-between; padding-top: 9px; }
  .hero dd { text-align: right; }
  .hero .actions { gap: 18px; flex-wrap: wrap; }
  .hero-art .note-a { left: -8px; top: 75px; }
  .hero-art .note-b { right: -4px; bottom: 180px; }
  .care-story { gap: 45px; }
  .story-halo { width: 330px; height: 330px; }
  .story-nav button { padding-inline: 10px; }
  .night-experience { padding: 45px; gap: 30px; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .story-phone { width: 220px; }
  .story-nav { margin-top: 15px; }
  .story-visual { top: 10px; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 45px 0; gap: 35px; }
  .hero-copy { max-width: 590px; }
  .hero h1 { font-size: clamp(42px, 9vw, 64px); }
  .hero .intro { font-size: 15px; margin-top: 23px; }
  .hero .actions { flex-direction: row; align-items: center; margin-top: 25px; }
  .hero dl { display: none; }
  .hero-art { min-height: 700px; width: min(440px, 100%); justify-self: center; overflow: visible; }
  .hero-art .orbit { width: min(350px, 100%); height: auto; aspect-ratio: 1; }
  .hero-art .note-a { left: 0; top: 88px; }
  .hero-art .note-b { right: 0; bottom: 174px; }
  .care-story { display: block; }
  .story-visual { top: 0; padding: 16px 0 0; background: #f7faf9; z-index: 3; border-bottom: 1px solid var(--line); }
  .story-halo { display: none; }
  .story-phone { width: 142px; border-width: 5px; border-radius: 22px; }
  .story-nav { margin-top: 10px; border: none; }
  .story-nav button { min-height: 44px; padding-inline: 16px; }
  .story-chapter { min-height: 410px; padding: 38px 12px; scroll-margin-top: 400px; }
  .story-chapter h3 { font-size: 35px; }
  .story-chapter>p:not(.chapter-label) { font-size: 14px; line-height: 1.8; }
  .chapter-label { margin-bottom: 18px; }
  .story-detail { margin-top: 23px; }
  .night-experience { grid-template-columns: 1fr; padding: 34px 24px 42px; gap: 40px; border-radius: 28px; }
  .night-copy h3 { font-size: 44px; }
  .sky-symbol { font-size: 46px; height: 48px; margin-bottom: 22px; }
  .night-phone { width: 224px; }
  #screens { padding-top: 20px; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .story-phone { width: 110px; border-radius: 18px; }
  .story-chapter { scroll-margin-top: 320px; }
}
@media (max-width: 360px) {
  .hero-art .phone { width: 246px; height: 547px; }
  .hero-art { min-height: 655px; }
  .hero-art .note { min-width: 125px; padding: 10px; }
  .hero-art .note-a { padding-left: 24px; }
  .note-dot { left: 10px; top: 15px; }
  .demo-sheet { padding-inline: 14px; }
  .story-nav button { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal-ready { opacity: 1; translate: none; }
}
