:root {
  --bg: #0d0d0e;
  --panel: #161618;
  --panel-2: #1d1d20;
  --line: rgba(255,255,255,0.10);
  --text: #ececec;
  --muted: #a0a0a6;
  --dim: #6c6c72;
  --accent: #ffc929;
  --accent-ink: #1c1c1e;
  --cyan: #73e6f2;
  --red: #ff5a4c;
  --green: #4de06b;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 10px 0 18px; }
h3 { font-size: 21px; font-weight: 700; margin: 0 0 8px; }
h4 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }
kbd, .key {
  font-family: var(--mono);
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(115,180,255,0.7);
  background: rgba(0,0,0,0.45);
  color: #fff;
  white-space: nowrap;
}
.key.y { border-color: var(--accent); color: var(--accent); }

/* Navigation */
nav.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13,13,14,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav.top .wrap { display: flex; align-items: center; gap: 28px; height: 58px; }
.brand { font-family: var(--mono); font-weight: 700; letter-spacing: 0.3em; color: #fff; font-size: 14px; }
.brand::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 2px; }
nav.top ul { list-style: none; display: flex; gap: 22px; margin: 0 0 0 auto; padding: 0; }
nav.top ul a { color: var(--muted); font-size: 14px; font-weight: 500; }
nav.top ul a:hover { color: #fff; text-decoration: none; }
@media (max-width: 760px) { nav.top ul { display: none; } }

/* Hero */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 84px); font-weight: 800; letter-spacing: 0.06em; margin: 14px 0 10px; }
.hero .tag { font-family: var(--mono); color: var(--accent); letter-spacing: 0.14em; font-size: 13px; font-weight: 700; margin-bottom: 22px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: 28px; display: block; box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-weight: 700; letter-spacing: 0.12em; font-size: 13px;
  padding: 14px 22px; border-radius: 999px;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid var(--line); }
.badge-slot { display: inline-block; height: 48px; }
.badge-slot img { height: 48px; display: block; }
.meta { color: var(--dim); font-size: 14px; margin-top: 16px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 460px; } }

section { padding: 84px 0; border-bottom: 1px solid var(--line); }

/* Audience */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.card li { margin-bottom: 8px; }
.card li strong { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.feat .label { display: block; margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }

/* Screenshot placeholders: replace only the file name in src. */
.shot {
  position: relative; margin: 0;
  border-radius: 22px; overflow: hidden;
  background: repeating-linear-gradient(135deg, #18181a 0 14px, #1c1c1f 14px 28px);
  border: 1px dashed rgba(255,201,41,0.35);
}
.shot.phone { aspect-ratio: 9 / 19.5; max-width: 300px; border-radius: 36px; }
.shot.land { aspect-ratio: 19.5 / 9; }
.shot.crop { aspect-ratio: 4 / 3; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 16px;
  font-family: var(--mono); font-size: 12px; color: rgba(255,201,41,0.8);
}
.shot .ph small { color: var(--dim); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
figure figcaption, .cap { font-size: 13.5px; color: var(--dim); margin-top: 10px; }

/* Exposure explainer */
.expo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 26px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; color: var(--muted); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps li strong { color: var(--text); }
.readout {
  background: #000; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
  font-family: var(--mono); font-size: 13px; line-height: 1.9;
}
.readout .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.readout .k { color: var(--dim); min-width: 44px; }
.readout .limit { color: var(--red); }
@media (max-width: 860px) { .expo { grid-template-columns: 1fr; } }

/* Manual */
.manual-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; margin-top: 30px; }
.toc { position: sticky; top: 84px; align-self: start; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 16px; color: var(--muted); font-size: 14px; }
.toc a:hover { color: #fff; text-decoration: none; }
.chapter { padding: 8px 0 44px; scroll-margin-top: 80px; }
.chapter + .chapter { border-top: 1px solid var(--line); padding-top: 40px; }
.chapter .num { font-family: var(--mono); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.chapter h3 { font-size: 26px; margin: 6px 0 14px; }
.chapter p, .chapter li { color: #cfcfd3; }
.chapter ul, .chapter ol { padding-left: 22px; margin: 0 0 14px; }
.chapter li { margin-bottom: 7px; }
.split { display: grid; grid-template-columns: 1fr 260px; gap: 34px; align-items: start; }
.split.wide { grid-template-columns: 1fr 1fr; }
.tip {
  border-left: 3px solid var(--accent); background: var(--panel);
  padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 16px 0; color: var(--muted); font-size: 15.5px;
}
.tip strong { color: var(--text); }
.tour { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.tour li { counter-increment: t; display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin-bottom: 10px; }
.tour li::before {
  content: counter(t); width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
@media (max-width: 900px) {
  .manual-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .split, .split.wide { grid-template-columns: 1fr; }
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
td:first-child { color: #fff; font-weight: 600; white-space: nowrap; }
td { color: #cfcfd3; }
.table-scroll { overflow-x: auto; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

footer { padding: 44px 0 64px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }

/* Language switcher */
.lang { display: flex; gap: 4px; margin-left: 18px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.lang a { color: var(--muted); padding: 5px 8px; border-radius: 999px; border: 1px solid transparent; }
.lang a:hover { color: #fff; text-decoration: none; }
.lang a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
@media (max-width: 760px) { .lang { margin-left: auto; } }

/* Draft notice (switched by DRAFT in site.js) */
.draft-bar {
  background: repeating-linear-gradient(135deg, #ffc929 0 18px, #1c1c1e 18px 36px);
  padding: 6px 0;
}
.draft-bar .wrap {
  background: #ffc929; color: #1c1c1e; border-radius: 8px;
  padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  max-width: calc(var(--wrap) - 48px);
}
.draft-bar strong { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; }
.draft-bar span { font-size: 14.5px; font-weight: 500; }
.draft-mark {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background-repeat: repeat; background-size: 460px 300px;
}
.btn.soon { background: transparent; color: var(--accent); border: 1px dashed var(--accent); cursor: default; }
@media print { .draft-mark { display: none; } }
