:root {
  --accent: #1f4e4a;
  --accent-ink: #163633;
  --surface: #f7f5f1;
  --card: #fffcf8;
  --text: #1c1b19;
  --muted: #3f3c38;
  --soft: #5c5852;
  --line: #e4e0d8;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 24px 50px rgba(22, 40, 38, 0.08);
  --mix: 0.42;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(31, 78, 74, 0.06), transparent 60%),
    var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
button, input, summary { font: inherit; }
p { margin: 0 0 0.75em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--surface);
  padding: 10px 14px;
  z-index: 80;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { transform: none; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: saturate(1.1) blur(16px);
  border-bottom: 1px solid rgba(228, 224, 216, 0.95);
}
.bar {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  content: "";
}
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }
.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 0;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -1px 0 var(--accent);
}
.nav-cta { margin-left: 8px; white-space: nowrap; }

.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--accent);
  color: #f7f5f1;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--sans);
  cursor: pointer;
}
.button.ghost {
  background: transparent;
  color: var(--accent-ink);
}
.button:hover { background: var(--accent-ink); color: #fff; }
.button.ghost:hover { background: var(--accent); color: #fff; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  margin: 0 0 16px;
  max-width: 14ch;
}
.lede { font-size: 19px; max-width: 38rem; color: var(--muted); margin: 0 0 16px; }
.not-that {
  max-width: 38rem;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 22px;
}
.not-that span { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.hero-grid {
  display: grid;
  gap: 28px;
  padding: 28px 0 8px;
  align-items: center;
}

.stage { --mix: 0.42; }
.stage-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 680px;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 12%, #fbfaf6 0%, #e7efe9 48%, #d5e0db 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.vitrine-canvas,
.vitrine-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vitrine-canvas { display: block; opacity: 0; }
.stage.is-webgl .vitrine-canvas { opacity: 1; }
.stage.is-webgl .vitrine-poster { opacity: 0; pointer-events: none; }
.glass-case {
  position: absolute;
  inset: 7% 8% 10%;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05) 30%, transparent 48%),
    linear-gradient(165deg, #fbfaf6, #e6eeea 70%);
  border: 12px solid #1c3330;
  box-shadow:
    0 28px 40px rgba(22, 40, 38, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.case-shine {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.55), transparent 26%, transparent 62%, rgba(255, 255, 255, 0.28) 78%, transparent);
  pointer-events: none;
}
.case-row {
  position: absolute;
  inset: 8% 6% 14%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-card {
  position: relative;
  width: min(46%, 220px);
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
  z-index: 1;
}
.shot {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px 48px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(40, 30, 16, 0.12);
}
.shot.is-dirty {
  background: linear-gradient(#efe4d4, #ddd2c2);
  opacity: calc(1 - var(--mix));
}
.shot.is-clean {
  background: linear-gradient(#fbfaf6, #f3eee6);
  opacity: var(--mix);
}
.shot h3 {
  font-size: 28px;
  margin: 10px 0 0;
}
.shot p { margin: 0; }
.cjk {
  font-family: "Noto Sans SC", "WenQuanYi Micro Hei", "PingFang SC", sans-serif;
  font-weight: 700;
  color: #9a3b32;
  font-size: 16px;
  margin-top: 10px;
}
.cjk.sub { font-weight: 500; font-size: 12px; margin-top: 2px; }
.watermark {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 58%;
  transform: rotate(-16deg);
  font-family: var(--mono);
  letter-spacing: 0.18em;
  font-size: 13px;
  color: rgba(154, 59, 50, 0.45);
}
.shot-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0;
}
.is-dirty .shot-meta { background: #2a2420; color: #f6ecdf; }
.is-clean .shot-meta { background: var(--accent); color: #f7f5f1; }
.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 7px;
  margin-top: 8px;
}
.jewel-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin-top: 8px;
  background: radial-gradient(circle at 40% 35%, #fff, #f4efe4 62%);
  box-shadow:
    inset 0 0 0 10px #c6a15e,
    inset 0 0 0 13px #f3e6c4,
    inset 0 0 0 16px #8a6428,
    0 10px 16px rgba(60, 40, 10, 0.16);
  position: relative;
  flex: 0 0 auto;
}
.jewel-ring::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 35%, #fff, #b7ddd6 42%, #1f4e4a 74%);
}
.mini-card {
  width: 18%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  box-shadow: 0 8px 16px rgba(40, 30, 16, 0.1);
}
.mini-card.is-dirty {
  background: #e7dccb;
  color: #9a3b32;
  transform: rotate(-7deg);
}
.mini-card.is-clean {
  background: #fbfaf6;
  color: var(--accent);
  transform: rotate(7deg);
}
.mini-jewel {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #c6a15e;
  background: #f7f3ea;
}
.case-plinth {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  height: 16px;
  border-radius: 4px;
  background: #243f3b;
}
.stage-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.mix {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}
.mix input {
  width: 100%;
  accent-color: #1f4e4a;
  min-height: 44px;
}
.stage-note { margin: 0; color: var(--soft); font-size: 14px; }
.stage-note.still { display: none; }

.band { padding: 72px 0; }
.band + .band { padding-top: 0; }
.section-head { max-width: 40rem; margin-bottom: 28px; }
.section-head h2, .band h2, .prose h2, .plan h2, .step h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  margin: 0 0 12px;
}
.section-head p:last-child { margin-bottom: 0; color: var(--muted); }

.pain-grid, .steps, .plans, .pipeline, .split {
  display: grid;
  gap: 16px;
}
.card, .step, .plan, .pipe, .vs-col, .admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
}
.num, .pipe-kicker {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.card h3, .pipe h3, .vs-col h3, .step h3 {
  font-size: 26px;
  margin: 0 0 8px;
}
.card p, .pipe p, .step p, .plan li, .vs-col li { color: var(--muted); }
.example {
  font-family: "Noto Sans SC", "WenQuanYi Micro Hei", var(--mono);
  color: #9a3b32;
  font-size: 14px;
  margin: 0 0 8px;
}
.icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.versus {
  display: grid;
  gap: 16px;
}
.vs-col ul, .plan ul { padding-left: 18px; margin: 12px 0 0; }
.vs-col li, .plan li { margin: 8px 0; }
.vs-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0;
}
.vs-us {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.vs-us h3 { color: var(--accent-ink); }

.step h3 { font-size: 32px; }
.admin-card {
  background: #1c3330;
  color: #f7f5f1;
  border: 0;
}
.admin-card .num { color: #b7ddd6; }
.admin-list { list-style: none; padding: 0; margin: 12px 0; }
.admin-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(247, 245, 241, 0.16);
  font-size: 14px;
}
.admin-fake {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  background: #f7f5f1;
  color: #1f4e4a;
  font-weight: 600;
  font-size: 14px;
}
.admin-card .quiet { color: rgba(247, 245, 241, 0.78); font-size: 14px; }

.plan.pro { border-color: var(--accent); }
.price { font-family: var(--serif); font-size: 42px; margin: 8px 0 4px; letter-spacing: -0.03em; }
.price span { font-family: var(--sans); font-size: 16px; color: var(--muted); }

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 16px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 14px; }
.faq h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; margin: 0; }

.cta-band {
  background: #1f4e4a;
  color: #f7f5f1;
  padding: 72px 0;
  margin-top: 24px;
}
.cta-band h2 { color: #f7f5f1; max-width: 16ch; }
.cta-band p { color: rgba(247, 245, 241, 0.86); max-width: 38rem; }
.cta-band .button { background: #f7f5f1; color: #1f4e4a; border-color: #f7f5f1; }
.cta-band .button:hover { background: #fff; }
.cta-band .button.ghost { background: transparent; color: #f7f5f1; border-color: rgba(247, 245, 241, 0.55); }
.cta-band .button.ghost:hover { background: #f7f5f1; color: #1f4e4a; }
.cta-band :focus-visible { outline-color: #f7f5f1; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--soft);
}
.foot-top { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot-tag { margin: 0; max-width: 36rem; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 14px; }
.foot-nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: var(--accent); }
footer .legal-line { margin: 0; }
footer .legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin-top: 4px;
}
.legal-line, .legal-links, .legal-links a { font-size: 12px; }
footer a { color: var(--soft); text-decoration: none; }
footer .legal-links a:hover, footer .foot-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
footer a[aria-current="page"] { text-decoration: underline; }

.page-hero { padding: 48px 0 12px; }
.prose { max-width: 42rem; padding-bottom: 28px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); max-width: 18ch; }
.prose h2 { font-size: 28px; margin: 28px 0 8px; }
.prose li { margin: 8px 0; color: var(--muted); }
dl { margin: 0; }
dt { font-weight: 650; margin-top: 18px; }
dd { margin: 4px 0 0; color: var(--muted); }
code, .file {
  font-family: var(--mono);
  font-size: 0.92em;
  background: #efeae2;
  padding: 0 4px;
  border-radius: 4px;
}
.note, .callout {
  background: #efeae2;
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
}
.callout { border-left: 3px solid var(--accent); background: transparent; padding: 4px 0 4px 16px; border-radius: 0; }
.quiet { color: var(--muted); }
.panel { padding: 8px 0 36px; }
.table-scroll { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); font-weight: 600; }

main section[id] { scroll-margin-top: 88px; }

@media (min-width: 800px) {
  .pain-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr 1fr; }
  .versus { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .pipeline { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 48px;
    padding: 56px 0 12px;
  }
  .nav-toggle { display: none; }
}
@media (max-width: 979px) {
  .nav-toggle { display: inline-flex; }
  .brand { order: 1; }
  .nav-cta { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; }
  .nav-links {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 0 8px;
    padding-bottom: 8px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; }
  .hero-grid { padding-top: 22px; }
  .band { padding: 56px 0; }
  h1 { max-width: 16ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vitrine-canvas,
  .vitrine-poster { transition: none; }
  .vitrine-canvas { display: none; }
  .stage.is-webgl .vitrine-poster { opacity: 1; pointer-events: auto; }
  .hero-card {
    width: auto;
    aspect-ratio: auto;
    display: flex;
    gap: 8px;
  }
  .shot {
    position: relative;
    inset: auto;
    width: 46%;
    aspect-ratio: 3 / 4;
    opacity: 1;
  }
  .mini-card { display: none; }
  .stage-note.motion { display: none; }
  .stage-note.still { display: block; }
  .mix { display: none; }
}
