/* Pretendard is loaded with <link> in templates/landing.php. @import here would
   hide the font from the preload scanner and block first render. */

:root {
  --ld-bg: #f4f6fb;
  --ld-ink: #111827;
  --ld-muted: #374151;
  --ld-card: #fff;
  --ld-line: #e5e7eb;
  --ld-accent: #1d4ed8;
  --ld-accent-ink: #fff;
  /* Small text on a light surface needs its own token: one colour cannot be
     both a button background and 4.5:1 body text. */
  --ld-accent-text: #1d4ed8;
  --ld-err: #b91c1c;
  --ld-top: #0f172a;
  --ld-chip: #eef2ff;
  --ld-bar-h: 124px;
  --ld-z-bar: 950;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth }
}
html { scrollbar-gutter: stable; scroll-padding-block: 84px calc(var(--ld-bar-h) + env(safe-area-inset-bottom)) }
body.ld {
  display: block;
  margin: 0;
  color: var(--ld-ink);
  background: var(--ld-bg);
  font: 18px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
[hidden] { display: none !important }
.ld-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- shell ---------- */
.ld-top { background: var(--ld-top); color: #fff }
.ld-top-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 650;
}
.ld-stamp { margin-left: auto; font-size: 14px; font-weight: 600; opacity: .78 }
.ld-top-cta {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.ld-main {
  /* width:100% breaks the flex-item + container-type + margin:auto cycle:
     inline-size containment cannot size from contents, so auto width
     collapses to padding (44px) and Korean wraps one glyph per line. */
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px calc(var(--ld-bar-h) + env(safe-area-inset-bottom));
  container: ld / inline-size;
}
.ld-l-story .ld-main, .ld-l-compare .ld-main { max-width: 940px }

/* ---------- sticky form rail ----------
   The form column spans every row of the rail, so the content column sets the
   height. A long form can no longer leave a hole beside a short hero. */
.ld-rail-main { min-width: 0 }
@media (min-width: 1024px) {
  .ld-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    grid-template-rows: auto auto;
    column-gap: 34px;
    align-items: start;
  }
  .ld-rail > .ld-hero { grid-column: 1; grid-row: 1 }
  .ld-rail > .ld-rail-main { grid-column: 1; grid-row: 2; container: ld / inline-size }
  .ld-rail > .ld-rail-side {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
  }
  .ld-rail-side .ld-form-wrap { margin: 0 }
  /* Compact so an 8-field form still fits one screen. */
  .ld-rail-side .ld-card { padding: 20px 18px }
  .ld-rail-side .ld-card label { margin: 10px 0 }
  .ld-rail-side .ld-card input[type=text],
  .ld-rail-side .ld-card input[type=tel],
  .ld-rail-side .ld-card input[type=date],
  .ld-rail-side .ld-card select { min-height: 48px; padding: 11px 14px; margin-top: 6px }
  .ld-rail-side .ld-form-head { margin-bottom: 12px }
  .ld-rail-side .ld-agrees { margin: 14px 0 12px }
  .ld-rail-on .ld-stick { display: none }
  .ld-rail-on .ld-main { padding-bottom: 28px }
}
@media (min-width: 1024px) and (min-height: 900px) {
  .ld-rail > .ld-rail-side {
    position: sticky;
    top: 18px;
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}

/* ---------- hero ---------- */
.ld-hero { margin: 0 0 26px }
.ld-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.95rem, 4.4vw, 2.8rem);
  line-height: 1.32;
  letter-spacing: -.02em;
  font-weight: 780;
  text-wrap: balance;
}
.ld-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ld-chip);
  font-size: 15px;
  font-weight: 750;
}
.ld-adlabel {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border: 1px solid var(--ld-line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ld-muted);
  letter-spacing: .04em;
}
.ld-lead { color: var(--ld-muted); margin: 0 0 20px; font-size: 1.1rem }
.ld-hero-cta { margin: 0 }
.ld-art { color: var(--ld-accent); max-width: 320px; margin: 8px 0 20px }
.ld-scene { width: 100%; height: auto; display: block }

/* photo heroes: copy sits over the image, height stays modest so the hero
   never has to stretch to match anything else */
.ld-hero:has(.ld-hero-bg) {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: clamp(260px, 30vw, 400px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.ld-hero-bg { position: absolute; inset: 0; z-index: 0 }
.ld-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block }
.ld-hero:has(.ld-hero-bg)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(8, 12, 22, .9) 0%, rgba(8, 12, 22, .7) 48%, rgba(8, 12, 22, .16) 100%);
}
.ld-hero:has(.ld-hero-bg) .ld-hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 3.4vw, 40px);
  max-width: 620px;
  color: #fff;
}
.ld-hero:has(.ld-hero-bg) h1 { color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .34) }
.ld-hero:has(.ld-hero-bg) .ld-lead { color: rgba(255, 255, 255, .9) }
.ld-hero:has(.ld-hero-bg) .ld-kicker { background: rgba(255, 255, 255, .18); color: #fff }
.ld-hero:has(.ld-hero-bg) .ld-adlabel { border-color: rgba(255, 255, 255, .5); color: rgba(255, 255, 255, .9) }

.ld-hero-banner { min-height: clamp(300px, 34vw, 460px) }
.ld-hero-wide:has(.ld-hero-bg)::after {
  background: linear-gradient(180deg, rgba(8, 12, 22, .3) 0%, rgba(8, 12, 22, .86) 78%);
}
/* editorial hero: no overlay, image reads as an article photo below the copy */
.ld-hero-plain { display: flex; flex-direction: column; gap: 18px }
.ld-hero-plain, .ld-hero-plain::after { min-height: 0; background: none }
.ld-hero-plain:has(.ld-hero-bg) { border-radius: 0; overflow: visible; display: flex; align-items: stretch }
.ld-hero-plain:has(.ld-hero-bg)::after { content: none }
.ld-hero-plain .ld-hero-copy { order: 1; padding: 0; max-width: 42rem; color: var(--ld-ink) }
.ld-hero-plain:has(.ld-hero-bg) h1 { color: var(--ld-ink); text-shadow: none }
.ld-hero-plain:has(.ld-hero-bg) .ld-lead { color: var(--ld-muted) }
.ld-hero-plain:has(.ld-hero-bg) .ld-kicker { background: var(--ld-chip); color: var(--ld-ink) }
.ld-hero-plain .ld-hero-bg {
  position: static;
  order: 2;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.ld-hero-plain h1 { font-size: clamp(2.1rem, 5vw, 3.1rem) }

/* ---------- insurer marquee ---------- */
.ld-ins-wrap { margin: 8px 0 26px }
.ld-ins-h { margin: 0 0 10px; font-size: 15px; font-weight: 750; color: var(--ld-muted) }
.ld-ins { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 8px; list-style: none }
.ld-ins li {
  background: var(--ld-card);
  border: 1px solid var(--ld-line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
}
.ld-marq {
  display: flex;
  gap: 10px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ld-marq-track {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  margin: 0;
  animation: ld-marq 26s linear infinite;
}
@keyframes ld-marq { to { transform: translateX(calc(-100% - 10px)) } }
.ld-marq:hover .ld-marq-track,
.ld-marq:focus-within .ld-marq-track { animation-play-state: paused }
@media (prefers-reduced-motion: reduce) {
  .ld-marq { overflow-x: auto; mask-image: none }
  .ld-marq-track { animation: none }
  .ld-marq-track[aria-hidden] { display: none }
}

/* ---------- form ---------- */
.ld-form-wrap { margin: 8px 0 26px; container: ldform / inline-size }
.ld-card {
  background: var(--ld-card);
  border: 1px solid var(--ld-line);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  accent-color: var(--ld-accent);
}
.ld-card h2 { margin: 0 0 16px; font-size: 1.4rem; letter-spacing: -.02em }
.ld-card label { display: block; font-size: 16px; font-weight: 750; margin: 14px 0 }
.ld-card input[type=text],
.ld-card input[type=tel],
.ld-card input[type=date],
.ld-card select {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  min-height: 54px;
  border: 1px solid var(--ld-line);
  border-radius: 12px;
  font: inherit;
  background: var(--ld-card);
  color: inherit;
}
.ld-card input:focus-visible, .ld-card select:focus-visible,
.ld-card button:focus-visible, .ld-card summary:focus-visible {
  outline: 3px solid var(--ld-accent-text);
  outline-offset: 2px;
}
.ld-form-head { margin: 0 0 18px }
.ld-form-head h2 { margin: 0 0 6px }
.ld-form-sub { margin: 0; font-size: 15px; color: var(--ld-muted) }
.ld-fields { display: grid; gap: 0 16px }
.ld-sex { border: 0; padding: 0; margin: 10px 0; display: flex; gap: 20px; align-items: center; flex-wrap: wrap }
.ld-sex legend { font-size: 16px; font-weight: 750; padding: 0 }
.ld-sex label { display: inline-flex; align-items: center; gap: 6px; margin: 0; min-height: 44px }
.ld-fetal, .ld-agree { font-weight: 600 !important; color: var(--ld-muted) }
.ld-agree input, .ld-fetal input { width: 18px; height: 18px; margin-right: 8px }
.ld-hint { margin: 6px 0 0; font-size: 13px; color: var(--ld-muted) }
.ld-age { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 750; color: var(--ld-accent-text) }
.ld-age:empty { display: none }
.ld-card button, .ld-stick a {
  display: block;
  width: 100%;
  border: 0;
  background: var(--ld-accent);
  color: var(--ld-accent-ink);
  font: inherit;
  font-weight: 800;
  font-size: 1.12rem;
  padding: 16px 18px;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.ld-card button[type=submit] { scroll-margin-bottom: calc(var(--ld-bar-h) + 16px) }
.ld-btn-ar { margin-left: 8px }
.ld-fine { font-size: 15px; color: var(--ld-muted); line-height: 1.6 }
.ld-err { color: var(--ld-err); font-weight: 750; font-size: 17px; margin: 0 0 12px }
.ld-ok h2 { color: #047857 }
.ld-t4 .ld-ok h2 { color: #6ee7b7 }
.ld-hp { position: absolute; left: -9999px; height: 0; overflow: hidden }

/* one field per row in a narrow slot (rail), two in a wide one (mid/bottom) */
@container ldform (min-width: 560px) {
  .ld-fields { grid-template-columns: 1fr 1fr }
  .ld-fields > .ld-sex, .ld-fields > .ld-hint { grid-column: 1 / -1 }
}
@container ldform (min-width: 860px) {
  .ld-fields { grid-template-columns: repeat(3, 1fr) }
}
.ld-form-inline .ld-inline-lab { margin: 10px 0 }
.ld-form-inline .ld-inline-lab input,
.ld-form-inline .ld-inline-lab select { margin-top: 0 }

/* consents */
.ld-agrees { margin: 20px 0 16px; border: 1px solid var(--ld-line); border-radius: 14px; padding: 14px 16px }
.ld-agree-all { display: flex !important; align-items: center; margin: 0 0 10px !important; padding-bottom: 10px; border-bottom: 1px solid var(--ld-line) }
.ld-agree-all input { width: 20px; height: 20px; margin-right: 10px }
.ld-agree-row { margin: 0 0 6px }
.ld-agree-row .ld-agree { display: flex !important; align-items: flex-start; margin: 6px 0 !important; font-size: 15px }
.ld-agree-row .ld-agree em { font-style: normal; color: var(--ld-err); font-weight: 700 }
.ld-agree-doc { margin: 0 0 6px 28px }
.ld-agree-doc summary { cursor: pointer; font-size: 13px; color: var(--ld-muted) }
.ld-agree-doc ul { margin: 8px 0 4px; padding-left: 1.2em; display: grid; gap: 5px }
.ld-agree-doc li { font-size: 13px; color: var(--ld-muted); line-height: 1.6 }

/* ---------- multi-step form ---------- */
.ld-step { border: 0; padding: 0; margin: 0; min-inline-size: 0 }
.ld-step legend { font-size: 15px; font-weight: 800; padding: 0; margin: 0 0 6px; color: var(--ld-accent-text) }
.ld-step-bar { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--ld-muted) }
.ld-step-bar b { display: block; margin-top: 8px; font-size: 15px; color: var(--ld-ink) }
.ld-step-track { display: block; height: 6px; border-radius: 99px; background: var(--ld-line); overflow: hidden }
.ld-step-fill { display: block; height: 100%; width: 33%; background: var(--ld-accent); border-radius: 99px; transition: width .25s ease }
@media (prefers-reduced-motion: reduce) { .ld-step-fill { transition: none } }
.ld-step-next, .ld-step-back {
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 800;
  font-size: 1.12rem;
  padding: 16px 18px;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
}
.ld-step-next { border: 0; background: var(--ld-accent); color: var(--ld-accent-ink) }
.ld-step-back { margin-top: 8px; background: transparent; border: 1px solid var(--ld-line); color: var(--ld-muted); font-size: 1rem; padding: 12px 18px }
/* no-JS fallback: every step visible, separated like plain sections */
.ld-stepper .ld-step + .ld-step { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--ld-line) }

/* ---------- content sections ---------- */
.ld-steps {
  list-style: none;
  margin: 8px 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.ld-steps li {
  background: var(--ld-card);
  border: 1px solid var(--ld-line);
  border-radius: 16px;
  padding: 18px 14px 16px;
}
.ld-steps .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 99px;
  background: var(--ld-accent);
  color: var(--ld-accent-ink);
  font-size: 14px;
  font-weight: 800;
}
.ld-steps .ico { display: block; color: var(--ld-accent-text); margin: 10px 0 8px }
.ld-ico { width: 28px; height: 28px; display: block }
.ld-steps b { display: block; font-size: 17px }
.ld-steps p { margin: 4px 0 0; color: var(--ld-muted); font-size: 15px }

.ld-marks { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 32px }
.ld-marks div { background: var(--ld-chip); border-radius: 16px; padding: 18px 16px }
.ld-marks strong { display: block; font-size: 1.3rem; letter-spacing: -.02em }
.ld-marks span { color: var(--ld-muted); font-size: 16px }

.ld-bullets, .ld-prods, .ld-trust, .ld-notice, .ld-worries, .ld-checks, .ld-cov, .ld-faq { margin: 32px 0 }
.ld-bullets h2, .ld-prods h2, .ld-notice h2, .ld-worries h2, .ld-checks h2, .ld-cov h2, .ld-faq h2 {
  font-size: 1.42rem;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.ld-bullets ul, .ld-worries ul, .ld-checks ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px }
.ld-bullets li, .ld-worries li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--ld-card);
  border: 1px solid var(--ld-line);
  border-radius: 16px;
  padding: 16px 18px;
}
.ld-bullets .ico, .ld-worries .ld-ico, .ld-checks .ico { color: var(--ld-accent-text); flex-shrink: 0; margin-top: 2px }
.ld-bullets p, .ld-worries span { margin: 0; font-size: 17px }
.ld-checks li {
  background: var(--ld-card);
  border: 1px solid var(--ld-line);
  border-radius: 16px;
  padding: 18px 16px;
}
.ld-checks b { display: block; margin: 8px 0 6px }
.ld-checks p { margin: 0; color: var(--ld-muted); font-size: 15px }

.ld-prod-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: stretch }
.ld-prod-grid article {
  background: var(--ld-card);
  border: 1px solid var(--ld-line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.ld-prod-grid article > header { background: var(--ld-chip); padding: 16px 18px 14px; border-bottom: 1px solid var(--ld-line) }
.ld-prod-grid .ins { margin: 0; font-size: 14px; font-weight: 800; color: var(--ld-accent-text) }
.ld-prod-grid h3 { margin: 4px 0 6px; font-size: 19px; letter-spacing: -.01em }
.ld-prod-grid .pname { margin: 0; font-size: 14px; color: var(--ld-muted); line-height: 1.5 }
.ld-prod-grid .pcode { margin: 8px 0 0; font-size: 12px; color: var(--ld-muted); line-height: 1.45 }
.ld-prod-grid .psum { margin: 16px 18px 8px; font-size: 13px; font-weight: 800; color: var(--ld-accent-text) }
.ld-prod-grid ul { list-style: none; margin: 0 0 16px; padding: 0 18px; display: grid; gap: 8px; flex: 1 }
.ld-prod-grid li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ld-muted); line-height: 1.6 }
.ld-prod-grid li::before { content: "\2713"; position: absolute; left: 0; color: var(--ld-accent-text); font-weight: 800 }
.ld-prod-grid .ld-btn-line { margin: 0 18px 18px; text-align: center }

.ld-trust ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px }
.ld-trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px }
.ld-trust .ld-ico { color: var(--ld-accent-text) }

.ld-table-wrap { overflow-x: auto; border: 1px solid var(--ld-line); border-radius: 16px; background: var(--ld-card) }
.ld-table { width: 100%; border-collapse: collapse; font-size: 16px }
.ld-table th, .ld-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ld-line) }
.ld-table th { background: var(--ld-chip); font-size: 14px }

.ld-faq details {
  background: var(--ld-card);
  border: 1px solid var(--ld-line);
  border-radius: 14px;
  padding: 4px 16px;
  margin: 0 0 10px;
}
.ld-faq summary { cursor: pointer; font-weight: 750; padding: 12px 0 }
.ld-faq .a { color: var(--ld-muted); padding: 0 0 14px }

.ld-visual, .ld-agent.has-img {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 34px);
  margin: 36px 0;
}
.ld-visual figure, .ld-agent figure { margin: 0; border-radius: 20px; overflow: hidden; order: -1 }
.ld-visual img, .ld-agent img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block }
.ld-visual h2, .ld-agent h2 { margin: 6px 0 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; line-height: 1.34; text-wrap: balance }
.ld-visual p, .ld-agent p { color: var(--ld-muted); margin: 0 0 18px }
.ld-agent { margin: 36px 0 }
.ld-btn-line {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--ld-accent);
  color: var(--ld-accent-ink);
  font-weight: 780;
  font-size: 16px;
  text-decoration: none;
}

.ld-stats { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 32px 0 }
.ld-stats div { flex: 1 1 160px; background: var(--ld-chip); border-radius: 16px; padding: 18px 20px }
.ld-stats strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2 }
.ld-stats span { font-size: 15px; color: var(--ld-muted) }
.ld-stats .ld-fine { flex: 1 1 100% }

/* 이익과 불이익을 같은 비중으로 읽히게: 고지문 최소 14px 유지 */
.ld-notice p, .ld-notice-list li { font-size: 14px; color: var(--ld-muted); line-height: 1.7 }
.ld-notice-list { margin: 0; padding-left: 1.4em; display: grid; gap: 8px }
.cbd-legal { margin-top: 40px; font-size: 14px; color: var(--ld-muted); line-height: 1.7 }
.cbd-legal .sim { font-weight: 800; color: var(--ld-ink); font-size: 15px }
.cbd-logo img { max-width: 160px; height: auto }

/* ---------- sticky bottom CTA ---------- */
.ld-stick {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--ld-z-bar);
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--ld-card);
  border-top: 1px solid var(--ld-line);
}
.ld-stick a { max-width: 560px; margin: 0 auto }
/* get out of the way while the visitor is actually filling the form in */
.ld-stick { transition: transform .2s ease }
body:has(.ld-card :is(input, select, button):focus-visible) .ld-stick { transform: translateY(120%) }
@media (prefers-reduced-motion: reduce) { .ld-stick { transition: none } }

/* ---------- container-driven grids ----------
   Queried against the content column, not the viewport, so a narrow column
   next to the form rail never gets four cards crushed into 100px each. */
@container ld (min-width: 560px) {
  .ld-steps, .ld-marks, .ld-checks ul, .ld-prod-grid { grid-template-columns: 1fr 1fr }
  .ld-visual, .ld-agent.has-img { grid-template-columns: 1fr 1fr; align-items: center }
  .ld-visual figure, .ld-agent figure { order: 0 }
}
@container ld (min-width: 820px) {
  .ld-steps { grid-template-columns: repeat(4, 1fr) }
  .ld-marks, .ld-checks ul, .ld-prod-grid { grid-template-columns: repeat(3, 1fr) }
}

/* ---------- preview strip ---------- */
.ld-ex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}
.ld-ex a {
  color: #fff;
  border: 1px solid #6b7280;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.ld-ex a.on { background: #fff; color: #111; border-color: #fff }
.ld-ex em { font-style: normal; opacity: .7; font-weight: 500 }

/* ---------- themes ----------
   --ld-accent paints surfaces, --ld-accent-text paints small copy. */
.ld-t1 { --ld-top: #0b1f4a; --ld-accent: #b45309; --ld-accent-ink: #fff; --ld-accent-text: #92400e; --ld-bg: #f3f6ff; --ld-chip: #dbeafe }
.ld-t2 { --ld-top: #0f766e; --ld-accent: #be123c; --ld-accent-ink: #fff; --ld-accent-text: #9f1239; --ld-bg: #f0fdfa; --ld-chip: #ccfbf1 }
.ld-t3 { --ld-top: #14532d; --ld-accent: #15803d; --ld-accent-ink: #fff; --ld-accent-text: #15803d; --ld-bg: #f7fee7; --ld-chip: #dcfce7 }
.ld-t4 {
  --ld-bg: #0b0d12; --ld-ink: #e5e7eb; --ld-muted: #cbd5e1;
  --ld-card: #141824; --ld-line: #4b5563; --ld-top: #05060a;
  --ld-accent: #fbbf24; --ld-accent-ink: #111; --ld-accent-text: #fcd34d;
  --ld-err: #fca5a5; --ld-chip: #1f2937;
}
.ld-t4 .ld-card input[type=text],
.ld-t4 .ld-card input[type=tel],
.ld-t4 .ld-card input[type=date],
.ld-t4 .ld-card select { background: #0b0d12 }
.ld-t4 .ld-prod-grid article > header { background: #1b2030 }
.ld-t4 .ld-top-cta { border-color: rgba(255, 255, 255, .34) }
.ld-t5 { --ld-top: #111; --ld-accent: #111; --ld-accent-ink: #fff; --ld-accent-text: #111; --ld-bg: #fff; --ld-chip: #f3f4f6 }

@media (max-width: 1023px) {
  .ld-top-cta { display: none }
}
