/* naholosoft.com design system — docs/design-system.md lists every token and component with a snippet.
   Served as /assets/site.css?v=N. Bump N (tools/partials.py ASSET_VERSION) after every change:
   /assets/* is cached for a year (immutable).
   Rules: no inline style= or <style> (CSP style-src 'self'); everything visible without JS.
   Limits: 6 type sizes (--fs-*), weights 400/600/700, spacing --s-1..--s-9 only,
   radius 8px / 16px / pill / 50%, one shadow, one accent per page. */

/* ---------------------------------------------------------------- 1. tokens */
:root {
  color-scheme: light dark;

  --paper: #f7f6f3;
  --surface: #ffffff;
  --ink: #18181c;
  --ink-2: #3f3e45;
  --mute: #5c5b62;
  --line: #e3e1dc;
  --line-strong: #c9c6be;

  --brand: #1b44c4;
  --bizcard: #952c0c;
  --erp: #005b50;
  --warn: #8a4b00;
  --danger: #b42318;

  --accent: var(--brand);
  --on-accent: #ffffff;

  --band: #1c1c21;
  --band-fg: #f3f2ee;
  --band-mute: #b9b7b0;
  --band-line: #4a4a52;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "D2Coding", Consolas, "Liberation Mono", monospace;

  /* the six type sizes */
  --fs-sm: .9375rem;
  --fs-body: clamp(1.0625rem, 1rem + .25vw, 1.125rem);
  --fs-lead: clamp(1.25rem, 1.15rem + .4vw, 1.375rem);
  --fs-h2: clamp(1.75rem, 1.55rem + .8vw, 2rem);
  --fs-h1: clamp(2.25rem, 2rem + .8vw, 2.5rem);
  --fs-display: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  --lh-body: 1.75;
  --lh-sm: 1.6;
  --lh-head: 1.3;

  /* spacing scale: 4 8 12 16 24 32 48 64 96 */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section: var(--s-8);
  --gutter: var(--s-4);
  --container: 72rem;
  --narrow: 42rem;
  --measure: 38em;

  --r-control: 8px;
  --r-card: 16px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgb(24 24 28 / .05), 0 8px 24px -12px rgb(24 24 28 / .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
}
@media (min-width: 40rem) { :root { --gutter: var(--s-5); } }
@media (min-width: 60rem) { :root { --gutter: var(--s-6); --section: var(--s-9); } }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121215;
    --surface: #1a1a1f;
    --ink: #ededea;
    --ink-2: #cfcdc8;
    --mute: #a9a7a1;
    --line: #2c2c32;
    --line-strong: #44444c;
    --brand: #a3bdff;
    --bizcard: #ffa184;
    --erp: #5fd4c0;
    --warn: #f0b45a;
    --danger: #ff8a80;
    --on-accent: #121215;
    --band: #25252b;
    --band-fg: #ededea;
    --band-mute: #b9b7b0;
    --band-line: #4a4a52;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .6);
  }
}

/* one accent per page: partials.py puts the scope on <body>; the home page's product cards put it on the icon tile */
.p-bizcard { --accent: var(--bizcard); }
.p-erp { --accent: var(--erp); }
.p-brand { --accent: var(--brand); }

/* ---------------------------------------------------------------- 2. base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in oklab, var(--accent) 25%, transparent); }

h1, h2, h3, h4 { margin: 0 0 var(--s-3); color: var(--ink); font-weight: 700; line-height: var(--lh-head); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-lead); }
h4 { font-size: var(--fs-body); }
.h3 { font-size: var(--fs-lead); }
p, ul, ol, dl, table, figure, pre { margin: 0 0 var(--s-4); }
p { max-width: var(--measure); text-wrap: pretty; }
ul:not([class]), ol:not([class]) { max-width: var(--measure); padding-left: 1.25em; }
li + li { margin-top: var(--s-2); }
strong, b { font-weight: 700; }
small { font-size: var(--fs-sm); }
code { font-family: var(--font-mono); font-size: var(--fs-sm); background: var(--surface); border: 1px solid var(--line); padding: 0 var(--s-1); border-radius: var(--r-control); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
dt { font-weight: 600; }
dd { margin: 0 0 var(--s-3); max-width: var(--measure); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-body); line-height: var(--lh-body); }
th, td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: break-word; word-break: keep-all; }
thead th { border-bottom: 1px solid var(--line-strong); font-weight: 600; }
caption { caption-side: bottom; padding-top: var(--s-2); text-align: left; color: var(--mute); font-size: var(--fs-sm); }
figure { margin-inline: 0; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- 3. layout */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.section { padding-block: var(--section); }
.section:not(.section--alt) + .section:not(.section--alt) { border-top: 1px solid var(--line); }
.section--alt { background: var(--surface); }
.hero + .section:not(.section--alt) { border-top: 1px solid var(--line); }
.section__head { max-width: 42rem; margin-bottom: var(--s-6); }
.section__head > :last-child { margin-bottom: 0; }
@media (min-width: 60rem) { .section__head { margin-bottom: var(--s-7); } }

.stack { display: grid; gap: var(--s-4); align-content: start; }
.stack > *, .stack > .callout { margin: 0; }
.grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.grid > li { margin: 0; }
.grid--1 { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.split { display: grid; gap: var(--s-7); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
  .split--wide-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .split--top { align-items: start; }
}

/* ---------------------------------------------------------------- 4. type helpers */
.eyebrow { margin: 0 0 var(--s-2); color: var(--accent); font-size: var(--fs-sm); font-weight: 600; line-height: var(--lh-sm); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.meta, figcaption { color: var(--mute); font-size: var(--fs-sm); line-height: var(--lh-sm); }
figcaption { margin-top: var(--s-3); max-width: var(--measure); }
.mail { font-size: var(--fs-lead); font-weight: 600; word-break: break-all; }
.nowrap { white-space: nowrap; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- 5. icons */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.icon-tile {
  display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); color: var(--accent);
}
.icon-tile .icon { width: 1.25rem; height: 1.25rem; }

/* ---------------------------------------------------------------- 6. skip link */
.skip {
  position: absolute; left: var(--s-3); top: -100px; z-index: 100;
  padding: var(--s-2) var(--s-4); border-radius: var(--r-control);
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--s-3); }

/* ---------------------------------------------------------------- 7. site header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-2); min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: var(--s-3); margin-right: auto; min-height: 44px;
  color: var(--ink); text-decoration: none; font-size: var(--fs-body); font-weight: 700; line-height: 1;
}
.brand__mark { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--r-control); background: var(--ink); color: var(--paper); }
.brand__mark .icon { width: 22px; height: 22px; }

.site-nav ul, .menu__panel ul { list-style: none; margin: 0; padding: 0; }
.site-nav li, .menu__panel li { margin: 0; }
.site-nav { display: none; }
.site-nav a, .lang {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; border-radius: var(--r-control);
}
.site-nav a:hover, .lang:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
.site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-2); height: 2px; background: var(--accent); }
.site-nav .site-nav__cta { border: 1px solid var(--line-strong); margin-left: var(--s-2); }
.lang { border: 1px solid var(--line); }

.menu { position: static; }
.menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3);
  border-radius: var(--r-control); border: 1px solid var(--line-strong); font-size: var(--fs-sm); font-weight: 600;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ""; }
.menu > summary .icon--close { display: none; }
.menu[open] > summary .icon--open { display: none; }
.menu[open] > summary .icon--close { display: inline; }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: var(--s-2) var(--gutter) var(--s-5);
}
.menu__panel a { display: flex; align-items: center; min-height: 52px; padding-inline: var(--s-2); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.menu__panel li:last-child a { border-bottom: 0; }
.menu__panel a[aria-current] { color: var(--accent); }
@media (min-width: 52rem) {
  .site-nav { display: block; }
  .site-nav ul { display: flex; align-items: center; gap: var(--s-1); }
  .menu { display: none; }
}

/* ---------------------------------------------------------------- 8. buttons */
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; max-width: none; margin: var(--s-5) 0 0; }
.actions + p { margin-top: var(--s-3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-2) var(--s-5);
  border: 1px solid var(--line-strong); border-radius: var(--r-control);
  background: transparent; color: var(--ink);
  font: inherit; font-size: var(--fs-body); font-weight: 600; line-height: var(--lh-head); text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 88%, var(--ink)); }
.btn--secondary { background: var(--surface); }
.btn--ghost { border-color: transparent; color: var(--accent); padding-inline: 0; } /* lines up with the text when it wraps under another button */
.btn--ghost:hover { border-color: transparent; text-decoration: underline; }
.btn--lg { min-height: 56px; padding-inline: var(--s-6); }
.btn--sm { min-height: 44px; padding-inline: var(--s-4); font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---------------------------------------------------------------- 9. badge */
.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-2);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.75; white-space: nowrap;
}
.badge--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------------------------------------------------------------- 10. page hero */
.hero { padding-block: var(--s-7) var(--section); }
@media (min-width: 60rem) { .hero { padding-top: var(--s-8); } }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); } }
.container--narrow.hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } /* long-form pages: the hero is the top of the 42rem column */
.hero__copy, .hero__visual { min-width: 0; }
.hero h1 { font-size: var(--fs-display); letter-spacing: -.02em; margin-bottom: var(--s-4); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: var(--fs-sm); line-height: var(--lh-sm); }
.hero__meta li { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0; }
.hero__meta .icon { color: var(--accent); }
.hero__copy > * { animation: rise .5s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .04s; }
.hero__copy > :nth-child(3) { animation-delay: .08s; }
.hero__copy > :nth-child(n+4) { animation-delay: .12s; }

/* ---------------------------------------------------------------- 11. card */
.card { position: relative; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
@media (min-width: 60rem) { .card { padding: var(--s-6); } }
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { font-size: var(--fs-lead); margin-bottom: var(--s-2); }
.card--link:hover { border-color: var(--line-strong); }
.card__link { color: var(--ink); text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.card--link:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.card--link .card__link:focus-visible { outline: 0; }
.card--row { display: grid; gap: var(--s-3) var(--s-4); align-items: start; justify-items: start; }
@media (min-width: 30rem) { .card--row { grid-template-columns: auto minmax(0, 1fr); justify-items: stretch; } }
.card--row > div > :last-child { margin-bottom: 0; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-3); }
.card__title { font-size: var(--fs-lead); font-weight: 700; line-height: var(--lh-head); color: var(--ink); }
.card .actions { margin-top: var(--s-4); }

/* ---------------------------------------------------------------- 12. feature grid */
.features { display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.feature { margin: 0; }
.feature .icon-tile { margin-bottom: var(--s-3); }
.feature h3 { margin-bottom: var(--s-2); }
.feature p { margin: 0; }
.feature p + p { margin-top: var(--s-2); }
.feature__note { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: baseline; margin-top: var(--s-3) !important; padding-top: var(--s-3); border-top: 1px solid var(--line); color: var(--ink-2); }
.split .features { margin-top: var(--s-6); }

/* ---------------------------------------------------------------- 13. check list */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; }
.checklist .icon { color: var(--accent); margin-top: .25em; }

/* ---------------------------------------------------------------- 14. steps + timeline */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--s-6) var(--s-5); }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.steps > li { counter-increment: step; margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.steps > li::before {
  content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: var(--s-3);
  border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent);
  font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps h3, .steps h4 { margin-bottom: var(--s-2); }
.steps p { margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { position: relative; margin: 0; padding: 0 0 var(--s-6) var(--s-6); }
.timeline > li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); z-index: 1; }
.timeline > li::after { content: ""; position: absolute; left: 5px; top: 1.25em; bottom: 0; width: 2px; background: var(--line); }
.section--alt .timeline > li::before { background: var(--surface); }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::after { display: none; }
.timeline__when { display: block; margin-bottom: var(--s-1); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline h3 { margin-bottom: var(--s-1); }
.timeline p { margin: 0; }

/* ---------------------------------------------------------------- 15. screenshot figure */
.browser, .phone {
  display: block; overflow: hidden; margin: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow);
}
.browser__bar { display: flex; align-items: center; gap: var(--s-3); height: 36px; padding: 0 var(--s-3); background: var(--paper); border-bottom: 1px solid var(--line); }
.browser__bar::before { /* three window dots */
  content: ""; flex: none; width: 44px; height: 10px;
  background:
    radial-gradient(circle at 5px 5px, var(--line-strong) 4.5px, transparent 5px),
    radial-gradient(circle at 22px 5px, var(--line-strong) 4.5px, transparent 5px),
    radial-gradient(circle at 39px 5px, var(--line-strong) 4.5px, transparent 5px);
}
.browser__url {
  flex: 1; min-width: 0; color: var(--mute); font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img, .phone img { display: block; width: 100%; height: auto; background: #fff; }
.phone { width: min(15rem, 100%); margin-inline: auto; }
.phone img { aspect-ratio: 540 / 1100; object-fit: cover; }
.phone-pair { display: flex; justify-content: center; gap: var(--s-4); }
.phone-pair > .phone { width: min(14rem, calc(50% - var(--s-2))); margin: 0; }

/* gallery: swipe row on phones, grid from 48rem */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(12rem, 70%);
  gap: var(--s-5); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: var(--s-2) var(--gutter) var(--s-4);
  scroll-padding-inline: var(--gutter);
}
.gallery > li { scroll-snap-align: start; margin: 0; }
@media (min-width: 48rem) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.gallery figure { margin: 0; }
.gallery .phone { width: min(15rem, 100%); }
.gallery figcaption { text-align: center; margin-inline: auto; }

/* screens: one large browser frame with smaller ones below */
.screens { display: grid; gap: var(--s-4); min-width: 0; }
.screens__more { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.screens__more > li { margin: 0; min-width: 0; }
.screens__more .browser__url { display: none; }
.screens__more img { aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }

/* stage: home hero visual, a desktop screen with a phone screen in front */
.stage { --pw: clamp(6.5rem, 4rem + 9vw, 10rem); margin: 0; }
.stage__frame { position: relative; padding: var(--s-4) 0 var(--s-8); }
.stage .browser { margin-right: var(--s-7); }
.stage .phone { position: absolute; right: 0; bottom: 0; width: var(--pw); margin: 0; }
.stage__tag { position: absolute; z-index: 2; margin: 0; }
.stage__tag .badge { box-shadow: var(--shadow); }
.stage__tag--erp { left: var(--s-4); top: 0; }
.stage__tag--bizcard { right: calc(var(--pw) + var(--s-2)); bottom: var(--s-4); }
@media (max-width: 47.99rem) { .stage .browser__url { visibility: hidden; } }

/* lightbox (site.js) */
a[data-lightbox] { display: block; position: relative; cursor: zoom-in; color: inherit; text-decoration: none; }
a[data-lightbox] .zoom-hint {
  position: absolute; right: var(--s-3); bottom: var(--s-3); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgb(24 24 28 / .75); color: #fff; opacity: 0; transition: opacity .2s;
}
a[data-lightbox]:hover .zoom-hint, a[data-lightbox]:focus-visible .zoom-hint { opacity: 1; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #f3f2ee; overflow: hidden;
}
.lightbox::backdrop { background: rgb(12 12 14 / .92); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade .2s ease; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
.lightbox__count { font-size: var(--fs-sm); color: #cfcdc8; font-variant-numeric: tabular-nums; }
.lightbox__stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 var(--s-4); position: relative; }
.lightbox__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-control); box-shadow: var(--shadow); background: #fff; }
.lightbox__caption { margin: 0 auto; padding: var(--s-3) var(--s-5) var(--s-5); text-align: center; color: #cfcdc8; font-size: var(--fs-sm); min-height: 3.5rem; }
.lightbox__btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .3);
  background: rgb(24 24 28 / .6); color: #fff; cursor: pointer;
}
.lightbox__btn:hover { background: rgb(60 60 66 / .8); }
.lightbox__btn:focus-visible { outline-color: #fff; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; margin-top: -22px; z-index: 1; }
.lightbox__prev { left: var(--s-3); }
.lightbox__next { right: var(--s-3); }
html.has-modal { overflow: hidden; }

/* ---------------------------------------------------------------- 16. comparison table */
.compare-wrap { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.compare { margin: 0; }
.compare th, .compare td { padding: var(--s-3) var(--s-4); }
.compare thead th { background: var(--surface); }
.compare tbody th { font-weight: 600; width: 26%; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead .is-ours { color: var(--accent); }
.compare .icon { color: var(--accent); margin-right: var(--s-2); }
.compare th a { color: var(--accent); }
@media (max-width: 40rem) {
  /* rows become stacked cards; each cell shows its column name from data-label */
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tbody tr { padding: var(--s-4); border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th { width: 100%; padding: 0 0 var(--s-2); border: 0; font-weight: 700; }
  .compare td { padding: var(--s-2) 0 0; border: 0; }
  .compare td[data-label]::before { content: attr(data-label); display: block; color: var(--mute); font-size: var(--fs-sm); font-weight: 600; line-height: var(--lh-sm); }
  .compare td.is-ours[data-label]::before { color: var(--accent); }
}
/* plain wide table: scrolls sideways on narrow screens */
.table { overflow-x: auto; margin-bottom: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.table table { margin: 0; min-width: 34rem; }
.table tr:last-child > * { border-bottom: 0; }

/* ---------------------------------------------------------------- 17. plans + key-value list */
.plans { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.plan { display: flex; flex-direction: column; align-items: flex-start; margin: 0; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
@media (min-width: 60rem) { .plan { padding: var(--s-6); } }
.plans > .plan + .plan { margin-top: 0; }
.plan > * { width: 100%; }
.plan__badge { width: auto !important; margin-bottom: var(--s-3); }
.plan__name { margin: 0 0 var(--s-1); font-size: var(--fs-lead); font-weight: 700; line-height: var(--lh-head); }
.plan__price { margin: 0 0 var(--s-1); font-size: var(--fs-h2); font-weight: 700; line-height: var(--lh-head); }
.plan__note { margin-bottom: var(--s-4); color: var(--ink-2); }
.plan__list { list-style: none; padding: var(--s-4) 0 0; margin: 0 0 var(--s-4); border-top: 1px solid var(--line); flex: 1; }
.plan__list li { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0 0 var(--s-2); }
.plan__list .icon { color: var(--accent); margin-top: .25em; }
.plan__list .is-no { color: var(--ink-2); }
.plan__list .is-no .icon { color: var(--mute); }
.plan .actions { margin-top: auto; }

.terms-list { margin: 0; border-top: 1px solid var(--line); }
.terms-list > div { display: grid; gap: var(--s-1) var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .terms-list > div { grid-template-columns: 10rem minmax(0, 1fr); } }
.terms-list dd { margin: 0; }

/* ---------------------------------------------------------------- 18. FAQ */
.faq { max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 56px; padding: var(--s-4) 0; font-weight: 600; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after {
  content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] > summary::after { transform: rotate(45deg); }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.faq__a { padding: 0 var(--s-7) var(--s-5) 0; }
.faq__a > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- 19. callout */
.callout {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-1) var(--s-3); align-items: start; align-content: start;
  margin: 0 0 var(--s-4); padding: var(--s-5);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink-2); border-radius: var(--r-card);
}
.callout > .icon { grid-row: span 2; color: var(--accent); width: 1.5rem; height: 1.5rem; margin-top: .15em; }
.callout > :not(.icon) { grid-column: 2; }
.callout__title { margin: 0; font-weight: 700; }
.callout > :last-child { margin-bottom: 0; }
.callout ul { padding-left: 1.25em; margin: var(--s-2) 0 0; }
.callout li + li { margin-top: var(--s-2); }
.callout p { margin-bottom: 0; }
.grid > .callout { margin: 0; }

/* ---------------------------------------------------------------- 20. CTA band (once per page, last section) */
.cta-band { background: var(--band); color: var(--band-fg); border-radius: var(--r-card); padding: var(--s-7) var(--s-5); }
@media (min-width: 60rem) { .cta-band { padding: var(--s-8); } }
.cta-band h2 { color: var(--band-fg); }
.cta-band p { color: var(--band-mute); }
.cta-band .eyebrow { color: var(--band-mute); }
.cta-band .actions { margin-bottom: 0; }
.cta-band .btn--secondary { background: transparent; color: var(--band-fg); border-color: var(--band-line); }
.cta-band .btn--secondary:hover { border-color: var(--band-fg); }
.cta-band a:not(.btn) { color: var(--band-fg); }
.cta-band .mail { display: inline-block; margin-top: var(--s-5); }
.cta-band > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- 21. legal documents */
main.doc {
  width: 100%; max-width: calc(var(--narrow) + 2 * var(--gutter)); margin-inline: auto;
  padding: var(--s-7) var(--gutter) var(--section);
}
@media (min-width: 60rem) { main.doc { padding-top: var(--s-8); } }
main.doc > h1 { margin-bottom: var(--s-2); }
main.doc > h1 + .meta { margin-bottom: var(--s-6); }
main.doc h2 { font-size: var(--fs-lead); margin: var(--s-7) 0 var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
main.doc h3 { font-size: var(--fs-body); margin: var(--s-6) 0 var(--s-2); }
main.doc ul, main.doc ol { padding-left: 1.25em; }
main.doc table { margin-bottom: var(--s-5); background: var(--surface); border: 1px solid var(--line); }
main.doc .table table { border: 0; }
@media (max-width: 34rem) { main.doc > table { display: block; overflow-x: auto; } }

/* ---------------------------------------------------------------- 22. site footer */
.site-footer { margin-top: auto; padding: var(--s-8) 0 var(--s-6); background: var(--surface); border-top: 1px solid var(--line); color: var(--mute); font-size: var(--fs-sm); line-height: var(--lh-sm); }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__grid { display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: 1fr 1fr; }
.site-footer__grid > :last-child, .site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 52rem) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1.4fr 1fr; }
  .site-footer__brand, .site-footer__grid > :last-child { grid-column: auto; }
}
.site-footer__brand .brand { margin: 0 0 var(--s-3); }
.site-footer__brand p { margin: 0; }
.site-footer__title { margin: 0 0 var(--s-3); color: var(--ink); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 var(--s-2); }
.site-footer__legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.site-footer__legal p { margin: 0 0 var(--s-2); max-width: none; }
.site-footer__legal a { color: inherit; text-decoration: underline; }

/* ---------------------------------------------------------------- 23. motion */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* reveal on scroll: site.js adds .is-pending ONLY to elements below the fold, then .is-in when they scroll into view.
   Without JS nothing gets .is-pending, so everything stays visible. */
[data-reveal] { transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-reveal].is-pending { opacity: 0; transform: translateY(12px); }
[data-reveal-stagger] > * { transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-reveal-stagger].is-pending > * { opacity: 0; transform: translateY(12px); }
[data-reveal-stagger] > :nth-child(2) { transition-delay: .05s; }
[data-reveal-stagger] > :nth-child(3) { transition-delay: .1s; }
[data-reveal-stagger] > :nth-child(n+4) { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-reveal].is-pending, [data-reveal-stagger].is-pending > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------------------------------------------------------------- 24. print */
@media print {
  .site-header, .menu, .skip, .cta-band .actions, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .site-footer, .section--alt { background: none; }
  .cta-band { background: none; color: #000; border: 1px solid #999; }
  .cta-band h2, .cta-band p { color: #000; }
}
