/* PROT site: shared styles (dark theme tokens, base, floating header, buttons, plans, documents, footer) */
:root {
  color-scheme: dark;
  --bg: #08090B;
  --bg-2: #0E0F12;
  --surface: #131418;
  --surface-2: #1A1B20;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #F5F6F7;
  --ink-2: #C9CCD2;
  --muted: #8A8F98;
  --brand: #F54336;
  --brand-deep: #C8261B;
  --brand-glow: rgba(245, 67, 54, .35);
  --ok: #3DD68C;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px -20px rgba(0, 0, 0, .6);
  --nav-h: 76px;
  --gap-section: 88px;
}
@media (min-width: 1024px) {
  :root { --gap-section: 144px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--ink); }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: rgba(245, 67, 54, .4); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { position: relative; padding: var(--gap-section) 0; }
.section-gray, .section-alt { background: var(--bg-2); }
.key { color: var(--brand); }
.nw { white-space: nowrap; }
.tbd { display: inline-block; padding: 0 .4em; border-radius: 4px; background: #FFF4D6; color: #6E4A00; font-size: .95em; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Typography: tabular numerals instead of a mono face */
.label { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-feature-settings: "tnum"; }
.title { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.14; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.lead { margin-top: 22px; max-width: 34em; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); }
.caption { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.ln { font-feature-settings: "tnum"; }

/* ---------- Buttons (primary: deep red + inset highlight; line: hairline) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s, border-color .3s, box-shadow .3s var(--ease);
}
.btn-primary { background: var(--brand-deep); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 0 0 1px rgba(245, 67, 54, .35), 0 6px 22px -10px var(--brand-glow); }
.btn-primary:hover { background: #DC3226; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 1px rgba(245, 67, 54, .55), 0 10px 40px -6px var(--brand-glow); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.btn-line:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .24); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header: floating pill, hides on scroll down ---------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; pointer-events: none; transition: transform .5s var(--ease); }
.nav.is-hidden { transform: translateY(-150%); }
.nav .nav-inner {
  pointer-events: auto; position: relative;
  width: min(1200px, 100% - 24px); height: 56px; margin-inline: auto; padding: 0 6px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: rgba(8, 9, 11, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 40px -16px rgba(0, 0, 0, .7);
  transition: background-color .3s, border-color .3s;
}
.nav.scrolled .nav-inner { background: rgba(8, 9, 11, .84); border-color: var(--line-2); }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { width: auto; height: 20px; }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; color: var(--ink); }
.menu summary::before { content: "메뉴"; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--surface-2); }
.menu-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.menu-panel a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--surface-2); }
@media (min-width: 900px) {
  .menu summary { display: none; }
  .menu-panel { left: 50%; right: auto; top: 50%; display: flex; gap: 6px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; transform: translate(-50%, -50%); white-space: nowrap; }
  .menu-panel a { min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .25s, color .25s; }
  .menu-panel a:hover { color: var(--ink); }
  .menu-panel a[aria-current="page"] { color: var(--ink); }
}
/* no JS on narrow screens: header scrolls with the page and the links stay visible in a second row */
@media (max-width: 899px) {
  .no-js .nav { position: absolute; }
  .no-js .nav .nav-inner { height: auto; min-height: 56px; flex-wrap: wrap; border-radius: 28px; padding: 6px 6px 8px 20px; }
  .no-js .nav-right { display: contents; }
  .no-js .nav-right > .btn { order: 1; }
  .no-js .menu { order: 2; flex-basis: 100%; }
  .no-js .menu summary { display: none; }
  .no-js .menu-panel { position: static; display: flex; flex-wrap: wrap; padding: 0; background: none; border: 0; box-shadow: none; }
  .no-js .menu-panel a { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .no-js .hero, .no-js .page-head { padding-top: calc(var(--nav-h) + 72px); }
}

/* ---------- Spotlight border (pointer devices only; --mx/--my set by JS) ---------- */
.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 67, 54, .85), rgba(245, 67, 54, 0) 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s;
}
.spot:hover::before { opacity: 1; }
@media (hover: none) { .spot::before { display: none; } }

/* ---------- Plan cards (landing compare + pricing page) ---------- */
.plans { position: relative; display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px 30px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.plan--rec { box-shadow: 0 0 0 1px rgba(245, 67, 54, .6), inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px -20px rgba(245, 67, 54, .22); }
.plans.is-ready .plan--rec:not(.is-match) { box-shadow: var(--shadow); }
.plans.is-ready .plan.is-match { box-shadow: 0 0 0 1px transparent, inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 90px -24px var(--brand-glow); }
.plan-ring {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; border-radius: var(--radius-lg); padding: 1.5px;
  background: linear-gradient(135deg, var(--brand) 0%, rgba(245, 67, 54, .25) 48%, var(--brand-deep) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: transform .65s var(--ease-out-expo), width .65s var(--ease-out-expo), height .65s var(--ease-out-expo), opacity .3s;
}
.plan-tag { min-height: 26px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--brand); }
.plan h3 { margin-top: 2px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.plan-for { margin-top: 2px; color: var(--muted); font-size: 14px; }
.plan-price { margin-top: 22px; font-feature-settings: "tnum"; }
.plan-price strong { font-size: 38px; line-height: 1.15; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.plan-price span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.plan-list { margin: 24px 0 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan-list li { position: relative; padding-left: 18px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 2px; background: var(--brand); }
.plan .btn { margin-top: auto; }
.plan-note { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; color: var(--ink-2); }
.plan-note a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 4px; }

/* ---------- Document pages (pricing / terms / refund / privacy) ---------- */
.page-head { padding: calc(var(--nav-h) + 44px) 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 50% 130%, rgba(245, 67, 54, .10), transparent 70%); }
.crumb { font-size: 14px; font-weight: 500; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.page-head h1 { margin-top: 14px; font-size: clamp(32px, 5vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; }
.page-head p { margin-top: 16px; max-width: 38em; color: var(--ink-2); }
.page-head p.crumb { margin-top: 0; color: var(--muted); }
.page-head .meta { font-size: 14px; color: var(--muted); }
@media (min-width: 1024px) { .page-head { padding: calc(var(--nav-h) + 72px) 0 64px; } }
@media (min-width: 1024px) { body:has(.doc-layout) .page-head .container.narrow { width: min(1052px, 100% - 40px); } }

.doc-layout { width: min(1200px, 100% - 40px); margin-inline: auto; padding: 36px 0 var(--gap-section); }
.doc-wrap { width: 100%; max-width: 720px; margin-inline: auto; font-size: 16px; line-height: 1.85; }
.doc-wrap > section { padding-top: 40px; }
.doc-wrap > section:first-child { padding-top: 0; }
.doc-wrap h2 { font-size: clamp(20px, 3.4vw, 26px); line-height: 1.35; font-weight: 700; letter-spacing: -.025em; }
.doc-wrap section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
.doc-wrap h3 { margin-top: 22px; font-size: 17px; font-weight: 700; }
.doc-wrap p, .doc-wrap li { color: var(--ink-2); }
.doc-wrap h2 + p, .doc-wrap h2 + ol, .doc-wrap h2 + ul, .doc-wrap h2 + .table-wrap { margin-top: 14px; }
.doc-wrap p + p { margin-top: 10px; }
.doc-wrap .table-wrap + p, .doc-wrap .table-wrap + ul { margin-top: 14px; }
.doc-wrap p + ol, .doc-wrap p + ul, .doc-wrap ol + p, .doc-wrap ul + p { margin-top: 10px; }
.doc-wrap ol { list-style: decimal; padding-left: 1.5em; }
.doc-wrap ul { list-style: disc; padding-left: 1.3em; }
.doc-wrap li::marker { color: var(--muted); }
.doc-wrap li { margin-top: 6px; padding-left: 2px; }
.doc-wrap li > ol, .doc-wrap li > ul { margin-top: 6px; }
.doc-wrap ol.alpha { list-style: hangul; }
.doc-wrap a { color: #FF7A70; text-underline-offset: 3px; }
.doc-wrap a:hover { color: #fff; }
.doc-wrap strong { color: var(--ink); }
.doc-wrap .key-line { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.doc-wrap .key-line strong { font-weight: 700; }

.toc { padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 28px; }
.toc h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin-top: 10px; list-style: none; padding: 0; display: grid; gap: 0 24px; font-size: 14px; }
@media (min-width: 640px) { .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toc li { margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--brand); font-weight: 600; }
@media (min-width: 1024px) {
  .doc-layout { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 0 72px; justify-content: center; align-items: start; padding-top: 56px; }
  .doc-side { position: sticky; top: calc(var(--nav-h) + 12px); max-height: calc(100vh - var(--nav-h) - 36px); overflow-y: auto; overscroll-behavior: contain; }
  .doc-side .toc { margin: 0; padding: 4px 0 4px; border: 0; background: none; }
  .doc-side .toc ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc-side .toc a { min-height: 44px; padding: 2px 0 2px 14px; border-left: 1px solid var(--line); line-height: 1.4; }
  .doc-side .toc a[aria-current="true"] { border-left-color: var(--brand); }
}

/* reading progress (legal pages) */
.read-progress { position: fixed; left: 0; top: 0; right: 0; z-index: 60; height: 2px; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }

.table-wrap { overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table caption { text-align: left; padding-bottom: 10px; font-size: 13px; color: var(--muted); }
.doc-table th, .doc-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table thead th { border-bottom: 1px solid var(--line-2); font-weight: 600; white-space: nowrap; color: var(--ink); }
.doc-table tbody th { font-weight: 600; color: var(--ink); }
.doc-table td { color: var(--ink-2); }
.doc-table .c { text-align: center; }
@media (max-width: 639px) {
  .doc-table.stack, .doc-table.stack tbody, .doc-table.stack tr, .doc-table.stack th, .doc-table.stack td, .doc-table.stack caption { display: block; }
  .doc-table.stack thead { display: none; }
  .doc-table.stack tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .doc-table.stack th, .doc-table.stack td { padding: 2px 0; border: 0; }
  .doc-table.stack td::before { content: attr(data-label) " · "; color: var(--muted); font-weight: 600; }
}

/* narrow container + apply cards (pricing page) */
.container.narrow { width: min(880px, 100% - 40px); }
.container.narrow :is(dd, td) a, .container.narrow p:not(.crumb) a { color: #FF7A70; text-underline-offset: 3px; }
.container.narrow p:not(.crumb) a:hover, .container.narrow dd a:hover { color: #fff; }
.apply-list { margin-top: 28px; display: grid; gap: 12px; }
.apply-list li { display: grid; gap: 14px 20px; align-items: center; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.apply-list b { display: block; font-size: 18px; color: var(--ink); letter-spacing: -.02em; }
.apply-list span.s { display: block; color: var(--muted); font-size: 14px; }
@media (min-width: 640px) { .apply-list li { grid-template-columns: minmax(0, 1fr) auto; } }

/* key/value rows */
.spec { margin-top: 20px; border-top: 1px solid var(--line-2); }
.spec > div { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; color: var(--ink); }
.spec dd { color: var(--ink-2); }
@media (min-width: 768px) { .spec > div { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; } }

/* ---------- Process steps (plain list; landing adds a timeline rail) ---------- */
.flow { margin-top: 48px; display: grid; gap: 28px; }
.flow li { padding-top: 22px; border-top: 1px solid var(--line-2); }
.flow li:first-child { border-top-color: var(--brand); }
.flow .n { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--brand); font-feature-settings: "tnum"; }
.flow h3 { margin-top: 6px; font-size: 20px; letter-spacing: -.02em; }
.flow p { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 768px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Footer (identical markup on every page) ---------- */
.site-footer { position: relative; padding: 56px 0 60px; background: var(--bg-2); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.sf-inner { width: min(1200px, 100% - 40px); margin-inline: auto; display: grid; gap: 32px; }
.site-footer a { color: var(--ink); }
.sf-logo { display: inline-flex; align-items: center; min-height: 44px; }
.sf-logo img { width: auto; height: 20px; }
.sf-top { display: grid; gap: 8px; }
.sf-links { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; }
.sf-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .28); transition: text-decoration-color .2s; }
.sf-links a:hover { text-decoration-color: var(--brand); }
.sf-links strong { font-weight: 800; }
.sf-biz { display: grid; gap: 4px 40px; }
.sf-biz > div { display: grid; gap: 0; padding: 2px 0; }
@media (min-width: 640px) { .sf-biz > div { grid-template-columns: 10.6em minmax(0, 1fr); gap: 0 10px; } }
.sf-biz dt { color: rgba(245, 246, 247, .62); }
.sf-biz dd { color: var(--ink-2); }
.sf-biz .sf-ftc { display: inline-flex; align-items: center; min-height: 44px; margin-left: 8px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.sf-biz .sf-ftc:hover { background: var(--surface-2); }
.site-footer .tbd { background: rgba(255, 244, 214, .95); }
.sf-copy { padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: rgba(245, 246, 247, .62); }
@media (min-width: 900px) {
  .sf-biz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-top { grid-template-columns: auto 1fr; align-items: center; gap: 8px 48px; }
}

/* ---------- Reveal: hidden only while html.js-anim is set (inline bootstrap, 3s failsafe) ---------- */
.js-anim .reveal { opacity: 0; transform: translateY(24px); }
.js-anim .split-title, .js-anim .scrub-words { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
