:root {
  --gold: #9A7748;
  --gold-soft: rgba(154, 119, 72, 0.11);
  --bg: #FAF9F7;
  --surface: #FFFFFF;
  --subtle: #F3F1ED;
  --navy: #16222F;
  --navy-hover: #243548;
  --emerald: #0D6B53;
  --emerald-soft: rgba(13, 107, 83, 0.08);
  --emerald-line: rgba(13, 107, 83, 0.26);
  --ink: #16222F;
  --body: #3A424C;
  --muted: #6E7681;
  --border: #E5E2DC;
  --error: #A0442A;
  --radius: 12px;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body[data-lang="en"] [data-ko] { display: none !important; }
body[data-lang="ko"] [data-en] { display: none !important; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
main, section, .tier-grid, .proof-grid, .calc-grid, .dl, .form-grid { min-width: 0; max-width: 100%; }

/* TOP COMMERCIAL RIBBON */
.top-ribbon {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.ribbon-txt {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.45;
}
.ribbon-txt b { color: #FFFFFF; font-weight: 600; }
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2FD09B;
  box-shadow: 0 0 0 3px rgba(47, 208, 155, 0.24);
  flex-shrink: 0;
}
.ribbon-admin {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.ribbon-admin:hover { background: rgba(255, 255, 255, 0.2); }

/* HEADER */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(250, 249, 247, 0.94);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand-grp { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 0.22em;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.brand-ver {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-line);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.hdr-nav { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
.hdr-nav a {
  font-size: 13.5px;
  color: var(--body);
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.hdr-nav a:hover { color: var(--navy); }
.hdr-nav a.nav-console {
  color: var(--emerald);
  font-weight: 600;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-line);
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
}
.hdr-nav a.nav-console:hover { background: rgba(13, 107, 83, 0.14); }
.lang-btn {
  min-height: 36px;
  min-width: 58px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.lang-btn:hover { border-color: var(--navy); }

.btn-pri {
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-pri { background: var(--navy); color: #FFFFFF; border: 1px solid var(--navy); }
.btn-pri:hover { background: var(--navy-hover); }

/* SECTIONS */
.sec { padding: 40px 0 56px; border-top: 1px solid var(--border); }
.portal-view.sec:first-of-type, .portal-view.sec:not(#architecture) { border-top: 0; }
.sec-head { margin-bottom: 26px; }
.sec-kicker {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.26;
  letter-spacing: -0.02em;
}
.sec-desc {
  font-size: 15.5px;
  color: var(--body);
  margin-top: 8px;
  max-width: 720px;
}

/* SECTION 3: 3-TIER EDITORIAL PRICING */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  align-items: stretch;
}
.tier-card {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.tier-card:last-child { border-right: 0; }
.tier-card.featured {
  background: #FFFEFC;
  box-shadow: inset 0 3px 0 0 var(--navy);
}
.tier-top { display: flex; flex-direction: column; gap: 12px; }
.tier-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tier-tag { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tier-card.featured .tier-tag { color: var(--navy); }
.tier-state { font-size: 12px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.tier-state.live { color: var(--emerald); }
.tier-name { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -0.015em; }
.tier-price-box {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.tier-big { font-size: 27px; font-weight: 700; color: var(--navy); letter-spacing: -0.025em; line-height: 1.15; }
.tier-big small { font-size: 13px; font-weight: 500; color: var(--muted); }
.tier-price-sub { font-size: 12.5px; color: var(--muted); }
.tier-list { list-style: none; display: grid; gap: 10px; margin-top: 2px; font-size: 14px; color: var(--body); }
.tier-list li { padding-left: 16px; position: relative; line-height: 1.5; }
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1.5px;
  background: var(--gold);
}
.tier-card.featured .tier-list li::before { background: var(--emerald); }
.tier-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--navy);
  transition: border-color .15s, background .15s;
}
.tier-btn:hover { border-color: var(--navy); background: var(--surface); }
.tier-btn.solid { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.tier-btn.solid:hover { background: var(--navy-hover); }

.tier-footnote {
  margin-top: 20px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tf-item { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--body); line-height: 1.55; }
.tf-item b { font-size: 13.5px; color: var(--ink); font-weight: 700; }

/* SECTION 4: 2-AXIS PROOF + ROI SIMULATOR */
.proof-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 20px;
  align-items: stretch;
}
.chart-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.chart-caption { font-size: 13px; color: var(--muted); }
.xy-svg { width: 100%; height: auto; display: block; }

.stat-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.stat-val { font-size: 30px; font-weight: 700; color: var(--emerald); line-height: 1.1; letter-spacing: -0.02em; }
.stat-ttl { font-size: 14px; font-weight: 700; color: var(--ink); }
.stat-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }

.calc-card {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px;
}
.calc-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.calc-head h3 { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.model-switch {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.model-btn {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.model-btn.active {
  background: var(--navy);
  color: #FFFFFF;
}
.calc-rate-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.calc-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 24px;
  align-items: center;
}
.calc-sliders { display: grid; gap: 16px; }
.sl-row { display: grid; gap: 6px; }
.sl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--body); }
.sl-top b { font-family: var(--mono); font-size: 15px; color: var(--navy); font-weight: 700; }
.sl-row input[type="range"] { width: 100%; accent-color: var(--emerald); cursor: pointer; }
.calc-outs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cout {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cout-k { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cout-v { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.18; letter-spacing: -0.02em; }
.cout-v.em { color: var(--emerald); }
.cout-s { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* SECTION 5: VERSION PATCH NOTES */
.rel-list { display: grid; gap: 14px; }
.rel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.rel-card.live {
  border: 1.5px solid var(--emerald);
  box-shadow: 0 12px 32px -26px rgba(13, 107, 83, 0.35);
}
.rel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.rel-ver-grp { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.rel-ver { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--ink); }
.rel-date { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.rel-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--subtle);
  padding: 2px 9px;
  border-radius: 999px;
}
.rel-badge.cur { color: var(--emerald); background: var(--emerald-soft); border: 1px solid var(--emerald-line); }
.rel-badge.next { color: var(--gold); background: var(--gold-soft); }
.rel-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--subtle);
  padding: 3px 10px;
  border-radius: 6px;
}
.rel-ttl { font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; line-height: 1.4; }
.rel-ul { list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--body); }
.rel-ul li { padding-left: 16px; position: relative; line-height: 1.55; }
.rel-ul li::before {
  content: "\2022";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--emerald);
  font-weight: 700;
}

/* SECTION 6: CLEAN INSTALLER */
.dl-lead-card { margin-bottom: 16px; padding: 20px 22px; }
.dl-lead-card .form-grid { margin-bottom: 0; }
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 12px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  transition: border-color .15s, transform .15s;
}
.tile:hover:not(:disabled) { border-color: var(--navy); transform: translateY(-1px); }
.tile:disabled { cursor: progress; opacity: .7; }
.tile[data-here=true] { border: 1.5px solid var(--navy); }
.tile .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile .os { font-size: 17px; font-weight: 700; color: var(--ink); }
.tile .here {
  font-size: 12px;
  color: var(--emerald);
  background: var(--emerald-soft);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 600;
  visibility: hidden;
}
.tile[data-here=true] .here { visibility: visible; }
.tile .go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.tile:hover:not(:disabled) .go { background: var(--navy-hover); }
.tile .file { font-size: 13px; color: var(--muted); min-height: 20px; }
.tile .sha {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  word-break: break-all;
  min-height: 34px;
}
.tile .sha b { display: block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.msg { min-height: 24px; margin: 8px 0 12px; font-size: 14px; color: var(--muted); text-align: center; }
.msg.err { color: var(--error); }
.msg.ok { color: var(--emerald); font-weight: 600; }

.os-help {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.os-help summary { font-size: 14px; color: var(--muted); font-weight: 500; }
.os-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 8px 0 16px;
  font-size: 14px;
}
.os-cols h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.os-cols p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* SECTION 7: INQUIRY FORM */
.inq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.fg { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.fg label { font-size: 13px; font-weight: 600; color: var(--ink); }
.fg input, .fg select, .fg textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--surface);
}
.fg textarea { min-height: 104px; resize: vertical; }
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.submit-btn {
  min-height: 48px;
  padding: 12px 28px;
  background: var(--navy);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.submit-btn:hover:not(:disabled) { background: var(--navy-hover); }
.submit-btn:disabled { opacity: 0.6; cursor: progress; }
.inq-status { font-size: 14px; color: var(--muted); }
.inq-status.ok { color: var(--emerald); font-weight: 600; }
.inq-status.err { color: var(--error); font-weight: 600; }

/* FAQ & FOOTER */
#faq details { border-top: 1px solid var(--border); padding: 16px 0; }
#faq details:last-of-type { border-bottom: 1px solid var(--border); }
details.os-help { border: 1px solid var(--border); padding: 4px 20px; }
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "\00D7"; }
details p { margin-top: 8px; font-size: 15px; color: var(--body); max-width: 820px; }
code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--subtle);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  font-size: 13px;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}
footer a:hover { color: var(--emerald); }

/* 멀티뷰 포털 전환 (원페이지 스크롤 제거) */
.portal-view { display: none; }
.portal-view.active { display: block; }
.hdr-nav a.active {
  color: var(--navy);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}
.hdr-nav a.nav-console.active {
  background: var(--navy);
  color: #FFFFFF;
  border-bottom: 0;
  padding-bottom: 8px;
}

.ribbon-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ribbon-portal { background: rgba(13, 107, 83, 0.35); border-color: rgba(255, 255, 255, 0.32); }
.brand-domain {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-bg);
  border: 1px solid rgba(13, 107, 83, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}
.dl-lead-card { margin-bottom: 18px; padding: 22px 24px; }
.dl-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dl-step-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: var(--subtle);
  padding: 4px 10px;
  border-radius: 999px;
}
.dl-step-badge.ok { color: var(--emerald); background: var(--emerald-bg); }
.dl-portal-direct { font-size: 13px; font-weight: 600; color: var(--emerald); text-decoration: none; }
.dl-portal-direct:hover { text-decoration: underline; }
.dl-grid-3 { grid-template-columns: 1fr 1fr 1fr; margin-bottom: 12px; }
.dl-lead-actions { display: flex; justify-content: flex-end; }
.dl-issue-btn { font-size: 14px; min-height: 44px; padding: 10px 18px; }

.dl-issued-box {
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 2px solid var(--emerald);
  background: linear-gradient(180deg, rgba(232, 243, 239, 0.45) 0%, #FFFFFF 100%);
}
.dl-issued-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.dl-issued-ttl { font-size: 19px; font-weight: 700; color: var(--ink); margin: 8px 0 4px; }
.dl-issued-sub { font-size: 13px; color: var(--muted); }
.dl-key-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.dl-key-col { display: flex; flex-direction: column; gap: 4px; }
.dl-key-lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.dl-key-code {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.dl-key-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-key-btns .tier-btn { width: auto; min-height: 40px; padding: 8px 14px; font-size: 13px; }

.dl-portal-lookup { margin: 18px 0; padding: 22px 24px; }
.dl-lookup-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; }
.dl-lookup-ttl { font-size: 17px; font-weight: 700; color: var(--ink); margin: 8px 0 4px; }
.dl-lookup-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }
.dl-lookup-form { display: flex; flex-direction: column; gap: 8px; }
.dl-lookup-form label { font-size: 13px; font-weight: 600; color: var(--ink); }
.dl-lookup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-lookup-row input {
  flex: 1;
  min-width: 190px;
  font-family: var(--mono);
  font-size: 14px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

@media (max-width: 960px) {
  .hdr-nav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
  .hdr-nav a { white-space: nowrap; flex-shrink: 0; }
  .tier-grid, .tier-footnote, .dl-grid-3, .dl-lookup-grid { grid-template-columns: 1fr; }
  .tier-card { border-right: 0; border-bottom: 1px solid var(--border); }
  .tier-card:last-child { border-bottom: 0; }
  .proof-grid, .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .ribbon-inner { flex-direction: column; align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
  h1 { font-size: 30px; }
  .sec { padding: 48px 0; }
  h2 { font-size: 24px; }
  .stat-stack, .calc-outs { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 12px; }
  .os-cols, .form-grid { grid-template-columns: 1fr; }
  .inq-card, .tier-card, .chart-box, .calc-card, .rel-card { padding: 20px 18px; }
  .foot-inner { flex-direction: column; text-align: center; }
}
