/* galaxyidx.com stylesheet. No external fonts, no CDNs, no images: the system grotesk for all text, mono only for
   real code (tool calls, URLs, JSON-LD, env vars). Design: listing-sheet structure (label/value rows, hairlines) on a
   cool sheet ground, a Night band for the hero and dark sections, Survey blue for actions, Marker yellow only for
   what something points at (a citation, an indexed URL).
   MLS rule carried into the sample visuals: photos are object-fit: contain on a neutral ground. Never cover,
   never anything drawn over a photo. The wordmark is text; the real logo comes from the logo system later. */

:root {
  --night: #14163a;
  --night-2: #1c1f4a;
  --night-3: #262a5c;
  --line-dark: rgba(198, 205, 255, 0.18);
  --on-night: #eef0fb;
  --on-night-muted: #b3b8d8;
  --blue-on-night: #aeb9ff;
  --green-on-night: #62d39c;
  --marker: #ffe45c;

  --sheet: #f3f5f9;
  --sheet-2: #e9edf4;
  --card: #ffffff;
  --line: #d6dbe7;
  --line-strong: #b4bccf;
  --text: #171a3a;
  --text-muted: #4b5272;
  --blue: #2f43d8;
  --blue-deep: #2333b0;
  --green: #1b7148;
  --tag-bg: #fff2bf;
  --tag-ink: #5a4200;
  --photo-ground: #d9dce4;

  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --r-ctl: 6px;
  --r-obj: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --shadow-obj: 0 1px 2px rgba(20, 22, 58, 0.08), 0 12px 32px -16px rgba(20, 22, 58, 0.28);
  --shadow-night: 0 2px 4px rgba(0, 0, 0, 0.25), 0 28px 60px -24px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sheet);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
::selection { background: var(--marker); color: var(--text); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.site-header :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .sec-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--marker); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--marker); color: var(--text);
  padding: 10px 14px; border-radius: var(--r-ctl); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--night); color: var(--on-night); border-bottom: 1px solid var(--line-dark); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-night);
  font: 700 21px/1 var(--display); letter-spacing: -0.03em; }
.wordmark .wm-idx { color: var(--blue-on-night); }
.wm-orbit { width: 22px; height: 22px; border-radius: 50%; position: relative; flex: none;
  border: 1.5px solid var(--blue-on-night); transform: rotate(-24deg) scaleY(.48); }
.wm-orbit::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--marker);
  top: 50%; left: 50%; transform: translate(-50%, -50%) scaleY(2.08); }
.wordmark-lg { font-size: 24px; }

.site-nav { position: relative; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list a { display: block; padding: 8px 12px; text-decoration: none; font-size: 15px; color: var(--on-night-muted);
  border-radius: var(--r-ctl); transition: color .15s, background-color .15s; }
.nav-list a:hover { color: var(--on-night); }
.nav-list a[aria-current="page"] { color: var(--on-night); box-shadow: inset 0 -2px 0 var(--blue-on-night); border-radius: 0; }
.nav-list .nav-cta a { margin-left: 10px; background: var(--on-night); color: var(--night); font-weight: 600; padding: 9px 14px; }
.nav-list .nav-cta a:hover { background: #fff; }
.nav-list .nav-cta a[aria-current="page"] { box-shadow: none; border-radius: var(--r-ctl); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: transparent; color: var(--on-night); border: 1px solid var(--line-dark); border-radius: var(--r-ctl);
    font: 500 15px/1 var(--sans); cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 1.5px;
    background: currentColor; position: relative; transition: transform .2s var(--ease), opacity .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .nav-list { display: none; position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
    flex-direction: column; align-items: stretch; padding: 8px; background: var(--night-2); border: 1px solid var(--line-dark);
    border-radius: var(--r-obj); box-shadow: var(--shadow-night); }
  .js .nav-list.is-open { display: flex; }
  html:not(.js) .nav-list { display: flex; position: static; width: auto; flex-wrap: wrap; flex-direction: row; box-shadow: none; }
  html:not(.js) .nav-toggle { display: none; }
  .nav-list a { padding: 12px 14px; font-size: 16px; }
  .nav-list a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--blue-on-night); }
  .nav-list .nav-cta a { margin: 6px 0 0; text-align: center; }
}

/* ---------- type ---------- */
.display { font: 700 clamp(2.6rem, 5vw, 4.25rem)/1.02 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.h2 { font: 700 clamp(1.85rem, 3.3vw, 2.75rem)/1.1 var(--display); letter-spacing: -0.028em; text-wrap: balance; margin-bottom: 18px; }
.h3 { font: 650 1.2rem/1.3 var(--display); letter-spacing: -0.012em; margin-bottom: 8px; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.55; color: var(--text-muted); max-width: 36em; }
.mono { font-family: var(--mono); font-size: .92em; }
.h2-code { font: 600 .82em/1 var(--mono); letter-spacing: -0.02em; background: var(--marker); padding: 0 .18em; border-radius: 4px; }
.sec-note { color: var(--text-muted); max-width: 26em; margin: 0; }

/* ---------- buttons + links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: var(--r-ctl); border: 1.5px solid var(--blue); background: var(--blue); color: #fff;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; border-color: var(--text); }
.btn-dark { background: var(--night); border-color: var(--night); color: var(--on-night); }
.hero .btn, .page-hero .btn, .sec-dark .btn { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
.hero .btn:hover, .page-hero .btn:hover, .sec-dark .btn:hover { background: #fff; border-color: #fff; }
.hero .btn-ghost, .page-hero .btn-ghost, .sec-dark .btn-ghost { background: transparent; color: var(--on-night); border-color: rgba(238, 240, 251, .4); }
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .sec-dark .btn-ghost:hover { background: transparent; border-color: var(--on-night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.link { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }
.hero .link, .page-hero .link, .sec-dark .link { color: var(--blue-on-night); }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.sec-dark .prose a { color: var(--blue-on-night); }

/* ---------- sections ---------- */
.sec { padding-block: var(--section); }
.sec-paper { background: var(--sheet); color: var(--text); }
.sec-paper-2 { background: var(--card); border-block: 1px solid var(--line); }
.sec-dark { background: var(--night); color: var(--on-night); }
.sec-dark .lede, .sec-dark p { color: var(--on-night-muted); }
.sec-dark .h2, .sec-dark .h3 { color: var(--on-night); }
.sec-band { padding-block: clamp(40px, 5vw, 64px); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); align-items: start; }

/* ---------- hero (the one bold moment) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--on-night);
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 33% 72%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 58% 26%, rgba(255,246,200,.75), transparent 60%),
    radial-gradient(1px 1px at 77% 64%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 89% 12%, rgba(200,210,255,.7), transparent 60%),
    radial-gradient(1px 1px at 6% 88%, rgba(255,255,255,.4), transparent 60%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 610px 610px, 340px 340px; }
.hero .lede { color: var(--on-night-muted); margin-top: 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-sub { color: var(--on-night-muted); font-size: 15.5px; max-width: 34em; margin: 0; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; color: var(--on-night-muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 9px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-on-night); flex: none; display: inline-block; }
.dot-amber { background: var(--marker); }

.hero-visual { position: relative; display: grid; justify-items: start; }
.ai-answer { margin: 0; width: min(100%, 520px); background: var(--night-2); border: 1px solid var(--line-dark); border-radius: var(--r-obj);
  padding: 16px 18px 14px; box-shadow: var(--shadow-night); }
.answer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.answer-who { font: 600 13px/1 var(--sans); color: var(--on-night-muted); display: inline-flex; align-items: center; gap: 8px; }
.answer-who::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--blue-on-night);
  box-shadow: inset 0 0 0 3px var(--night-2), inset 0 0 0 8px var(--blue-on-night); }
.answer-q { font-size: 14.5px; color: var(--on-night-muted); margin: 0 0 8px; padding-left: 12px; border-left: 2px solid var(--line-dark); }
.answer-a { font-size: 15.5px; line-height: 1.55; color: var(--on-night); margin: 0 0 12px; }
.cite-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px;
  font: 700 11px/1 var(--sans); background: var(--marker); color: var(--text); vertical-align: 2px; }
sup.cite-n { margin-left: 4px; }
.answer-src { display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line-dark);
  font: 500 12.5px/1.4 var(--mono); color: var(--on-night); overflow-wrap: anywhere; }
.answer-src mark { background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 0 / 100% 100%; color: var(--text); padding: 1px 3px; border-radius: 2px; }
.connector { width: 2px; height: 34px; margin-left: 30px; background: var(--marker); transform-origin: top; position: relative; }
.connector::after { content: ""; position: absolute; left: -4px; bottom: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--marker); }
.browser { width: 100%; background: var(--card); color: var(--text); border-radius: var(--r-obj); overflow: hidden; box-shadow: var(--shadow-night); }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--sheet-2); border-bottom: 1px solid var(--line);
  font: 500 13px/1.3 var(--mono); overflow-wrap: anywhere; outline: 2px solid var(--marker); outline-offset: -2px; border-radius: var(--r-obj) var(--r-obj) 0 0; }
.browser-url .dim, .urlbar .dim { color: var(--text-muted); }

@media (prefers-reduced-motion: no-preference) {
  .answer-src mark { animation: mark-in .7s .5s var(--ease) both; }
  .connector { animation: draw .45s 1.1s var(--ease) both; }
  .connector::after { animation: pop .3s 1.5s var(--ease) both; }
  .browser-bar { animation: ring-in .5s 1.6s var(--ease) both; }
  @keyframes mark-in { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
  @keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
  @keyframes ring-in { from { outline-color: transparent; } to { outline-color: var(--marker); } }
}

/* ---------- sample visuals (synthetic data, always labelled) ---------- */
.sample-tag { display: inline-flex; align-items: center; font: 600 12px/1 var(--sans); padding: 5px 8px; border-radius: 4px;
  background: var(--tag-bg); color: var(--tag-ink); white-space: nowrap; }

.lcard { background: var(--card); color: var(--text); }
.lcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px 10px; }
.lcard-top .status { font: 600 13px/1 var(--sans); color: var(--green); display: inline-flex; gap: 7px; align-items: center; }
.lcard-top .status .dot { background: var(--green); }
.lcard-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; }
/* The photo frame: the image is CONTAINED on a neutral ground. Nothing is ever layered over it. */
.photo { aspect-ratio: 4 / 3; background: var(--photo-ground); display: grid; place-items: center; }
.photo > img, .photo > svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.lcard-body { padding: 14px 18px 16px; display: flex; flex-direction: column; }
.lcard-price { font: 700 1.7rem/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 0 0 8px; }
.lcard-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lcard-facts b { color: var(--text); font-weight: 650; }
.lcard-addr { font-size: 14.5px; margin: 0; }
.lcard-attr { font-size: 14.5px; margin: 6px 0 0; }
.lcard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.lcard-actions span { flex: 1 1 auto; text-align: center; font: 600 13.5px/1 var(--sans); padding: 11px 10px; border-radius: var(--r-ctl); background: var(--blue); color: #fff; white-space: nowrap; }
.lcard-actions span + span { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lcard-legal { border-top: 1px solid var(--line); padding: 10px 16px 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.mls-mark { grid-row: span 2; width: 46px; height: 32px; border: 1px dashed var(--line-strong); border-radius: 4px; display: grid; place-items: center; font: 600 10px/1.1 var(--sans); color: var(--text-muted); text-align: center; }

.term { background: var(--night-2); border: 1px solid var(--line-dark); border-radius: var(--r-obj); box-shadow: var(--shadow-night); overflow: hidden; }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-dark); }
.term-title { font: 600 13px/1 var(--sans); color: var(--on-night-muted); }
.term pre { margin: 0; padding: 16px 18px 20px; font-size: 13px; line-height: 1.75; color: #dfe2f6; white-space: pre-wrap; word-break: break-word; }
.term .p { color: var(--marker); }
.term .c { color: #9aa0c6; }
.term .ok { color: var(--green-on-night); }
.term .k { color: var(--blue-on-night); }

.mail, .form-mock { background: var(--card); color: var(--text); border-radius: var(--r-obj); border: 1px solid var(--line); box-shadow: var(--shadow-obj); }
.mail { overflow: hidden; }
.mail-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; font-size: 13.5px; color: var(--text-muted); }
.mail-head .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mail-subject { font: 650 1.05rem/1.3 var(--display); color: var(--text); }
.mail-body { padding: 14px 20px 18px; }
.mail-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mail-table th { text-align: left; font-weight: 500; color: var(--text-muted); padding: 7px 12px 7px 0; width: 38%; vertical-align: top; border-top: 1px solid var(--line); }
.mail-table td { padding: 7px 0; border-top: 1px solid var(--line); }
.mail-table tr:first-child td, .mail-table tr:first-child th { border-top: 0; }
.pill { display: inline-block; font: 600 12px/1 var(--sans); padding: 4px 7px; border-radius: 4px; background: var(--tag-bg); color: var(--tag-ink); margin-left: 4px; }
.pill-off { background: var(--sheet-2); color: var(--text-muted); margin-left: 0; }

.form-mock { padding: 20px; }
.form-mock-tag { margin: 0 0 14px; }
.form-mock fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.form-mock legend { font: 650 15px/1.3 var(--display); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 13.5px/1 var(--sans); padding: 10px 12px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--card); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--night); color: var(--on-night); border-color: var(--night); }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.field span { font-weight: 500; }
.field input { font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--card); color: var(--text); width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-muted); margin: 6px 0 14px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.form-mock .btn { width: 100%; }

/* ---------- at a glance: a listing sheet ---------- */
.sheet { margin: 0; border-top: 2px solid var(--text); }
.sheet > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px 28px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.sheet dt { font-weight: 650; color: var(--text); }
.sheet dd { margin: 0; color: var(--text-muted); max-width: 40em; }

/* ---------- what your site gets: feature rows ---------- */
.feats { border-top: 2px solid var(--text); }
.feat { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(24px, 5vw, 72px); padding: clamp(24px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line-strong); }
.feat .h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; }
.feat-body > p { color: var(--text-muted); max-width: 38em; margin: 0; }
.feat-note { color: var(--text-muted); font-size: 15px; margin: 8px 0 0; max-width: 24em; }
.urlbar { margin-top: 20px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-ctl);
  background: var(--sheet); border: 1px solid var(--line); font: 500 13.5px/1.3 var(--mono); overflow-wrap: anywhere; }
.urlbar .dim { color: var(--text-muted); }
.lock { width: 10px; height: 12px; border: 1.5px solid var(--green); border-radius: 2px; position: relative; flex: none; margin-top: 4px; }
.lock::before { content: ""; position: absolute; width: 6px; height: 6px; border: 1.5px solid var(--green); border-bottom: 0; border-radius: 4px 4px 0 0; left: 0.5px; top: -6.5px; }
.vs { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14.5px; color: var(--text-muted); }
.vs div { padding: 12px 14px; border-left: 3px solid var(--line-strong); background: var(--sheet); }
.vs b { display: block; font-weight: 650; color: var(--text); margin-bottom: 4px; }
.vs .yes { border-left-color: var(--green); }
.code-sm { margin: 20px 0 0; max-width: 560px; }
.rules-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(20px, 3vw, 40px); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; }
.rules li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.rules li::before, .checklist > li::before, .price-incl li::before {
  content: ""; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg) translateY(-3px); flex: none; }
.rules-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); }
.rules-label { margin: 0 0 6px; font-weight: 650; font-size: 15px; color: var(--text); }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: s; display: grid; }
.step { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.step::before { content: counter(s); grid-row: span 2; font: 300 2.6rem/0.9 var(--display); color: var(--blue-on-night); font-variant-numeric: tabular-nums; }
.step .h3 { margin-bottom: 6px; }
.step p { margin: 0; }
.how-grid .term { margin-top: clamp(0px, 4vw, 64px); }

/* ---------- leads ---------- */
.leads-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.leads-visual { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.leads-visual .mail { margin-top: 48px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; }
.ticks li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); color: var(--text-muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.ticks strong { font-weight: 650; color: var(--text); }

/* ---------- pricing ---------- */
.price-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.price-strip .big { margin: 0; font: 700 clamp(1.5rem, 3vw, 2.25rem)/1.15 var(--display); letter-spacing: -0.025em; color: var(--on-night); max-width: 24em; }
.price-card { background: var(--card); color: var(--text); border: 1px solid var(--line); border-top: 2px solid var(--text); padding: clamp(24px, 4vw, 44px); }
.price-lines { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(14px, 3vw, 36px); align-items: start; }
.price-line .label { font-weight: 650; font-size: 15px; color: var(--text-muted); }
.price-line .price-big { color: var(--text); font: 700 clamp(3rem, 7vw, 4.75rem)/1 var(--display); letter-spacing: -0.045em; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.price-line .price-big small { font: 500 1rem/1 var(--sans); letter-spacing: 0; color: var(--text-muted); margin-left: 8px; }
.price-line .price-at-cost { color: var(--text); font: 700 clamp(2rem, 4.4vw, 3rem)/1 var(--display); letter-spacing: -0.035em; margin: 18px 0 6px; }
.price-plus { font: 300 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); color: var(--text-muted); padding-top: 34px; }
.sec-plan { padding-bottom: 0; }
.price-line p { color: var(--text-muted); font-size: 15px; margin: 8px 0 0; }
.price-incl { list-style: none; padding: 24px 0 0; margin: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; font-size: 15.5px; }
.price-incl li { display: flex; gap: 12px; align-items: baseline; }
.pricing-later { font: 500 1.1rem/1.4 var(--sans); padding: 18px 22px; border: 1px dashed var(--line-dark); border-radius: var(--r-obj); color: var(--on-night-muted); margin: 0; }
.sec-paper .pricing-later { border-color: var(--line-strong); color: var(--text-muted); }

/* ---------- inner pages ---------- */
.page-hero { position: relative; background: var(--night); color: var(--on-night); padding-block: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 72px); }
.page-hero .display { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 16em; }
.page-hero .lede { color: var(--on-night-muted); margin-top: 20px; }
.page-404 { min-height: 60vh; }
.crumbs { margin-bottom: 18px; font-size: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--on-night-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(179, 184, 216, .6); }
.crumbs a { color: var(--on-night-muted); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--on-night); }
.crumbs [aria-current] { color: var(--on-night); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { font: 700 clamp(1.45rem, 2.4vw, 1.85rem)/1.2 var(--display); letter-spacing: -0.02em; margin: 1.8em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose code, .tbl code, .numbered code, .feat code, .checklist code, .faq code { font-size: .86em; padding: 2px 5px; border-radius: 4px; background: var(--sheet-2); }
.sec-dark .prose code, .sec-dark .numbered code, .sec-dark .checklist code { background: rgba(255,255,255,.1); }

.res-grid { border-top: 2px solid var(--text); }
.res { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); grid-template-areas: "kind title url" "kind desc url";
  gap: 4px clamp(16px, 3vw, 40px); padding: 22px 4px; border-bottom: 1px solid var(--line-strong); text-decoration: none; color: var(--text); transition: background-color .15s; }
.res:hover { background: var(--card); }
.res:hover .res-title { color: var(--blue); }
.res-kind { grid-area: kind; font-weight: 650; color: var(--text-muted); font-size: 15px; }
.res-title { grid-area: title; font: 650 1.2rem/1.25 var(--display); letter-spacing: -0.012em; }
.res p { grid-area: desc; margin: 0; color: var(--text-muted); font-size: 15.5px; }
.res-url { grid-area: url; font: 500 13px/1.4 var(--mono); color: var(--blue); overflow-wrap: anywhere; align-self: center; }
.res-wide .res-kind { color: var(--text); }
.res-wide .res-kind::after { content: ""; display: block; width: 28px; height: 4px; margin-top: 8px; background: var(--marker); }

.code { position: relative; margin: 18px 0 24px; border-radius: var(--r-obj); background: var(--night-2); color: #e3e6f8; border: 1px solid var(--line-dark); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line-dark); font: 600 13px/1.2 var(--sans); color: var(--on-night-muted); min-height: 42px; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; color: #e3e6f8; }
.code pre.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.code-sm pre { font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { font: 600 13px/1 var(--sans); min-height: 32px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line-dark); background: transparent; color: var(--on-night); cursor: pointer; transition: background-color .15s, color .15s; }
.copy:hover { background: rgba(255,255,255,.08); }
.copy[data-state="done"] { background: var(--green-on-night); color: var(--night); border-color: var(--green-on-night); }

.table-wrap { overflow-x: auto; border-top: 2px solid var(--text); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line-strong); vertical-align: top; }
.tbl th { font-weight: 650; font-size: 14px; color: var(--text-muted); }
.tbl td:first-child { padding-right: 24px; }
.tbl code { white-space: nowrap; }

.numbered { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; }
.numbered > li { counter-increment: n; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-top: 1px solid var(--line-strong); }
.numbered > li::before { content: counter(n); font: 300 2.2rem/0.95 var(--display); color: var(--blue); font-variant-numeric: tabular-nums; }
.sec-dark .numbered > li { border-color: var(--line-dark); }
.sec-dark .numbered > li::before { color: var(--blue-on-night); }
.numbered .h3, .checklist .h3 { margin-bottom: 4px; }
.numbered p, .checklist p { margin: 0; }
.sec-paper .numbered p, .sec-paper .checklist p { color: var(--text-muted); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; }
.checklist > li { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.sec-dark .checklist > li { border-color: var(--line-dark); }
.sec-dark .checklist > li::before { border-color: var(--green-on-night); }
.checklist-no > li::before { content: "\00d7"; width: auto; height: auto; border: 0; transform: none; font: 600 1.4rem/0.8 var(--sans); color: #a3262b; }

.callout { border-left: 3px solid var(--blue); padding: 14px 18px; background: var(--card); color: var(--text); margin: 0 0 24px; }
.callout-tight { margin: 22px 0 0; }
.sec-dark .callout { border-color: var(--marker); background: var(--night-2); color: var(--on-night); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-aside { position: sticky; top: 88px; }
.faq-aside ul { list-style: none; padding: 0; margin: 0; display: grid; border-top: 2px solid var(--text); }
.faq-aside a { text-decoration: none; font-size: 15px; color: var(--text-muted); display: block; padding: 9px 0; border-bottom: 1px solid var(--line); }
.faq-aside a:hover { color: var(--blue); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font: 700 1.6rem/1.15 var(--display); letter-spacing: -0.02em; margin-bottom: 12px; scroll-margin-top: 88px; }
.faq { border-top: 1px solid var(--line-strong); }
.faq:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; font: 600 1.05rem/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--sans); color: var(--blue); margin-top: -2px; }
.faq[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--blue); }
.faq .answer { padding: 0 0 22px; color: var(--text-muted); max-width: 66ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-card { padding: clamp(24px, 4vw, 44px); background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--text); }
.contact-card .btn { display: flex; width: fit-content; margin: 0 0 22px; }
.contact-card .h3 { font-size: 1rem; color: var(--text-muted); font-weight: 600; }
.contact-email { display: inline-block; font: 700 clamp(1.2rem, 2.6vw, 1.85rem)/1.2 var(--display); letter-spacing: -0.02em; color: var(--text); text-decoration: none;
  overflow-wrap: anywhere; box-shadow: inset 0 -0.3em 0 var(--marker); margin: 6px 0 18px; }
.contact-email:hover { color: var(--blue); }

/* ---------- legal drafts ---------- */
.draft-banner { max-width: 72ch; padding: 16px 20px; margin-bottom: 36px; color: #3b2a00; border: 1px solid #c9a227;
  background: repeating-linear-gradient(135deg, #fff2bf 0 14px, #ffe9a0 14px 28px); }
.draft-banner strong { display: block; font: 700 15px/1.3 var(--sans); }
.draft-banner p { margin: 4px 0 0; font-size: 15px; }
.todo { display: block; padding: 10px 14px; background: var(--card); border: 1px dashed var(--line-strong); font: 500 14px/1.5 var(--mono); color: var(--text-muted); margin: 0 0 1em; }

/* ---------- CTA band + footer ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: end; }
.cta-band .h2 { margin: 0; max-width: 20em; }
.cta-band .btn-row { margin: 0; }
.site-footer { background: var(--night); color: var(--on-night-muted); padding-top: clamp(48px, 6vw, 72px); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin: 14px 0 0; max-width: 28em; }
.footer-status { display: inline-flex; align-items: center; gap: 9px; color: var(--on-night); }
.footer-h { font: 650 15px/1 var(--sans); color: var(--on-night); margin: 6px 0 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a { text-decoration: none; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-block: 20px 28px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer-base p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .leads-grid, .faq-layout, .cta-band, .split, .how-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 680px; }
  .faq-aside { position: static; }
  .how-grid .term { margin-top: 0; }
  .res { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: "kind title" "kind desc" "kind url"; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .lcard-main { grid-template-columns: minmax(0, 1fr); }
  .feat { grid-template-columns: minmax(0, 1fr); }
  .rules-groups, .rules-2 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rules-2 { gap: 0; }
  .vs { grid-template-columns: minmax(0, 1fr); }
  .leads-visual { grid-template-columns: minmax(0, 1fr); }
  .leads-visual .mail { margin-top: 0; }
  .price-lines { grid-template-columns: minmax(0, 1fr); }
  .price-plus { padding: 0; line-height: .6; }
  .price-incl { grid-template-columns: minmax(0, 1fr); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .sheet > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .res { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kind" "title" "desc" "url"; }
  .numbered > li { grid-template-columns: 40px minmax(0, 1fr); }
  .step { grid-template-columns: 44px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .btn-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .answer-head { flex-wrap: wrap; }
  .term pre { font-size: 12px; padding: 14px 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer { display: none; }
  body, .hero, .page-hero, .sec-dark { background: #fff; color: #000; }
}
