:root {
  color-scheme: light;
  --paper: #f3f1ec;
  --surface: #fffefa;
  --ink: #212526;
  --muted: #666b68;
  --line: #dcd9d0;
  --lime: #d8ff48;
  --lime-deep: #a9d600;
  --teal: #155c5c;
  --teal-soft: #dcedea;
  --orange: #f47a45;
  --shadow: 0 26px 70px rgb(33 37 38 / 12%);
  --page: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.shell { width: min(calc(100% - 48px), var(--page)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 9px 14px; border-radius: 8px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgb(220 217 208 / 80%); background: rgb(243 241 236 / 88%); backdrop-filter: blur(18px); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; width: min(calc(100% - 48px), var(--page)); min-height: 74px; margin-inline: auto; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.04em; }
.brand img { border-radius: 10px; box-shadow: 0 5px 16px rgb(33 37 38 / 16%); }
.site-header nav { display: flex; justify-content: center; gap: 34px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.site-header nav a:hover, footer nav a:hover { color: var(--teal); }
.header-action { padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: .82rem; font-weight: 800; transition: .16s ease; }
.header-action:hover { background: var(--ink); color: white; transform: translateY(-1px); }

.hero { display: grid; grid-template-columns: 1fr .92fr; align-items: center; min-height: 690px; padding-block: 84px 104px; gap: 68px; }
.eyebrow { display: flex; align-items: center; margin: 0 0 18px; gap: 9px; color: var(--teal); font-size: .76rem; font-weight: 800; letter-spacing: .1em; }
.eyebrow span { width: 28px; height: 2px; border-radius: 99px; background: var(--lime-deep); }
.hero h1, .section-heading h2, .app-preview h2, .closing h2, .manual-hero h1 { margin: 0; font-weight: 850; letter-spacing: -.065em; line-height: 1.16; }
.hero h1 { font-size: clamp(3.3rem, 5.6vw, 5rem); }
.lead { max-width: 590px; margin: 28px 0 0; color: var(--muted); font-size: 1.06rem; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; margin-top: 32px; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: white; box-shadow: 0 12px 28px rgb(33 37 38 / 18%); }
.button.secondary { border: 1px solid var(--line); background: var(--surface); }
.availability { display: flex; align-items: center; margin: 20px 0 0; gap: 8px; color: var(--muted); font-size: .78rem; }
.availability i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 0 4px rgb(169 214 0 / 16%); }

.timer-stage { position: relative; min-height: 500px; padding: 66px 46px; border-radius: 34px; overflow: hidden; background: var(--teal); box-shadow: var(--shadow); }
.timer-stage::before { position: absolute; width: 350px; height: 350px; border: 1px solid rgb(216 255 72 / 20%); border-radius: 50%; content: ""; top: -110px; right: -90px; box-shadow: 0 0 0 48px rgb(216 255 72 / 5%), 0 0 0 98px rgb(216 255 72 / 3%); }
.menu-bar { position: absolute; top: 24px; right: 28px; display: flex; align-items: center; gap: 12px; color: white; font-size: .7rem; }
.menu-bar strong { padding: 7px 13px; border-radius: 8px; background: rgb(0 0 0 / 22%); font-variant-numeric: tabular-nums; }
.timer-card { position: relative; margin-top: 44px; padding: 28px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 22px; background: rgb(255 255 255 / 11%); color: white; backdrop-filter: blur(10px); }
.timer-card small { color: #b9d6d1; font-size: .72rem; }
.timer-card > strong { display: block; margin-top: 5px; font-size: 1.25rem; }
.timer-card b { display: block; margin: 20px 0 16px; color: var(--lime); font-size: clamp(3.6rem, 7vw, 5.1rem); letter-spacing: -.08em; line-height: 1; font-variant-numeric: tabular-nums; }
.timer-card p { margin: 16px 0 0; color: #c9dbd8; font-size: .74rem; }
.progress { height: 5px; border-radius: 99px; background: rgb(255 255 255 / 15%); overflow: hidden; }
.progress span { display: block; width: 61%; height: 100%; border-radius: inherit; background: var(--lime); }
.boundary-card { position: absolute; right: 22px; bottom: 22px; display: flex; align-items: center; padding: 14px 18px; gap: 12px; border-radius: 16px; background: var(--lime); box-shadow: 0 12px 24px rgb(0 0 0 / 18%); }
.boundary-card > span { font-size: 1.4rem; }
.boundary-card small, .boundary-card strong { display: block; line-height: 1.35; }
.boundary-card small { font-size: .62rem; }
.boundary-card strong { font-size: .82rem; }

.facts { border-block: 1px solid var(--line); background: var(--surface); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact-grid p { margin: 0; padding: 27px 38px; border-right: 1px solid var(--line); }
.fact-grid p:first-child { border-left: 1px solid var(--line); }
.fact-grid strong, .fact-grid span { display: block; }
.fact-grid strong { font-size: 1.08rem; }
.fact-grid span { color: var(--muted); font-size: .75rem; }

.section { padding-block: 120px; }
.section-heading { max-width: 700px; margin-bottom: 52px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.eyebrow.centered { justify-content: center; }
.section-heading h2, .app-preview h2, .closing h2 { font-size: clamp(2.35rem, 4vw, 3.5rem); }
.section-heading > p:last-child { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-grid article { position: relative; min-height: 285px; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 12px 34px rgb(33 37 38 / 5%); }
.feature-grid article > b { color: var(--teal); font-size: .7rem; letter-spacing: .1em; }
.feature-icon { display: grid; width: 52px; height: 52px; margin: 28px 0 24px; place-items: center; border-radius: 15px; background: var(--teal-soft); color: var(--teal); font-size: 1.45rem; font-weight: 800; }
.feature-grid article:nth-child(2) .feature-icon { background: #eef7c6; }
.feature-grid article:nth-child(3) .feature-icon { background: #ffeadf; color: #a7461d; }
.feature-grid h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.035em; }
.feature-grid p { margin-bottom: 0; color: var(--muted); }

.app-preview { padding-block: 112px; background: var(--ink); color: white; }
.preview-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 70px; }
.eyebrow.light { color: var(--lime); }
.app-preview p { color: #bfc3c2; }
.app-preview figure { margin: 0; }
.app-preview figure img { width: 100%; border: 1px solid rgb(255 255 255 / 15%); border-radius: 19px; box-shadow: 0 30px 70px rgb(0 0 0 / 42%); }
.app-preview figcaption { margin-top: 12px; color: #989e9c; font-size: .68rem; }
.text-link { display: inline-block; margin-top: 18px; color: var(--lime); font-weight: 800; }

.principle-list { display: grid; border-top: 1px solid var(--line); }
.principle-list article { display: grid; grid-template-columns: 190px 1fr; align-items: center; padding: 24px 6px; border-bottom: 1px solid var(--line); gap: 28px; }
.principle-list span { font-weight: 850; font-size: 1.15rem; }
.principle-list p { margin: 0; color: var(--muted); }
.closing { padding-block: 110px; text-align: center; background: var(--lime); }
.closing img { margin: 0 auto 22px; border-radius: 18px; box-shadow: 0 12px 28px rgb(33 37 38 / 18%); }
.closing p { max-width: 590px; margin: 22px auto 28px; }

footer { padding-block: 34px; border-top: 1px solid var(--line); background: var(--surface); }
footer .shell { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 36px; }
footer nav { display: flex; gap: 24px; color: var(--muted); font-size: .78rem; font-weight: 700; }
footer p { margin: 0; color: var(--muted); font-size: .72rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } [data-reveal] { opacity: 1; transform: none; transition: none; } }

.manual-hero { padding-block: 84px 70px; border-bottom: 1px solid var(--line); background: var(--surface); }
.manual-hero h1 { font-size: clamp(2.8rem, 5vw, 4.4rem); }
.manual-hero > .shell > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 1.05rem; }
.manual-meta { display: flex; margin-top: 28px; gap: 10px; }
.manual-meta span { padding: 7px 12px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .72rem; font-weight: 700; }
.manual-layout { display: grid; grid-template-columns: 210px minmax(0, 760px); justify-content: space-between; padding-block: 72px 120px; gap: 64px; }
.manual-layout aside nav { position: sticky; top: 106px; display: grid; gap: 5px; }
.manual-layout aside strong { margin-bottom: 10px; font-size: .78rem; }
.manual-layout aside a { padding: 6px 10px; border-radius: 7px; color: var(--muted); font-size: .76rem; }
.manual-layout aside a:hover { background: var(--surface); color: var(--teal); }
.manual-content > section { padding-bottom: 72px; margin-bottom: 72px; border-bottom: 1px solid var(--line); }
.manual-content > section:last-child { border-bottom: 0; }
.chapter { display: grid; width: 38px; height: 38px; margin: 0 0 16px; place-items: center; border-radius: 50%; background: var(--lime); font-size: .8rem; font-weight: 850; }
.manual-content h2 { margin: 0 0 34px; font-size: 2.2rem; letter-spacing: -.05em; line-height: 1.3; }
.manual-content h3 { margin: 38px 0 12px; font-size: 1.22rem; letter-spacing: -.025em; }
.manual-content p, .manual-content li, .manual-content dd { color: #545a57; }
.manual-content li { margin-bottom: 8px; padding-left: 6px; }
.manual-content strong { color: var(--ink); }
.note, .warning { padding: 22px 24px; margin-top: 28px; border-left: 4px solid var(--teal); border-radius: 0 14px 14px 0; background: var(--teal-soft); }
.warning { border-left-color: var(--orange); background: #ffeadf; }
.note p, .warning p { margin: 5px 0 0; font-size: .9rem; }
.sequence { display: flex; align-items: center; margin: 24px 0 28px; gap: 8px; }
.sequence > div { display: grid; min-width: 92px; padding: 14px 8px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sequence b { font-size: 1.4rem; }
.sequence span { color: var(--muted); font-size: .68rem; }
.sequence i { color: var(--muted); font-style: normal; }
.manual-content dl { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.manual-content dl div { display: grid; grid-template-columns: 165px 1fr; padding: 15px 18px; gap: 20px; background: var(--surface); }
.manual-content dt { font-weight: 800; }
.manual-content dd { margin: 0; }
.manual-content code { padding: 2px 6px; border-radius: 5px; background: #e4e2dc; color: var(--ink); font-family: ui-monospace, monospace; font-size: .88em; }
.error-page { display: grid; min-height: 100vh; padding: 24px; place-items: center; align-content: center; text-align: center; }
.error-page img { border-radius: 17px; }
.error-page h1 { margin-bottom: 0; }
.error-page p { color: var(--muted); }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; padding-block: 70px; }
  .timer-stage { min-height: 470px; }
  .preview-grid { grid-template-columns: 1fr; }
  .manual-layout { grid-template-columns: 1fr; }
  .manual-layout aside { display: none; }
  .sequence { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .shell, .header-inner { width: min(calc(100% - 28px), var(--page)); }
  .header-action { padding: 8px 12px; font-size: .7rem; }
  .hero h1 { font-size: 3rem; }
  .timer-stage { min-height: 410px; padding: 56px 18px; border-radius: 24px; }
  .timer-card b { font-size: 3.5rem; }
  .boundary-card { right: 12px; bottom: 12px; }
  .fact-grid, .feature-grid { grid-template-columns: 1fr; }
  .fact-grid p, .fact-grid p:first-child { border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .section { padding-block: 84px; }
  .principle-list article { grid-template-columns: 1fr; gap: 4px; }
  footer .shell { grid-template-columns: 1fr; gap: 18px; }
  .manual-hero { padding-block: 60px 48px; }
  .manual-meta { flex-wrap: wrap; }
  .manual-layout { padding-block: 54px 90px; }
  .manual-content h2 { font-size: 1.85rem; }
  .manual-content dl div { grid-template-columns: 1fr; gap: 2px; }
}
