/* seewol design system v4 — the only stylesheet a service needs. Structure and proportions follow a modern product site:
   sticky white header, flat tone-tinted hero band, tool card overlapping the band, two-column body (content + side cards),
   FAQ as its own page, multi-column footer. No third-party assets or CSS are used.
   Rules: tokens only (no raw hex outside this file), no gradients, no shadows, no external fonts, one accent per service via data-tone. See DESIGN.md. */
:root {
  --ink: #191f28; --text-2: #4e5968; --text-3: #6b7684; --paper: #ffffff; --surface: #ffffff; --fill: #f2f4f6; --rule: #e5e8eb; --line-strong: #b0b8c1;
  --accent: #1f6ee3; --on-accent: #ffffff; --accent-weak: #e8f1ff; --err: #c92a2a; --err-weak: #fdecec;
  --band: color-mix(in srgb, var(--accent-weak) 70%, var(--paper));
  --page: var(--paper);
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2.25rem; --s7: 3.5rem; --s8: 5rem;
  --r1: .75rem; --r2: 1rem; --r3: 1rem;
  --t-cap: .875rem; --t-sm: .9375rem; --t-body: 1rem; --t-lg: 1.125rem; --t-h2: 1.5rem; --t-h1: 2.75rem; --t-num: 2.75rem;
  --wrap: 68rem; --head-h: 4rem;
  --muted: var(--text-2); /* legacy alias */
}
:root[data-tone='teal'] { --accent: #0b7f8c; --accent-weak: #e3f4f6; }
:root[data-tone='green'] { --accent: #0a8754; --accent-weak: #e2f5ec; }
:root[data-tone='orange'] { --accent: #b94f08; --accent-weak: #fdeedd; }
:root[data-tone='red'] { --accent: #d63a46; --accent-weak: #fdebec; }
/* 2026-11-25: one tone per new product (all ≥4.5:1 on white). */
:root[data-tone='indigo'] { --accent: #4338ca; --accent-weak: #eceafd; }
:root[data-tone='plum'] { --accent: #8e3b77; --accent-weak: #f7eaf3; }
:root[data-tone='violet'] { --accent: #6d3fc0; --accent-weak: #f0eafb; }
:root[data-tone='pencil'] { --accent: #8a5a00; --accent-weak: #f8efdc; }
:root[data-tone='navy'] { --accent: #1e3a8a; --accent-weak: #e6ebf7; }
:root[data-tone='berry'] { --accent: #a8235f; --accent-weak: #fae8ef; }
:root[data-tone='fuchsia'] { --accent: #a21caf; --accent-weak: #f8e8fa; }
:root[data-tone='slate'] { --accent: #334155; --accent-weak: #eceff3; }
:root[data-tone='brown'] { --accent: #7c4a1e; --accent-weak: #f5ece3; }
:root[data-tone='sea'] { --accent: #0f5c86; --accent-weak: #e4f0f6; }
:root[data-tone='pine'] { --accent: #2d6a45; --accent-weak: #e5f1e9; } /* trail-note; white text on it 6.4:1 */
/* Owner decision 2026-11-20: the default and only theme is white (like the Toss careers site). Dark mode is OFF: the unknown media feature below never matches. To re-enable, delete ' and (--dark-mode-enabled)'. */
@media (prefers-color-scheme: dark) and (--dark-mode-enabled) {
  :root { --ink: #f2f4f6; --text-2: #c3cad2; --text-3: #9aa4af; --paper: #121216; --surface: #1c1c22; --fill: #2b2b33; --rule: #34343d; --line-strong: #5b5b66;
    --accent: #4593fc; --on-accent: #0b1220; --accent-weak: #1c2a44; --err: #f66d78; --err-weak: #3a2326; }
  :root[data-tone='teal'] { --accent: #2fb5c5; --accent-weak: #12343a; }
  :root[data-tone='green'] { --accent: #2fc785; --accent-weak: #123425; }
  :root[data-tone='orange'] { --accent: #f59a4a; --accent-weak: #3a2a17; }
  :root[data-tone='red'] { --accent: #f66d78; --accent-weak: #3a2326; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + var(--s4)); }
body { margin: 0; background: var(--page); color: var(--ink);
  font: var(--t-body)/1.7 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', 'Malgun Gothic', 'Segoe UI', system-ui, sans-serif;
  font-variant-numeric: tabular-nums; letter-spacing: -.005em; word-break: keep-all; overflow-wrap: anywhere;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
h1 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, var(--t-h1)); line-height: 1.3; margin: 0 0 var(--s4); font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
h2 { font-size: var(--t-h2); line-height: 1.4; margin: 0 0 var(--s5); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: var(--t-lg); line-height: 1.45; margin: var(--s5) 0 var(--s2); font-weight: 700; }
p { margin: 0 0 var(--s4); }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.lede { margin: 0; color: var(--text-2); font-size: var(--t-lg); line-height: 1.65; max-width: 36rem; }
.note { color: var(--text-2); font-size: var(--t-sm); margin: var(--s4) 0 0; line-height: 1.65; }
.hint { color: var(--text-2); font-size: var(--t-sm); margin: 0 0 var(--s4); line-height: 1.65; }
.err { color: var(--err); font-size: var(--t-sm); font-weight: 600; margin: var(--s2) 0 0; }
.skip { position: absolute; left: -9999px; top: var(--s3); /* off-screen sideways: top:-4rem showed inside the iPhone safe-area padding */ z-index: 40; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); border-radius: var(--r1); }
.skip:focus { left: var(--s3); }

/* ---------- Legacy single-card page: legal pages (main.legal) and a bare <main> only. App pages (main with a class: .app-main, .kid, ...) are never boxed. ---------- */
main.legal, main:not([class]) { max-width: 44rem; margin: var(--s5) auto; padding: var(--s6) var(--s5); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r3); }
:is(main.legal, main:not([class])) h2 { margin: var(--s7) 0 var(--s4); padding-top: var(--s6); border-top: 1px solid var(--rule); font-size: 1.375rem; }
:is(main.legal, main:not([class])) .lede { margin-bottom: var(--s6); }
@media (max-width: 47.99rem) { main.legal, main:not([class]) { margin: var(--s3); padding: var(--s5) var(--s4); } }

/* ---------- Header: sticky, brand left, nav right, primary pill at the far right ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); }
.head-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); height: var(--head-h); display: flex; align-items: center; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); min-height: 2.75rem; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 800; font-size: var(--t-lg); letter-spacing: -.02em; }
.brand-mark { flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .55rem; background: var(--accent); color: var(--on-accent); font-size: var(--t-sm); font-weight: 800; }
.brand-name { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; } /* a long name wraps to two lines instead of being cut with an ellipsis */
.navbox { margin-left: auto; }
.nav { display: flex; align-items: center; gap: var(--s1); margin: 0; padding: 0; list-style: none; }
.nav a.item { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s3); border-radius: var(--r1); color: var(--text-2); font-weight: 600; font-size: var(--t-sm); text-decoration: none; transition: background-color .15s, color .15s; }
.nav a.item:hover { background: var(--fill); color: var(--ink); }
.nav a.item[aria-current='page'] { color: var(--accent); }
.nav .nav-cta { display: none; }
.head-tools { flex: none; display: flex; align-items: center; gap: var(--s3); } /* flex: none: a long service name shrinks (ellipsis), never the language/menu buttons */
.lang { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 var(--s3); border: 1px solid var(--rule); border-radius: 999px; color: var(--text-2); font-weight: 700; font-size: var(--t-cap); text-decoration: none; }
.lang:hover { border-color: var(--line-strong); color: var(--ink); }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 var(--s5); border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: var(--t-sm); text-decoration: none; white-space: nowrap; transition: filter .15s; }
.pill:hover { filter: brightness(1.08); }
.menu-btn { display: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 1.125rem; height: 2px; border-radius: 2px; background: var(--ink); content: ''; position: relative; transition: transform .2s, top .2s, background-color .2s; }
.menu-btn i::before { position: absolute; top: -.35rem; }
.menu-btn i::after { position: absolute; top: .35rem; }
.menu-btn[aria-expanded='true'] i { background: transparent; }
.menu-btn[aria-expanded='true'] i::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] i::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 47.99rem) {
  .head-in { padding: 0 var(--s4); gap: var(--s2); }
  .head-tools { margin-left: auto; gap: var(--s2); }
  .brand { gap: var(--s2); font-size: var(--t-body); }
  .head-tools .pill { display: none; }
  .menu-btn { display: inline-flex; }
  .navbox { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: var(--s2) var(--s4) var(--s5); background: var(--paper); border-bottom: 1px solid var(--rule); }
  .navbox[data-open='true'] { display: block; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { display: block; }
  .nav a.item { min-height: 3.25rem; padding: 0 var(--s2); font-size: var(--t-body); border-radius: 0; border-bottom: 1px solid var(--rule); }
  .nav .nav-cta { display: block; padding-top: var(--s4); }
  .nav .nav-cta .pill { display: flex; min-height: 3.25rem; font-size: var(--t-body); }
}

/* ---------- Hero band: flat tone tint, big two-line headline ---------- */
.band { background: var(--band); border-bottom: 1px solid var(--rule); }
.band-in { max-width: var(--wrap); margin: 0 auto; padding: var(--s7) var(--s5) var(--s6); }
.band.overlap .band-in { padding-bottom: calc(var(--s7) + var(--s6)); }
.band h1 { max-width: 40rem; margin-bottom: var(--s4); }
.eyebrow { display: inline-flex; align-items: center; min-height: 1.75rem; margin: 0 0 var(--s4); padding: 0 var(--s3); border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); color: var(--accent); font-size: var(--t-cap); font-weight: 700; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); font-size: var(--t-sm); color: var(--text-2); }
.crumbs a { color: var(--text-2); }
@media (min-width: 48rem) { .band-in { padding-top: var(--s8); padding-bottom: var(--s7); } .band.overlap .band-in { padding-bottom: calc(var(--s8) + var(--s5)); } }
@media (max-width: 47.99rem) { .band-in { padding: var(--s6) var(--s4) var(--s5); } .band.overlap .band-in { padding-bottom: calc(var(--s6) + var(--s5)); } }

/* ---------- Body layout: content column + side column ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.cols { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); padding: var(--s6) 0 var(--s7); align-items: start; }
.overlap + .wrap .cols { margin-top: calc(-1 * (var(--s7) + var(--s5))); padding-top: 0; }
.side { display: grid; gap: var(--s3); align-content: start; }
@media (min-width: 64rem) { .cols { grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--s6); } .side.sticky { position: sticky; top: calc(var(--head-h) + var(--s5)); } }
@media (max-width: 47.99rem) { .wrap { padding: 0 var(--s4); } .overlap + .wrap .cols { margin-top: calc(-1 * (var(--s5) + var(--s4))); } }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r3); padding: var(--s6); }
@media (max-width: 47.99rem) { .panel { padding: var(--s5) var(--s4); } }
.sec { margin: 0 0 var(--s7); }
/* .panel has no bottom margin and .sec no top margin: without this a section right after a card touched it (trail-note QA 2026-11-26). */
.panel + .sec, .panel + .panel, .panel + section { margin-top: var(--s7); }
:is(.side, .cols, .cards, .fields) > .panel + :is(.sec, .panel, section) { margin-top: 0; } /* grid containers space their children with gap */
.sec:last-child { margin-bottom: 0; }
.sec > h2 { margin-bottom: var(--s4); }
.stack > * + * { margin-top: var(--s7); }
/* Option groups (checkbox/radio rows) inside a stack sit close together, not a section apart. */
.stack > label:has(> input[type='checkbox'], > input[type='radio']) + label:has(> input[type='checkbox'], > input[type='radio']) { margin-top: var(--s1); }

/* Side cards: bold title + gray secondary line */
.side-title { margin: 0 0 var(--s1); font-size: var(--t-sm); font-weight: 700; color: var(--text-2); }
.card { display: block; padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r2); color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s; }
a.card:hover { border-color: var(--line-strong); background: var(--fill); }
.card b { display: block; font-size: var(--t-body); font-weight: 700; letter-spacing: -.01em; }
.card span:not(.badge) { display: block; margin-top: var(--s1); color: var(--text-2); font-size: var(--t-sm); line-height: 1.55; }
.card span.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toc { padding: var(--s4) var(--s5); border: 1px solid var(--rule); border-radius: var(--r2); background: var(--surface); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 2.75rem; color: var(--text-2); font-size: var(--t-sm); font-weight: 600; text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (max-width: 63.99rem) { .toc { display: none; } }

/* Related tools */
.related { padding: var(--s7) 0; border-top: 1px solid var(--rule); }
.related h2 { margin-bottom: var(--s5); }
.cards { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

/* ---------- FAQ: chips + native-details accordion ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s5); padding: 0; list-style: none; }
.chips button { min-height: 2.75rem; padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--text-2); font-weight: 600; font-size: var(--t-sm); transition: background-color .15s, color .15s, border-color .15s; }
.chips button:hover { border-color: var(--line-strong); color: var(--ink); }
.chips button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.acc { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.acc > li { border-bottom: 1px solid var(--rule); }
.acc summary { list-style: none; display: flex; align-items: center; gap: var(--s3); min-height: 3.5rem; padding: var(--s4) 0; cursor: pointer; font-weight: 700; font-size: var(--t-lg); line-height: 1.5; letter-spacing: -.01em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .q { flex: 1; min-width: 0; }
.acc summary::after { content: ''; flex: none; width: .55rem; height: .55rem; margin: 0 .3rem 0 var(--s2); border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform .2s; }
.acc details[open] > summary::after { transform: rotate(-135deg); margin-top: .35rem; }
.acc summary:hover .q { color: var(--accent); }
.acc .ans { margin: 0; padding: 0 0 var(--s5); max-width: 42rem; color: var(--text-2); line-height: 1.8; }
.tag { flex: none; display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 var(--s3); border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: var(--t-cap); font-weight: 600; }
@media (max-width: 47.99rem) { .acc summary .tag { display: none; } }
.more-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: var(--s4); font-weight: 700; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* ---------- Tab: segmented control, selected = ink pill ---------- */
.tabs { display: inline-flex; max-width: 100%; gap: var(--s1); margin-bottom: var(--s5); overflow-x: auto; padding: var(--s1); background: var(--fill); border-radius: 999px; }
.tabs button { background: transparent; border: 0; min-height: 2.75rem; padding: 0 var(--s5); border-radius: 999px; color: var(--text-2); white-space: nowrap; font-weight: 600; font-size: var(--t-sm); transition: background-color .15s, color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--paper); }
/* Link tabs (<ul class="tabs"><li><a aria-current="page">): same look as button tabs, no list bullets. */
ul.tabs, ol.tabs { list-style: none; margin-top: 0; margin-left: 0; }
.tabs li { list-style: none; display: flex; }
.tabs li::marker { content: ''; }
.tabs a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s5); border-radius: 999px; color: var(--text-2); white-space: nowrap; font-weight: 600; font-size: var(--t-sm); text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current='page'] { background: var(--ink); color: var(--paper); }
/* Narrow screens: 3+ tabs wrap into equal rows instead of scrolling out of view (360px must show every tab). */
@media (max-width: 47.99rem) {
  .tabs { display: flex; flex-wrap: wrap; overflow-x: visible; border-radius: var(--r2); }
  .tabs button { flex: 1 1 auto; min-width: 0; padding: 0 var(--s3); border-radius: var(--r1); white-space: normal; line-height: 1.3; }
  .tabs li { flex: 1 1 auto; }
  .tabs a { width: 100%; justify-content: center; padding: 0 var(--s3); border-radius: var(--r1); }
  /* 4+ tabs that do not fit one row: Shell's tab script sets data-wrap only when they really wrap, so rows balance (2+2, 3+2) instead of a lone 3+1. Short rows that fit stay on one line. */
  .tabs.tabs[data-wrap] > * { flex: 1 1 calc(50% - var(--s1)); } /* doubled class: beats service rules like `.panel .tabs button` */
  .tabs.tabs[data-wrap]:has(> :nth-child(5)) > * { flex-basis: calc(33.333% - var(--s1)); }
}

/* ---------- Field: filled input, label above ---------- */
.fields { display: grid; gap: var(--s5) var(--s4); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.field { display: block; margin: 0 0 var(--s5); }
.fields .field, .field:last-child { margin-bottom: 0; }
.field > .label, .fields label { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--text-2); margin-bottom: var(--s2); }
input, select, textarea { width: 100%; min-height: 3.25rem; padding: var(--s3) var(--s4); background: var(--fill); border: 1px solid transparent; border-radius: var(--r1); font-size: var(--t-lg); line-height: 1.4; color: var(--ink); transition: border-color .15s, background-color .15s; } /* line-height 1.4: a text input is exactly as tall as a select (1.7 made it 4.6px taller) */
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
::placeholder { color: var(--text-3); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: var(--surface); outline: none; }
/* Field focus ring: a 2px accent ring (3:1 or more on the page). The old accent-weak ring was about 1.1:1 on white. Chrome keeps keyboard focus inside a
   date input's own fields so the host never matches :focus-visible; date inputs get the ring whenever they hold focus (benefit-note 2026-11-26). */
input:focus-visible, select:focus-visible, textarea:focus-visible, input[type='date']:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--err); background: var(--err-weak); }
input[type='checkbox'], input[type='radio'] { appearance: none; -webkit-appearance: none; flex: none; width: 1.5rem; min-height: 1.5rem; height: 1.5rem; padding: 0; margin: 0; background: var(--surface); border: 2px solid var(--line-strong); border-radius: .4rem; vertical-align: middle; cursor: pointer; }
input[type='radio'] { border-radius: 999px; }
input[type='checkbox']:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat; border-color: var(--accent); }
input[type='radio']:checked { background: var(--accent); border: .4rem solid var(--surface); outline: 2px solid var(--accent); outline-offset: 0; }
label:has(> input[type='checkbox']), label:has(> input[type='radio']) { display: flex; align-items: center; gap: var(--s3); min-height: 2.75rem; cursor: pointer; }
/* Fieldset: a plain group with a label-style legend, never the grey browser box. */
fieldset { min-width: 0; margin: 0 0 var(--s5); padding: 0; border: 0; }
legend { padding: 0; margin: 0 0 var(--s2); font-size: var(--t-sm); font-weight: 600; color: var(--text-2); }
fieldset > label + label { margin-top: var(--s1); }
/* File input: the picker button looks like a secondary .btn; the file name is plain text. */
input[type='file'] { min-height: 0; padding: var(--s1) 0; background: none; border: 0; font-size: var(--t-sm); color: var(--text-2); }
input[type='file']::file-selector-button { min-height: 2.75rem; margin-right: var(--s3); padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: var(--r1); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
input[type='file']::file-selector-button:hover { border-color: var(--line-strong); }

/* ---------- Button ---------- */
.btn { min-height: 3.5rem; padding: var(--s3) var(--s5); border: 1px solid var(--line-strong); border-radius: var(--r1); background: var(--surface); color: var(--ink); font-weight: 700; font-size: var(--t-body); transition: filter .15s, transform .1s, border-color .15s; } /* secondary: white fill + border, so it stays visible on grey panels */
.btn:hover { filter: brightness(.97); border-color: var(--ink); }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn.block { width: 100%; }
/* Sign in with Apple (kit LoginButton): Apple's black button style, the same in light and dark. */
.btn.apple { background: #000; border-color: #000; color: #fff; }
.btn.apple:hover { filter: brightness(1.25); border-color: #000; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
/* Quiet text button ("아이 추가", "건너뛰기"): body-size text, no box. .btn.quiet is a small outlined secondary button. */
button.quiet { background: none; border: 0; color: var(--text-2); min-height: 2.75rem; padding: 0 var(--s2); font-weight: 600; font-size: var(--t-sm); line-height: 1.4; }
button.quiet:hover { color: var(--ink); }
.btn.quiet { min-height: 2.75rem; padding: 0 var(--s4); border: 1px solid var(--rule); background: var(--surface); color: var(--text-2); font-size: var(--t-sm); }
.btn.quiet:hover { color: var(--ink); border-color: var(--line-strong); filter: none; }
/* Icon-only close/remove (the × glyph, named by aria-label): the glyph is large. Its real use; text buttons above keep the body size. */
button.quiet:where([aria-label]:not(.btn)) { min-width: 2.75rem; padding: 0; font-size: var(--t-h2); font-weight: 400; line-height: 1; }
button.link { background: none; border: 0; padding: 0; min-height: 2.75rem; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.row-actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin: var(--s4) 0 0; }

/* ---------- Result: tinted flat card, the focus of the first screen ---------- */
.result { margin-top: var(--s6); padding: var(--s5); background: var(--accent-weak); border-radius: var(--r2); border: 1px solid var(--accent-weak); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s4); }
.result .label { color: var(--text-2); font-weight: 600; min-width: 4rem; }
.result .big { font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); line-height: 1.2; font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
/* A sentence (not a number) as the result: smaller so it wraps calmly on a phone. */
.result .big.sentence, .sec > .big.sentence { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); line-height: 1.4; letter-spacing: -.01em; }
.result .alt { color: var(--text-2); }

/* ---------- List rows: bold left, gray right ---------- */
.list-head { margin: var(--s6) 0 var(--s2); font-size: var(--t-sm); font-weight: 700; color: var(--text-2); }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.list > li:last-child { border-bottom: 1px solid var(--rule); }
.list .k { flex: none; max-width: 60%; color: var(--text-2); } /* the key keeps its width; a long value wraps instead of squeezing the key */
.list .v { min-width: 0; text-align: right; font-weight: 700; }
/* A list item marked .stack is a vertical group (title, then controls), not a key/value row. */
.list > li.stack { display: block; }
.list > li.stack > * + * { margin-top: var(--s3); }
.badge { display: inline-block; flex: none; max-width: 100%; padding: 0 var(--s3); border-radius: 999px; background: var(--accent-weak); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); font-size: var(--t-cap); font-weight: 700; line-height: 1.8; white-space: normal; }
/* Badge text is the accent darkened 20% toward ink: plain accent on accent-weak was 4.0–4.4:1 for default·teal·green·orange·red (Lighthouse color-contrast, benefit-note·scholar-radar 2026-11-26); now 5.2:1 or more for every tone. */
/* A badge holding a sentence: wraps as a rounded box inside its parent instead of pushing a 360px page sideways (diagram-desk, aptitude-drill QA 2026-11-26). */
.badge.wrap { border-radius: var(--r1); padding: var(--s1) var(--s3); line-height: 1.5; }
.nowrap { white-space: nowrap; }
.badge.warn { background: var(--err-weak); color: var(--err); }

/* ---------- Guide rows and tables ---------- */
.guide { margin: 0; border-top: 1px solid var(--rule); }
.guide > div { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.guide dt { font-weight: 700; font-size: var(--t-lg); }
.guide dd { margin: var(--s2) 0 0; color: var(--text-2); max-width: 42rem; line-height: 1.75; }
.plain { margin: 0; padding-left: 1.25rem; max-width: 42rem; color: var(--text-2); }
.plain li { margin: var(--s3) 0; padding-left: var(--s1); }
.table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); border-top: 1px solid var(--rule); }
@media (max-width: 47.99rem) { .table { display: block; overflow-x: auto; } }
.table th, .table td { border-bottom: 1px solid var(--rule); padding: var(--s3) var(--s3) var(--s3) 0; text-align: left; vertical-align: top; }
.table th { color: var(--text-2); font-weight: 700; white-space: nowrap; }
.table th[scope='row'] { white-space: normal; min-width: 5em; } /* row headers wrap on a phone instead of crushing the value columns */
.table td.num, .table th.num { text-align: right; }
/* Numbers never break mid-value (47:3|0); the last column ends on the table edge; captions read as a left-aligned label, not a centered native caption. */
.table td.num, .table th.num { white-space: nowrap; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table th a, .table td a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.table caption { caption-side: top; text-align: left; padding: 0 0 var(--s2); color: var(--text-2); font-size: var(--t-sm); font-weight: 600; }
/* A wrapper that scrolls keeps the table a real table (full width, aligned columns) instead of the display:block fallback. */
.tablewrap, .table-wrap, .scroll-x { overflow-x: auto; }
.tablewrap > .table, .table-wrap > .table, .scroll-x > .table { display: table; width: 100%; }
.tablewrap + p, .table-wrap + p, .scroll-x + p, .table + p { margin-top: var(--s3); }
/* A big figure on a data page (outside .result) gets the same weight as a result number. */
.sec > .big { display: block; margin: 0 0 var(--s3); font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); line-height: 1.2; font-weight: 700; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* An empty result (input error shown next to the field) collapses instead of showing a blank tinted box. It stays in the tree so an aria-live result still announces when it fills. */
.result:empty { padding: 0; margin: 0; border: 0; background: none; min-height: 0; }
/* Hints sit a small step below the input they explain, never flush against it. */
.field > .hint, .fields label > .hint { margin: var(--s2) 0 0; }
.fields + .hint { margin-top: var(--s3); }
.result + p { margin-top: var(--s3); }
/* Plain definition lists (outside .guide): term bold, description muted, no browser indent. */
dl { margin: 0 0 var(--s4); }
dt { font-weight: 700; color: var(--ink); }
dd { margin: var(--s1) 0 var(--s3); color: var(--text-2); }

.ad { margin: var(--s6) 0 var(--s4); }
.ad-label { margin: 0 0 var(--s1); color: var(--text-3); font-size: var(--t-cap); }

/* ---------- Footer (multi-column) ---------- */
.foot { background: var(--fill); border-top: 1px solid var(--rule); color: var(--text-2); font-size: var(--t-sm); line-height: 1.7; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: var(--s7) var(--s5) var(--s6); }
.foot-cols { display: grid; gap: var(--s6) var(--s5); grid-template-columns: 1fr; padding-bottom: var(--s6); border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) { .foot-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-brand { margin: 0 0 var(--s2); color: var(--ink); font-weight: 800; font-size: var(--t-lg); }
.foot-col h2 { margin: 0 0 var(--s2); font-size: var(--t-sm); font-weight: 700; color: var(--ink); letter-spacing: 0; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text-2); text-decoration: none; }
.foot-col a:hover { color: var(--accent); text-decoration: underline; }
.foot-info { padding-top: var(--s5); font-size: var(--t-cap); }
.foot-info p { margin: var(--s1) 0; }
.foot-info a { color: var(--text-2); }
.foot-info a strong { color: var(--ink); }

/* ---------- Legacy footer and legal pages (unchanged) ---------- */
.footer { max-width: 44rem; margin: 0 auto; padding: var(--s5) var(--s4) var(--s7); color: var(--text-3); font-size: var(--t-cap); line-height: 1.7; }
.footer p { margin: var(--s1) 0; }
.footer a { color: var(--text-2); }
.footer a strong { color: var(--ink); }
.legal h1, .legal h2, .legal h3 { line-height: 1.4; }
.legal table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--rule); padding: var(--s2) var(--s3); text-align: left; vertical-align: top; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.teaser { margin-top: var(--s7); }

/* ---------- Service icon in the header mark (hand-drawn glyph, white on the service colour) ---------- */
.brand-mark svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* tap-target pass (2026-11-20): link chips in lists reach 44px */
.plain a, .guide a, .chips a, .links a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* 404 page (app/global-not-found.tsx) */
.nf-links p { margin: 0; }

/* Print: the hero overlap pulls the first card up by a negative margin; on paper that cuts the top of page 1. */
@media print {
  .overlap + .wrap .cols { margin-top: 0; padding-top: 0; }
}

/* One-line notice (NoticeLine.tsx, owner rule 2026-11-27): small grey text, link in the service colour without underline. */
.notice-line { color: var(--text-2); font-size: var(--t-sm); line-height: 1.6; margin: var(--s3) 0 0; }
.notice-line a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.notice-line a:hover { text-decoration: underline; }
.notice-line + .notice-line { margin-top: var(--s1); }

/* ---------- Mobile: Toss-style plain (owner 2026-11-29/30: "깔끔 담백", mobile-first readability & hierarchy) ---------- */
html, body { overflow-x: clip; }
img, video, canvas, iframe { max-width: 100%; }
.tablewrap, .table-wrap, .scroll-x { -webkit-overflow-scrolling: touch; }
@media (max-width: 47.99rem) {
  body { background: var(--fill); }
  .head-in { height: 3.5rem; padding: 0 var(--s4); gap: var(--s2); }
  .brand-mark { width: 1.75rem; height: 1.75rem; border-radius: .5rem; }
  .brand-mark svg { width: 1.1rem; height: 1.1rem; }
  .band { background: var(--fill); border-bottom: 0; }
  .band-in { padding: var(--s5) var(--s4) var(--s3); }
  .band.overlap .band-in { padding-bottom: var(--s3); }
  .band h1 { font-size: 1.5rem; line-height: 1.35; margin-bottom: var(--s2); word-break: keep-all; text-wrap: balance; }
  .band .lede { font-size: var(--t-sm); line-height: 1.55; word-break: keep-all; }
  .eyebrow { display: none; }
  .wrap { padding: 0 var(--s4); }
  .cols { gap: var(--s4); padding: var(--s2) 0 var(--s6); }
  .overlap + .wrap .cols { margin-top: 0; padding-top: var(--s2); }
  .panel { border: 0; border-radius: var(--r2); padding: var(--s5) var(--s4); }
  .panel + .sec, .panel + .panel, .panel + section { margin-top: var(--s4); }
  .sec { margin-bottom: var(--s5); }
  .sec > h2 { font-size: 1.25rem; margin-bottom: var(--s3); }
  .stack > * + * { margin-top: var(--s5); }
  .fields { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .field { margin-bottom: var(--s4); min-width: 0; }
  input, select, textarea { min-height: 3.25rem; padding: var(--s3) var(--s4); font-size: var(--t-body); }
  textarea { min-height: 9rem; resize: none; }
  .btn { min-height: 3.25rem; padding: var(--s3) var(--s4); }
  .row-actions { gap: var(--s2); margin-top: var(--s4); }
  .row-actions + .hint { margin-top: var(--s2); }
  .row-actions > .btn { flex: 1 1 auto; min-width: 0; }
  .result { flex-direction: column; align-items: flex-start; gap: var(--s1); margin-top: var(--s5); padding: var(--s4) var(--s5); }
  .result .big { font-size: clamp(1.875rem, 7vw, 2.5rem); word-break: break-word; }
  .list > li { align-items: center; gap: var(--s3); min-height: 3.25rem; padding: var(--s3) 0; }
  .chips { gap: var(--s2); margin-bottom: var(--s4); }
  .chips button { padding: 0 var(--s3); font-size: var(--t-sm); }
  .teaser { margin-top: var(--s4); background: var(--surface); border-radius: var(--r2); padding: var(--s5) var(--s4); }
  .teaser > h2 { font-size: 1.125rem; margin-bottom: var(--s3); }
  .acc summary { font-size: var(--t-body); min-height: 3.25rem; padding: var(--s3) 0; }
  .side, .related { display: none; }
  .foot { background: var(--fill); border-top: 1px solid var(--rule); }
  .foot-cols { display: none; } /* legal links stay in .foot-info's last line */
  .foot-in { padding: var(--s5) var(--s4); }
  .foot-info { padding-top: 0; font-size: var(--t-cap); }
}
/* Store app WebView (gate script sets data-app on <html>): the native shell has its own tabs, so drop web-only extras at any width. */
[data-app] .side, [data-app] .related, [data-app] .foot-cols, [data-app] .nav .nav-cta, [data-app] .head-tools .pill, [data-app] .teaser, [data-app] .site-head, [data-app] .foot { display: none; }
/* Mobile "자세히" fold (More.tsx): desktop shows the body and no button; mobile folds the body (still in the HTML). */
.more-btn { display: none; }
@media (max-width: 47.99rem) {
  .more-btn { display: inline-flex; align-items: center; }
  .more:not(.is-open) > .more-body { display: none; }
}

/* sign-out confirm (kit AccountMenu <dialog>) */
.modal { width: min(20rem, calc(100vw - 2rem)); padding: var(--s5); border: 1px solid var(--rule); border-radius: 1.25rem; background: var(--surface); color: var(--ink); }
.modal::backdrop { background: rgba(0, 0, 0, .4); }
.modal-q { margin: 0 0 var(--s5); font-weight: 700; font-size: var(--t-lg); text-align: center; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.modal-actions .btn { min-height: 2.75rem; width: 100%; }

/* ---------- v5 app mode (2026-11-29, reports/app-design-research-2026-11-29.md) ----------
   Inside the store app the page should read like a native screen (HIG / Material 3 / Toss-style):
   grey canvas + white grouped cards, 16px side gutter, one large title, no web chrome the native shell already gives. */
[data-app] body { background: var(--fill); }
[data-app] .lang { display: none; }                       /* language switch lives in the app settings, not every screen */
[data-app] .head-in { height: 3.25rem; }
[data-app] .band { background: var(--fill); border-bottom: 0; }
[data-app] .band-in { padding: var(--s5) var(--s4) var(--s3); }
[data-app] .band h1 { font-size: 1.5rem; line-height: 1.35; margin-bottom: var(--s2); word-break: keep-all; text-wrap: balance; } /* one large title, ~24px */
[data-app] .band .lede { font-size: var(--t-sm); line-height: 1.55; word-break: keep-all; }
[data-app] .band.overlap .band-in { padding-bottom: var(--s5); }
[data-app] .overlap + .wrap .cols { margin-top: 0; }
[data-app] .wrap { padding: 0 var(--s4); }
[data-app] .panel, [data-app] main.legal, [data-app] main:not([class]) { border: 0; border-radius: var(--r2); background: var(--surface); }
[data-app] .foot { background: var(--fill); }

/* My page link: always the rightmost item of the header (owner rule 2026-11-29). In the store app the native tab bar carries it instead. */
.acct { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; flex: none; }
.acct:hover { border-color: var(--ink); }
[data-app] .acct { display: none; }

/* ---------- Toss-style Picker Row & Bottom Sheet (2026-12-01 mobile UX overhaul) ---------- */
.picker-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); width: 100%; min-height: 3.5rem; padding: var(--s3) var(--s4); background: var(--fill); border: 1px solid transparent; border-radius: var(--r1); color: var(--ink); text-align: left; font-weight: 600; font-size: var(--t-body); transition: border-color .15s, background-color .15s; }
.picker-row:hover { border-color: var(--line-strong); }
.picker-row:active { background: var(--rule); }
.picker-row-k { color: var(--text-2); font-size: var(--t-sm); font-weight: 600; flex: none; }
.picker-row-v { flex: 1; min-width: 0; text-align: right; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-row-chev { flex: none; width: .5rem; height: .5rem; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(-45deg); margin-left: var(--s1); }

.bs-backdrop { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--ink) 45%, transparent); display: flex; align-items: flex-end; justify-content: center; overscroll-behavior: contain; animation: bs-fade .18s ease-out; }
.bs-sheet { width: 100%; max-width: 34rem; max-height: 85dvh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-radius: 1.25rem 1.25rem 0 0; border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); overscroll-behavior: contain; animation: bs-up .22s cubic-bezier(.22, 1, .36, 1); transition: transform .2s ease-out; }
.bs-drag { touch-action: none; flex: none; }
@keyframes bs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bs-up { from { transform: translateY(2.5rem); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bs-backdrop, .bs-sheet { animation: none; transition: none; } }
.bs-handle { width: 2.5rem; height: .25rem; border-radius: 999px; background: var(--line-strong); margin: var(--s3) auto var(--s1); flex: none; }
.bs-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s5) var(--s3); border-bottom: 1px solid var(--rule); flex: none; }
.bs-title { margin: 0; font-size: var(--t-lg); font-weight: 700; color: var(--ink); }
.bs-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: var(--s3) var(--s4); overscroll-behavior: contain; }
.bs-foot { display: flex; gap: var(--s2); padding: var(--s3) var(--s4) var(--s4); border-top: 1px solid var(--rule); flex: none; }
.bs-foot .btn { flex: 1 1 0; min-height: 3.25rem; }
.bs-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.bs-opt { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); width: 100%; min-height: 3.25rem; padding: var(--s3) var(--s4); border: 0; border-radius: var(--r1); background: transparent; color: var(--ink); text-align: left; font-size: var(--t-body); font-weight: 600; }
.bs-opt:hover { background: var(--fill); }
.bs-opt[aria-selected='true'], .bs-opt[aria-pressed='true'] { background: var(--accent-weak); color: var(--accent); font-weight: 700; }
.bs-opt-check { flex: none; font-size: var(--t-sm); font-weight: 700; color: var(--accent); }
@media (min-width: 48rem) {
  .bs-backdrop { align-items: center; padding: var(--s5); }
  .bs-sheet { border-radius: 1.25rem; border: 1px solid var(--rule); max-height: 75vh; }
}

/* ---------- Mobile & App home simplification: fold long SEO explanation walls behind one "이용 방법" button ---------- */
.home-guide-btn { display: none; }
@media (max-width: 47.99rem) {
  .home-extra, .home-about, .web-only, .teaser { display: none; }
  .home-guide-btn { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 3.5rem; margin-top: var(--s4); padding: var(--s3) var(--s5); background: var(--surface); border-radius: var(--r2); color: var(--ink); font-weight: 600; font-size: var(--t-body); text-decoration: none; }
  .home-guide-btn:active { background: var(--fill); }
}
[data-app] .home-extra, [data-app] .home-about, [data-app] .web-only, [data-app] .teaser { display: none; }
[data-app] .home-guide-btn { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 3.5rem; margin-top: var(--s4); padding: var(--s3) var(--s5); background: var(--surface); border-radius: var(--r2); color: var(--ink); font-weight: 600; font-size: var(--t-body); text-decoration: none; }
[data-app] .home-guide-btn:active { background: var(--fill); }

/* ---------- Quick one-tap presets, login benefits, skeleton & toast ---------- */
.quick-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0 var(--s3); }
.quick-chip { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 var(--s3); border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: var(--t-cap); font-weight: 600; white-space: nowrap; transition: border-color .15s, background-color .15s, color .15s; }
.quick-chip:hover, .quick-chip:active { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); }
.quick-chip[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); font-weight: 700; }
.benefit-list { list-style: none; margin: var(--s4) 0; padding: var(--s3) var(--s4); background: var(--fill); border-radius: var(--r1); display: grid; gap: var(--s2); }
.benefit-list li { display: flex; align-items: baseline; gap: var(--s2); font-size: var(--t-sm); color: var(--ink); line-height: 1.5; }
.benefit-list li::before { content: '•'; color: var(--accent); font-weight: 800; flex: none; }
.skel { display: block; height: 1rem; border-radius: var(--r1); background: var(--fill); animation: skel-pulse 1.4s ease-in-out infinite; }
.skel-lg { height: 3.25rem; }
@keyframes skel-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
