:root {
  /* ── Primitives (전 페이지 공유) ── */
  --white: #ffffff;
  --ink: #111317;
  --ink-rgb: 17, 19, 23;
  --mint: #40C3E7;             /* hsl(193°, 78%, 58%) — 가독성을 위해 살짝 진하게 (was #6cd2ee) */
  --mint-rgb: 64, 195, 231;

  /* ── Surface / line ── */
  --bg: var(--white);
  --panel: var(--white);
  --muted: #626873;
  --line: #dfe3e0;
  --dark: #101214;

  /* ── Accents ── */
  --blue: #5c7cff;
  --orange: #ff7a1a;
  --shadow: 0 24px 70px rgba(var(--ink-rgb), 0.10);
}
* { box-sizing: border-box; }
/* Anchor-link smooth scroll (e.g. "어떻게 작동하나" CTA → demo stripe). */
/* scroll-behavior: smooth 를 전역으로 두면 브라우저의 back/forward 스크롤
   복원도 smooth animate 되어 "갑자기 맨 아래로 스크롤되는" 모션이 발생. 명시적
   smooth scroll 이 필요한 곳들은 모두 scrollTo/scrollIntoView({behavior:'smooth'})
   를 따로 호출하므로 전역 규칙 제거 OK. */
/* html { scroll-behavior: smooth; } */
/* Offset anchor targets so the sticky header (74px) doesn't cover the section top. */
section[id] { scroll-margin-top: 90px; }
body { margin: 0; font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Pretendard,sans-serif; background: var(--bg); color: var(--ink); letter-spacing: -0.03em; }
a { color: inherit; text-decoration: none; }
.page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* NAV */
/* z-index: chapter 2 의 popout / compare-panel 이 2000, overlay 가 1900 으로
   본래 header (z 10) 위에 그려졌었음. 그 결과 popout 이 열리는 동안 header
   영역이 데모의 backdrop-filter blur 와 compositing 되어 nav 텍스트까지
   뿌옇게 보이는 버그가 있었음. header 를 3000 으로 올려서 어떤 데모 modal
   도 header 위로 못 올라오게 함 — header 의 frosted-glass 는 그대로 유지. */
header { position: sticky; top: 0; z-index: 3000; background: rgba(255,255,255,0.88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(var(--ink-rgb), 0.06); }
.nav { height: 74px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); display: inline-block; margin-left: 2px; }
.brand-logo { height: 32px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-link { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 4px; transition: color 0.15s; }
.nav-link:hover { color: var(--mint); }
.nav-link.is-active { color: var(--mint); }
.lang-tab-wrap { display: flex; align-items: center; gap: 4px; background: rgba(var(--ink-rgb), 0.07); border-radius: 999px; padding: 4px; }
.lang-tab { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; border: none; background: transparent; color: var(--muted); transition: all 0.18s; }
.lang-tab.active { background: var(--ink); color: white; }
.nav-cta { padding: 11px 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--ink); color: white; font-family: inherit; cursor: pointer; letter-spacing: inherit; }

/* Hamburger button — hidden on desktop, visible ≤768px alongside the CTA.
   Three short bars; .is-open transforms into an ✕. */
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* Mobile dropdown — hidden by default; CSS positions it as a panel under the
   sticky header when .is-open is set. role="menu" + aria-hidden flip together. */
.nav-menu {
  display: none;
}
.nav-menu-scrim {
  display: none;
}

/* ≤768px: collapse the inline nav-link + lang-tab into the dropdown. CTA stays
   visible so the primary "Request a demo" call-to-action is always reachable. */
@media (max-width: 768px) {
  .nav-right .nav-link,
  .nav-right .lang-tab-wrap {
    display: none;
  }
  .nav-burger {
    display: inline-flex;
  }
  .nav-cta {
    padding: 9px 14px;
    font-size: 13px;
  }
  .nav-right { gap: 8px; }

  .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    top: 74px;
    right: 16px;
    min-width: 200px;
    padding: 14px;
    background: white;
    border: 1px solid rgba(var(--ink-rgb), 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
    /* hidden state: fade + slide-up + pointer-events off */
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 3001;
  }
  .nav-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-menu-link {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
  }
  .nav-menu-link:hover,
  .nav-menu-link:focus-visible { background: rgba(var(--ink-rgb), 0.05); }
  .nav-menu-link.is-active { color: var(--mint); }
  .nav-menu-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(var(--ink-rgb), 0.07);
    border-radius: 999px;
    padding: 4px;
    margin-top: 2px;
  }
  .nav-menu-lang .lang-tab { flex: 1; text-align: center; }

  /* Scrim — invisible click catcher behind the menu so tapping outside closes it. */
  .nav-menu-scrim {
    display: block;
    position: fixed;
    inset: 74px 0 0 0;
    background: transparent;
    border: none;
    z-index: 2999;
    cursor: default;
  }
}

/* Bilingual content: both Korean and English copies live in the DOM
   side-by-side inside the same elements. The root <html lang="…"> attribute
   drives which one is visible — flipped by setLang() in connectionary.js.
   Applies across header nav, hero, lenses, all chapter demos, and rest. */
html[lang="en"] [lang="ko"],
html[lang="ko"] [lang="en"] { display: none; }

/* HERO */
.hero { padding: 92px 0 70px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }

/* Hero variant: minimal centered headline with the animated demo right below.
   Used by the KO hero. Drops the 2-column layout, stacks: h1 → subtitle → demo.
   h1은 영문 두 줄(<br/>) 구성이라 영문 길이에 맞게 폰트 사이즈와 line-height 조정. */
.hero.hero--demo { display: block; grid-template-columns: none; text-align: center; padding: 48px 0 8px; }
.hero--demo .eyebrow { margin-bottom: 18px; }
.hero--demo h1 {
  font-family: var(--font-inter), sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 5.2vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: none;
  margin: 0 auto;
  text-align: center;
  white-space: nowrap;
}
.hero.hero--demo h1 span { display: inline; }
/* Subtitle under the slogan — small, faded, centered. Slightly more breathing
   room between h1 and subtitle (was 14px, felt cramped). */
.hero--demo .hero-copy {
  margin: 26px auto 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  max-width: 720px;
}
/* Second subtitle line — even more faded, tight to hero-copy above. */
.hero--demo .hero-tagline {
  margin: 4px auto 0;
  font-size: 13px;
  line-height: 1.5;
  color: #9aa0a8;
  text-align: center;
  max-width: 720px;
}
/* Tighten the gap between hero section and the demo stripe right below it.
   The default `section { padding: 76px 0 }` was creating a ~108px gap that
   felt disconnected. 16px top here + 8px hero padding-bottom = 24px total. */
#demo { padding-top: 16px; }
/* Tighten the gap between Common Foundation (5 attribute cards) and the
   "요약으론 안 되는 결정의 순간." section. struct-intel--foundation already
   drops its padding-bottom to 0; 40px here gives a comfortable but
   not-too-wide separation instead of the default 76px. */
#impact { padding-top: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #40464f; font-weight: 500; font-size: 14px; margin-bottom: 26px; }
.eyebrow strong { font-weight: 700; }
.eyebrow-aid-logo { height: 16px; width: auto; display: inline-block; vertical-align: -3px; }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); display: block; }
h1 { margin: 0; font-size: clamp(44px,6vw,80px); line-height: 0.96; letter-spacing: -0.07em; font-weight: 850; }
.hero h1 span { display: block; font-family: var(--font-inter), sans-serif; font-weight: 900; color: var(--bg); -webkit-text-stroke: 4.5px var(--ink); paint-order: stroke fill; }
.hero-copy { margin-top: 28px; font-size: 20px; line-height: 1.5; color: #343941; max-width: 560px; }
.hero-copy strong { color: var(--ink); }
.hero-tagline { margin-top: 14px; font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; border-radius: 999px; padding: 15px 20px; font-weight: 800; font-size: 15px; border: 1px solid var(--ink); transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease; font-family: inherit; cursor: pointer; letter-spacing: inherit; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.secondary { background: #fff; color: var(--ink); }

/* CTA 버튼 — 정적 화살표, hover 시 glow + 글씨 하얗게 */
.btn.cta { gap: 10px; padding: 16px 26px; }
.btn.cta::after { content: "→"; font-weight: 700; }

.hero-card { background: var(--dark); color: white; border-radius: 30px; padding: 26px; box-shadow: var(--shadow); min-height: 520px; position: relative; overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: -120px -120px auto auto; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle,rgba(var(--mint-rgb), 0.38),transparent 62%); }
.query-box { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.13); border-radius: 22px; padding: 18px; position: relative; z-index: 1; }
.query-label { font-size: 12px; color: #a8adb4; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.query-text { font-size: 17px; line-height: 1.4; font-weight: 700; }
.compute-flow { margin-top: 22px; display: grid; gap: 12px; position: relative; z-index: 1; }
.flow-step { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 20px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); }
.flow-step b { color: var(--mint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.flow-step p { margin: 0; color: #e9ecef; font-size: 14px; line-height: 1.45; }
.output-card { margin-top: 20px; background: white; color: var(--ink); border-radius: 22px; padding: 18px; position: relative; z-index: 1; }
.output-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.badge { font-size: 12px; font-weight: 800; padding: 6px 9px; border-radius: 999px; background: rgba(var(--mint-rgb), 0.12); color: #0e6e8a; }
.evidence { display: grid; gap: 10px; }
.evidence-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; font-size: 13px; line-height: 1.35; padding-top: 10px; border-top: 1px solid #edf0ed; }
.evidence-row span:first-child { color: var(--muted); font-weight: 800; }

section { padding: 76px 0; }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 32px; }
h2 { margin: 0; font-size: clamp(30px,4vw,54px); line-height: 1.02; letter-spacing: -0.065em; }
.section-desc { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 440px; text-align: right; word-break: keep-all; text-wrap: balance; }

/* WORKFLOW */
.workflow { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.workflow-card { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 26px; min-height: 240px; }
/* .num was originally a global pill for .workflow-card (now dead). The only
   live consumers are the chapter1 popout's <span class="num">01</span> badges
   inside .nv-row-tag, which set their own background / padding / border-radius
   — but were cascading the global 40x40 width/height/circle/margin from here,
   producing a giant misaligned ball next to the label. Scoped to .workflow-card
   so it won't leak; if .workflow-card returns we restyle there. */
.workflow-card .num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: white; font-weight: 900; margin-bottom: 24px; }
.workflow-card h3 { margin: 0 0 12px; font-size: 26px; letter-spacing: -0.05em; }
.workflow-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* COMPARISON */
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-card { border-radius: 28px; padding: 28px; background: var(--panel); border: 1px solid var(--line); min-height: 340px; }
.compare-card.dark { background: var(--dark); color: white; border: none; }
.compare-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: 19px; font-weight: 850; }
.compare-title small { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.dark .compare-title small { color: var(--mint); border-color: rgba(var(--mint-rgb), 0.35); }
.compare-list { display: grid; gap: 14px; }
.compare-item { padding: 13px 0 0; border-top: 1px solid rgba(var(--ink-rgb), 0.09); }
.dark .compare-item { border-color: rgba(255,255,255,0.13); }
.compare-item b { display: block; margin-bottom: 5px; font-size: 14px; }
.compare-item p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.dark .compare-item p { color: #c8cdd3; }

/* BOUNDED NAV */
.search-space { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.ss-card { border-radius: 28px; padding: 32px 32px 28px; display: flex; flex-direction: column; min-height: 460px; position: relative; overflow: hidden; }
.ss-card.rag { border: 1px solid rgba(239,68,68,.18); background: rgba(254,242,242,.5); }
.ss-card.aid { background: radial-gradient(circle at 80% 100%, rgba(var(--mint-rgb), 0.16), transparent 55%), #101214; color: #fff; box-shadow: 0 30px 80px rgba(14,17,22,.18); }
.ss-k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; margin-bottom: 14px; font-family: monospace; }
.ss-card.rag .ss-k { color: #b91c1c; }
.ss-card.aid .ss-k { color: #b3e8f7; }
.ss-title { font-size: 26px; letter-spacing: -.05em; font-weight: 800; line-height: 1; margin-bottom: 22px; }
.ss-canvas { flex: 1; min-height: 280px; }
.ss-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .06em; font-weight: 700; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: monospace; }
.ss-card.rag .ss-foot { border-color: rgba(239,68,68,.18); color: #b91c1c; }
.ss-card.aid .ss-foot { border-color: rgba(255,255,255,.13); color: #b3e8f7; }
.ss-foot b { font-size: 14px; letter-spacing: -.02em; font-weight: 800; }
.ss-card.rag .ss-foot b { color: #991b1b; }
.ss-card.aid .ss-foot b { color: var(--mint); }

/* ONTOLOGY */
.onto-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.onto-card { border-radius: 26px; padding: 26px; background: var(--panel); border: 1px solid var(--line); }
.onto-card.highlight { background: var(--dark); color: white; border: none; }
.onto-label { display: inline-block; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: rgba(var(--ink-rgb), 0.07); color: var(--muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.onto-card.highlight .onto-label { background: rgba(var(--mint-rgb), 0.18); color: var(--mint); }
.onto-card h3 { font-size: 22px; margin: 0 0 18px; letter-spacing: -0.05em; line-height: 1.1; }
.onto-card.highlight h3 { color: white; }
.onto-rows { display: grid; }
.onto-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(var(--ink-rgb), 0.09); font-size: 13px; line-height: 1.45; }
.onto-card.highlight .onto-row { border-color: rgba(255,255,255,0.12); }
.onto-row-key { color: var(--muted); font-weight: 800; font-size: 12px; }
.onto-card.highlight .onto-row-key { color: #8a9099; }
.onto-row-val { color: #343941; }
.onto-card.highlight .onto-row-val { color: #e2e6ea; }
.onto-card.highlight .onto-row-val.good { color: var(--mint); font-weight: 700; }

/* USECASES */
.usecases { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.usecase { border-radius: 30px; padding: 28px; background: var(--panel); border: 1px solid var(--line); }
.usecase h3 { font-size: 26px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.055em; }
.usecase p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; font-size: 15px; }
.mini-ui { background: #f2f4f1; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.mini-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 800; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c8cec8; }
.mini-body { padding: 12px; display: grid; gap: 8px; }
.signal { background: #fff; border: 1px solid #e1e5e1; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.4; }
/* Use the site brand accent (mint) — the earlier --blue #5c7cff was a one-off
   indigo not used anywhere else, so the labels felt like a different palette. */
.signal b { color: var(--mint); display: block; margin-bottom: 3px; }

/* CTA CARD (closing band — eyebrow + h2 + subcopy on left, domain tags + button on right) */
.cta-card {
  background: var(--dark);
  color: white;
  border-radius: 34px;
  padding: 48px 52px;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 56px;
  align-items: center;
}
.cta-card .cta-eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--mint);
  text-transform: uppercase;
}
.cta-card h2 {
  margin: 0;
  color: white;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.cta-card .cta-subcopy {
  margin: 20px 0 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.62;
}
.cta-card .cta-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.cta-card .domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cta-card .domain-tags span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 650;
}
.cta-card .cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.18s ease, box-shadow 0.18s ease;
}
.cta-card .cta-btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 32px rgba(var(--mint-rgb), 0.5);
}
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #eff2f5; font-size: 13px; font-weight: 700; }

footer { padding: 46px 0 70px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ===== 공용 "데모 다시보기" 버튼 (chapter1·2·3 전체 통일)
   기준: chapter3 의 lens-card-header 안에 있는 버튼.
   .lenses 프리픽스로 specificity 를 올려 chapter1/2 의 `.chapter1-demo button { border:none }`
   같은 reset 룰을 이기도록 한다. 그리고 chapter1/2 는 스코프 안에서 --line, --muted 가
   살짝 다른 값으로 재정의되기 때문에 변수 대신 값을 직접 지정 — 어떤 스코프에서도 동일하게 보이도록. */
.lenses .demo-replay-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  background: transparent;
  color: #626873;
  border: 1px solid rgba(17, 19, 23, 0.08);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-jetbrains-mono), 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.18s ease;
  /* completed 상태(popup 열린 채로 종료)에서 ↻ 한 번에 replay 되도록 overlay
     (z-99) / popout (z-100) 위로 띄움. position: relative 로 z-index 적용. */
  position: relative;
  z-index: 200;
}
.lenses .demo-replay-btn:hover {
  border-color: #111317;
  color: #111317;
}

/* Slow pulse when demo finishes — invites the user to replay. Added/removed
   by chapter1/2/3 JS at runDemo end. Respects reduced-motion. */
@keyframes demo-replay-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--mint-rgb), 0);
    border-color: rgba(17, 19, 23, 0.08);
    color: #626873;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(var(--mint-rgb), 0.18);
    border-color: rgba(var(--mint-rgb), 0.7);
    color: var(--mint);
  }
}
.lenses .demo-replay-btn.pulse {
  animation: demo-replay-pulse 2.4s ease-in-out infinite;
}
.lenses .demo-replay-btn.pulse:hover {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .lenses .demo-replay-btn.pulse { animation: none; }
}

/* Mobile: 3-state 버튼에서 label 텍스트는 숨기고 icon (⏸ / ▶ / ↻) 만 노출.
   원형 버튼 형태로 압축. data-state 별 표시는 lenses.css 의 rb-state 룰이
   처리. */
@media (max-width: 640px) {
  .lenses .demo-replay-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .lenses .demo-replay-btn .rb-label { display: none; }
  .lenses .demo-replay-btn .rb-icon { font-size: 14px; }
}

/* ===== CONTACT FORM (used on contact.html) ===== */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.contact-field-opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}
.contact-field input,
.contact-field textarea {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.contact-field textarea { resize: vertical; min-height: 88px; }
.contact-form-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.contact-submit {
  padding: 11px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: var(--ink);
  color: white;
  cursor: pointer;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.contact-submit:hover { opacity: 0.88; }
.contact-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.contact-status { font-size: 13px; color: var(--muted); }
.contact-status.success { color: #0d8b5b; }
.contact-status.error { color: #c44; }

/* ===== CONTACT PAGE (contact.html) ===== */
.contact-page {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 56px;
  padding-bottom: 80px;
}
.contact-page-head {
  margin-bottom: 36px;
}
.contact-page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
}
.contact-page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  word-break: keep-all;
}
.contact-form--full { gap: 24px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-field--full { grid-column: 1 / -1; }
.contact-field-req {
  color: #c44;
  margin-left: 3px;
  font-weight: 700;
}
.contact-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-group-label + .contact-checkboxes { margin-top: 2px; }
.contact-group-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin: 0;
}
.contact-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  background: white;
  transition: border-color 0.15s, background 0.15s;
}
.contact-checkboxes label:hover {
  border-color: var(--ink);
}
.contact-checkboxes label:has(input:checked) {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.contact-checkboxes input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.contact-checkboxes label:has(input:checked) input[type="checkbox"] {
  accent-color: white;
}
.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(var(--ink-rgb), 0.04);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.5;
}
.contact-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
}
.contact-consent-text { flex: 1; }
.contact-age-note {
  margin: 8px 4px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-consent-link {
  margin-left: 6px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 12.5px;
}
.contact-consent-link:hover { color: var(--accent); }

/* ===== CONTACT SUCCESS CARD ===== */
.contact-success {
  text-align: center;
  padding: 56px 24px;
  animation: contactSuccessIn 0.32s ease-out;
}
@keyframes contactSuccessIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.contact-success-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
}
.contact-success-icon svg {
  width: 44px;
  height: 44px;
}
.contact-success-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.15;
}
.contact-success-desc {
  margin: 0 auto 32px;
  max-width: 480px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  word-break: keep-all;
}
.contact-success-desc a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-success-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.15s;
}
.contact-success-cta:hover { opacity: 0.88; }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-page { padding-top: 32px; padding-bottom: 56px; }
}
/* Phase 4: Contact 폰 사이즈 컴팩트. h1 / desc / form gap / submit row 모두 축소. */
@media (max-width: 640px) {
  .contact-page-head { margin-bottom: 28px; }
  .contact-page-head h1 { font-size: clamp(26px, 7vw, 32px); }
  .contact-page-head p { font-size: 14px; }
  .contact-form--full { gap: 18px; }
  .contact-field input,
  .contact-field textarea { font-size: 15px; padding: 11px 12px; }
  .contact-form-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .contact-submit { padding: 12px 18px; }
  .contact-consent { padding: 12px 14px; font-size: 13px; }
  .contact-success { padding: 36px 24px; }
}

/* ===== LEGAL PAGE (privacy.html, terms.html) ===== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 56px;
  padding-bottom: 96px;
}
.legal-head { margin-bottom: 40px; }
.legal-head h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.15;
}
.legal-effective {
  margin: 0;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.legal-body {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}
.legal-body p { margin: 0 0 14px; }
.legal-body h2 {
  margin: 36px 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.legal-body ol,
.legal-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal-body li { margin-bottom: 6px; }
.legal-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover { color: var(--accent); }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.legal-table th {
  font-weight: 600;
  background: rgba(var(--ink-rgb), 0.04);
}

/* Phase 4: Privacy / legal long-form 페이지 모바일 압축. body 폰트는 가독성
   유지하면서 padding 만 축소. */
@media (max-width: 640px) {
  .legal-page { padding-top: 32px; padding-bottom: 64px; }
  .legal-head { margin-bottom: 28px; }
  .legal-body { font-size: 14.5px; line-height: 1.65; }
  .legal-body h2 { font-size: 17px; margin-top: 28px; }
  .legal-table { font-size: 13px; }
  .legal-table th,
  .legal-table td { padding: 8px 10px; }
}

/* ===== FOOTER META (legacy — kept for backward-compat) ===== */
.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.footer-meta a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.footer-meta a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ===== SITE FOOTER (3-column + social) ===== */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
}
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 64px;
  margin-bottom: 56px;
}
/* Wrap brand block in a column so the logo, slogan, and any future
   trailing text share the same left edge. */
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand-link { display: inline-flex; margin-bottom: 22px; margin-left: -12px; }
/* Logo bumped up for footer presence. The SVG has ~144 viewBox units of
   leading whitespace before the "C" glyph (viewBox 0–841.89 wide), so at
   52px height the visible logo is offset ~12px to the right of x=0. The
   margin-left compensation on the link wrapper pulls the visible artwork
   flush with the slogan's left edge below. */
.footer-brand-logo { height: 52px; width: auto; display: block; }
.footer-slogan {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 360px;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}
.footer-col-link {
  display: inline-block;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 2px 0;
  width: fit-content;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.footer-col-link:hover {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
.footer-col-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
  word-break: keep-all;
}
/* Company 컬럼의 주소 토글 — 평소엔 라벨만, 클릭 시 펼침. */
.footer-locations > summary {
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
  padding: 2px 0;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  transition: color 0.15s;
}
.footer-locations > summary::-webkit-details-marker { display: none; }
.footer-locations > summary::after {
  content: '›';
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.18s ease;
}
.footer-locations[open] > summary::after { transform: rotate(90deg); }
.footer-locations > summary:hover { color: var(--mint); }
.footer-locations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copyright {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.footer-copyright a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}
.footer-copyright a:hover {
  color: var(--mint);
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.footer-socials a:hover {
  color: var(--ink);
  background: rgba(var(--ink-rgb), 0.08);
}
.footer-socials a svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .site-footer .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}
/* 560 → 640 으로 normalize. tablet 폭에서도 3 cols 가 너무 좁아지는 시점에 2로. */
@media (max-width: 640px) {
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .site-footer { padding: 48px 0 22px; }
  .site-footer .footer-top { gap: 32px; margin-bottom: 40px; }
  .footer-brand-logo { height: 42px; }
  .footer-slogan { font-size: 14px; }
}
/* 아주 좁은 폰: 컬럼 3 개를 한 줄에 — 어차피 짧은 텍스트들. */
@media (max-width: 420px) {
  .footer-columns { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 900px) {
  .hero,.comparison,.workflow,.usecases,.cta-card,.onto-grid,.search-space { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .section-head { display: block; }
  .section-desc { margin-top: 16px; text-align: left; }
  .hero-card { min-height: auto; }
  .cta-card { padding: 36px 28px; gap: 36px; }
  .cta-card h2 { font-size: clamp(22px, 5.4vw, 28px); }
  .cta-card .cta-subcopy { font-size: 14px; }
}

/* Accessibility: skip-to-content link — visually hidden until focused */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--ink, #111317);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-to-content:focus {
  left: 0;
}

/* =========================================================
   Mobile responsive baseline (Stage 2)
   ─────────────────────────────────────────────────────────
   Hero/chapter demos use absolute positioning and explicit
   widths inside the dangerouslySetInnerHTML chunks. Without
   a viewport-level overflow guard, any one of them spilling
   a few pixels causes the whole page to scroll horizontally
   on mobile.

   IMPORTANT: use `overflow-x: clip` here, NOT `hidden`.
   `overflow: hidden` on an ancestor turns it into a scroll
   container, which silently disables `position: sticky` on
   descendants — and our chapter 1/2/3 demo (lenses.js) is
   built entirely around sticky scroll choreography. `clip`
   constrains painting without becoming a scroll container,
   so sticky keeps working.
   ========================================================= */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

/* Header at ≤ 720px: shrink horizontal gaps + chip paddings
   so brand + Resources + lang tabs + CTA fit on one row, but
   keep vertical padding so taps still land in a ~36–40px
   high hit area. */
@media (max-width: 720px) {
  .nav { padding: 0 18px; gap: 10px; }
  .nav-right { gap: 6px; }
  .nav-link { font-size: 13px; padding: 10px 4px; }
  .lang-tab-wrap { padding: 3px; gap: 2px; }
  .lang-tab { padding: 8px 10px; font-size: 12px; }
  .nav-cta { padding: 10px 12px; font-size: 13px; }
}

/* At ≤ 480px the Resources nav link itself is the main
   pressure on space; drop it (Resources is still reachable
   from the footer Resources column). */
@media (max-width: 480px) {
  .nav-link { display: none; }
  .nav-cta { padding: 9px 11px; font-size: 12px; }
  .brand-logo { height: 24px; }
}

/* Closing cta-card: stack to single column on tablets and
   below so the dark CTA stays legible without horizontal squish. */
@media (max-width: 720px) {
  .cta-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 28px;
    border-radius: 24px;
  }
  .cta-card .cta-right { gap: 24px; }
  .cta-card .cta-btn-primary { width: 100%; }
}
/* Tighten further at phone widths. */
@media (max-width: 640px) {
  .cta-card {
    padding: 28px 22px;
    border-radius: 20px;
    gap: 22px;
  }
  .cta-card h2 { font-size: clamp(22px, 6vw, 28px); }
  .cta-card .cta-subcopy { font-size: 14px; }
  .cta-card .domain-tags { gap: 8px; }
  .cta-card .domain-tags span { padding: 7px 11px; font-size: 12px; }
}

/* Typography compaction at very narrow widths — keep hero
   and section heads readable without breaking the layout. */
@media (max-width: 480px) {
  .hero { padding-top: 36px; padding-bottom: 36px; }
  .hero-copy { font-size: 17px; margin-top: 20px; }
  .section-head h2 { font-size: clamp(22px, 6vw, 30px); }
  .section-desc { font-size: 15px; }
}

/* Phase 3: Impact usecase 카드 모바일 압축. ≤900 에서 1 col stack 은 이미 됨;
   여기서는 padding/typography 만 phone 사이즈로 컴팩트. */
@media (max-width: 640px) {
  .usecase { padding: 20px 18px; border-radius: 22px; }
  .usecase h3 { font-size: 22px; margin-bottom: 10px; }
  .usecase p { font-size: 14px; margin-bottom: 14px; }
  .mini-ui { border-radius: 14px; }
  .mini-bar { height: 36px; padding: 0 12px; font-size: 12px; }
  .signal { font-size: 12.5px; padding: 9px 11px; }
}

/* =========================================================
   Phase 1: hero (demo variant used by /, /en) responsive
   ─────────────────────────────────────────────────────────
   Desktop sets `white-space: nowrap` on h1 so the two halves
   stay on their own single lines. On tablet/phone that nowrap
   forces overflow or microscopic shrink — let it wrap.
   ========================================================= */
@media (max-width: 1024px) {
  .hero--demo h1 {
    white-space: normal;
    font-size: clamp(28px, 4.6vw, 44px);
  }
}
@media (max-width: 640px) {
  .hero.hero--demo { padding: 36px 0 4px; }
  .hero--demo h1 {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.22;
  }
  .hero--demo .hero-copy {
    font-size: 14px;
    margin-top: 18px;
    padding: 0 4px;
  }
  .hero--demo .hero-tagline { font-size: 12px; }
  .eyebrow {
    font-size: 12px;
    padding: 7px 12px;
    margin-bottom: 14px;
  }
  .eyebrow-aid-logo { height: 14px; }
}

/* Generic min touch target on coarse pointers (mobile/tablet).
   Apple HIG ≥ 44pt, Material ≥ 48dp; we aim for 40 minimum.
   :where() keeps specificity 0 so component styles override
   when intentionally tighter (e.g., demo chips inside cards).
   Phase 5: extend list with .nav-menu-link (mobile dropdown rows) and
   .resource-back so they meet the same threshold. */
@media (pointer: coarse) {
  :where(button, a.btn, a.nav-cta, .lang-tab, .footer-col-link, .nav-menu-link, .resource-back) {
    min-height: 40px;
  }
}

/* =========================================================
   English-only launch — hide language toggle UI
   ─────────────────────────────────────────────────────────
   Korean content is still in the DOM (via <span lang="ko">)
   but hidden via the existing html[lang="en"] [lang="ko"]
   rule, and Korean URLs (/, /contact, etc.) 307-redirect
   to their /en counterparts in next.config.mjs. The toggle
   buttons would just confuse visitors, so we hide both the
   desktop wrap (.lang-tab-wrap in .nav-right) and the
   mobile-dropdown copy (.nav-menu-lang).

   To re-open Korean: delete this whole block + the five
   307 redirects in next.config.mjs + restore the URL-based
   logic in LangSync / lang-bootstrap (see comments there).
   ========================================================= */
.lang-tab-wrap,
.nav-menu-lang {
  display: none !important;
}

/* =========================================================
   Scroll-to-top FAB (floating action button)
   ─────────────────────────────────────────────────────────
   Mounted globally from src/components/ScrollToTop.tsx in
   the root layout. Hidden until scrollY > 400. Always
   rendered (so we can animate in/out via opacity) but
   tabIndex / aria-hidden gate keyboard + AT access.
   ========================================================= */
.scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  z-index: 2500;
  font-family: inherit;
}
.scroll-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-to-top:hover { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.scroll-to-top:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .scroll-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}

/* === Cookie / analytics consent banner ===
   Sticky bottom-left card. Sits below ScrollToTop (z 2500) so the FAB still
   pokes through. Hidden once the visitor decides — choice persists in
   localStorage as cc_choice_v1; clear it from devtools to re-test. */
.cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2400;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}
.cookie-consent-body {
  pointer-events: auto;
  max-width: 460px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-consent-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}
.cookie-consent-text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.cookie-consent-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cookie-consent-btn--ghost {
  background: transparent;
  color: var(--ink);
}
.cookie-consent-btn--ghost:hover {
  background: rgba(var(--ink-rgb), 0.05);
}
.cookie-consent-btn--primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.cookie-consent-btn--primary:hover {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--mint);
}
@media (max-width: 540px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .cookie-consent-body { padding: 14px; }
  .cookie-consent-text { font-size: 13px; }
  .cookie-consent-btn { font-size: 12.5px; padding: 7px 12px; }
}
