:root {
  color-scheme: light dark;
  --paper: #eef0e8;
  --sheet: #f8f8f2;
  --ink: #202c24;
  --soft: #556257;
  --faint: #59665b;
  --line: #ccd3c8;
  --green: #1d6b49;
  --green-deep: #203e2e;
  --green-pale: #dce8db;
  --gold: #d4a84f;
  --white: #f4f6ef;
  --display: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", serif;
  --body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --gutter: max(24px, calc((100vw - 1240px) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
.download-primary :focus-visible { outline-color: var(--gold); }
::selection { background: var(--green-pale); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
h2 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.35; text-wrap: balance; }
h3 { font-size: 23px; line-height: 1.5; }
p { line-height: 1.85; }
/* Layers: skip link 3, feedback 2; page content stays in normal flow. */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 3; padding: 12px 18px; background: var(--green-deep); color: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; gap: 32px; height: 80px; margin: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.brand { display: inline-grid; grid-template-columns: 40px auto; grid-template-rows: 23px 14px; align-items: center; gap: 0 10px; font: 700 21px var(--display); }
.brand-mark { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #1d6b49; color: var(--white); }
.brand-mark svg { width: 31px; }
.brand-sun { fill: var(--gold); }
.brand small { color: var(--faint); font: 600 9px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
nav { display: flex; gap: 28px; margin-left: auto; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); font-size: 14px; }
nav a:hover, footer a:hover { color: var(--green); }
.header-download { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--green); border-radius: 8px; color: var(--green); font-size: 13px; font-weight: 600; white-space: nowrap; }
.header-download:hover { background: var(--green); color: var(--sheet); }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; min-height: min(780px, calc(100dvh - 80px)); padding: 64px var(--gutter) 80px; }
.eyebrow { margin-bottom: 28px; color: var(--green); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.hero h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.3; letter-spacing: -.035em; }
.hero h1 em { display: block; margin-top: 8px; color: var(--green); font-style: normal; }
.hero-lead { max-width: 30em; margin-top: 28px; color: var(--soft); font-size: 16px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 32px; }
.button, .download-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 0 22px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform 180ms ease, background 180ms ease; }
.button-primary { background: var(--green); color: var(--sheet); }
.button:hover, .download-button:hover { transform: translateY(-2px); }
.button:active, .download-button:active, .header-download:active, .download-secondary button:active { transform: translateY(1px); }
.text-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; color: var(--soft); font-size: 13px; }
.text-link:hover { color: var(--green); }
.inline-arrow { font: 20px/1 var(--body); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 28px 0 0; padding: 0; color: var(--faint); font-size: 12px; list-style: none; }
.hero-visual { align-self: center; padding: 36px 36px 28px; border-radius: 16px; background: var(--green-deep); }
.app-window { overflow: hidden; border: 1px solid #c8d4c9; border-radius: 12px; background: var(--sheet); color: var(--ink); box-shadow: 0 22px 50px #13281d45; }
.app-window-header { display: flex; align-items: start; justify-content: space-between; padding: 27px 28px 23px; }
.app-window-header small { display: block; color: var(--green); font: 600 10px var(--body); letter-spacing: .15em; }
.app-window-header strong { display: block; margin-top: 13px; font: 600 42px/1 var(--display); }
.app-window-header p { margin-top: 12px; color: var(--soft); font-size: 12px; }
.app-window-header time { color: var(--faint); font: 12px/1.7 var(--body); text-align: right; }
.check-in-card { position: relative; margin: 0 18px; padding: 28px 30px 30px; border: 1px solid #d5ddd4; border-radius: 22px 4px 22px 4px; background: #f6f7ef; box-shadow: 0 14px 26px #54665712; }
.check-in-meta { display: flex; justify-content: space-between; color: var(--green); font: 600 11px var(--body); letter-spacing: .08em; }
.check-in-meta i { display: block; width: 56px; height: 6px; border-radius: 99px; background: var(--green); }
.check-in-card h2 { max-width: 10em; margin-top: 58px; font-size: clamp(25px, 3vw, 39px); line-height: 1.35; }
.check-in-card p { margin-top: 16px; color: var(--soft); font-size: 14px; }
.check-in-link { display: grid; place-items: center; min-height: 48px; margin-top: 26px; border-radius: 8px; background: var(--green-pale); color: var(--green); font-size: 14px; font-weight: 600; }
.app-window-footer { display: flex; align-items: center; justify-content: space-between; padding: 27px 28px; color: var(--soft); font-size: 12px; }
.app-window-footer span { color: var(--green); font-weight: 600; letter-spacing: .1em; }
.app-window-footer b { font-weight: 400; }

.record { display: grid; grid-template-columns: .92fr 1.08fr; gap: 28px 88px; padding: 104px var(--gutter); background: var(--sheet); }
.section-label { grid-column: 1 / -1; color: var(--green); font-size: 13px; font-weight: 600; }
.record-intro > p { max-width: 31em; margin-top: 24px; color: var(--soft); font-size: 16px; }
.record-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; padding-top: 5px; }
.record-steps small { color: var(--faint); font-size: 12px; }
.record-steps h3 { margin: 10px 0; }
.record-steps p { color: var(--soft); font-size: 14px; }

.archive { padding: 100px var(--gutter); background: var(--green-deep); color: var(--white); }
.section-label-light { color: var(--gold); }
.archive-heading { max-width: 720px; margin: 24px 0 52px; }
.archive-heading > p { max-width: 38em; margin-top: 24px; color: #ccd9ce; font-size: 16px; }
.archive-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 64px; }
.archive-card { padding: 26px 0; border-top: 1px solid #5e7665; }
.archive-card small { color: var(--gold); font-size: 13px; }
.archive-card h3 { margin: 12px 0; }
.archive-card p { max-width: 32em; color: #ccd9ce; font-size: 15px; }
.timeline-card { grid-row: span 2; }
.timeline-card h3 { max-width: 10em; margin-top: 30px; font-size: 34px; }
.timeline-card p { margin-top: 24px; }

.spaces { display: grid; grid-template-columns: 1fr .85fr; gap: 40px 100px; padding: 112px var(--gutter); }
.spaces-heading h2 { margin-top: 24px; }
.spaces-heading > p:last-child { max-width: 32em; margin-top: 24px; color: var(--soft); font-size: 16px; }
.space-list { display: grid; grid-column: 1; gap: 26px; }
.space-item { padding-left: 22px; border-left: 2px solid var(--line); }
.space-item small { color: var(--green); font-size: 12px; font-weight: 600; }
.space-item h3 { margin: 5px 0 8px; font-size: 21px; }
.space-item p { color: var(--soft); font-size: 14px; }
.spaces-media { grid-column: 2; grid-row: 1 / 3; align-self: center; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--green-pale); }
.music-window { max-width: 310px; margin: auto; padding: 23px 22px 27px; border-radius: 12px; background: var(--sheet); color: var(--ink); box-shadow: 0 16px 34px #203e2e1c; }
.music-window > header { display: flex; align-items: start; justify-content: space-between; color: var(--soft); }
.music-window > header > span { font-size: 26px; line-height: 1; }
.music-window > header div { text-align: center; }
.music-window > header strong { display: block; font: 600 20px var(--display); }
.music-window > header small { display: block; margin-top: 5px; color: var(--faint); font-size: 10px; }
.record-disc { position: relative; display: grid; place-items: center; width: min(100%, 240px); aspect-ratio: 1; margin: 66px auto 48px; border: 1px solid #45534a; border-radius: 50%; background: repeating-radial-gradient(circle, #202920 0 2px, #161c17 3px 5px); box-shadow: 0 12px 22px #1b281c33; }
.record-disc i { position: absolute; width: 42%; aspect-ratio: 1; border: 9px solid var(--green); border-radius: 50%; background: #26583e; }
.record-disc b { position: relative; z-index: 1; color: var(--white); font-size: 45px; font-weight: 400; }
.music-title { text-align: center; }
.music-title h3 { font-size: 26px; }
.music-title p { margin-top: 4px; color: var(--soft); font-size: 13px; }
.music-progress { height: 6px; margin-top: 52px; border-radius: 99px; background: #d4d8d1; }
.music-progress span { display: block; width: 8%; height: 100%; border-radius: inherit; background: var(--green); }
.music-times { display: flex; justify-content: space-between; margin-top: 8px; color: var(--faint); font-size: 11px; }
.music-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; color: var(--soft); font-size: 20px; }
.music-controls b { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 24px; font-weight: 400; }
.spaces-media-caption { margin: 24px 0 0; text-align: center; font-size: 13px; }
.spaces-media-caption span { display: block; margin-bottom: 8px; color: var(--green); font-weight: 600; }
.spaces-media-caption b { color: var(--soft); font-weight: 400; }

.care { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 100px var(--gutter); background: var(--green-deep); color: var(--white); }
.eyebrow-light { color: var(--gold); }
.care-copy > p:last-child { max-width: 31em; margin-top: 24px; color: #ccd9ce; font-size: 16px; }
.care-points { display: grid; align-content: center; gap: 28px; }
.care-points article { padding-left: 24px; border-left: 1px solid #5e7665; }
.care-points p { margin-top: 10px; color: #ccd9ce; font-size: 14px; }

.download { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 80px; padding: 110px var(--gutter); background: var(--sheet); }
.download h2 { font-size: clamp(32px, 3.1vw, 44px); }
.download-copy > p { max-width: 28em; margin-top: 24px; color: var(--soft); font-size: 16px; }
.download-panel { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.download-primary { padding: 32px; background: var(--green-deep); color: var(--white); }
.available { color: var(--gold); font-size: 12px; }
.platform-copy { margin: 24px 0; }
.platform-copy small { color: #ccd9ce; font-size: 13px; }
.platform-copy h3 { margin: 5px 0 8px; font-size: 30px; }
.platform-copy p { color: #ccd9ce; font-size: 14px; }
.download-button { display: flex; justify-content: space-between; background: var(--gold); color: #203e2e; }
.download-primary details { margin-top: 20px; color: #ccd9ce; font-size: 13px; }
.download-primary summary { width: fit-content; cursor: pointer; padding: 8px 0; }
.download-primary details p { margin-top: 8px; white-space: pre-line; line-height: 1.9; }
.download-secondary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 32px; }
.download-secondary small { color: var(--faint); font-size: 12px; }
.download-secondary h3 { margin: 4px 0; font-size: 22px; }
.download-secondary p { color: var(--soft); font-size: 13px; }
.download-secondary button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--green); font-size: 13px; }
.download-secondary button:hover { background: var(--green-pale); }

footer { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; padding: 48px var(--gutter); }
.footer-brand { justify-self: start; }
footer > p { grid-column: 1; color: var(--soft); font-size: 14px; }
footer > div { grid-column: 2; grid-row: 1 / 3; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px 22px; max-width: 340px; color: var(--faint); font-size: 12px; }
footer > div a { display: inline-flex; align-items: center; min-height: 44px; }
footer > div span { width: 100%; text-align: right; }
.toast { position: fixed; z-index: 2; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 16px; width: min(380px, calc(100% - 48px)); padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); box-shadow: 0 16px 40px #203e2e26; opacity: 0; transform: translateY(12px); transition: opacity 220ms ease, transform 220ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast > span { color: var(--green); font-size: 14px; font-weight: 600; }
.toast p { color: var(--soft); font-size: 13px; }
.toast strong { display: block; color: var(--ink); font-size: 15px; }

@media (prefers-color-scheme: dark) {
  :root { --paper: #18251e; --sheet: #202e25; --ink: #edf2e8; --soft: #bdcbbb; --faint: #a4b4a5; --line: #455b49; --green: #a6d4ae; --green-deep: #12261c; --green-pale: #2b4030; }
}

@media (max-width: 1024px) {
  .site-header { gap: 24px; }
  nav { gap: 20px; }
  .hero { gap: 40px; min-height: 660px; }
  .hero h1 { font-size: 42px; }
  .hero-visual { padding: 24px; }
  .record { gap: 28px 48px; }
  .record-steps { gap: 28px 24px; }
  .record-steps h3 { font-size: 21px; }
  .spaces, .care { column-gap: 48px; }
  .download { gap: 40px; }
}

@media (max-width: 767px) {
  :root { --gutter: 24px; }
  .site-header { height: 72px; gap: 16px; flex-wrap: wrap; }
  .brand { font-size: 19px; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
  nav a { font-size: 12px; }
  .site-header { height: auto; padding-top: 16px; }
  .header-download { margin-left: auto; padding: 0 12px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding-top: 44px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(34px, 7vw, 46px); }
  .eyebrow { margin-bottom: 20px; font-size: 12px; }
  .hero-lead { margin-top: 22px; font-size: 15px; }
  .hero-actions { margin-top: 24px; }
  .hero-trust { margin-top: 22px; gap: 8px 16px; }
  .hero-visual { width: 100%; max-width: 460px; justify-self: center; }
  .app-window-header { padding: 22px 20px 18px; }
  .app-window-header strong { font-size: 34px; }
  .check-in-card { padding: 23px 22px 24px; }
  .check-in-card h2 { margin-top: 42px; font-size: 27px; }
  .app-window-footer { padding: 20px; }
  .record, .archive, .spaces, .care, .download { padding-top: 64px; padding-bottom: 64px; }
  .record { grid-template-columns: 1fr; gap: 22px; }
  .record-steps { margin-top: 14px; gap: 30px 24px; }
  .record-steps h3 { font-size: 21px; }
  .archive-heading { margin-bottom: 32px; }
  .archive-grid { grid-template-columns: 1fr; }
  .timeline-card { grid-row: auto; }
  .timeline-card h3 { max-width: none; margin-top: 12px; font-size: 23px; }
  .timeline-card p { margin-top: 12px; }
  .spaces { grid-template-columns: 1fr; gap: 32px; }
  .space-list, .spaces-media { grid-column: auto; grid-row: auto; }
  .spaces-media { padding: 24px; }
  .music-window { max-width: 300px; }
  .care, .download { grid-template-columns: 1fr; gap: 36px; }
  .download-primary { padding: 28px; }
  .download-secondary { padding: 24px 28px; }
  footer { grid-template-columns: 1fr; gap: 24px; }
  footer > div { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  footer > div span { text-align: left; }
}

@media (max-width: 380px) {
  :root { --gutter: 20px; }
  .header-download { padding: 0 10px; font-size: 11px; }
  .hero h1 { font-size: 32px; }
  .hero-actions { gap: 8px 20px; }
  .record-steps { grid-template-columns: 1fr; }
  .download-secondary { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-enter { animation: enter 650ms both; }
  .hero-enter-2 { animation-delay: 70ms; }
  .hero-enter-3 { animation-delay: 140ms; }
  .hero-enter-4 { animation-delay: 210ms; }
  .hero-enter-5 { animation-delay: 280ms; }
  [data-reveal].is-visible { animation: enter 600ms both; }
  @keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
