:root {
  color-scheme: light;
  --ink: #142e35;
  --muted: #4d6367;
  --teal: #005e62;
  --line: #d7e4e1;
  --wash: #edf5f2;
  --lime: #dbf79c;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

html[lang="en"] { font-family: system-ui, sans-serif; }
html[lang="ja"] { font-family: "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif; }
html[lang="zh-Hans"] { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.66; }
figure { margin: 0; }
img { display: block; }
a { color: var(--teal); text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 3px solid #078686; outline-offset: 4px; }
p { margin: 0; }

.skip-link { position: absolute; z-index: 10; top: .7rem; left: .7rem; padding: .65rem 1rem; background: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.app-guide.sleep-guide { --guide-focus: #078686; }
.sleep-hero, .sleep-guide .guide-promo {
  --guide-action: var(--lime);
  --guide-action-text: #18362e;
  --guide-action-hover: #efffcf;
  --guide-focus: var(--lime);
  color: #f3fbf6;
}
.sleep-hero {
  background: radial-gradient(ellipse at 83% 36%, #146b68 0, transparent 48%), linear-gradient(135deg, #09292f, #0c3b3f);
}
.sleep-hero .guide-identity small, .sleep-hero .guide-lead, .sleep-guide .guide-promo p { color: #d9eeeb; }
.requirements { margin-top: 1.05rem; color: #bdd9d7; font-size: .9rem; }
.requirements span { margin-inline: .2rem; }

.hero-stage {
  display: grid;
  place-items: center;
  padding: 1.4rem;
  border: 1px solid #9ed8cd45;
  border-radius: 1.6rem;
  background: repeating-radial-gradient(circle at 50% 53%, transparent 0 35px, #c6f9dc19 36px 37px), radial-gradient(ellipse at 50% 55%, #9ce1b8, #438e88 60%, #14575e);
}
.panel-screenshot { width: 100%; max-width: 15.3rem; height: auto; border-radius: 1.2rem; box-shadow: 0 22px 46px #0b30396b; }

.guide-intro p { color: var(--muted); }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--guide-stack-gap); }
.install-card { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.2rem; }
.install-card p { margin-top: .85rem; color: var(--muted); word-break: keep-all; }
.text-link { display: inline-block; margin-top: .8rem; font-weight: 700; }

.install-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin: 1.2rem 0 0; padding: 1rem .5rem; background: var(--wash); border-radius: .85rem; list-style: none; }
.install-flow li { display: grid; grid-template-rows: 50px auto; place-items: center; gap: .45rem; min-width: 0; text-align: center; font-size: .875rem; font-weight: 700; word-break: keep-all; }
.file-illustration { display: grid; place-items: end center; width: 37px; height: 45px; padding-bottom: .15rem; border: 1px solid #a7c3bc; border-radius: .42rem; background: #fff; color: var(--teal); font: 800 .8rem/1.7 ui-monospace, monospace; box-shadow: 0 2px 4px #0b303918; }
.folder-illustration { position: relative; display: grid; place-items: center; width: 51px; height: 34px; margin-top: 6px; border-radius: .35rem; background: #add7ce; }
.folder-illustration::before { position: absolute; top: -5px; left: 0; width: 22px; height: 9px; border-radius: .22rem .35rem 0 0; background: #add7ce; content: ""; }
.folder-illustration img { position: relative; }

pre { margin: 1.15rem 0 0; padding: 1rem; border-radius: .85rem; background: #0d333a; color: #e9f7e5; font-size: .89rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.copy-command { margin-top: .75rem; }
.copy-feedback:not(:empty) { margin-top: .5rem; color: var(--muted); font-size: .875rem; }

.sleep-usage { background: var(--wash); }
.sleep-guide .guide-promo { background: #0d333a; }
.sleep-guide .guide-promo video { background: #09292f; }

.guide-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--guide-grid-gap); padding-block: var(--guide-stack-gap); border-top: 1px solid #cbded9; }
.guide-row:last-child { padding-bottom: 0; }
.guide-copy p, .guide-copy dd, .guide-copy li { color: var(--muted); word-break: keep-all; }
.guide-copy p, .guide-copy dl, .guide-copy ol { margin: .9rem 0 0; }
.guide-copy dt { font-weight: 800; }
.guide-copy dt + dd { margin: .2rem 0 .85rem; }
.guide-copy ol { padding-left: 1.35rem; }
.guide-copy li + li { margin-top: .45rem; }
.guide-copy strong, .install-card strong { color: var(--ink); }
.guide-figure { padding: clamp(.65rem, 2.4vw, 1.35rem); border: 1px solid #bfd6d0; border-radius: 1.2rem; background: #d9eae5; }
.guide-figure img { width: 100%; height: auto; border-radius: .75rem; box-shadow: 0 3px 12px #233d3329; }

:is(html[lang="ja"], html[lang="zh-Hans"]) :is(p, dd, li) { word-break: normal; }

@media (max-width: 760px) {
  .install-grid, .guide-row { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { max-width: 29rem; margin-inline: auto; }
  .panel-screenshot { max-width: 13.4rem; }
}

@media (max-width: 350px) {
  .install-flow li { font-size: .8rem; }
}
