/* Shared identity overrides. Page layouts retain the original website structure. */
:root {
  --ink:#f5f5e9; --ink-mid:#faf9ef; --ink-warm:#ffedbc;
  --cream:#173d29; --cream-muted:#4c6555;
  --cinnabar:#276542; --cinnabar-l:#28613e; --gold:#b27a14;
  --line-light:rgba(25,77,50,.14); --line-dark:rgba(25,77,50,.08);
}
body { background:#f7f7ed; background-image:linear-gradient(180deg,#f0f3e4 0%,#faf8ed 36%,#fff9eb 70%,#fbfcf6 100%); color:var(--cream); }
.site-header { background:rgba(247,249,239,.94); }
.brand { white-space:nowrap; }
.brand img,.footer-brand img { border-radius:8px; }
a,button { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible { outline:3px solid #a16b09; outline-offset:5px; }
.skip-link { position:fixed;top:8px;left:8px;transform:translateY(-180%);padding:12px 20px;background:#194d32;color:#fff;z-index:100;border-radius:8px; }
.skip-link:focus { transform:translateY(0); }
section[id],main[id] { scroll-margin-top:84px; }
.hero-inner { padding-top:clamp(70px,12vh,112px); }
.hero-copy { max-width:800px;gap:22px; }
h1 { line-height:1.12;letter-spacing:-.045em; }
.hero-eyebrow { font-size:14px;letter-spacing:.13em; }
.hero-sub { max-width:580px; }
.hero-note { font-size:14px;color:var(--cream-muted); }
.store-link { display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border-radius:12px;background:#194d32;color:#fff3cc;line-height:1.3;font-size:16px;font-weight:700;text-decoration:none;box-shadow:0 5px 0 rgba(18,56,34,.12);transition:transform .2s,background .2s; }
.store-link:hover { background:#276442;transform:translateY(-2px); }
.nav-dl.store-link { min-height:36px;padding:8px 15px;font-size:14px;box-shadow:none;white-space:nowrap; }
.store-link img { height:42px;width:auto; }
.store-link:has(img) { background:transparent;padding:0;box-shadow:none; }
.hero-badge { margin-top:2px; }
.phone-story { padding:32px 0 64px; }
.phone-story-stack { min-height:0; }
.phone-stage { position:relative;top:0;height:auto;gap:16px;pointer-events:auto; }
.phone-frame { height: min(620px,65vh);aspect-ratio:390 / 844;border:7px solid #173d29;border-radius:35px;background:#fff7e4;box-shadow:0 26px 60px -20px rgba(25,77,50,.27),0 0 0 1px #55735b;overflow:hidden; }
.phone-frame img { object-fit:cover;border-radius:0;opacity:0;transition:opacity .35s ease;pointer-events:none; }
.phone-frame img.is-active { opacity:1;z-index:2; }
.phone-caption { opacity:1;gap:8px;min-height:102px; }
.phone-caption h3 { line-height:1.2;font-size:clamp(1.4rem,3.5vw,2rem); }
.phone-caption p { font-size:16px; }
.preview-note { font-size:12px;color:#5c705e; }
.scene-controls { display:flex;align-items:center;justify-content:center;gap:3px; }
.scene-controls button { display:grid;place-items:center;border:0;background:transparent;width:40px;height:36px;cursor:pointer;padding:0;border-radius:8px; }
.scene-controls span { width:7px;height:7px;border-radius:10px;background:#aebcad;transition:width .2s,background .2s; }
.scene-controls [aria-pressed="true"] span { width:26px;background:#28613e; }
html.has-scroll-story .phone-story-stack { height:var(--phone-stack-height); }
html.has-scroll-story .phone-stage { position:sticky;top:var(--phone-sticky-top);height:var(--phone-stage-height); }
html.has-scroll-story .phone-frame { height:var(--phone-frame-height); }
.stat-item { background:rgba(25,77,50,.035); }
.stat-label { font-size:14px;text-align:center; }
.principle-card { position:relative;gap:18px; }
.principle-card h3 { line-height:1.22; }
.principle-card .tag { font-size:14px; }
.feature-animal { width:132px;height:132px;object-fit:contain; }
.principle-card:nth-child(even) .feature-animal { justify-self:end; }
.cta-title { text-align:center;line-height:1.3; }
.cta-support { font-size:14px; }
.cta-app-icon { width:96px;height:96px;border-radius:24px; }
.footer-copy { font-size:12px;color:#627364; }
.footer-links a { font-size:14px; }
.doc-tag,.section h2 .num { background:#e5ecd7;color:#28613e;font-size:14px; }
.doc-tag { letter-spacing:.08em; }
.doc-title { line-height:1.3; }
.doc-meta { color:var(--cream-muted); }
.section { scroll-margin-top:80px; }
.section p,.section li { font-size:16px;line-height:1.85; }
.section h2 { align-items:baseline; }
.section a { text-underline-offset:3px;overflow-wrap:anywhere; }
.summary-card { background:#eef1dd;border:1px solid #cad9b8; }
.summary-card h2 { font-size:16px;margin-bottom:16px;color:#28613e; }
.summary-item { font-size:16px; }
.toc { background:rgba(25,77,50,.035); }
.toc-title,.toc li { font-size:14px; }
.highlight-box { background:#eef1dd; }
.nav-lang { font-size:14px; }
.release-note { color:var(--cream-muted);font-size:16px;margin:0 0 22px;line-height:1.7; }
.version-card { background:rgba(255,255,255,.5); }
.badge-latest { background:#e0ecd3;color:#28613e; }
.type-new { background:#e0ecd3;color:#28613e; }
.type-improve { background:#f9edbf;color:#775714; }
.change-item { font-size:16px;line-height:1.8; }
.version-date { font-size:14px; }
.type-badge { font-size:14px;white-space:nowrap; }
@media (max-width:1100px) {
  .nav { flex-wrap:wrap;gap:12px;padding:12px 0; }
  .nav-links { order:3;width:100%;justify-content:center;gap:20px; }
}
@media (max-width:640px) {
  .site-header { position:relative; }
  .nav { gap:10px; }
  .nav-links { display:flex;justify-content:flex-start;overflow:auto;gap:18px;white-space:nowrap;padding:4px 0 2px; }
  .nav-links a { flex-shrink:0; }
  .brand { font-size:15px; }
  .nav-back,.nav-lang { font-size:14px; }
  .nav-lang { padding:3px 8px; }
  .hero-inner { padding-top:56px; }
  h1 { font-size:clamp(2.8rem,12vw,4.8rem); }
  .hero-eyebrow { font-size:12px;letter-spacing:.09em; }
  .hero-copy { gap:18px; }
  .phone-frame { max-width:calc(100vw - 56px);height:min(62vh,600px);border-width:6px;border-radius:30px; }
  .phone-caption { width:calc(100% - 32px);min-height:112px; }
  .phone-caption p { font-size:16px;line-height:1.65; }
  .stat-item { padding:24px 18px; }
  .principles { padding:36px 0 40px; }
  .principle-card,.principle-card:nth-child(even) { width:100%; }
  .principle-card:nth-child(even) .feature-animal { justify-self:start; }
  .principle-card:nth-child(even) .tag { flex-direction:row; }
  .principle-card p { font-size:17px; }
  .feature-animal { width:108px;height:108px; }
  .summary-card { padding:20px; }
  .footer-links { gap:16px 20px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none!important; }
}
@media print {
  .site-header,.site-footer,.skip-link,.toc { display:none; }
  body { background:white;color:#173d29; }
  .page-wrap { max-width:none;padding:0; }
}
