/* realgotsam.com public site — approved 2026-11-22 design (flat near-white, hairline cards, black buttons). */
:root {
  --bg: #FBFBFB;
  --surface: #FFFFFF;
  --ink: #0A0A0A;
  --text: #404040;
  --muted: #8A8A8A;
  --line: rgba(153, 153, 153, 0.2);
  --line-strong: rgba(153, 153, 153, 0.35);
  --button: #0A0A0A;
  --button-text: #FFFFFF;
  --chip: #F3F3F3;
  --hero-from: #000000;
  --hero-to: #666666;
  --nav: rgba(251, 251, 251, 0.72);
  --hero-panel: rgba(251, 251, 251, 0.8);
  --scene-tint: rgba(251, 251, 251, 0.5);
  --scene-tint-phone: rgba(251, 251, 251, 0.24);
  --scene-grid: rgba(10, 10, 10, 0.16);
  --scene-scale: rgba(251, 251, 251, 0.42);
  --ma-fast: #C98A1E;
  --ma-slow: #7D5BC9;
  --up: #D64B4B;
  --down: #3F6FD1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #181818;
  --surface: #1F1F1F;
  --ink: #FFFFFF;
  --text: #C4C4C4;
  --muted: #8A8A8A;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --button: #FFFFFF;
  --button-text: #0A0A0A;
  --chip: #272727;
  --hero-from: #FFFFFF;
  --hero-to: #9B9B9B;
  --nav: rgba(24, 24, 24, 0.72);
  --hero-panel: rgba(24, 24, 24, 0.78);
  --scene-tint: rgba(24, 24, 24, 0.62);
  --scene-tint-phone: rgba(24, 24, 24, 0.42);
  --scene-grid: rgba(255, 255, 255, 0.16);
  --scene-scale: rgba(24, 24, 24, 0.42);
  --ma-fast: #E0A845;
  --ma-slow: #A086E0;
  --up: #E06262;
  --down: #5A86E0;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 28px; font-weight: 400; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h4, dt, th, .btn { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -64px; background: var(--button); color: var(--button-text); padding: 8px 12px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.num { font-variant-numeric: tabular-nums; }

/* nav: floating, compact, translucent */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); z-index: 20; display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--nav); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 16px; }
.brand img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; gap: 24px; font-size: 14px; line-height: 20px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color 300ms var(--ease); white-space: nowrap; }
.brand { white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 12px; line-height: 16px; font-weight: 600; }
.seg a, .seg button { padding: 4px 8px; color: var(--muted); background: none; border: 0; font: inherit; cursor: pointer; }
.seg [aria-pressed="true"], .seg [aria-current="true"] { background: var(--chip); color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--button); color: var(--button-text); font-size: 16px; line-height: 24px; font-weight: 600; border: 1px solid var(--button); cursor: pointer; transition: transform 300ms var(--ease), opacity 300ms var(--ease); white-space: nowrap; }
.btn:hover { opacity: 0.86; }
.btn:active { transform: scale(0.98); }
.btn-sm { font-size: 14px; line-height: 20px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 20px; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color 300ms var(--ease); }
.text-link:hover { border-color: var(--ink); }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 0; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { transform: translateY(-5px); }
.menu-lines::after { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: rotate(45deg); background: var(--ink); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: rotate(-45deg); background: var(--ink); }
.mobile-menu { position: fixed; inset: 0; z-index: 19; padding: 96px 24px 32px; background: var(--nav); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); display: flex; flex-direction: column; gap: 32px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a { font-size: 30px; line-height: 36px; font-weight: 300; color: var(--ink); padding: 8px 0; opacity: 0; transform: translateY(24px); animation: menu-in 500ms var(--ease) forwards; }
.mobile-menu nav a:nth-child(2) { animation-delay: 60ms; }
.mobile-menu nav a:nth-child(3) { animation-delay: 120ms; }
.mobile-menu nav a:nth-child(4) { animation-delay: 180ms; }
.mobile-menu nav a:nth-child(5) { animation-delay: 240ms; }
.mobile-menu nav a[aria-current="page"] { font-weight: 500; }
.mobile-tools { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@keyframes menu-in { to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

/* hero */
/* The market scene fills the first screen; newest candles stay in view (xMaxYMid slice). */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 128px 0 80px; }
.hero > .wrap { width: 100%; }
.hero .hero-media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; border: 0; border-radius: 0; background: var(--bg); }
.hero-copy { max-width: 680px; padding: 48px; border: 1px solid var(--line); border-radius: 24px; background: var(--hero-panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
h1.eyebrow { color: var(--muted); }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); margin-bottom: 24px; }
.hero .display { font-size: 72px; line-height: 1.2; font-weight: 200; letter-spacing: -0.03em; background: linear-gradient(90deg, var(--hero-from), var(--hero-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .display strong { font-weight: 500; }
.hero .lead { margin-top: 32px; font-size: 20px; line-height: 32px; color: var(--text); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.hero-media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.market-scene .scene-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 55%; }
.market-scene::after { content: ""; position: absolute; inset: 0; background: var(--scene-tint); }
.market-scene svg { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; }
.market-scene svg text { font-family: var(--font); font-variant-numeric: tabular-nums; }
.market-scene .grid { stroke: var(--scene-grid); stroke-width: 0.5; stroke-dasharray: 2 4; }
.market-scene .scale { fill: var(--scene-scale); }
.market-scene .scale-edge { stroke: var(--scene-grid); stroke-width: 0.5; }
.market-scene .scale-labels text { font-size: 4.6px; font-weight: 500; fill: var(--text); text-anchor: end; }
.market-scene .times text { font-size: 4.2px; font-weight: 500; fill: var(--muted); text-anchor: middle; }
.market-scene .chart { transition: transform 700ms var(--ease); }
.market-scene .chart.shift { transform: translateX(-9px); }
.market-scene .chart.instant { transition: none; }
.market-scene .candle line { stroke-width: 0.9; }
.market-scene .up line, .market-scene .last.up line { stroke: var(--up); }
.market-scene .down line, .market-scene .last.down line { stroke: var(--down); }
.market-scene .candle.up rect, .market-scene .volume .up, .market-scene .last.up rect { fill: var(--up); }
.market-scene .candle.down rect, .market-scene .volume .down, .market-scene .last.down rect { fill: var(--down); }
.market-scene .volume rect { opacity: 0.32; }
.market-scene .ma { fill: none; stroke-width: 0.9; opacity: 0.9; }
.market-scene .ma.fast { stroke: var(--ma-fast); }
.market-scene .ma.slow { stroke: var(--ma-slow); }
.market-scene .last line { stroke-width: 0.6; stroke-dasharray: 2 2; }
.market-scene .last text { font-size: 4.6px; font-weight: 600; fill: #FFFFFF; text-anchor: end; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.label { font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 500; }

/* sections */
section { scroll-margin-top: 96px; }
.section { padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-head h2 { font-size: 48px; line-height: 1.25; font-weight: 300; letter-spacing: -0.03em; max-width: 680px; }
.section-head p { max-width: 400px; color: var(--muted); }

/* comparison table */
.table { overflow: hidden; }
.venue-groups { display: flex; flex-direction: column; gap: 48px; }
.venue-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); }
.venue-title small { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
/* Comparison tables: the header and every row share one column grid through subgrid, so headers always sit over their values. */
.table:has(> .t-head), .table:has(> .c-head) { display: grid; column-gap: 24px; }
.table:has(> .t-head) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.2fr) max-content; }
.table:has(> .c-head) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.8fr) max-content; }
.t-head, .t-row, .c-head, .c-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding: 16px 24px; }
.t-head { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.t-row { padding: 24px; transition: background-color 300ms var(--ease); }
.t-row + .t-row { border-top: 1px solid var(--line); }
.t-row:hover { background: var(--chip); }
.ex { display: flex; align-items: center; gap: 12px; }
.ex img { width: 40px; height: 40px; border-radius: 8px; }
.ex b { display: block; color: var(--ink); font-weight: 600; font-size: 18px; line-height: 28px; }
.ex small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.rate { color: var(--ink); font-size: 30px; line-height: 36px; font-weight: 300; letter-spacing: -0.02em; }
.rate small { font-size: 12px; line-height: 16px; color: var(--muted); display: block; letter-spacing: 0; font-weight: 500; }
.fee { color: var(--ink); font-size: 18px; line-height: 28px; font-weight: 500; }
.fee s { color: var(--muted); font-weight: 400; font-size: 14px; line-height: 20px; margin-right: 4px; }
.fee em { font-style: normal; display: block; font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 500; }
.pending { color: var(--muted); font-size: 14px; line-height: 20px; }
.row-actions { display: flex; gap: 8px; }
.t-note { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--muted); }

/* events */
.live { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16A34A; }
.event-groups { display: flex; flex-direction: column; gap: 64px; }
.event-group { display: flex; flex-direction: column; gap: 24px; }
.event-group-title { display: flex; align-items: center; gap: 12px; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.event-group-title .referral-logo, .event-group-title img { width: 32px; height: 32px; border-radius: 8px; }
.events { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.event { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.event-top { display: flex; align-items: center; }
.event-top .live { padding: 4px 8px; border-radius: 4px; background: var(--chip); }
.event h4 { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.02em; }
.event dl { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.event dl div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.event dt { font-size: 14px; line-height: 22px; color: var(--muted); font-weight: 500; }
.event dd { font-size: 14px; line-height: 22px; color: var(--ink); }
.event-note { font-size: 12px; line-height: 16px; color: var(--muted); }
.event .row-actions { margin-top: auto; align-items: center; gap: 16px; }

/* steps */
.steps-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.steps-grid h2 { font-size: 48px; line-height: 1.25; font-weight: 300; letter-spacing: -0.03em; }
.steps-grid > div > p { margin-top: 24px; color: var(--muted); max-width: 400px; }
.steps { list-style: none; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-size: 36px; line-height: 40px; font-weight: 200; color: var(--muted); }
.steps h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.steps p { margin-top: 8px; color: var(--text); }


/* archive bento */
.bento { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.feature { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; transition: transform 500ms var(--ease), border-color 300ms var(--ease); }
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.tag { display: inline-flex; align-self: flex-start; padding: 4px 8px; border-radius: 4px; background: var(--chip); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink); }
.feature h3 { margin-top: 24px; font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -0.02em; }
.feature p { margin-top: 16px; color: var(--text); }
.feature time, .list-post time { font-size: 12px; line-height: 16px; color: var(--muted); }
.post-list { padding: 8px 24px; }
.list-post { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; }
.list-post + .list-post { border-top: 1px solid var(--line); }
.list-post b { color: var(--ink); font-weight: 600; font-size: 16px; line-height: 24px; }
.list-post:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* channels */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); }
.channel { display: flex; align-items: center; gap: 16px; padding: 24px; transition: background-color 300ms var(--ease); }
.channel:hover { background: var(--chip); }
.channel i { font-size: 24px; color: var(--ink); }
.channel b { display: block; color: var(--ink); font-weight: 600; }
.channel small { display: block; font-size: 14px; line-height: 20px; color: var(--muted); }
.channels .channel { border-top: 1px solid var(--line); }
.channels .channel:nth-child(-n+3) { border-top: 0; }
.channels .channel:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }

/* about + channels */
.channels-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.about { display: flex; flex-direction: column; gap: 16px; }
.about img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; }
.about h3 { font-size: 24px; line-height: 32px; font-weight: 500; }
.about p { color: var(--text); margin-bottom: 16px; }
.channels-grid .channels { grid-template-columns: repeat(2, 1fr); }
.channels-grid .channels .channel { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
.channels-grid .channels .channel:nth-child(-n+2) { border-top: 0 !important; }
.channels-grid .channels .channel:nth-child(even) { border-left: 1px solid var(--line) !important; }
/* An odd last channel takes the full row so the grid never ends with an empty cell. */
.channels-grid .channels .channel:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* faq: side by side, no accordion */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.faq div { padding: 24px 0; border-top: 1px solid var(--line); }
.faq h3 { font-size: 18px; line-height: 28px; font-weight: 600; }
.faq p { margin-top: 8px; color: var(--text); }

/* final cta + footer */
.final { padding: 96px 0 64px; text-align: center; }
.final h2 { font-size: 48px; line-height: 1.25; font-weight: 300; letter-spacing: -0.03em; max-width: 680px; margin: 0 auto; }
.final p { margin: 24px auto 0; max-width: 520px; color: var(--muted); }
.final .hero-actions { justify-content: center; }
footer { padding: 48px 0 64px; border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { max-width: 640px; }
.foot nav { display: flex; gap: 16px; }

/* guide page */
.guide-hero { padding: 160px 0 48px; }
.crumb { font-size: 14px; line-height: 20px; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.guide-title { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.guide-title img { width: 56px; height: 56px; border-radius: 12px; }
.guide-title h1 { font-size: 60px; line-height: 1.2; font-weight: 200; letter-spacing: -0.03em; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 32px; margin-top: 40px; padding: 32px; }
.summary .label { margin-bottom: 8px; }
.guide-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.toc { position: sticky; top: 112px; align-self: start; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--ink); }
.prose { max-width: 680px; }
.prose h2 { font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -0.02em; margin: 64px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 18px; line-height: 28px; color: var(--text); }
.prose ol, .prose ul { padding-left: 24px; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.callout { margin-top: 24px; padding: 24px; }
.callout b { color: var(--ink); }
.support { margin-top: 64px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.support h3 { font-size: 24px; line-height: 32px; font-weight: 500; }
.support p { margin-top: 8px; color: var(--muted); }

/* shared helpers */
.empty { color: var(--muted); padding: 24px 0; }
.page-top { padding-top: 160px; }
.section-head h1 { font-size: 60px; line-height: 1.2; font-weight: 200; letter-spacing: -0.03em; max-width: 680px; }
.referral-logo { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; object-fit: contain; }
.guide-title .referral-logo { width: 56px; height: 56px; border-radius: 12px; }

/* article, archive, note and error pages */
.article-page { max-width: 760px; margin: 0 auto; padding: 144px 0 96px; }
.article-header h1 { font-size: 48px; line-height: 1.25; font-weight: 300; letter-spacing: -0.03em; margin: 16px 0 24px; }
.article-header > .text-link { margin-bottom: 8px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; line-height: 20px; color: var(--muted); }
.article-meta a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.content-language { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--muted); }
.content-language a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.article-summary { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--text); }
.project-label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.article-body { margin-top: 40px; font-size: 18px; line-height: 32px; color: var(--text); }
.article-body p + p { margin-top: 24px; }
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.article-related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.article-related h2 { font-size: 20px; line-height: 28px; font-weight: 600; }
.article-related ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.article-related p { color: var(--muted); font-size: 14px; line-height: 20px; }
.article-platforms { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-platforms h2 { font-size: 20px; line-height: 28px; font-weight: 600; margin-bottom: 8px; }
.article-platforms > p { padding-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }
.mini-platform { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mini-platform .referral-logo { width: 32px; height: 32px; }
.mini-platform strong { flex: 1 0 auto; font-weight: 600; white-space: nowrap; }
.mini-platform span { font-weight: 500; text-align: right; word-break: keep-all; }
.mini-platform:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.referral-heading { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.referral-title { display: flex; align-items: center; gap: 12px; }
.referral-benefit { color: var(--ink); font-weight: 500; }
.project-grid { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.project-button { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.project-copy { display: flex; flex-direction: column; gap: 8px; }
.project-info strong { color: var(--ink); font-size: 18px; line-height: 28px; font-weight: 600; }
.project-description { color: var(--muted); font-size: 14px; line-height: 20px; }
.note-arrow { color: var(--muted); }
.project-button:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity 300ms linear; }
  html { scroll-behavior: auto; }
  .market-scene .chart { transition: none; }
}

/* articles */
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip-link { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.chip-link:hover { background: var(--chip); }
.chip-link[aria-current="true"] { background: var(--button); border-color: var(--button); color: var(--button-text); }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-card { display: flex; flex-direction: column; overflow: hidden; transition: border-color 300ms var(--ease); }
.article-card:hover { border-color: var(--line-strong); }
.article-card:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.article-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.article-card-text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; }
.article-card h2 { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; }
.article-card p { font-size: 14px; line-height: 20px; color: var(--text); }
.article-card time { margin-top: auto; padding-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.article-guides { margin-top: 64px; }
.article-grid + .article-guides, .chip-links + .article-guides { margin-top: 64px; }
.section-head + .article-guides { margin-top: 0; }
.article-guides h2 { margin-bottom: 16px; font-size: 20px; line-height: 28px; font-weight: 600; }
.guide-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.guide-link { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--ink); transition: background-color 300ms var(--ease); }
.guide-link:hover { background: var(--chip); }
.guide-link b { flex: 1; min-width: 0; font-weight: 600; }
.guide-link i { color: var(--muted); }
.article-title { max-width: 860px; margin-top: 8px; font-size: 48px; line-height: 60px; font-weight: 300; letter-spacing: -0.02em; }
.guide-hero .t-note { margin-top: 16px; }
.guide-body.no-toc { grid-template-columns: minmax(0, 680px); justify-content: center; }
.guide-body .article-end { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 680px; }
.guide-body:not(.no-toc) .article-end { grid-column: 2; }
.article-prose > * + * { margin-top: 16px; }
.article-prose > h2 { margin: 64px 0 16px; scroll-margin-top: 96px; }
.article-prose > h2:first-child { margin-top: 0; }
.article-prose > h3 { margin: 32px 0 8px; font-size: 20px; line-height: 28px; font-weight: 600; }
.article-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.article-prose strong { color: var(--ink); font-weight: 600; }
.article-prose code { padding: 2px 4px; border-radius: 4px; background: var(--chip); color: var(--ink); font-size: 0.875em; overflow-wrap: anywhere; }
.article-prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.article-prose .callout { margin-top: 24px; }
.article-figure { margin: 24px 0 0; }
.article-figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.article-figure figcaption { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.article-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.article-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.article-table th, .article-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); text-wrap: pretty; }
.article-table th { background: var(--chip); color: var(--ink); font-weight: 600; }
.article-table tr:last-child td { border-bottom: 0; }
.article-related-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px; margin-top: 48px; }
.article-related-card small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }

/* crypto cards */
.c-row .row-actions { justify-content: flex-end; }
.c-label { display: none; }
.c-head { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.c-row { padding: 24px; transition: background-color 300ms var(--ease); }
.c-row + .c-row { border-top: 1px solid var(--line); }
.c-row:hover { background: var(--chip); }
.card-promos { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.guide-hero .card-promos { margin: 32px 0 0; }
.promo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 24px; }
.promo .live { padding: 4px 8px; border-radius: 4px; background: var(--chip); }
.promo b { color: var(--ink); font-weight: 600; font-size: 16px; line-height: 24px; flex: 1; min-width: 200px; }
.card-lead { max-width: 680px; margin-top: 16px; font-size: 20px; line-height: 32px; color: var(--text); }
.card-apply { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 32px; margin-top: 16px; padding: 32px; }
.card-apply .label { margin-bottom: 8px; }
.apply-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.code-chip { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.code-chip b { color: var(--ink); font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: 0.02em; flex: 1; }
.code-chip .btn.copied { border-color: #16A34A; color: #16A34A; }
.card-prose { max-width: none; min-width: 0; }
.guide-body > * { min-width: 0; }
.card-prose > p, .card-prose > ul, .card-prose > ol { max-width: 680px; }
.tier-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.tier-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 22px; }
.tier-table tr > :first-child { width: 128px; }
.tier-table .band { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; white-space: nowrap; }
.tier-table .band b { font-weight: 600; }
.tier-table th, .tier-table td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tier-table tr:last-child th, .tier-table tr:last-child td { border-bottom: 0; }
.tier-table thead th { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); background: var(--chip); }
.tier-table tbody th { font-weight: 500; color: var(--muted); font-size: 12px; line-height: 20px; position: sticky; left: 0; background: var(--surface); }
.tier-table td { color: var(--ink); text-wrap: pretty; }
.calc { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.calc-input { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.calc-input input { font: inherit; font-size: 24px; line-height: 32px; font-weight: 500; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 16px; font-variant-numeric: tabular-nums; }
.calc-input input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.calc-results { list-style: none; padding: 0 !important; margin: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px !important; }
.calc-results li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: var(--chip); }
.calc-results span { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.calc-results b { font-size: 24px; line-height: 32px; font-weight: 500; color: var(--ink); }
.calc-results small { font-size: 12px; line-height: 16px; color: var(--muted); }
.calc .t-note { margin-top: 0; }
.feature-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 680px; }
.feature-list div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feature-list dt { font-size: 14px; line-height: 22px; color: var(--muted); font-weight: 500; }
.feature-list dd { font-size: 14px; line-height: 22px; color: var(--ink); }
.apply-callout { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 680px; }
.apply-callout .code-chip { flex: 1; min-width: 240px; }
.source-list { list-style: none; padding-left: 0 !important; }

/* tablet */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .table:has(> .t-head), .table:has(> .c-head) { display: block; }
  .t-head { display: none; }
  .t-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .t-row .ex { grid-column: 1 / -1; }
  .t-row .row-actions { grid-column: 1 / -1; }
  .t-row .row-actions .btn { flex: 1; }
  .steps-grid, .bento, .guide-body, .events { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .guide-body:not(.no-toc) .article-end { grid-column: 1; }
  .guide-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { grid-template-columns: repeat(3, 1fr); }
  .summary .btn { grid-column: 1 / -1; }
  .card-apply { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apply-actions { grid-column: 1 / -1; }
  .c-head { display: none; }
  .c-row { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .c-row .ex, .c-row .row-actions { grid-column: 1 / -1; }
  .c-row .row-actions .btn { flex: 1; }
  .c-label { display: block; margin-bottom: 4px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
}

/* phone */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav { left: 16px; right: 16px; width: auto; max-width: none; transform: none; justify-content: space-between; gap: 8px; }
  .nav-theme { display: none; }
  .nav .btn-sm:not(.menu-toggle) { display: none; }
  /* Phone hero: the photo and chart fill the screen, the copy is a sheet that flows into the page below. */
  .hero { --hero-sheet: 248px; align-items: flex-end; padding: 0; }
  .hero > .wrap { padding: 0; }
  .wrap.guide-body { padding-top: 32px; padding-bottom: 64px; }
  .article-grid, .guide-links { grid-template-columns: minmax(0, 1fr); }
  .article-title { font-size: 36px; line-height: 40px; }
  .article-card-text { padding: 16px; }
  .article-related-card { padding: 16px; }
  .article-related-card .row-actions, .article-related-card .row-actions .btn { flex: 1; }
  .article-related-card .row-actions { width: 100%; }
  .hero-copy { width: 100%; max-width: none; padding: 24px 16px 32px; border: 0; border-radius: 24px 24px 0 0; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero h1.eyebrow { margin-bottom: 8px; font-size: 12px; line-height: 16px; }
  .hero .display { font-size: 36px; line-height: 40px; }
  .hero .lead { margin-top: 8px; font-size: 16px; line-height: 24px; text-wrap: balance; }
  .hero .hero-actions { flex-wrap: nowrap; gap: 16px; margin-top: 16px; }
  .hero .hero-actions .btn { flex: 1; }
  .market-scene { --scene-tint: var(--scene-tint-phone); }
  /* The photo stops just under the sheet and is framed on the towers and the National Assembly dome. */
  .market-scene .scene-photo { bottom: auto; height: calc(100svh - var(--hero-sheet) + 48px); object-position: 58% 64%; }
  /* The chart sits in the sky above the landmarks: no volume, time labels or solid price column on a narrow screen. */
  .market-scene svg { top: 24px; bottom: auto; height: calc(100svh - var(--hero-sheet) - 24px); min-height: 320px; }
  .market-scene .volume, .market-scene .times, .market-scene .scale, .market-scene .scale-edge { display: none; }
  .market-scene .scale-labels text, .market-scene .last text { font-size: 7px; }
  .market-scene .scale-labels text { fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 1px; stroke-linejoin: round; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: start; gap: 16px; margin-bottom: 32px; }
  .section-head h2, .steps-grid h2, .final h2 { font-size: 36px; line-height: 48px; }
  .t-row { padding: 24px 16px; }
  .rate { font-size: 24px; line-height: 32px; }
  .feature { padding: 24px; min-height: 0; }
  .event { padding: 24px; }
  .event dl div { grid-template-columns: 72px 1fr; }
  .feature h3 { font-size: 24px; line-height: 32px; }
  .channels, .channels-grid, .channels-grid .channels { grid-template-columns: 1fr; }
  .channels-grid .channels .channel:nth-child(even) { border-left: 0 !important; }
  .channels-grid .channels .channel:nth-child(2) { border-top: 1px solid var(--line) !important; }
  .channels .channel { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .channels .channel:first-child { border-top: 0 !important; }
  .faq { grid-template-columns: 1fr; }
  .guide-hero { padding: 128px 0 32px; }
  .guide-title h1 { font-size: 48px; }
  .page-top { padding-top: 128px; }
  .section-head h1 { font-size: 48px; }
  .article-page { padding: 112px 0 64px; }
  .article-header h1 { font-size: 36px; line-height: 48px; }
  .article-body { font-size: 16px; line-height: 28px; }
  .summary { grid-template-columns: 1fr 1fr; padding: 24px; gap: 24px; }
  .card-apply { grid-template-columns: 1fr 1fr; padding: 24px; gap: 24px; }
  .card-apply > div:first-child { grid-column: 1 / -1; }
  .c-row { padding: 24px 16px; grid-template-columns: 1fr 1fr; }
  .c-row .rate { grid-column: 1 / -1; }
  .calc { padding: 24px; }
  .tier-table tr > :first-child { width: 96px; }
  .feature-list div { grid-template-columns: 120px 1fr; }
  .promo { padding: 16px; }
  .prose p, .prose li { font-size: 16px; line-height: 24px; }
}
