/* Cheese board — site styles
   Rebuilt to the 2026-07-30 design handoff (Supaste direction).
   Tokens first, then shared chrome, then per-page sections. */

:root {
  /* surfaces and ink */
  --ink-black: #0A0A0A;
  --ink: #121212;
  --body: #4A4844;
  --body-muted: #6B6963;
  --body-strong: #3A3833;
  --surface: #FFFFFF;
  --surface-card: #F5F5F5;
  --surface-plate: #EBEBEB;
  --surface-group: #F0EFEC;

  /* lines */
  --border: #EAEAEA;
  --border-inner: #E2E2E2;
  --border-row: #EFEFEF;
  --border-hover: #D6D6D6;

  /* accents */
  --coral: #D97757;
  --coral-ink: #A8543A;
  --coral-deep: #C4633F;
  --gold: #ECBF3F;
  --gold-light: #F5D66E;
  --gold-dark: #B98A2B;

  /* on dark */
  --on-dark: rgba(255, 255, 255, .7);
  --on-dark-sub: rgba(255, 255, 255, .68);
  --on-dark-nav: rgba(255, 255, 255, .62);
  --on-dark-tagline: rgba(255, 255, 255, .6);
  --on-dark-meta: rgba(255, 255, 255, .56);
  --on-dark-line: rgba(255, 255, 255, .1);
  --on-dark-hover: rgba(255, 255, 255, .08);

  /* type */
  --font-body: 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --font-head: 'Instrument Serif', 'Nanum Myeongjo', serif;
  --font-mono: 'Space Grotesk', ui-monospace, monospace;

  /* tracking — tuned by the designer */
  --cb-track-h: 0em;
  --cb-track-b: -.03em;
  --cb-track-tag: .05em;

  /* layout */
  --gutter: max(clamp(20px, 3vw, 40px), calc((100% - 1180px) / 2));
  --col: 1003px;
  --section-y: clamp(64px, 8vw, 112px);
  --card-pad: clamp(32px, 4vw, 56px);
  --header-h: 68px;

  /* motion */
  --eo: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); letter-spacing: var(--cb-track-h, -.02em); }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.bleed { padding-inline: var(--gutter); }

/* ---------- logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  transition: transform 140ms var(--eo);
}
.logo:active { transform: scale(.97); }
.logo-cheese { flex: none; }
/* Wordmark spacing lives here, not as a space in the markup, so the icon,
   "Cheese" and "board" stay evenly tight at every size. */
.logo-board { color: var(--gold); margin-left: .14em; }

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 20px;
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms var(--eo), color 160ms var(--eo), transform 160ms var(--eo), border-color 160ms var(--eo);
}
.button:active { transform: scale(.97); }
.button.small { font-size: 12px; padding: 10px 18px; }

/* Hero and download CTA: black fill inside a white outline, going gold on hover. */
.button.outlined {
  border: 2px solid #FFFFFF;
  background: #000000;
  color: #FFFFFF;
}

.button.light { background: #FFFFFF; color: var(--ink-black); }
.button.dark,
.button.primary { background: var(--ink-black); color: #FFFFFF; }
.button.outline,
.button.secondary { background: #FFFFFF; border: 1px solid var(--border-inner); color: var(--ink); }

.button.disabled,
.button[aria-disabled="true"] {
  background: #FFFFFF;
  border: 1px solid var(--border-inner);
  color: var(--body-muted);
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .button.light:hover { background: var(--gold); transform: translateY(-2px); }
  .button.outlined:hover { background: var(--gold); color: var(--ink-black); transform: translateY(-2px); }
  .button.dark:hover,
  .button.primary:hover { background: var(--coral); transform: translateY(-2px); }
  .button.outline:hover,
  .button.secondary:hover { border-color: var(--border-hover); transform: translateY(-2px); }
  .button.disabled:hover,
  .button[aria-disabled="true"]:hover { background: #FFFFFF; transform: none; }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  background: var(--ink-black);
  border-bottom: 1px solid var(--on-dark-line);
  color: #FFFFFF;
  transition: box-shadow 200ms var(--eo);
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .9); }

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.site-nav a {
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-nav);
  transition: background 160ms var(--eo), color 160ms var(--eo), transform 140ms var(--eo);
}
.site-nav a:active { transform: scale(.96); }
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { background: var(--on-dark-hover); color: #FFFFFF; }
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.language-toggle {
  display: inline-flex;
  gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  padding: 4px;
}
.language-toggle button,
.language-toggle a {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--on-dark-nav);
  text-align: center;
  cursor: pointer;
  transition: background 160ms var(--eo), color 160ms var(--eo);
}
.language-toggle button.is-active,
.language-toggle a.is-active { background: #FFFFFF; color: var(--ink-black); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink-black);
  border-top: 1px solid var(--on-dark-line);
  padding-block: clamp(44px, 5vw, 60px) 44px;
  color: #FFFFFF;
}
.footer-top,
.footer-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }

.footer-brand { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.footer-brand .logo { font-size: 16px; }
.footer-brand p { padding-left: 16px; font-size: 14px; color: var(--on-dark-tagline); }

.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; color: var(--on-dark-tagline); }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--gold); }
}

.footer-meta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 11px;
  line-height: 1.7;
  color: var(--on-dark-meta);
}
.footer-meta > p:first-child { overflow-wrap: anywhere; }
.footer-meta > p:last-child { font-size: 12px; white-space: nowrap; }
.footer-meta a { color: var(--gold); }

/* ---------- shared dark hero ---------- */

.hero-dark {
  position: relative;
  background: var(--ink-black);
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  overflow: hidden;
}
.hero-dark > * { position: relative; z-index: 1; }
.hero-dark::before { content: ""; position: absolute; inset: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--cb-track-tag, .08em);
  line-height: 1;
  text-transform: uppercase;
  color: var(--gold);
}

.pill {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: #000000;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: #FFFFFFAD;
  white-space: nowrap;
}

/* ---------- landing: hero ---------- */

.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding-block: clamp(72px, 9vw, 132px) clamp(64px, 7vw, 96px);
}
.landing-hero::before {
  background: linear-gradient(180deg, rgba(10, 10, 10, .72) 0%, rgba(10, 10, 10, .55) 42%, rgba(10, 10, 10, .95) 100%);
}
.landing-hero h1 {
  max-width: 940px;
  font-size: clamp(27px, 3.22vw, 48px);
  font-weight: 400;
  line-height: 1.22;
}
.landing-hero h1 span { display: block; }
.landing-hero .lead {
  max-width: 620px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--on-dark);
  text-wrap: pretty;
}

/* ---------- landing: feature cards ---------- */

/* The card column runs wider than the rest of the site, so this section gets its
   own gutter — otherwise the shared 1180px cap would clip it back. */
.features {
  --gutter: max(clamp(20px, 3vw, 40px), calc((100% - 1200px) / 2));
  background: var(--surface);
  padding-block: var(--section-y);
}

.card-col { display: flex; flex-direction: column; gap: 16px; max-width: 1200px; margin: 0 auto; }

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-card);
  padding: var(--card-pad);
  text-align: center;
  transition: border-color 220ms var(--eo), transform 220ms var(--eo);
}
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
}

/* Card type sizes are the designer's adjusted finals, not the spec table's
   defaults — the handoff says these win. Fixed px on purpose. */
.feature-tag {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: var(--cb-track-tag, .08em);
  line-height: 1;
  text-transform: uppercase;
  color: var(--coral-ink);
}
.feature-card h3 {
  max-width: 900px;
  font-size: 31.52px;
  font-weight: 700;
  line-height: 40.58px;
  color: var(--ink);
}
.feature-card h3 span { display: block; }
.feature-card .copy { max-width: 760px; font-size: 13px; line-height: 1.6; color: var(--body-muted); text-wrap: pretty; }
.feature-card .copy span { display: block; }

.pill-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill-list li {
  flex: 0 0 auto;
  border: 1px solid var(--border-inner);
  border-radius: 999px;
  background: #000000;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  color: #FFFFFF;
  white-space: nowrap;
}

.feature-shot {
  width: 100%;
  margin-top: clamp(20px, 2.4vw, 34px);
  border-radius: 16px;
  background: var(--surface-plate);
  /* Stills are all 16:9. A screen capture keeps whatever shape the recorded
     window had; pillarboxing it to 16:9 looks far worse than one card whose
     shot runs a little taller. */
  aspect-ratio: var(--shot-ratio, 16 / 9);
  background-size: cover;
  background-position: top left;
  transition: transform 300ms var(--eo);
}
/* Same slot, either a still or a silent loop. */
video.feature-shot { display: block; object-fit: cover; object-position: top left; }
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover .feature-shot { transform: scale(1.03); }
}
@keyframes cbPan { from { background-position: 0% top; } to { background-position: 100% top; } }
.feature-shot.pan { background-position: left top; animation: cbPan 15s ease-in-out infinite alternate; }

/* ---------- landing: library card ---------- */

.library-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 860px;
  margin-top: 6px;
}
/* Each item is a titled panel: a full-width dark header bar across the top,
   then the description below it. overflow: hidden lets the bar take the card's
   top corners instead of carrying its own radius. */
.library-items > div {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-inner);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  text-align: center;
}
.library-items b {
  display: block;
  background: var(--ink-black);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #FFFFFF;
}
.library-items p { padding: 14px 16px 16px; font-size: 13px; line-height: 1.6; color: var(--body-muted); }

.library-slider {
  position: relative;
  width: 100%;
  margin-top: clamp(20px, 2.4vw, 34px);
  border-radius: 16px;
  background: var(--surface-plate);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.library-track { display: flex; width: 300%; height: 100%; transition: transform 450ms cubic-bezier(0.32, 0.72, 0, 1); }
.library-track > div { width: 33.3333%; height: 100%; background-size: cover; background-position: top left; }
.library-bar {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, .74) 100%);
  padding: 16px 20px;
}
.library-bar .current { font-size: 13px; font-weight: 600; color: #FFFFFF; }
.library-dots { display: flex; gap: 6px; }
.library-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  padding: 0;
  cursor: pointer;
  transition: width 260ms var(--eo), background 260ms var(--eo);
}
.library-dots button.is-active { width: 22px; background: #FFFFFF; }

/* ---------- download band ---------- */

.download-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding-block: clamp(80px, 9vw, 128px);
}
.download-band::before { background: rgba(10, 10, 10, .8); }
.download-band h2 { max-width: 820px; font-size: clamp(30px, 3.4vw, 50px); font-weight: 400; line-height: 1.22; }

/* ---------- pricing ---------- */

.pricing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding-block: clamp(64px, 8vw, 104px);
}
.pricing-hero::before {
  background: linear-gradient(180deg, rgba(10, 10, 10, .9) 0%, rgba(10, 10, 10, .78) 46%, rgba(10, 10, 10, .96) 100%);
}
.pricing-hero .scrim { position: absolute; inset: 0; z-index: 0; opacity: .55; background: inherit; }
.pricing-hero h1 { font-size: clamp(34px, 3.6vw, 54px); font-weight: 400; line-height: 1.14; }
.pricing-hero .lead { max-width: 640px; font-size: clamp(15px, 1.3vw, 18px); color: var(--on-dark-sub); text-wrap: pretty; }

.billing-toggle { display: inline-flex; gap: 4px; border-radius: 20px; background: rgba(255, 255, 255, .09); padding: 4px; }
.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--on-dark-tagline);
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms var(--eo), color 160ms var(--eo), transform 140ms var(--eo);
}
.billing-toggle button:active { transform: scale(.97); }
.billing-toggle button.is-active { background: #FFFFFF; color: var(--ink-black); }
.billing-toggle .badge { border: 1px solid currentColor; border-radius: 999px; padding: 3px 7px; font-size: 11px; font-weight: 600; }

.plans { background: var(--surface); padding-block: var(--section-y) 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 16px; max-width: var(--col); margin: 0 auto; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-card);
  padding: 36px 30px 40px;
  transition: border-color 220ms var(--eo), transform 220ms var(--eo);
}
.plan.is-featured { border-color: var(--coral); }
@media (hover: hover) and (pointer: fine) {
  .plan:hover { border-color: var(--border-hover); transform: translateY(-4px); }
}
.plan .ribbon {
  position: absolute;
  right: 26px;
  top: 0;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--coral);
  padding: 7px 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-black);
}
.plan .label { font-size: 13px; font-weight: 600; letter-spacing: var(--cb-track-tag, .08em); text-transform: uppercase; color: var(--coral-ink); }
.plan .price { display: flex; align-items: baseline; gap: 6px; min-height: 46px; font-family: var(--font-head); font-size: 44px; font-weight: 400; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.plan .price span { font-family: var(--font-body); font-size: 14px; color: var(--body-muted); }
.plan .price-caption { min-height: 17px; font-size: 12.5px; color: var(--coral-ink); }
.plan .cheese {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border: 1px solid var(--border-inner);
  border-radius: 999px;
  background: var(--surface);
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.plan .cheese::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--gold); }
.plan .head { font-size: 13px; font-weight: 600; color: var(--body-muted); }
.plan .benefits { display: flex; flex-direction: column; gap: 10px; }
.plan .benefits li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.55; color: var(--body-strong); }
.plan .benefits li::before { content: "\2192"; flex: none; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--coral); }

.compare { background: var(--surface); padding-block: var(--section-y); }
.compare .inner {
  max-width: var(--col);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-card);
  padding: var(--card-pad);
}
.compare-head { margin-bottom: clamp(22px, 2.4vw, 34px); text-align: center; }
.compare-head .eyebrow { color: var(--coral-ink); }
.compare-head h2 { margin-top: 12px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; line-height: 1.24; }
.compare-head p { margin-top: 10px; font-size: 15px; color: var(--body-muted); text-wrap: pretty; }

.compare-table { border: 1px solid var(--border-inner); border-radius: 16px; background: var(--surface); overflow: hidden; text-align: left; }
.compare-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; border-top: 1px solid var(--border-row); }
.compare-row.head { border-top: 0; background: var(--ink-black); }
.compare-row.head > div { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #FFFFFF; text-align: center; }
.compare-row.head > div:first-child { text-align: left; }
.compare-row.head .pro { color: var(--gold); }
.compare-row.group { grid-template-columns: 1fr; background: var(--surface-group); }
.compare-row.group > div { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: 12px 20px; }
.compare-row > div { padding: 13px 16px; font-size: 14.5px; line-height: 1.5; color: var(--body-strong); text-align: center; }
.compare-row > .label { font-weight: 500; color: var(--ink); text-align: left; }
.compare-row .yes { font-size: 16px; font-weight: 700; color: var(--coral-deep); }
.compare-row .no { color: #B4B4B4; }
.compare-row .preview { font-size: 12px; font-weight: 600; color: var(--body-muted); }

.faq { background: var(--surface); padding-bottom: var(--section-y); }
.faq .inner {
  max-width: var(--col);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-card);
  padding: var(--card-pad);
}
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; margin: clamp(22px, 2.4vw, 34px) auto 0; }
.faq-list details { border: 1px solid var(--border-inner); border-radius: 16px; background: var(--surface); padding: 2px 22px; }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
/* Scope the rotation to the glyph. Targeting every span in the summary spins
   the question text too — that bug shipped once already. */
.faq-list summary span[data-plus] { flex: none; font-family: var(--font-mono); font-size: 20px; color: var(--coral); transition: transform 200ms var(--eo); }
.faq-list details[open] > summary > span[data-plus] { transform: rotate(45deg); }
@keyframes cbAnswerIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-list details[open] > p { animation: cbAnswerIn 200ms var(--eo); }
.faq-list p { padding: 0 34px 20px 0; font-size: 15px; line-height: 1.72; color: var(--body-muted); text-wrap: pretty; }

/* ---------- legal ---------- */

.legal-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--ink-black);
  padding-block: clamp(56px, 7vw, 92px) clamp(40px, 5vw, 64px);
  color: #FFFFFF;
}
.legal-hero h1 { font-size: clamp(32px, 3.4vw, 50px); font-weight: 400; line-height: 1.12; }
.legal-hero .lead { max-width: 620px; font-size: clamp(15px, 1.3vw, 18px); color: var(--on-dark-sub); text-wrap: pretty; }

.legal-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-self: flex-start;
  border-radius: 20px;
  background: var(--on-dark-hover);
  padding: 5px;
  margin-top: 12px;
}
.legal-tabs a {
  border-radius: 16px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark-nav);
  transition: background 160ms var(--eo), color 160ms var(--eo);
}
.legal-tabs a[aria-current="page"] { background: #FFFFFF; color: var(--ink-black); }
@media (hover: hover) and (pointer: fine) {
  .legal-tabs a:hover { color: #FFFFFF; }
}

.legal-main { background: var(--surface); padding-block: clamp(40px, 5vw, 64px) var(--section-y); }
.legal-article {
  max-width: var(--col);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-card);
  padding: clamp(28px, 3.6vw, 56px);
}

.legal-body { display: flex; flex-direction: column; gap: 34px; }
.legal-body section { display: flex; flex-direction: column; gap: 14px; }
.legal-body h2 { font-size: clamp(21px, 1.9vw, 27px); font-weight: 700; line-height: 1.3; color: var(--ink); }
.legal-body h3 { padding-top: 6px; font-family: var(--font-body); font-size: 15.5px; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.78; color: var(--body); text-wrap: pretty; }
.legal-body ol { display: flex; flex-direction: column; gap: 9px; padding-left: 21px; list-style: decimal; }
.legal-body ol li { padding-left: 3px; line-height: 1.74; }
.legal-body ul { display: flex; flex-direction: column; gap: 9px; }
.legal-body ul li { display: flex; gap: 10px; line-height: 1.74; }
.legal-body ul li::before { content: "\2192"; flex: none; font-family: var(--font-mono); font-size: 12px; line-height: 1.9; color: var(--coral); }
.legal-body a { color: var(--coral-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-body .note {
  border: 1px solid var(--border-inner);
  border-radius: 14px;
  background: var(--surface);
  padding: 15px 18px;
  font-size: 14px;
  line-height: 1.74;
  color: var(--body-muted);
}

.legal-table { border: 1px solid var(--border-inner); border-radius: 14px; background: var(--surface); overflow: hidden; }
.legal-table .row { display: grid; grid-template-columns: .85fr 1.5fr 1fr; border-top: 1px solid var(--border-row); }
.legal-table.pair .row { grid-template-columns: .9fr 1.6fr; }
.legal-table.wide .row { grid-template-columns: .9fr 1.3fr 1.2fr; }
.legal-table .row:first-child { border-top: 0; background: var(--surface-group); }
.legal-table .row:first-child > div { font-size: 13px; font-weight: 700; color: var(--ink); }
.legal-table > .row > div { padding: 13px 16px; font-size: 14.5px; line-height: 1.62; color: var(--body); }

.legal-closing { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-inner); font-size: 14px; color: var(--body-muted); }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- motion ---------- */

/* Reveal is opt-in: site.js stamps .js-reveal on <html> before anything paints.
   Without that stamp — script blocked, or a stale cached copy that predates the
   reveal logic — the content simply shows. Hiding it by default once cost us a
   blank page in production. */
/* Rises on the `translate` property, not `transform`, so it composes with the
   cards' hover lift instead of overriding it — a `transform: none` here would
   out-specify `.feature-card:hover` and kill the lift outright. */
.js-reveal [data-reveal] { opacity: 0; translate: 0 84px; }
.js-reveal [data-reveal].is-in { opacity: 1; translate: 0 0; transition: opacity 900ms var(--eo), translate 900ms var(--eo); }

/* Inside a card the pieces arrive in order rather than as one flat slab:
   label, heading, copy, pills. Each moves a little further than the last so the
   cascade reads without any single step drawing attention to itself. */
.js-reveal .feature-card .feature-tag,
.js-reveal .feature-card h3,
.js-reveal .feature-card .copy,
.js-reveal .feature-card .pill-list { opacity: 0; }
.js-reveal .feature-card .feature-tag { translate: 0 18px; }
.js-reveal .feature-card h3 { translate: 0 26px; }
.js-reveal .feature-card .copy { translate: 0 22px; }
.js-reveal .feature-card .pill-list { translate: 0 18px; }

.js-reveal .feature-card.is-in .feature-tag,
.js-reveal .feature-card.is-in h3,
.js-reveal .feature-card.is-in .copy,
.js-reveal .feature-card.is-in .pill-list {
  opacity: 1;
  translate: 0 0;
  transition: opacity 680ms var(--eo), translate 680ms var(--eo);
}
.js-reveal .feature-card.is-in .feature-tag { transition-delay: 180ms; }
.js-reveal .feature-card.is-in h3 { transition-delay: 330ms; }
.js-reveal .feature-card.is-in .copy { transition-delay: 460ms; }
.js-reveal .feature-card.is-in .pill-list { transition-delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js-reveal [data-reveal],
  .js-reveal .feature-card .feature-tag,
  .js-reveal .feature-card h3,
  .js-reveal .feature-card .copy,
  .js-reveal .feature-card .pill-list { opacity: 1; translate: 0 0; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto auto; row-gap: 10px; padding-block: 12px; }
  .site-nav { grid-column: 1 / -1; justify-content: flex-start; }
  .library-items,
  .plan-grid { grid-template-columns: 1fr; }
  .compare-table { overflow-x: auto; }
  .compare-row,
  .compare-row.head { grid-template-columns: 1.4fr repeat(3, minmax(72px, 1fr)); }
  .compare-row > div { padding: 12px 10px; font-size: 13.5px; }
  .footer-top,
  .footer-meta { grid-template-columns: 1fr; }
  .footer-meta > p:last-child { white-space: normal; }
  .footer-brand p { padding-left: 0; }
  .legal-table .row,
  .legal-table.pair .row,
  .legal-table.wide .row { grid-template-columns: 1fr; }
  .legal-table .row > div + div { border-top: 1px solid var(--border-row); }
}
