:root { --ease: cubic-bezier(0.16,1,0.3,1); }
html { scroll-behavior: smooth; }
body { background: #E8EBEF; color: #0E1116; font-family: 'Inter', sans-serif; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* KO: Pretendard for Korean text (Space Grotesk has no hangul glyphs — it was
   silently falling back to the OS system font, mixing with JetBrains Mono numerals).
   Numbers/code stay in JetBrains Mono per .mono; keep-all stops mid-word breaks. */
html[lang="ko"] body { font-family: 'Pretendard Variable', 'Pretendard', 'Space Grotesk', sans-serif; word-break: keep-all; overflow-wrap: break-word; }
html[lang="ko"] .mono { font-family: 'JetBrains Mono', 'Pretendard Variable', monospace; }
/* Korean prose set in .mono (full sentences, not numeric/code labels) reads worse in
   JetBrains Mono -- punctuation/spacing was tuned for Latin, not hangul. Flip the
   priority only for elements explicitly marked .mono-prose (full Korean sentences);
   eyebrow labels, numerals and short tags still get JetBrains Mono first via the rule above. */
html[lang="ko"] .mono-prose { font-family: 'Pretendard Variable', 'JetBrains Mono', monospace; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3 { word-break: keep-all; }
h1, h2, h3, .display { font-family: 'Space Grotesk', sans-serif; font-weight: 400; }
.site-logo { font-family: 'Space Grotesk', sans-serif; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3 { font-family: 'Pretendard Variable', 'Pretendard', 'Space Grotesk', sans-serif; }
html[lang="ko"] .site-logo { font-family: 'Space Grotesk', sans-serif; }
.lang-switch a[data-active="true"] { color: #0E1116; font-weight: 600; }
/* AR: Space Grotesk has no Arabic glyphs; fall back to an Arabic-capable system stack. */
html[lang="ar"] body, html[dir="rtl"] body { font-family: 'Space Grotesk', 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif; }
html[lang="ar"] .mono, html[dir="rtl"] .mono { font-family: 'JetBrains Mono', 'Noto Sans Arabic', 'Segoe UI', Tahoma, monospace; }
.hairline { border-color: #7D8390; }
.divide-y.hairline > :not([hidden]) ~ :not([hidden]) { border-color: #7D8390; }
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(14,17,22,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,17,22,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}
.fade-mask-r { mask-image: linear-gradient(to right, black 85%, transparent 100%); }

/* ticker marquee - the one allowed marquee, used once per page max */
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 26s linear infinite; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.btn-primary {
  background: #10B981; color: #06130D; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 8px 20px -8px rgba(16,185,129,.45);
}
.btn-primary:hover { transform: translateY(-2px); background: #059669; box-shadow: 0 10px 26px -6px rgba(16,185,129,.55); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost { transition: border-color .3s var(--ease), color .3s var(--ease); }
.btn-ghost:hover { border-color: #10B981; color: #065F46; }
.btn-ghost:active { transform: scale(.98); }

.row-hover { transition: background-color .3s var(--ease); }
.row-hover:hover { background-color: rgba(14,17,22,0.035); }

.reveal { opacity: 0; transform: translateY(28px); }

.pill { transition: all .3s var(--ease); }
.pill[data-active="true"] { background: #059669; color: #06130D; border-color: #059669; }

/* track/thumb darkened from the base #10B981/rgba(14,17,22,.1) so the slider is
   perceivable as a component against the light page bg (WCAG 1.4.11, >=3:1) */
input[type=range] { -webkit-appearance: none; height: 2px; background: rgba(14,17,22,0.5); border-radius: 0; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; background: #059669; border-radius: 2px; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(5,150,105,0.2);
}
input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; background: #059669; border: none; border-radius: 2px; cursor: pointer;
}

/* Shared shell (header, mobile sheet, footer). Tokens: page #F2F4F6, card #E8EBEF, accent #065F46, 8px radii, 16px pill. */
.site-header { position: fixed; top: 0; left: 50%; z-index: 50; width: 100%; height: 56px; transform: translateX(-50%); background: #F2F4F6; border-bottom: 1px solid rgba(14,17,22,.1);
  transition: width .3s ease-out, top .3s ease-out, height .3s ease-out, border-radius .3s ease-out, background-color .3s ease-out; }
.site-header-in { padding: 0 16px; transition: padding .3s ease-out; }
.site-header[data-stuck] { background: #F2F4F6; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header[data-stuck] { background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
}
@media (min-width: 1024px) {
  .site-header { height: 84px; }
  .site-header-in { padding: 0 28px; }
  .site-header[data-stuck] { top: 24px; height: 68px; width: min(900px, calc(100% - 48px)); border: 1px solid rgba(14,17,22,.1); border-radius: 16px; }
  .site-header[data-stuck] .site-header-in { padding: 0 20px; }
}
.nav-link[aria-current="page"] { color: #065F46; }
.site-langmenu a, .site-sheet-langs a { border-radius: 4px; }
.site-langmenu a { padding: 8px 12px; }
.site-langmenu a:hover { background: #E8EBEF; }
.site-langmenu a[data-active="true"] { color: #065F46; font-weight: 500; }
.site-sheet-langs a { display: inline-flex; min-height: 40px; align-items: center; }
.site-sheet-langs a[data-active="true"] { color: #065F46; font-weight: 500; }
.btn-cta { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #065F46; color: #fff; font-weight: 500; font-size: 14px; transition: background-color .25s cubic-bezier(.4,0,.2,1); }
.btn-cta:hover { background: #054C39; }
.btn-cta-sm { height: 40px; padding: 0 16px; }
.btn-cta-lg { height: 48px; padding: 0 16px; font-size: 16px; }
.site-burger { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; background: #065F46; color: #fff; font-size: 22px; }
@media (min-width: 1024px) { .site-burger { display: none; } }
.site-burger .ic-x, .site-burger[aria-expanded="true"] .ic-list { display: none; }
.site-burger[aria-expanded="true"] .ic-x { display: inline; }
.site-sheet { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; overflow-y: auto; padding-top: 56px; background: #F2F4F6;
  transform: translateY(-100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
.site-sheet.open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.site-sheet-link { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.03em; }
html[lang="ko"] .site-sheet-link { font-family: 'Pretendard Variable', 'Pretendard', sans-serif; letter-spacing: -0.02em; }
.site-sheet-link[aria-current="page"] { color: #065F46; }
@media (min-width: 1024px) { .site-sheet { display: none; } }

.nav-link[data-active="true"] { color: #0E1116; }
.nav-link[data-active="true"]::after { content: ''; display: block; height: 1px; background: #10B981; margin-top: 4px; }

/* Banner A - fee flow infographic (stages connected by a rail + traveling token) */
.flow-track { position: relative; min-height: 1px; }
.flow-rail { position: absolute; left: 0; right: 0; top: 40px; height: 2px; background: #7D8390; z-index: 0; }
.flow-token {
  position: absolute; left: 0%; top: 40px; width: 10px; height: 10px;
  border-radius: 50%; background: #059669; box-shadow: 0 0 0 4px rgba(5,150,105,.18); z-index: 0;
  transform: translate(-50%, -50%);
}
/* opaque panel-colour fill masks the rail/token where they pass behind a stage's
   figures (OKX logo, $ amounts, split bar) - line + token only show in the gaps
   between stages, never crossing text. Matches ambient card bg so it's invisible. */
.flow-stage { position: relative; z-index: 1; background: #F2F4F6; }
.flow-arrow { color: #7D8390; font-size: 16px; flex: none; }
.split-ribbon { display: flex; height: 36px; border-radius: 2px; overflow: hidden; background: #E8EBEF; width: 100%; }
.split-seg { display: flex; align-items: center; justify-content: center; }
/* Separator is a structural divider + hatch texture, not colour alone, so the
   two segments read as two parts for colour-blind / grayscale viewers too. */
.split-seg-back { background: #059669; color: #06130D; box-shadow: inset -2px 0 0 0 #F2F4F6; }
.split-seg-cost {
  background-color: #7D8390;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.14) 0, rgba(0,0,0,.14) 2px, transparent 2px, transparent 8px);
  color: #0E1116;
}
@media (max-width: 1023px) {
  .flow-rail { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .flow-token { left: 50%; top: 0%; }
}

/* Banner B - UID/referral steps */
.flow-node rect { fill: #F2F4F6; stroke: #7D8390; }
.flow-node text { font-family: 'JetBrains Mono', monospace; }
/* KO labels in this SVG have no monospace glyphs to fall back on inside <text> (SVG
   font fallback doesn't reach the page-level Pretendard rule); state it explicitly. */
html[lang="ko"] .flow-node text { font-family: 'Pretendard Variable', 'JetBrains Mono', monospace; }
.uid-step { border: 1px solid #7D8390; background: #F2F4F6; transition: border-color .3s var(--ease), background .3s var(--ease); }
.uid-step[data-lit="true"] { border-color: #059669; background: rgba(16,185,129,.08); }
.uid-chip { border: 1px solid #059669; color: #065F46; }
.uid-dash-line { stroke: #10B981; stroke-dasharray: 4 4; fill: none; stroke-width: 1.5; }

/* Banner C - decision branches */
.branch-path { fill: none; stroke: #0E1116; stroke-opacity: .3; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.branch-path.mint { stroke: #10B981; stroke-opacity: .9; }

/* Banner D/E - payout timeline + exchange-statement card */
.payout-timeline { position: relative; display: flex; justify-content: space-between; gap: .5rem; margin-bottom: 1.5rem; }
.payout-timeline::before { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: #7D8390; }
.payout-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; flex: 1; text-align: center; }
.payout-dot { width: 12px; height: 12px; border-radius: 50%; background: #F2F4F6; border: 2px solid #7D8390; transition: background .3s var(--ease), border-color .3s var(--ease); }
.payout-node[data-done="true"] .payout-dot { background: #059669; border-color: #059669; }
.statement-card { border: 1px solid #7D8390; border-radius: 2px; overflow: hidden; }
.statement-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .9rem; background: #F2F4F6; border-bottom: 1px solid #7D8390; }
.statement-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .9rem; opacity: 0; transform: translateX(-12px); }
.statement-row:not(:last-child) { border-bottom: 1px solid rgba(125,131,144,.35); }
.statement-row[data-in="true"] { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }

/* Inline SVG icons (perf/assets-selfhost): replaces the phosphor-icons web font
   (ph-ic, sized/colored like the font glyphs it replaces: 1em square, inherits
   text color) and the simple-icons <img> logos (si-ic, fixed brand gray).
   No `display` override here on purpose: some of these icons also carry a
   Tailwind responsive display utility (hidden/lg:block on .flow-arrow); a
   same-specificity .ph-ic{display:...} loading after tailwind.css in the
   cascade would beat `.hidden` and un-hide a mobile-only-hidden icon. SVG is
   already a replaced element, so width/height/vertical-align apply the same
   under the browser's default `display: inline` -- no override needed. */
/* height: 1em matches the phosphor web font it replaces, which set its own
   `line-height: 1` directly on `.ph` -- i.e. the glyph's box was always exactly
   its own font-size tall, REGARDLESS of an ambient text-* utility's line-height
   on a parent (direct > inherited, so .ph's own line-height always won there).
   The one exception: an icon that carries a text-* size utility directly on
   itself (only text-xl happens sitewide -- grep `class="ph-ic [^"]*"` for
   `text-`) competes `.ph{line-height:1}` against `.text-xl{line-height:1.75rem}`
   at EQUAL specificity, and tailwind.css loaded after the phosphor stylesheet
   in every page's original <head>, so text-xl's line-height won there. Pixel-
   diff caught both directions: a plain 1em broke the (rarer) text-xl-on-icon
   case by 4px/icon; a blanket 1lh broke every ambient-only icon by the same
   amount the other way. Matching the cascade's own split is what makes both
   cases byte-identical again. */
.ph-ic { width: 1em; height: 1em; vertical-align: -0.125em; fill: currentColor; flex-shrink: 0; }
.ph-ic.text-xl { height: 1.75rem; }
.si-ic { vertical-align: -0.125em; flex-shrink: 0; }
/* Hero rates rows: the logo+name group is items-baseline so the BG/MX text marks
   (JetBrains Mono, a taller content box than Pretendard) share the name's baseline
   instead of being box-centred 5px low. The 28px SVG logo has no baseline, so it is
   self-center with a negative block offset (holds the group's line box at 24px, so
   the name stays level with the rate) and a 1px lift onto the name's cap centre.
   Measured in headless Chrome at 16px: logo ink centre vs name cap centre 6px off
   before, 0px after; name vs rate 0.5px. */
#hero-rates svg.si-ic { position: relative; top: -0.0625em; margin-block: -0.125rem; }
.ex-logo { display: inline-block; overflow: hidden; }
.ex-logo svg { width: 100%; height: 100%; display: block; }

/* Home body (PR2): hero card on faint grid, vanilla-JS phone, how-it-works art, FAQ. Tokens as the shell: page #F2F4F6, card #E8EBEF, 8px radii. */
body.home { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
.home-h { font-family: 'Space Grotesk', sans-serif; font-weight: 400; letter-spacing: -0.06em; line-height: 0.95; }
html[lang="ko"] .home-h { font-family: 'Pretendard Variable', 'Pretendard', 'Space Grotesk', sans-serif; letter-spacing: -0.04em; line-height: 1.12; }
html[lang="ko"] body.home { letter-spacing: -0.01em; line-height: 1.5; }
.grid-bg { background-image: linear-gradient(rgba(14,17,22,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(14,17,22,.04) 1px, transparent 1px); background-size: 40px 40px; }
.dot-bg { background-image: radial-gradient(rgba(14,17,22,.06) 1.2px, transparent 1.2px); background-size: 16px 16px; }
.btn-cta-hero { height: 51px; padding: 0 16px; font-size: 16px; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(14,17,22,.5); border-radius: 8px; color: #0E1116; transition: background-color .25s cubic-bezier(.4,0,.2,1); }
.btn-line:hover { background: rgba(14,17,22,.05); }
body.home :focus-visible { outline: 2px solid #065F46; outline-offset: 2px; }
body.home input[type=range] { height: 2px; background: rgba(14,17,22,.5); }
body.home .pill[data-active="true"] { background: #059669; color: #06130D; border-color: #059669; }

/* FAQ teaser: native <details>, plus/minus drawn in CSS */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { position: relative; flex: none; width: 20px; height: 20px; }
.faq-ic::before, .faq-ic::after { content: ''; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px; background: #0E1116; }
.faq-ic::after { transform: rotate(90deg); }
.faq-item[open] .faq-ic::after { display: none; }

/* How-it-works thin-line art: opacity + offset-path motion only; paused while offscreen (data-io -> data-live) */
@keyframes art-blink { 50% { opacity: 0; } }
@keyframes art-check { 0%, 40% { opacity: 0; } 55%, 100% { opacity: 1; } }
@keyframes art-travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.art-blink { animation: art-blink 1s steps(1) infinite; }
.art-check { animation: art-check 4s ease-out infinite; }
.art-dot { offset-distance: 50%; animation: art-travel var(--d, 4s) linear infinite; }
[data-io]:not([data-live]) * { animation-play-state: paused !important; }

/* Hero phone: 300x620 native, scaled by --s (no JS); realistic iPhone shell in CSS */
.ph-wrap { --s: .85; position: relative; width: calc(300px * var(--s)); height: calc(620px * var(--s)); }
@media (min-width: 1024px) { .ph-wrap { --s: .9; } }
.ph-scale { position: absolute; left: 0; top: 0; width: 300px; height: 620px; transform: scale(var(--s)); transform-origin: top left; }
.ph-dev { position: absolute; inset: 0; }
.ph-slab { position: absolute; width: 3.5px; background: linear-gradient(90deg,#6d6a64,#bdb8ae 45%,#8c887f); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.35); }
.ph-bezel { position: absolute; inset: 0; border-radius: 48px; padding: 4.5px;
  background: linear-gradient(135deg,#9d998f 0%,#d6d2c8 18%,#8a867d 40%,#c5c1b7 62%,#87837a 82%,#b3afa5 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), inset 0 0 3px 1px rgba(0,0,0,.35), 0 34px 38px -22px rgba(6,60,42,.38), 0 10px 14px -8px rgba(6,60,42,.28); }
.ph-black { width: 100%; height: 100%; border-radius: 43.5px; background: #000; padding: 6px; }
.ph-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 37.5px; background: #0B1511; color: #fff; font-family: -apple-system, 'SF Pro Text', 'Inter', 'Pretendard Variable', system-ui, sans-serif; letter-spacing: 0; }
.ph-glare { position: absolute; inset: 0; z-index: 30; pointer-events: none; background: linear-gradient(118deg,rgba(255,255,255,.11) 0%,rgba(255,255,255,.04) 28%,rgba(255,255,255,0) 40%); }
.ph-toast { position: absolute; left: -36px; top: 300px; width: 236px; z-index: 40; padding: 12px; border-radius: 8px; border: 1px solid rgba(14,17,22,.1); background: #F2F4F6; color: #0E1116;
  opacity: 0; transform: translateX(-24px); transition: opacity .35s ease-out, transform .6s cubic-bezier(.2,.8,.2,1); }
.ph-toast.on { opacity: 1; transform: none; }
.ph-chip-in { display: none; }
.ph-chip { position: absolute; left: -16px; top: 330px; z-index: 41; opacity: 0; }
.ph-chip.fly { animation: ph-fly .8s cubic-bezier(.45,0,.2,1) forwards; }
@keyframes ph-fly { 0% { transform: translate(0,0) scale(1); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--dx),var(--dy)) scale(.85); opacity: 0; } }
.ph-wallet.pulse { animation: ph-pulse .24s ease-out; }
@keyframes ph-pulse { 50% { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .ticker-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  /* hero phone: static frame, fill toast visible with the payback chip inside it */
  .ph-toast { opacity: 1; transform: none; transition: none; }
  .ph-chip-in { display: inline-flex; }
  .ph-chip, .art-blink, .art-dot { animation: none !important; }
  .art-check { animation: none !important; opacity: 1; }
}

/* --- site-swap PR5: promoters page (separate block) --- */
.promo-dots { background-image: radial-gradient(rgba(14,17,22,0.08) 1px, transparent 1px); background-size: 22px 22px; }
/* ===== Rates + Calculator body (swap PR3). Scoped to body.sub; shared tokens as the shell: page #F2F4F6, card #E8EBEF, 8px radii. ===== */
body.sub { background: #F2F4F6; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
html[lang="ko"] body.sub { line-height: 1.5; }
.sub-h { font-family: 'Space Grotesk', sans-serif; font-weight: 400; letter-spacing: -0.06em; line-height: 0.95; }
html[lang="ko"] .sub-h { font-family: 'Pretendard Variable', 'Pretendard', 'Space Grotesk', sans-serif; letter-spacing: -0.04em; line-height: 1.12; }
.sub-dots { background-image: radial-gradient(rgba(14,17,22,.06) 1.2px, transparent 1.2px); background-size: 16px 16px; }
.sub-btn-line { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(14,17,22,.5); border-radius: 8px; color: #0E1116; transition: background-color .25s ease-out; }
.sub-btn-line:hover { background: rgba(14,17,22,.05); }
body.sub :focus-visible { outline: 2px solid #065F46; outline-offset: 2px; }
body.sub .pill[data-active="true"] { background: #059669; color: #06130D; border-color: #059669; }

/* ===== Learn body (swap PR4): sticky phone + FAQ. All selectors are .lp-* / body.learn, separate from the home block. ===== */
body.learn { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
html[lang="ko"] body.learn { line-height: 1.5; }
.lp-h { font-family: 'Space Grotesk', sans-serif; font-weight: 400; letter-spacing: -0.06em; line-height: 0.95; }
html[lang="ko"] .lp-h { font-family: 'Pretendard Variable', 'Pretendard', 'Space Grotesk', sans-serif; letter-spacing: -0.04em; line-height: 1.12; }
body.learn :focus-visible { outline: 2px solid #065F46; outline-offset: 2px; }
.lp-wrap { --s: .55; position: relative; width: calc(300px * var(--s)); height: calc(620px * var(--s)); }
@media (min-width: 768px) { .lp-wrap { --s: .95; } }
.lp-scale { position: absolute; left: 0; top: 0; width: 300px; height: 620px; transform: scale(var(--s)); transform-origin: top left; }
.lp-dev { position: absolute; inset: 0; }
.lp-slab { position: absolute; width: 3.5px; background: linear-gradient(90deg,#6d6a64,#bdb8ae 45%,#8c887f); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.35); }
.lp-bezel { position: absolute; inset: 0; border-radius: 48px; padding: 4.5px;
  background: linear-gradient(135deg,#9d998f 0%,#d6d2c8 18%,#8a867d 40%,#c5c1b7 62%,#87837a 82%,#b3afa5 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), inset 0 0 3px 1px rgba(0,0,0,.35), 0 34px 38px -22px rgba(6,60,42,.38), 0 10px 14px -8px rgba(6,60,42,.28); }
.lp-black { width: 100%; height: 100%; border-radius: 43.5px; background: #000; padding: 6px; }
.lp-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 37.5px; background: #0B1511; color: #fff; font-family: -apple-system, 'SF Pro Text', 'Inter', 'Pretendard Variable', system-ui, sans-serif; letter-spacing: 0; }
.lp-glare { position: absolute; inset: 0; z-index: 30; pointer-events: none; background: linear-gradient(118deg,rgba(255,255,255,.11) 0%,rgba(255,255,255,.04) 28%,rgba(255,255,255,0) 40%); }
.lp-d { font-family: 'Space Grotesk', 'Pretendard Variable', sans-serif; }
.lp-s { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease-out; }
.lp-wrap[data-step="0"] .lp-s0, .lp-wrap[data-step="1"] .lp-s1, .lp-wrap[data-step="2"] .lp-s2 { opacity: 1; }
.lp-new { opacity: 0; transform: translateY(-16px); transition: opacity .35s ease-out, transform .35s ease-out; }
.lp-wrap[data-step="2"] .lp-new { opacity: 1; transform: none; transition-delay: .5s; }
.lp-btn { transition: opacity .25s; }
.lp-wrap[data-typing] .lp-btn { opacity: .4; background: rgba(255,255,255,.15); color: #fff; }
.lp-ok { visibility: visible; }
.lp-caret { display: none; }
.lp-wrap[data-typing] .lp-caret { display: inline-block; }
.lp-wrap[data-typing] .lp-ok { visibility: hidden; }
.lp-n { color: rgba(14,17,22,.3); transition: color .3s; }
[data-lp-step][data-active] .lp-n { color: #065F46; }
.lp-prog { transform: scaleY(.3333); transition: transform .5s ease-out; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-ic { position: relative; flex: none; width: 20px; height: 20px; }
.lp-ic::before, .lp-ic::after { content: ''; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px; background: #0E1116; }
.lp-ic::after { transform: rotate(90deg); }
.lp-faq[open] .lp-ic::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-s, .lp-new, .lp-prog, .lp-btn, .lp-n { transition: none !important; }
  .lp-wrap[data-step="2"] .lp-new { transition-delay: 0s; }
}

/* Typography: no stranded words / clipped headings (site-wide, EN + KO). */
summary, dt, legend, button, h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }
.grid > * { min-width: 0; }
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) { line-break: strict; word-break: auto-phrase; }
.nowrap { white-space: nowrap; }

/* Long-form article template (.lf): the SEO guides, the FAQ and the widget page. Shell = the public pages' nav/footer.
   Tokens as the shell: page #F2F4F6, card #E8EBEF, hairline rgba(14,17,22,.15), 8px radii, ~68ch body. Generated by bin/build_article_pages.py. */
.lf { max-width: 1280px; margin: 0 auto; padding: 104px 24px 96px; font-size: 17px; line-height: 1.6; letter-spacing: -0.005em; }
@media (min-width: 1024px) { .lf { padding: 148px 40px 128px; } }
.lf-col { max-width: 860px; }
.lf-crumb { margin: 0 0 20px; font-size: 14px; color: #5B6472; }
.lf-crumb a { color: #5B6472; text-decoration: none; }
.lf-crumb a:hover { color: #065F46; }
.lf h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 24px; max-width: 20ch; }
.lf h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; letter-spacing: -0.025em; margin: 64px 0 16px; }
.lf h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; margin: 32px 0 12px; }
html[lang="ko"] .lf h1, html[lang="ko"] .lf h2, html[lang="ko"] .lf h3 { line-height: 1.2; letter-spacing: -0.02em; }
.lf p, .lf ul, .lf ol { max-width: 68ch; margin: 0 0 16px; }
.lf ul, .lf ol { padding-left: 1.25rem; }
.lf ul { list-style: disc; }
.lf ol { list-style: decimal; }
.lf li { margin-bottom: 8px; }
.lf li::marker { color: #5B6472; }
.lf a { color: #065F46; text-decoration: underline; text-underline-offset: 4px; }
.lf a:hover { color: #054C39; }
.lf strong { font-weight: 600; }
.lf code { font-family: 'JetBrains Mono', monospace; font-size: 0.88em; overflow-wrap: anywhere; }
.lf .rate { font-weight: 600; color: #065F46; }
.lf .caption, .lf figcaption, .lf cite { font-size: 14px; line-height: 1.5; color: #5B6472; max-width: 68ch; }
.lf .caption { margin: 0 0 24px; }
.lf .lf-note { font-size: 15px; color: #5B6472; border-left: 2px solid #065F46; padding: 2px 0 2px 16px; margin: 24px 0; }
.lf-lede { font-size: 20px; line-height: 1.45; }
.lf .btn-cta { margin: 8px 0 24px; padding: 0 20px; text-decoration: none; color: #fff; }
.lf .btn-cta:hover { color: #fff; }
.lf-fig { margin: 32px 0; padding: 16px; background: #fff; border: 1px solid rgba(14,17,22,.12); border-radius: 8px; }
.lf-fig img { display: block; width: 100%; height: auto; }
.lf-fig figcaption { margin: 12px 0 0; }
.lf .card { background: #E8EBEF; border-radius: 8px; padding: 28px; margin: 24px 0; }
.lf .card > :last-child { margin-bottom: 0; }
.lf .step { margin-bottom: 20px; }
.lf .step strong { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 4px; }
html[lang="ko"] .lf .step strong { font-family: 'Pretendard Variable', 'Pretendard', 'Space Grotesk', sans-serif; }
.lf .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 16px; border-top: 1px solid rgba(14,17,22,.15); }
.lf table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lf th, .lf td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid rgba(14,17,22,.15); vertical-align: top; }
.lf th { font-size: 13px; font-weight: 500; color: #5B6472; }
.lf .table-wrap table { white-space: nowrap; }
.lf .table-wrap td:first-child, .lf .table-wrap th:first-child { white-space: normal; min-width: 160px; }
.lf tr.self td { font-weight: 600; }
.lf .scroll-hint { display: none; font-size: 13px; color: #5B6472; margin: 0 0 8px; }
@media (max-width: 700px) { .lf .scroll-hint { display: block; } }
.lf hr { border: 0; border-top: 1px solid rgba(14,17,22,.15); margin: 48px 0 24px; }
.lf blockquote { margin: 0 0 24px; padding: 0 0 0 16px; border-left: 2px solid rgba(14,17,22,.25); max-width: 68ch; }
.lf blockquote p { margin: 0 0 6px; }
.lf blockquote cite { display: block; font-style: normal; }
.lf .rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 32px; max-width: 640px; }
.lf .rate-card { background: #E8EBEF; border-radius: 8px; padding: 24px; }
.lf .rate-card.lead { box-shadow: inset 0 0 0 1px #065F46; }
.lf .rc-name { font-size: 14px; color: #5B6472; margin-bottom: 8px; }
.lf .rc-total { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 56px; line-height: 1; letter-spacing: -0.04em; margin-bottom: 12px; }
.lf .rc-total sup { font-size: 24px; vertical-align: top; position: relative; top: 4px; margin-left: 2px; }
.lf .rate-card .rc-breakdown { font-size: 14px; line-height: 1.4; color: #5B6472; margin: 0; }
.lf form.lead-form { margin: 16px 0 0; max-width: 460px; }
.lf form.lead-form label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.lf form.lead-form input[type=text], .lf form.lead-form input[type=email] { display: block; width: 100%; height: 48px; padding: 0 14px; margin: 0 0 16px; background: #F2F4F6; border: 1px solid rgba(14,17,22,.25); border-radius: 8px; color: #0E1116; font: inherit; font-size: 16px; }
.lf form.lead-form input:focus-visible, .lf button:focus-visible, .lf summary:focus-visible, .lf a:focus-visible { outline: 2px solid #065F46; outline-offset: 2px; }
.lf form.lead-form button, .lf .copy-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border: 0; border-radius: 8px; background: #065F46; color: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }
.lf form.lead-form button:hover, .lf .copy-btn:hover { background: #054C39; }
.lf .copy-btn { height: 40px; font-size: 14px; }
.lf .copy-btn[data-copied="1"] { background: #10B981; color: #06130D; }
.lf form.lead-form .form-note { font-size: 14px; color: #5B6472; margin: 12px 0 0; }
.lf .demo, .lf .facts { background: #E8EBEF; border-radius: 8px; padding: 28px; margin: 24px 0; }
.lf .demo h2, .lf .facts h2 { margin-top: 0; }
.lf .snippet { background: #F2F4F6; border: 1px solid rgba(14,17,22,.25); border-radius: 8px; padding: 16px; margin: 0 0 12px; max-width: 100%; overflow-x: auto; }
.lf .snippet code { white-space: pre-wrap; word-break: break-all; }
.lf-related { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(14,17,22,.15); }
.lf-related p { margin: 0 0 8px; font-size: 14px; color: #5B6472; }
.lf-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; max-width: none; }
.lf-related li { margin: 0; }
.lf-faq { border-bottom: 1px solid rgba(14,17,22,.15); max-width: 860px; }
.lf-faqs { border-top: 1px solid rgba(14,17,22,.15); margin: 32px 0; }
.lf-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; cursor: pointer; list-style: none; }
.lf-faq summary::-webkit-details-marker { display: none; }
.lf-faq summary h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.lf-faq .lp-ic { flex: none; }
.lf-faq[open] .lp-ic::after { display: none; }
.lf-faq p { padding-bottom: 20px; margin: 0; }

/* Legal long-form pages (terms, payout-policy, disclaimer; EN + KO). */
.legal { padding-top: 56px; background: #F2F4F6; }
@media (min-width: 1024px) { .legal { padding-top: 84px; } }
.legal-head, .legal-grid { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.legal-head { padding-top: 64px; padding-bottom: 64px; }
.legal h1, .legal h2, .legal h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 400; letter-spacing: -0.06em; line-height: .95; color: #0E1116; }
:lang(ko) .legal h1, :lang(ko) .legal h2, :lang(ko) .legal h3 { letter-spacing: -0.03em; line-height: 1.15; }
.legal h1 { max-width: 16ch; font-size: 48px; }
.legal-lead { max-width: 50ch; margin-top: 20px; font-size: 18px; line-height: 1.3; color: #5B6472; }
.legal-ver { margin-top: 12px; font-size: 14px; color: #5B6472; }
.legal-grid { display: grid; gap: 48px; padding-bottom: 96px; }
.legal-toc-t { margin-bottom: 12px; font-size: 14px; color: #5B6472; }
.legal-toc ul { display: flex; flex-direction: column; gap: 4px; list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(14,17,22,.1); }
.legal-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent; font-size: 15px; line-height: 1.35; transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: #065F46; border-color: #065F46; }
.legal-body { max-width: 68ch; font-size: 17px; line-height: 1.55; }
.legal-body h2 { margin: 56px 0 16px; font-size: 30px; scroll-margin-top: 112px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin: 32px 0 8px; font-size: 22px; }
.legal-body p, .legal-body ul { margin: 0 0 20px; color: #5B6472; }
.legal-body a { color: #065F46; text-decoration: underline; text-underline-offset: 3px; }
.legal-body .legal-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; border-left: 3px solid #065F46; border-radius: 8px; background: #E8EBEF; }
.legal-body .legal-note span { font-size: 14px; color: #5B6472; }
.legal-body .legal-note strong { font-weight: 600; color: #0E1116; }
@media (min-width: 1024px) {
  .legal-head, .legal-grid { padding-left: 40px; padding-right: 40px; }
  .legal-head { padding-top: 96px; padding-bottom: 96px; }
  .legal h1 { font-size: 72px; }
  .legal-lead { font-size: 20px; }
  .legal-grid { grid-template-columns: 240px 1fr; gap: 64px; padding-bottom: 148px; }
  .legal-toc { position: sticky; top: 112px; align-self: start; }
  .legal-body h2 { font-size: 34px; }
}

/* ===== Cookie notice (built by site.js / member.js on first visit; z-index sits under .site-sheet so the mobile menu covers it) ===== */
.rf-notice { position: fixed; z-index: 39; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 4px 12px;
  max-width: 560px; margin: 0 auto; padding: 4px 4px 4px 16px; font-size: 14px; line-height: 1.35; color: #0E1116;
  background: #F2F4F6; border: 1px solid rgba(14,17,22,.15); border-radius: 16px; box-shadow: 0 8px 24px rgba(14,17,22,.12);
  animation: rf-notice-in .45s var(--ease) both; }
.rf-notice p { flex: 1; margin: 0; }
.rf-notice a { color: #065F46; font-weight: 500; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.rf-notice button { flex: none; min-width: 44px; min-height: 44px; padding: 0 16px; font: inherit; font-weight: 600; color: #06130D;
  background: #10B981; border: 0; border-radius: 12px; cursor: pointer; }
.rf-notice a:focus-visible, .rf-notice button:focus-visible { outline: 2px solid #0E1116; outline-offset: 2px; }
@keyframes rf-notice-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rf-notice { animation: none; } }

/* home fee story: one taker fee multiplied out. Steps light up one after another (site.js), dimmed only once JS armed it. */
.fs-root { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 1024px) { .fs-root { padding-top: 96px; padding-bottom: 96px; } }
.fs-tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border: 1px solid #7D8390; border-radius: 6px; font-size: 13px; color: #0E1116; }
.fs-input { box-sizing: border-box; width: 200px; max-width: 100%; min-height: 44px; padding: 8px 12px; font-size: 16px; border: 1px solid #7D8390; border-radius: 8px; background: #fff; color: #0E1116; }
.fs-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin-left: 0; margin-right: 0; margin-bottom: 0; }
@media (min-width: 768px) { .fs-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .fs-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.fs-step { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px; border: 1px solid #7D8390; border-radius: 8px; background: #fff; transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-fs-armed] .fs-step:not([data-on]) { opacity: .3; transform: translateY(10px); }
.fs-op { font-size: 13px; color: #5B6472; }
.fs-val { font-family: 'Space Grotesk', sans-serif; font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
html[lang="ko"] .fs-val { font-family: 'Pretendard Variable', 'Pretendard', 'Space Grotesk', sans-serif; }
.fs-unit { font-size: 12px; color: #5B6472; }
.fs-step:last-child { border-color: #059669; }
@media (prefers-reduced-motion: reduce) { .fs-step { transition: none; } [data-fs-armed] .fs-step:not([data-on]) { opacity: 1; transform: none; } }

/* the fixed cookie notice must not cover the last ~70px of the page */
body:has(> .rf-notice) { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
