/* CC Harness Studio — GitHub Pages Editorial Stylesheet
   Inspired by cc-auto-review, tailored to CC Harness Studio's semantic palette:
   indigo = forward loop / primary, sky = context, emerald = skills & pass,
   amber = loops & warnings, rose = guardrails & blockers */
:root {
  --ink: #070a12;
  --night: #0c101b;
  --dusk: #131929;
  --dusk-2: #1c253b;
  --text: #eef2ff;
  --mist: #b6c0dc;
  --dim: #7f8ba8;
  --hair: rgb(168 184 230 / 0.14);
  --hair-2: rgb(168 184 230 / 0.30);
  --indigo: #818cf8;
  --sky: #38bdf8;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --violet: #a78bfa;
  --nav: 68px;
  --edge: clamp(20px, 5vw, 88px);
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --code: "Martian Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --body: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --display-weight: 300;
  --track: -0.022em;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

:lang(ja) {
  --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --display-weight: 500;
  --track: -0.005em;
}
:lang(ja) .was, :lang(ja) .now, :lang(ja) h2, :lang(ja) h3, :lang(ja) .faq summary {
  font-feature-settings: "palt";
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.64 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:lang(ja) body { line-height: 1.85; font-size: 1rem; }

::selection { background: var(--sky); color: var(--ink); }
a { color: var(--sky); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font-family: var(--code); font-size: 0.8em; font-stretch: 88%; }
p code, li code, dd code {
  color: var(--text);
  background: rgb(168 184 230 / 0.13);
  padding: 0.14em 0.42em;
  border-radius: 5px;
  white-space: nowrap;
}

.skip { position: absolute; left: -9999px; z-index: 60; background: var(--sky); color: var(--ink); padding: 8px 16px; }
.skip:focus { left: 16px; top: 12px; }

/* --- Top Navigation --- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  height: var(--nav); padding: 0 var(--edge);
  transition: background-color 0.28s, backdrop-filter 0.28s, border-color 0.28s;
  border-bottom: 1px solid transparent;
}
.top.solid {
  background: rgb(7 10 18 / 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--hair);
}
.logo { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; letter-spacing: -0.01em; }
.logo img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-left: auto; font-size: 0.9375rem; }
.top nav a { color: var(--mist); text-decoration: none; white-space: nowrap; transition: color 0.15s; }
.top nav a:hover { color: var(--text); }
.top nav .get {
  color: var(--ink); background: var(--text); padding: 7px 16px; border-radius: 999px; font-weight: 600;
  transition: background-color 0.15s, box-shadow 0.25s;
}
.top nav .get:hover { color: var(--ink); background: var(--sky); box-shadow: 0 0 24px rgb(56 189 248 / 0.5); }
.top nav .star {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-2); transition: box-shadow 0.15s;
}
.top nav .star:hover { box-shadow: inset 0 0 0 1px var(--text); }
.star-icon { flex: none; color: var(--amber); }
.star-count { padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--hair-2); font-variant-numeric: tabular-nums; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav) + clamp(18px, 3vh, 36px)) var(--edge) clamp(32px, 5vh, 52px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(52% 48% at 22% 18%, rgb(99 102 241 / 0.24), transparent 72%),
    radial-gradient(48% 45% at 80% 78%, rgb(52 211 153 / 0.17), transparent 70%),
    var(--ink);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgb(148 163 184 / 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000 20%, transparent 90%);
  mask-image: radial-gradient(75% 70% at 50% 45%, #000 20%, transparent 90%);
}
.hero-orbit {
  position: absolute; left: 50%; top: 44%; z-index: -1; pointer-events: none;
  width: min(860px, 92vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgb(129 140 248 / 0.14);
  box-shadow: inset 0 0 120px rgb(56 189 248 / 0.06);
}
.hero-copy {
  max-width: 1120px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
  background: rgb(19 25 41 / 0.8); border: 1px solid var(--hair-2);
  font: 500 0.75rem/1.4 var(--code); color: var(--sky);
}
/* キャッチコピー: 装飾書体を避け、本文サンセリフの太字＋グラデーションで目立たせる */
.tagline {
  margin-bottom: 18px;
  font: 600 clamp(1.5rem, min(3vw, 5svh), 2.6rem)/1.15 var(--body); letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--indigo), var(--sky) 55%, var(--emerald));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }

.was {
  font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--track);
  font-size: clamp(1.2rem, min(2.2vw, 3.6svh), 2.05rem); line-height: 1.25; color: var(--mist);
}
.strike {
  background: linear-gradient(var(--rose), var(--rose)) no-repeat 0 56% / 100% 0.065em;
  transition: background-size 0.7s var(--ease), color 0.4s;
}
.now {
  margin-top: 0.14em;
  font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--track);
  font-size: clamp(2.4rem, min(5.3vw, 9.2svh), 5.35rem); line-height: 1.06; color: var(--text);
  max-width: 15em; text-wrap: balance;
  font-variation-settings: "opsz" 72;
  text-shadow: 0 0 64px rgb(99 102 241 / 0.32);
}
:lang(ja) .now { line-height: 1.3; font-size: clamp(2rem, min(4.6vw, 7.8svh), 4.4rem); max-width: 16em; word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) .was { font-size: clamp(1.05rem, min(1.9vw, 3.2svh), 1.75rem); }

/* Interactive Soft-to-Hard Pill in Hero */
.note {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px;
  margin-top: 26px; padding: 6px 8px 6px 16px; border-radius: 999px;
  background: rgb(19 25 41 / 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 0.875rem;
}
.sev { font: 500 0.75rem/1.4 var(--code); color: var(--amber); }
.sev.hard { color: var(--emerald); }
.sev.blocker { color: var(--rose); }
.note-title { font-weight: 500; color: var(--text); }
.note-actions { display: inline-flex; gap: 4px; }
.mini {
  background: transparent; border: 1px solid var(--hair-2); border-radius: 999px;
  padding: 3px 12px; font-size: 0.8125rem; color: var(--text);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.mini:hover { border-color: var(--text); }
.mini[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); font-weight: 600; }
.hero-status {
  margin-top: 10px; font: 400 0.8125rem/1.5 var(--code); color: var(--emerald); min-height: 1.5em;
}
.hero-status.soft { color: var(--amber); }

.hero-foot {
  max-width: 1360px; width: 100%; margin: clamp(32px, 6vh, 64px) auto 0;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px;
}
.lede { flex: 1 1 400px; max-width: 520px; color: var(--mist); font-size: 0.95rem; line-height: 1.65; }
.lede strong { color: var(--text); font-weight: 600; }
.lede-hook { display: block; margin-bottom: 6px; color: var(--text); font-size: 1.0625rem; font-weight: 600; }
.hero-get { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-end; }
.hero-get .meta { text-align: right; max-width: 520px; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 54px; padding: 8px 24px; border-radius: 999px; text-decoration: none; font-weight: 600;
  line-height: 1.28; font-size: 0.9375rem;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.25s;
}
.btn small { font-weight: 400; font-size: 0.75rem; opacity: 0.75; }
.btn-primary { background: var(--text); color: var(--ink); }
.btn-primary:hover { background: var(--sky); color: var(--ink); box-shadow: 0 0 34px rgb(56 189 248 / 0.5); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--text); background: rgb(19 25 41 / 0.45); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--text); color: var(--text); }
.meta { font-size: 0.8125rem; line-height: 1.5; color: var(--dim); margin-top: 8px; }
.hero-try a { color: var(--text); }

/* --- Sections --- */
.sec { position: relative; padding: clamp(80px, 13vh, 152px) var(--edge); }
.sec > * { max-width: 1360px; margin-inline: auto; }
.sec-head { margin-bottom: clamp(32px, 6vh, 64px); }
h2 {
  font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--track);
  font-size: clamp(2.15rem, 4.6vw, 4.5rem); line-height: 1.08; max-width: 18em; text-wrap: balance;
  font-variation-settings: "opsz" 72;
}
:lang(ja) h2 { line-height: 1.38; font-size: clamp(1.75rem, 3.6vw, 3.35rem); max-width: 22em; word-break: keep-all; overflow-wrap: anywhere; }
.intro { max-width: 44em; color: var(--mist); margin-top: 18px; font-size: 1.0625rem; line-height: 1.65; }
h3 { font-size: 1.0625rem; font-weight: 600; margin: 0; }

/* --- Eyecatch Hero Frame --- */
.eyecatch-frame {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto clamp(36px, 6vh, 64px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--hair-2), 0 36px 100px -28px rgb(0 0 0 / 0.85);
}
.eyecatch-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 5-View Interactive Studio Showcase --- */
.theatre-sec { background: linear-gradient(var(--ink), var(--night) 35%, var(--ink)); padding-top: clamp(32px, 6vh, 72px); }
.theatre { display: flex; flex-direction: column; align-items: center; }
.screen {
  position: relative; width: 100%; max-width: 1240px; border-radius: 16px;
  background: #090b10;
  box-shadow: 0 0 0 1px var(--hair-2), 0 36px 120px -28px rgb(0 0 0 / 0.92);
}
.screen-glow {
  position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: cover; z-index: 0;
  filter: blur(68px) saturate(1.4); opacity: 0.45; transform: scale(1.06); pointer-events: none;
}
.screen-img {
  position: relative; z-index: 1; width: 100%; height: auto; border-radius: inherit;
  transition: opacity 0.2s ease;
}
.film-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  width: 100%; max-width: 1240px; margin-top: 18px;
}
.film-tabs {
  display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 999px;
  background: rgb(19 25 41 / 0.8); box-shadow: inset 0 0 0 1px var(--hair);
}
.film-tabs button {
  background: none; border: 0; border-radius: 999px; padding: 6px 15px; font-size: 0.875rem;
  color: var(--mist); transition: color 0.15s, background-color 0.15s;
}
.film-tabs button:hover { color: var(--text); }
.film-tabs button[aria-pressed="true"] { background: var(--dusk-2); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--hair-2); }
figcaption { font-size: 0.84rem; line-height: 1.5; color: var(--dim); max-width: 560px; }

.star-cta {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; min-height: 58px;
  margin: clamp(28px, 5vh, 44px) auto 0; padding: 10px 28px; border-radius: 16px;
  color: var(--text); font-size: 1.03rem; font-weight: 500; text-decoration: none;
  background: rgb(240 242 255 / 0.03); box-shadow: inset 0 0 0 1px var(--hair-2);
  transition: box-shadow 0.15s, background-color 0.15s;
}
.star-cta:hover { background: rgb(240 242 255 / 0.07); box-shadow: inset 0 0 0 1px var(--text); }
.star-cta .star-icon { color: var(--amber); }
.star-pill { margin-left: 4px; padding: 3px 10px; border-radius: 8px; background: var(--dusk-2); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

/* --- Scroll-Driven Flow --- */
#flow { background: linear-gradient(var(--ink), var(--night) 20%); }
.flow-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.steps { counter-reset: step; position: relative; }
.step {
  position: relative; min-height: 44svh; display: flex; flex-direction: column; justify-content: center;
  padding: 20px 0 20px clamp(44px, 5vw, 72px); counter-increment: step; cursor: pointer;
}
.step::after { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 1px; background: var(--hair); }
.step.done::after, .step.on::after { background: var(--sky); box-shadow: 0 0 10px rgb(56 189 248 / 0.7); }
.steps.live .step { transition: opacity 0.3s; }
.steps.live .step:not(.on) { opacity: 0.45; }
.steps.live .step:hover { opacity: 0.85; }
.step h3 {
  font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--track);
  font-size: clamp(1.5rem, 2.3vw, 2.15rem); line-height: 1.22;
}
:lang(ja) .step h3 { line-height: 1.48; font-size: clamp(1.28rem, 1.9vw, 1.75rem); }
.step h3::before {
  content: counter(step); position: absolute; left: 0; z-index: 1; margin-top: 0.14em; width: 27px; height: 27px;
  display: grid; place-items: center; border-radius: 50%; background: var(--night);
  box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--mist); font: 500 0.8125rem/1 var(--body);
  transition: box-shadow 0.3s, color 0.3s;
}
.step.on h3::before { box-shadow: inset 0 0 0 1.5px var(--sky), 0 0 18px rgb(56 189 248 / 0.65); color: var(--text); }
.step p { color: var(--mist); margin-top: 12px; max-width: 32em; font-size: 0.96rem; }

.stage {
  position: sticky; top: calc(var(--nav) + clamp(20px, 7vh, 72px)); align-self: start; overflow: hidden;
  background: linear-gradient(170deg, rgb(28 37 59 / 0.62), rgb(10 14 24 / 0.92));
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hair-2), 0 40px 120px -40px rgb(99 102 241 / 0.35);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.stage-top { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 22px 14px; border-bottom: 1px solid var(--hair); }
.stage-title { font-weight: 600; }
.stage-title small { display: block; margin-top: 2px; font-weight: 400; font-size: 0.75rem; color: var(--dim); font-family: var(--code); }
.stage-pill {
  padding: 5px 12px; border-radius: 999px; font: 500 0.75rem/1.3 var(--code);
  background: rgb(56 189 248 / 0.14); color: var(--sky); border: 1px solid rgb(56 189 248 / 0.35);
}
.stage[data-tone="emerald"] .stage-pill { background: rgb(52 211 153 / 0.14); color: var(--emerald); border-color: rgb(52 211 153 / 0.4); }
.stage[data-tone="amber"] .stage-pill { background: rgb(251 191 36 / 0.14); color: var(--amber); border-color: rgb(251 191 36 / 0.4); }
.stage[data-tone="rose"] .stage-pill { background: rgb(251 113 133 / 0.14); color: var(--rose); border-color: rgb(251 113 133 / 0.4); }
.stage-body { padding: 18px 22px; min-height: 280px; }
.stage-code {
  margin: 0; padding: 16px; border-radius: 12px; background: #070a12; border: 1px solid var(--hair);
  font: 400 0.78rem/1.75 var(--code); color: var(--mist); overflow-x: auto; white-space: pre-wrap;
}
.stage-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 22px; border-top: 1px solid var(--hair); font-size: 0.8125rem; color: var(--mist);
}
.stage-badge { padding: 5px 14px; border-radius: 999px; background: var(--dusk-2); color: var(--text); font-weight: 600; font-size: 0.78rem; }
.stage[data-tone="emerald"] .stage-badge { background: var(--emerald); color: var(--ink); }

/* --- Interactive Browser Playground --- */
.playground {
  background: radial-gradient(68% 58% at 78% 20%, rgb(99 102 241 / 0.18), transparent 70%), var(--night);
}
.pg-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pg-card {
  padding: 24px; border-radius: 18px; background: rgb(12 16 27 / 0.86);
  border: 1px solid var(--hair-2); display: flex; flex-direction: column; gap: 18px;
}
.pg-label { font: 500 0.75rem/1.4 var(--code); color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; display: block; }
.pg-input {
  width: 100%; padding: 11px 14px; border-radius: 10px; background: var(--ink);
  border: 1px solid var(--hair-2); font: 400 0.85rem/1.4 var(--code); color: var(--sky);
}
.pg-input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgb(56 189 248 / 0.16); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.presets button {
  background: rgb(19 25 41 / 0.8); border: 1px solid var(--hair); border-radius: 999px;
  padding: 4px 12px; font: 400 0.78rem/1.4 var(--code); color: var(--mist); transition: 0.15s;
}
.presets button:hover { color: var(--text); border-color: var(--hair-2); }
.presets button[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); font-weight: 600; }

.waterfall-bar {
  display: flex; height: 14px; border-radius: 999px; overflow: hidden;
  background: var(--ink); border: 1px solid var(--hair);
}
.wf-seg { height: 100%; border-right: 1px solid var(--ink); transition: width 0.35s var(--ease); }
.wf-list { display: flex; flex-direction: column; gap: 8px; }
.wf-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 10px; background: rgb(7 10 18 / 0.75); border: 1px solid var(--hair);
  font-size: 0.84rem;
}
.wf-row.broken { border-color: rgb(251 113 133 / 0.55); background: rgb(251 113 133 / 0.08); }
.wf-tag {
  font: 500 0.68rem/1 var(--code); padding: 4px 7px; border-radius: 6px;
  background: var(--dusk-2); color: var(--sky); white-space: nowrap;
}
.wf-tok { font: 500 0.8rem/1 var(--code); color: var(--text); white-space: nowrap; }

.verdict-box {
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--hair-2);
  background: rgb(52 211 153 / 0.09); border-color: rgb(52 211 153 / 0.4);
}
.verdict-box.blocked { background: rgb(251 191 36 / 0.1); border-color: rgb(251 191 36 / 0.45); }
.verdict-box.denied { background: rgb(251 113 133 / 0.11); border-color: rgb(251 113 133 / 0.5); }
.verdict-head { font: 600 0.88rem/1.4 var(--code); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.verdict-box.ok .verdict-head { color: var(--emerald); }
.verdict-box.blocked .verdict-head { color: var(--amber); }
.verdict-box.denied .verdict-head { color: var(--rose); }
.verdict-msg { margin-top: 8px; font: 400 0.78rem/1.6 var(--code); color: var(--mist); white-space: pre-wrap; }

/* --- Security Boundary --- */
#boundary { background: radial-gradient(58% 50% at 30% 60%, rgb(56 189 248 / 0.08), transparent 70%), var(--ink); }
.bound { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.bound-in {
  position: relative; aspect-ratio: 1; width: min(100%, 600px); justify-self: center;
  display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(36px, 8%, 72px);
  border-radius: 50%; border: 1.5px solid var(--sky);
  box-shadow: 0 0 44px rgb(56 189 248 / 0.35), inset 0 0 70px rgb(56 189 248 / 0.12);
}
.bound h3 { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.35rem, 2.1vw, 1.85rem); margin-bottom: 14px; }
.bound-out h3 { color: var(--rose); }
.perm li { display: grid; grid-template-columns: 1.4em 4.2em minmax(0, 1fr); padding: 8px 0; font-size: 0.92rem; line-height: 1.5; }
.bound-out .perm li { border-top: 1px solid rgb(251 113 133 / 0.22); padding: 12px 0; color: var(--mist); }
.perm .s, .perm .v { font: 500 0.75rem/1.9 var(--code); }
.perm .y .s, .perm .y .v { color: var(--emerald); }
.perm .n .s, .perm .n .v { color: var(--rose); }
.perm-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(24px, 6vw, 96px); margin-top: clamp(36px, 7vh, 72px); }
.perm-notes p { color: var(--mist); font-size: 0.9375rem; margin-top: 6px; }

/* --- More Grid --- */
.changes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vh, 56px) clamp(24px, 4vw, 64px); }
.changes .s { display: block; font: 300 1.65rem/1 var(--code); color: var(--emerald); margin-bottom: 12px; text-shadow: 0 0 18px rgb(52 211 153 / 0.55); }
.changes h3 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--track); font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.3; }
.changes p { color: var(--mist); font-size: 0.93rem; margin-top: 9px; }

/* --- FAQ --- */
#faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
#faq > * { max-width: none; margin-inline: 0; }
#faq h2 { position: sticky; top: calc(var(--nav) + 24px); }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary {
  cursor: pointer; padding: 19px 36px 19px 0; font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(1.15rem, 1.6vw, 1.42rem); line-height: 1.38; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 1.35rem/1 var(--code); color: var(--sky); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 28px 22px 0; color: var(--mist); font-size: 0.96rem; }

/* --- Get It / Install --- */
.get-it {
  position: relative; text-align: center; padding: clamp(88px, 14vh, 148px) var(--edge) clamp(56px, 9vh, 96px);
  background: radial-gradient(65% 55% at 50% 10%, rgb(99 102 241 / 0.2), transparent 72%), var(--night);
  border-top: 1px solid var(--hair);
}
.get-it > * { max-width: 1120px; margin-inline: auto; }
.get-it h2 { margin-inline: auto; font-size: clamp(2.5rem, 6.4vw, 5.8rem); line-height: 1.05; }
:lang(ja) .get-it h2 { font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.3; }
.get-it .cta { justify-content: center; margin-top: 28px; }
.req {
  counter-reset: req; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(24px, 4vw, 56px); margin-top: 48px; text-align: left;
}
.req li { counter-increment: req; border-top: 1px solid var(--hair-2); padding-top: 16px; }
.req h3 { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.25rem; }
.req h3::before { content: counter(req); margin-right: 0.5em; color: var(--sky); }
.req p { font-size: 0.92rem; margin-top: 6px; color: var(--mist); }
.source { margin-top: 32px; text-align: left; }
.source pre {
  padding: 18px 20px; background: var(--ink); border: 1px solid var(--hair-2); border-radius: 14px;
  font: 400 0.8rem/1.8 var(--code); color: var(--text); overflow-x: auto;
}

/* --- Footer --- */
.foot { background: var(--ink); padding: 28px var(--edge) 48px; font-size: 0.8125rem; color: var(--dim); }
.foot > * { max-width: 1360px; margin-inline: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 18px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: 0.875rem; }
.foot-tagline { font: 600 1rem/1.4 var(--body); color: var(--text); padding-top: 22px; border-top: 1px solid var(--hair); }
.foot-tagline + nav { padding-top: 14px; border-top: 0; }
.foot nav a { color: var(--mist); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot p + p { margin-top: 6px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .top nav .opt { display: none; }
  .flow-grid, .pg-grid, .bound, #faq { grid-template-columns: minmax(0, 1fr); }
  .stage, #faq h2 { position: static; }
  .step { min-height: auto; }
  .bound-in { aspect-ratio: auto; border-radius: 22px; padding: 28px; width: 100%; }
  .changes, .req, .perm-notes { grid-template-columns: minmax(0, 1fr); }
  .hero-get { align-items: flex-start; }
  .hero-get .meta { text-align: left; }
}
@media (max-width: 640px) {
  .top nav .star-label { display: none; }
  .note { border-radius: 16px; }
}
