/* IDLE. — idle.fs.kg · 静绿「喘息指南」 */
:root {
  --bg: #f8f8f5;
  --surface: #ffffff;
  --ink: #151a17;
  --muted: #69716b;
  --faint: #9aa29b;
  --line: #e6e8e2;
  --line-strong: #d3d7cf;
  --accent: #2e6b4f;
  --accent-ink: #ffffff;
  --accent-soft: #e8f1ea;
  --shadow: 0 20px 60px -34px rgba(20, 44, 30, .3), 0 2px 8px rgba(20, 44, 30, .05);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --radius: 4px;
}
[data-theme="dark"] {
  --bg: #111311;
  --surface: #1a1d1a;
  --ink: #f0f3ee;
  --muted: #9da69d;
  --faint: #6d766d;
  --line: #2b302b;
  --line-strong: #3e453e;
  --accent: #79c79a;
  --accent-ink: #0d1a12;
  --accent-soft: #182b20;
  --shadow: 0 20px 60px -36px rgba(0, 0, 0, .85), 0 2px 8px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(100% - 48px, 1160px); margin: 0 auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.accent, .brand-dot { color: var(--accent); }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.eyebrow .sep { color: var(--line-strong); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 16px; letter-spacing: -.03em; }
.brand-mark { width: 26px; height: 26px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 5px; font-family: var(--mono); font-size: 14px; font-weight: 700; line-height: 1; }
.nav { display: flex; gap: 22px; margin-left: auto; margin-right: 12px; }
.nav a { font-size: 13px; color: var(--muted); position: relative; padding: 6px 0; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .2s ease; }
.nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 100px; background: var(--surface); cursor: pointer; font-size: 12px; color: var(--muted); transition: border-color .15s ease, color .15s ease; }
.theme-btn:hover { border-color: var(--accent); color: var(--ink); }
.theme-ico { display: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[data-theme-choice="system"] .theme-ico--system,
[data-theme-choice="light"] .theme-ico--light,
[data-theme-choice="dark"] .theme-ico--dark { display: block; }
.menu-btn { display: none; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); cursor: pointer; padding: 9px 8px; }
.menu-btn span { display: block; height: 1.5px; background: var(--ink); margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* hero */
.hero { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 600px; height: 600px; right: -210px; top: -300px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 68%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; padding: 100px 0 92px; }
.hero-copy h1 { margin: 26px 0 22px; font-size: clamp(46px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.055em; font-weight: 720; }
.lede { margin: 0; max-width: 48ch; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.hero-note { margin: 20px 0 0; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }

/* hero panel */
.hero-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); overflow: hidden; }
.panel-bar { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: color-mix(in srgb, var(--bg) 60%, var(--surface)); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.dots i:first-child { background: var(--accent); }
.panel-url { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.panel-tag { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--accent); }
.panel-head { display: flex; justify-content: space-between; padding: 18px 20px 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--faint); }
.panel-list { list-style: none; margin: 0; padding: 0 12px 12px; }
.panel-list li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-top: 1px solid var(--line); }
.panel-list li:first-child { border-top: 0; }
.panel-id { font-family: var(--mono); font-size: 10px; color: var(--faint); width: 26px; flex: none; }
.panel-name { flex: 1; min-width: 0; }
.panel-name b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-name small { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.panel-when { font-family: var(--mono); font-size: 9.5px; color: var(--accent); white-space: nowrap; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; color: var(--faint); }
.panel-arrow { color: var(--accent); font-size: 13px; }

/* callout */
.callout { border-bottom: 1px solid var(--line); background: var(--accent-soft); }
.callout-inner { display: flex; align-items: center; gap: 16px; padding: 20px 0; }
.callout-mark { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-weight: 700; }
.callout p { margin: 0; font-size: 14px; line-height: 1.7; }
.callout strong { font-weight: 700; }

/* section */
.section { padding: 88px 0 96px; }
.section--alt { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-head h2 { margin: 12px 0 0; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.045em; font-weight: 700; }
.section-lead { margin: 0 0 28px; color: var(--muted); font-size: 15px; max-width: 62ch; }
.result, .progress-label { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--faint); white-space: nowrap; }

/* checklist */
.progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 26px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width .3s ease; }
.checklist { display: grid; gap: 12px; }
.item { display: grid; grid-template-columns: 30px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 22px; transition: border-color .15s ease, box-shadow .15s ease; }
.item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.item.is-done { opacity: .62; }
.item.is-done .item-title { text-decoration: line-through; text-decoration-color: var(--faint); }
.item-check { width: 26px; height: 26px; border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--bg); cursor: pointer; display: grid; place-items: center; padding: 0; transition: all .15s ease; }
.item-check:hover { border-color: var(--accent); }
.item.is-done .item-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.item-check svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; opacity: 0; }
.item.is-done .item-check svg { opacity: 1; }
.item-title { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.item-n { font-family: var(--mono); font-size: 10px; color: var(--accent); }
.item-when { font-family: var(--mono); font-size: 10px; color: var(--faint); font-weight: 400; }
.item-body { margin: 10px 0 0; font-size: 14px; color: var(--muted); line-height: 1.75; }
.item-done { margin: 12px 0 0; padding: 10px 12px; border-left: 2px solid var(--accent); background: var(--accent-soft); font-size: 13px; color: var(--ink); }
.item-done b { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: .06em; margin-right: 8px; }
.reset-btn { margin-top: 22px; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; padding: 6px 0; border-bottom: 1px solid var(--line-strong); }
.reset-btn:hover { color: var(--accent); border-color: var(--accent); }

/* triage */
.triage-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.route-chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); border-radius: 6px; padding: 12px 16px; cursor: pointer; text-align: left; min-width: 150px; transition: all .15s ease; }
.route-chip:hover { border-color: var(--accent); color: var(--ink); }
.route-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.route-chip b { display: block; font-size: 14px; }
.route-chip small { display: block; font-family: var(--mono); font-size: 10px; opacity: .75; margin-top: 2px; }
.route-card { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 28px 30px; box-shadow: var(--shadow); }
.route-target { margin: 0 0 18px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.route-target::before { content: "→ "; color: var(--accent); font-family: var(--mono); }
.route-steps { list-style: none; counter-reset: r; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.route-steps li { counter-increment: r; position: relative; padding: 14px 0 14px 38px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.route-steps li::before { content: "0" counter(r); position: absolute; left: 0; top: 16px; font-family: var(--mono); font-size: 10px; color: var(--accent); }
.text-link { font-size: 13px; color: var(--accent); border-bottom: 1px solid var(--accent); }

/* phases */
.phases { display: grid; gap: 12px; }
.phase { display: grid; grid-template-columns: 150px 1fr; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 26px 28px; }
.phase-n { font-family: var(--mono); font-size: 40px; line-height: 1; letter-spacing: -.06em; color: var(--line-strong); }
.phase-label { margin: 12px 0 4px; font-size: 18px; font-weight: 650; }
.phase-range { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.phase-focus { margin: 0 0 12px; font-size: 13px; color: var(--accent); font-weight: 600; }
.phase-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.phase-tasks li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.phase-tasks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* calculators */
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.calc-card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.02em; }
.calc-desc { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; }
.fields { display: grid; gap: 12px; }
.fields label { display: grid; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--faint); }
.fields input { height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font-family: var(--sans); font-size: 14px; color: var(--ink); outline: 0; }
.fields input:focus { border-color: var(--accent); }
.calc-result { margin: 20px 0 0; padding: 16px; min-height: 56px; background: var(--accent-soft); border-left: 2px solid var(--accent); font-size: 14px; line-height: 1.6; }
.calc-result b { font-family: var(--mono); font-size: 22px; color: var(--accent); }
.calc-note { margin: 14px 0 0; font-size: 11.5px; color: var(--faint); }
.mini-steps { margin: 18px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 13px; }
.mini-steps li { margin-bottom: 6px; }

/* sops */
.sops { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sop { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sop summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 620; }
.sop summary::-webkit-details-marker { display: none; }
.sop summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 18px; }
.sop[open] summary::after { content: "−"; }
.sop-goal { font-family: var(--mono); font-size: 10px; color: var(--faint); font-weight: 400; margin-left: auto; }
.sop-body { padding: 0 22px 22px; border-top: 1px solid var(--line); }
.sop-body ol { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; }
.sop-body li { counter-increment: s; position: relative; padding: 8px 0 8px 30px; font-size: 13.5px; color: var(--muted); }
.sop-body li::before { content: counter(s); position: absolute; left: 0; top: 10px; font-family: var(--mono); font-size: 10px; color: var(--accent); }

/* faq */
.faqs { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 70ch; }

/* about */
.about { padding: 92px 0; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about h2 { margin: 18px 0 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.12; letter-spacing: -.045em; font-weight: 700; }
.about-copy > p { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-copy a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.about-credit, .about-note { font-size: 12.5px !important; color: var(--faint) !important; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 68px 0 28px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 40px; }
.footer-brand { display: grid; grid-template-columns: 26px auto; column-gap: 10px; align-items: center; align-content: start; }
.footer-brand b { font-size: 16px; letter-spacing: -.03em; }
.footer-brand p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--faint); font-size: 12.5px; }
.footer-grid h3 { margin: 2px 0 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { font-size: 13px; color: var(--muted); transition: color .15s ease; }
.footer-grid a:hover { color: var(--accent); }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; color: var(--faint); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 76px 0 72px; }
  .hero-panel { max-width: 620px; }
  .calc-grid, .sops { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 700px) {
  .wrap { width: min(100% - 36px, 1160px); }
  .nav { position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; margin: 0; padding: 8px 18px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav a::after { display: none; }
  .menu-btn { display: block; }
  .theme-label { display: none; }
  .theme-btn { width: 36px; padding: 0; justify-content: center; }
  .hero-inner { padding: 64px 0 60px; }
  .hero-copy h1 { margin-top: 20px; }
  .section { padding: 64px 0 72px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .item { grid-template-columns: 26px 1fr; gap: 12px; padding: 18px; }
  .phase { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .phase-n { font-size: 28px; }
  .route-chip { min-width: 0; flex: 1 1 45%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .route-chip { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
