:root {
  --paper: #ffffff;
  --ink: #191c20;
  --body: #444950;
  --muted: #636970;
  --surface: #f4f5f6;
  --surface-dark: #22262c;
  --line: #e2e5e8;
  --line-strong: #b4b9c0;
  --error: #a32b2b;
  --error-surface: #fff6f5;
  --maxw: 1200px;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --fs-display: clamp(40px, 4.3vw, 62px);
  --fs-heading: clamp(28px, 3vw, 40px);
  --fs-subheading: 24px;
  --fs-title: 22px;
  --fs-lead: 19px;
  --fs-body: 17px;
  --fs-input: 16px;
  --fs-label: 15px;
  --fs-small: 14px;
  --fs-meta: 13px;
  --fs-number: 56px;
  --radius: 16px;
  --radius-control: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
html { scroll-padding-bottom: calc(var(--action-dock-height, 88px) + 20px); }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.75; letter-spacing: -.016em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 5px; }
img { max-width: 100%; display: block; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--ink); font-style: normal; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: var(--fs-display); font-weight: 760; line-height: 1.2; }
h2 { font-size: var(--fs-heading); font-weight: 730; line-height: 1.35; }
h3 { font-size: var(--fs-title); font-weight: 680; line-height: 1.5; }
p + p { margin-top: 16px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { touch-action: manipulation; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--ink); color: var(--paper); border-radius: var(--radius-control); }
.skip:focus { top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 54px; padding: 14px 22px; border: 1px solid var(--ink); border-radius: var(--radius-control); background: var(--ink); color: var(--paper); font-size: var(--fs-label); font-weight: 650; line-height: 1.5; text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
.btn svg { flex: 0 0 20px; width: 20px; height: 20px; }
.btn:hover { background: var(--body); border-color: var(--body); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; background: var(--surface); color: var(--muted); border-color: var(--line); }
.text-link { display: inline-flex; gap: 10px; align-items: center; min-height: 48px; color: var(--ink); font-size: var(--fs-label); font-weight: 600; text-decoration: none; }
.text-link svg { width: 18px; height: 18px; }
.text-link:hover { text-decoration: underline; }
.preview-notice { padding: 8px 24px; background: var(--surface); color: var(--muted); text-align: center; font-size: var(--fs-meta); line-height: 1.6; }
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: var(--fs-lead); font-weight: 800; letter-spacing: -.04em; white-space: nowrap; text-decoration: none; }
.navlinks { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: var(--fs-label); font-weight: 550; white-space: nowrap; }
.navlinks a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.navlinks a:hover, .navlinks a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 8px; }
.ext { display: flex; gap: 22px; border-left: 1px solid var(--line); padding-left: 24px; }
.menubtn { display: none; width: 44px; height: 44px; padding: 0; margin-left: auto; border: 0; border-radius: var(--radius-control); background: var(--surface); position: relative; cursor: pointer; }
.menubtn span, .menubtn:before, .menubtn:after { content: ''; position: absolute; left: 12px; width: 20px; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menubtn:before { top: 15px; }.menubtn span { top: 21px; }.menubtn:after { top: 27px; }
.menubtn[aria-expanded=true]:before { transform: translateY(6px) rotate(45deg); }
.menubtn[aria-expanded=true] span { opacity: 0; }
.menubtn[aria-expanded=true]:after { transform: translateY(-6px) rotate(-45deg); }
.section { padding-block: 96px; }
footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
footer p { font-size: var(--fs-meta); margin-top: 6px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: var(--fs-meta); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface); border-color: var(--muted); }
.site-footer { margin-top: 0; }
.has-action-dock { padding-bottom: var(--action-dock-height, 88px); }
.action-dock { position: fixed; inset: auto 0 0; z-index: 45; background: var(--paper); border-top: 1px solid var(--line); padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.action-dock-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.action-dock-copy strong { display: block; color: var(--ink); font-size: var(--fs-label); font-weight: 650; }
.action-dock-copy span { display: block; font-size: var(--fs-meta); color: var(--muted); margin-top: 2px; }
.action-dock-links { display: flex; gap: 10px; flex-shrink: 0; }
.action-dock[data-purpose="learn"] .action-dock-links { grid-template-columns: 1fr; }
.action-dock .btn { min-height: 48px; padding: 10px 20px; gap: 16px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-block: 28px; }
#apply:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 5px; }
.preference-page { min-height: 100dvh; background: var(--surface); }
.preference-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 640px; margin-inline: auto; padding: 20px 24px; }
.preference-header > span { font-size: var(--fs-small); color: var(--muted); }
.preference-shell { max-width: 640px; padding: 32px 24px 64px; margin-inline: auto; }
.preference-panel { padding: 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.preference-eyebrow { font-size: var(--fs-small); color: var(--muted); margin-bottom: 20px; }
.preference-panel h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.4; }
.preference-description { font-size: var(--fs-body); line-height: 1.85; margin-top: 24px; }
.preference-note { font-size: var(--fs-small); color: var(--muted); line-height: 1.8; margin-top: 20px; }
.preference-panel form, .preference-panel > .btn { margin-top: 28px; }
.preference-panel .btn { width: 100%; font-size: var(--fs-input); }
.preference-home { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 24px; color: var(--ink); font-size: var(--fs-label); }
.preference-help { margin-top: 24px; color: var(--muted); font-size: var(--fs-small); line-height: 1.8; }
@media (max-width: 960px) {
  .menubtn { display: block; }
  .nav-inner { height: 68px; }
  .navlinks { display: none; position: absolute; left: 0; right: 0; top: 100%; align-items: stretch; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100dvh - 68px); overflow: auto; }
  .navlinks.open { display: flex; }
  .navlinks a { min-height: 52px; padding-inline: 8px; }
  .navlinks > a + a { border-top: 1px solid var(--line); }
  .ext { flex-direction: column; gap: 0; padding: 8px 0 0; margin-top: 8px; border-left: 0; border-top: 1px solid var(--line); }
  .desktop-break { display: none; }
}
@media (max-width: 760px) {
  :root { --fs-display: clamp(32px, 8.7vw, 42px); --fs-heading: 28px; --fs-subheading: 24px; --fs-title: 21px; --fs-lead: 18px; --fs-body: 16px; --fs-number: 40px; --radius: 12px; }
  html { scroll-padding-top: 88px; }
  .wrap { padding-inline: 24px; }
  .preference-shell { padding-top: 16px; }
  .preference-panel { padding: 28px 24px; }
  .preview-notice { padding: 8px 24px; text-align: left; }
  .section { padding-block: 56px; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 18px; gap: 8px 24px; }
  .action-dock { padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .action-dock-copy { display: none; }
  .action-dock[data-purpose="learn"] .btn { font-size: 16px; }
  .action-dock-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .action-dock .btn { min-height: 50px; padding-inline: 12px; gap: 10px; font-size: var(--fs-label); }
}
@media (max-width: 380px) { .wrap { padding-inline: 20px; } .action-dock .btn svg { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition-duration: 0s !important; animation-duration: 0s !important; } }
@media print { .nav, .action-dock, .preview-notice { display: none !important; } .has-action-dock { padding-bottom: 0; } }
