/* ============================================================
   OTCDO — "Clear Ledger" design system
   ============================================================ */
/* Design tokens and the site header live in base.css, loaded first. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}
body::before {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  display: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.num { font-family: var(--f-sans); font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum", "lnum"; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.up { color: var(--up); }
.down { color: var(--down); }
.accent { color: var(--accent-ink); }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cc.lg { width: 30px; height: 24px; border-radius: 6px; font-size: 10px; vertical-align: middle; transform: translateY(-.12em); margin: 0 6px 0 2px; background: var(--accent-soft); color: var(--accent-ink); }

/* Reveal-on-scroll (only when JS is on) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

.ring { width: 20px; height: 20px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2; }
.ring .bg { stroke: var(--line-2); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 50.27; transition: stroke-dashoffset 1s linear; }
#btn-live-refresh.spin .ring { animation: spin .8s var(--ease-io); }
@keyframes spin { to { transform: rotate(270deg); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); isolation: isolate; overflow-x: clip; }
.hero::before {
  display: none; content: ""; position: absolute; z-index: -1; right: -10%; top: -20%; width: 70%; height: 130%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33M0 16 -28 0M56 16 84 0' fill='none' stroke='%23FFB21A' stroke-opacity='.18' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(closest-side at 60% 45%, #000 0%, transparent 100%);
          mask-image: radial-gradient(closest-side at 60% 45%, #000 0%, transparent 100%);
  opacity: .9;
}
.hero::after {
  display: none; content: ""; position: absolute; z-index: -2; left: 10%; top: 0; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  filter: blur(20px);
}
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-3); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--up); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; }
.live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.hero-price {
  display: flex; align-items: flex-start; gap: .06em;
  font-family: var(--f-sans); font-weight: 700;
  font-size: clamp(64px, 10vw, 148px);
  line-height: .9; letter-spacing: -.045em;
  margin: clamp(14px, 2vw, 24px) 0 clamp(18px, 2vw, 26px);
  font-variant-numeric: tabular-nums lining-nums;
}
.hero-price .sym { font-size: .34em; font-weight: 400; color: var(--accent-ink); letter-spacing: 0; margin-top: .14em; }
.hero-price .val { color: var(--ink); transition: color .6s; }
@keyframes flashUp { 20% { color: var(--up); } }
@keyframes flashDown { 20% { color: var(--down); } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink-2); }
.chip.accent { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.chip.up { border-color: color-mix(in oklab, var(--up) 35%, transparent); background: var(--up-soft); color: var(--up); }
.chip.down { border-color: color-mix(in oklab, var(--down) 35%, transparent); background: var(--down-soft); color: var(--down); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), border-color .3s, color .3s;
}
.btn .arr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; transition: transform .5s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent .arr { background: rgba(255, 255, 255, .18); color: var(--on-accent); }
.btn-accent::before { display: none; content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease-out); }
.btn-accent:hover::before { transform: translateX(120%); }

/* Hero side stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 20px; box-shadow: var(--shadow); }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat { padding: 18px 0 18px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 18px; }
.stat.full { grid-column: 1 / -1; padding-right: 0; border-right: 0; }
.range { position: relative; height: 4px; border-radius: 4px; background: var(--line-2); margin: 16px 0 8px; }

/* Chart */
.chart-card { margin-top: clamp(36px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 28px); position: relative; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.chart-title { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.chart { position: relative; height: 260px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .draw { stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); animation: draw 2.2s var(--ease-out) .2s forwards; }
.chart .fade { opacity: 0; animation: fadeIn 1.4s var(--ease-out) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.tip {
  position: absolute; top: 0; pointer-events: none; z-index: 3;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 12px; font-size: 12px; min-width: 160px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .3s var(--ease-out);
}
.tip.show { opacity: 1; transform: none; }
.chart-empty { height: 100%; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; }
.chart-note { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.chart-note:empty { display: none; }
.chart.still .draw { animation: none; stroke-dashoffset: 0; }
.chart.still .fade { animation: none; opacity: 1; }
.stale-note { display: none; margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; color: var(--ink); background: var(--warn-soft); border: 1px solid color-mix(in oklab, var(--warn) 35%, transparent); }
.stale-note.show { display: block; }
.live.off { color: var(--ink-3); }
.live.off i::after { animation: none; display: none; }
.tip-row { display: flex; justify-content: space-between; gap: 16px; }
.tip-t { font-family: var(--f-mono); color: var(--ink-3); font-size: 11px; margin-bottom: 6px; }

/* ---------- Sections ---------- */
section.block { padding: clamp(56px, 7vw, 96px) 0 0; }

/* Exchange ladder */
.ladder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 20px; box-shadow: var(--shadow); }
.bar { height: 6px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: var(--ink-3); transition: width 1.4s var(--ease-out); }

/* Exchange logo (sprite <use>) */
.exi { width: 16px; height: 16px; flex: none; border-radius: 4px; display: inline-block; vertical-align: -3px; overflow: hidden; }
.m-x .exi { width: 14px; height: 14px; border-radius: 3.5px; vertical-align: -2px; }
.fchip .exi { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); padding: clamp(20px, 2.4vw, 32px); position: relative; overflow: hidden; }
.card-h { font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; letter-spacing: -.02em; margin: 10px 0 22px; line-height: 1.15; }
.card-h em { font-style: normal; color: var(--accent-ink); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 24px; }
.pill { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; font-family: var(--f-mono); color: var(--ink-2); transition: all .3s var(--ease-out); }
.pill:hover { border-color: var(--line-2); color: var(--ink); }
.pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.outs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.out { background: var(--surface); padding: 16px 18px; }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; margin: 4px 0 24px; }
.node { text-align: center; }
.node b { display: block; font-size: 13px; }
.node small { font-size: 11px; color: var(--ink-3); font-family: var(--f-mono); }
@keyframes wire { to { background-position: 10px 0; } }
.swap { position: absolute; top: clamp(22px, 2.8vw, 36px); right: clamp(22px, 2.8vw, 36px); }
.swap svg { transition: transform .6s var(--ease-out); }
.swap:hover svg { transform: rotate(180deg); }

/* Orderbook */
.ob-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.toggle button { position: relative; z-index: 1; padding: 10px 20px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); border-radius: 9px; transition: color .4s; white-space: nowrap; }
.toggle button.on { color: var(--ink); }
.toggle .knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--surface); box-shadow: 0 1px 3px rgba(16, 22, 20, .14); transition: transform .5s var(--ease-out); }
.toggle[data-side="sell"] .knob { transform: translateX(100%); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { padding: 7px 13px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: all .3s var(--ease-out); white-space: nowrap; }
.fchip:hover { border-color: var(--line-2); color: var(--ink); }
.fchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.amt { height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 16px; display: flex; align-items: center; gap: 8px; background: var(--surface); transition: border-color .3s; }
.amt:focus-within { border-color: var(--accent); }
.amt input { background: transparent; border: 0; outline: none; width: 190px; font-family: var(--f-mono); font-size: 12.5px; }
.amt input::placeholder { color: var(--ink-3); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; height: 44px; padding: 0 14px 0 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .3s, background-color .3s, color .3s; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .trk { width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color .3s; flex: none; }
.switch .trk::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .45s var(--ease-out); }
.switch input:checked + .trk { background: var(--accent); }
.switch input:checked + .trk::after { transform: translateX(14px); background: var(--on-accent); }
.switch:has(input:checked) { border-color: var(--accent-line); color: var(--accent-ink); background: var(--accent-soft); }
.ob-count { font-size: 12px; color: var(--ink-3); font-family: var(--f-mono); }

.ob { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 20px; box-shadow: var(--shadow); }
.orow { display: grid; grid-template-columns: minmax(230px, 1.7fr) minmax(120px, .9fr) minmax(170px, 1.2fr) minmax(180px, 1.4fr) minmax(150px, 1fr) 150px; gap: 20px; align-items: center; }
.orow { position: relative; padding: 18px 0; border-bottom: 1px solid var(--line); transition: background-color .3s; animation: rowIn .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
.orow::before { content: ""; position: absolute; left: -16px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform .4s var(--ease-out); }
.orow:hover::before { transform: scaleY(1); }
.orow:last-child { border-bottom: 0; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
.m { display: flex; align-items: center; gap: 12px; min-width: 0; }
.m-av { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--surface-2); color: var(--ink); border-radius: 10px; }
.m-n { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-x { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.tag.shield { color: var(--accent-ink); background: var(--accent-soft); }
.tag.pro { color: var(--up); background: var(--up-soft); }
.o-price { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.o-lim { font-size: 13px; }
.o-lim small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.pays { display: flex; flex-wrap: wrap; gap: 5px; }
.pay { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pay i { width: 6px; height: 6px; border-radius: 50%; }
.o-met { font-size: 13px; }
.o-met small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.meter { width: 64px; height: 3px; border-radius: 3px; background: var(--line-2); display: inline-block; vertical-align: middle; margin-left: 6px; overflow: hidden; position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--up); border-radius: 3px; }
.o-cta { justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 18px; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: transform .5s var(--ease-out), background-color .3s, color .3s, border-color .3s; border: 1px solid var(--line-2); }
.o-cta svg { transition: transform .5s var(--ease-out); }
.o-cta:hover svg { transform: translate(2px, -2px); }
.o-cta.buy:hover { background: var(--up); color: var(--on-accent); border-color: var(--up); }
.o-cta.sell:hover { background: var(--down); color: #fff; border-color: var(--down); }
.ob-split { margin: 22px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--bg-2); color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }
.empty { padding: 60px 0; text-align: center; color: var(--ink-3); font-size: 14px; }
.empty b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--ink-2); margin-bottom: 6px; }

/* Cheat sheet + safety */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding: 0 0 12px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:not(:first-child), .tbl td:not(:first-child) { text-align: right; }
.tbl tbody tr { transition: background-color .25s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.rules { counter-reset: r; }
.rule { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rule:first-child { padding-top: 4px; }
.rule:last-child { border-bottom: 0; padding-bottom: 0; }
.rule h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin: 6px 0; line-height: 1.35; }
.rule p { font-size: 13.5px; color: var(--ink-2); }

/* FAQ */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 24px; box-shadow: var(--shadow); }
.faq details:last-child { border-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 60px 1fr 44px; gap: 16px; align-items: center; padding: 20px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq .q { font-family: var(--f-display); font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; transition: color .3s; }
.faq summary:hover .q { color: var(--accent-ink); }
.faq .plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; justify-self: end; transition: transform .6s var(--ease-out), background-color .3s, border-color .3s; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease-out); }
.faq details[open] .plus { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: rotate(180deg); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .a { display: grid; grid-template-columns: 60px 1fr 44px; gap: 16px; }
.faq .a p { grid-column: 2; color: var(--ink-2); font-size: 14.5px; max-width: 72ch; padding-bottom: 28px; line-height: 1.7; }
.faq details[open] .a p { animation: fadeUp .6s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } }
.prose h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 18px; }
.prose p { color: var(--ink-2); font-size: 15px; line-height: 1.85; max-width: 68ch; }
.prose p + p { margin-top: 14px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.steps li::before { content: counter(s); width: 26px; height: 26px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; }
.method { list-style: none; display: grid; gap: 10px; }
.method li { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; padding-left: 16px; position: relative; }
.method li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .8; }

/* Footer */
footer { margin-top: clamp(64px, 8vw, 120px); background: var(--surface); border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0 32px; position: relative; overflow: hidden; }
.f-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.f-k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.f-links { display: flex; flex-wrap: wrap; gap: 8px; }
.f-links a { font-size: 13px; color: var(--ink-2); padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; transition: all .3s var(--ease-out); }
.f-links a:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.f-disc { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; max-width: 52ch; }
.wordmark {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.05em; line-height: .8;
  font-size: clamp(96px, 22vw, 360px); margin: clamp(40px, 6vw, 80px) 0 clamp(16px, 2vw, 28px);
  color: var(--surface-2); white-space: nowrap; user-select: none;
  transition: -webkit-text-stroke-color .6s;
}
.wordmark i { font-style: normal; color: var(--accent-soft); }
.f-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-3); font-family: var(--f-mono); padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .lrow { grid-template-columns: 40px minmax(150px, 1.3fr) minmax(120px, 1fr) minmax(120px, 1.2fr) minmax(90px, .8fr) 40px; }
  .lrow .l-depth { display: none; }
  .ob-head, .orow { grid-template-columns: minmax(200px, 1.6fr) minmax(110px, .9fr) minmax(150px, 1.1fr) minmax(150px, 1.3fr) 130px; }
  .ob-head .c-met, .orow .o-met { display: none; }
}
@media (max-width: 960px) {
  .two, .f-grid { grid-template-columns: 1fr; }
  .orow { grid-template-columns: 1fr auto; grid-template-areas: "m p" "l l" "y y" "c c"; gap: 12px 16px; padding: 20px 0; }
  .orow .m { grid-area: m; }
  .orow .o-price { grid-area: p; text-align: right; }
  .orow .o-lim { grid-area: l; display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
  .orow .o-lim small { margin-top: 0; }
  .orow .pays { grid-area: y; }
  .orow .o-cta { grid-area: c; justify-self: stretch; justify-content: center; height: 44px; }
  .orow .o-met { display: none; }
  .orow::before { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .outs { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 4px; }
  .faq summary, .faq .a { grid-template-columns: 34px 1fr 40px; gap: 10px; }
  .amt input { width: 100%; }
  .amt, .switch { flex: 1 1 100%; }
  .toggle { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .toggle button { padding: 10px 8px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
  .rule { grid-template-columns: 44px 1fr; }
  .chart { height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Payment-method / exchange focus block and the explore links */
.focus-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.fstat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 16px 18px; }
.fstat .fk { font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.fstat .fv { font-size: 24px; font-weight: 700; margin-top: 6px; }
.fstat .fn { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.focus-text { margin-top: 26px; max-width: 72ch; color: var(--ink-2); }
.focus-text p + p { margin-top: 12px; }
.focus-text h3 { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--ink); margin: 26px 0 10px; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

/* Order tags: large-only ads and ads that need extra verification are listed but not used for headline prices */
.tag.big, .tag.kyc { color: var(--ink-2); background: transparent; border: 1px solid var(--line); }

/* Daily history block on payment-method / exchange pages */
.focus-hist { margin-top: 30px; }
.focus-hist h3 { font-family: var(--f-display); font-weight: 700; font-size: 22px; margin-bottom: 12px; }
.hfig { margin: 0; }
.hchart { width: 100%; height: auto; display: block; }
.hchart .g { stroke: var(--line); }
.hchart .ax { fill: var(--ink-3); font: 10.5px var(--f-mono); }
.hchart .band { fill: var(--accent-soft); }
.hchart .line { fill: none; stroke: var(--accent); stroke-width: 2; }
.hchart .fx { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 4 4; }
.hfig .legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.hfig .legend i { display: inline-block; width: 14px; height: 8px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.hfig .k-line { background: var(--accent); } .hfig .k-band { background: var(--accent-soft); } .hfig .k-fx { border-top: 1.5px dashed var(--ink-3); height: 0; }
.fh-note { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.fh-tbl { overflow-x: auto; margin-top: 14px; }
.fh-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.fh-tbl caption { text-align: left; font-size: 12px; color: var(--ink-3); padding-bottom: 6px; }
.fh-tbl th, .fh-tbl td { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fh-tbl th:first-child, .fh-tbl td:first-child { text-align: left; }
.fh-tbl th { font: 500 11px var(--f-mono); color: var(--ink-3); text-transform: uppercase; }
.recs { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 16px; background: var(--surface); box-shadow: var(--shadow); max-width: 520px; }
.rec { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-top: 1px solid var(--line); color: inherit; }
.rec:first-child { border-top: 0; }
.fill-sel { height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); }
.fill-sel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fill-list { display: flex; flex-direction: column; margin-top: 10px; }
.fh-tbl td.warn { color: var(--warn); }
.fill-table { margin-top: 20px; }
.fill-table .card-h { margin-top: 0; }

/* ==========================================================
   OTCDO desk layout: one amount drives the page.
   ========================================================== */
html[data-theme="light"] { --rc-bg: #101614; --rc-ink: #F2F5F3; --rc-dim: #A3B2AB; --rc-line: rgba(255, 255, 255, .14); --rc-acc: #5FD6AA; }
html[data-theme="dark"]  { --rc-bg: #F2F5F3; --rc-ink: #101614; --rc-dim: #4F5B56; --rc-line: rgba(16, 22, 20, .14); --rc-acc: #0B7A5C; }
.warn { color: var(--warn); }

/* The tool */
.desk { padding-top: clamp(20px, 3vw, 40px); }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.ask { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.ask-h { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.ask-h em { font-style: normal; color: var(--accent-ink); }
.ask .toggle { width: 100%; max-width: 420px; }
.ask .presets { margin: 0; }
.ask .fill-sel { max-width: 420px; }

.receipt {
  position: relative; background: var(--rc-bg); color: var(--rc-ink);
  border-radius: 6px 6px var(--r-lg) var(--r-lg); padding: 30px clamp(20px, 2.4vw, 32px) 24px;
  box-shadow: 0 24px 60px -24px rgba(16, 22, 20, .45);
  font-variant-numeric: tabular-nums;
}
/* torn top edge */
.receipt::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 8px;
  background: radial-gradient(circle at 7px 0, transparent 6px, var(--rc-bg) 6.5px) 0 0 / 14px 8px repeat-x; }
.rc-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--rc-dim); padding-bottom: 14px; border-bottom: 1px dashed var(--rc-line); }
.rc-head .mono { text-transform: none; letter-spacing: 0; }
.rc-best { padding: 18px 0 20px; border-bottom: 1px dashed var(--rc-line); }
.rc-k { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--rc-dim); }
.rc-big { margin: 6px 0 14px; font-size: 18px; color: var(--rc-dim); }
.rc-big b { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -.04em; color: var(--rc-ink); margin-right: 6px; }
.rc-line { display: flex; align-items: baseline; gap: 8px; font-size: 14px; padding: 5px 0; }
.rc-line > span:first-child { color: var(--rc-dim); }
.rc-line i { flex: 1; border-bottom: 1px dotted var(--rc-line); transform: translateY(-4px); }
.rc-line .warn { color: #FFB547; }
html[data-theme="dark"] .rc-line .warn { color: var(--warn); }
.rc-cta { width: 100%; justify-content: center; margin-top: 16px; background: var(--rc-acc); color: var(--rc-bg); }
.rc-none { color: var(--rc-dim); padding: 12px 0; }
.rc-others { display: flex; flex-direction: column; padding: 8px 0; }
.rc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--rc-line); color: var(--rc-ink); }
.rc-row:last-child { border-bottom: 0; }
.rc-row:hover .rc-ex { color: var(--rc-acc); }
.rc-row.off { grid-template-columns: minmax(0, 1fr) auto; }
.rc-ex { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 600; min-width: 0; }
.rc-k { flex-wrap: wrap; }
.rc-tag { display: inline-block; padding: 2px 7px; border: 1px solid var(--rc-acc); border-radius: 999px; color: var(--rc-acc); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0; white-space: nowrap; }
.rc-tag + .rc-tag { margin-left: -2px; }
.rc-dim { color: var(--rc-dim); font-size: 12.5px; }
.rc-foot { font-size: 12px; color: var(--rc-dim); margin-top: 8px; line-height: 1.6; }
.rc-foot a { color: var(--rc-acc); text-decoration: underline; text-underline-offset: 2px; }

/* Blocks */
.blk { padding-top: clamp(48px, 6vw, 80px); }
.blk-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.blk-h h2 { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.blk-more { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.blk-d { color: var(--ink-3); font-size: 14px; max-width: 72ch; margin-bottom: 18px; }
.blk-d a { color: var(--accent-ink); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.t-k { font-size: 12.5px; color: var(--ink-3); }
.t-v { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.03em; }
.t-n { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.blk .chart-card { margin-top: 12px; }

.ob-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ob-count { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; font-family: var(--f-mono); }
.rep { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font: 700 11.5px var(--f-mono); vertical-align: 1px; }
.tag.up-t { color: var(--ink-2); background: var(--surface-2); }

.tbl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; box-shadow: var(--shadow); }
.xt { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; }
.xt th { text-align: left; font: 500 12px var(--f-sans); color: var(--ink-3); padding: 14px 18px; border-bottom: 1px solid var(--line); }
.xt td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.xt tr:last-child td { border-bottom: 0; }
.xt td:last-child { text-align: right; }
.xt-n { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.xt-n .exi { width: 22px; height: 22px; border-radius: 6px; }

.guide-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.guide-grid .prose p { font-size: 14.5px; line-height: 1.8; }
.tips { list-style: none; display: grid; gap: 14px; }
.tips li { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.tips b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.method-d { margin-top: 16px; }
.method-d summary { cursor: pointer; margin: 0; }
.method-d[open] summary { margin-bottom: 14px; }

.faq2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; align-items: start; }
.faq2 details { padding: 18px 20px; }
.faq2 summary { cursor: pointer; font-weight: 600; font-size: 15px; line-height: 1.45; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq2 summary::-webkit-details-marker { display: none; }
.faq2 summary::after { content: "+"; color: var(--accent-ink); font-weight: 700; }
.faq2 details[open] summary::after { content: "–"; }
.faq2 p { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }

footer { margin-top: clamp(64px, 8vw, 112px); padding: 40px 0 24px; }
footer .f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.f-brand { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin-bottom: 10px; }
.f-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.f-col a { color: var(--ink-2); }
.f-col a:hover { color: var(--accent-ink); }
footer .f-bot { margin-top: 32px; }

@media (max-width: 1080px) {
  .tool { grid-template-columns: 1fr; }
  .ask .toggle, .ask .fill-sel { max-width: none; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid .prose { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .faq2, .guide-grid, footer .f-grid { grid-template-columns: 1fr; }
  .rc-row { grid-template-columns: 1fr auto; }
  .rc-row .rc-dim:last-child { grid-column: 1 / -1; }
  .ob-bar .switch { flex: 1 1 100%; }
}
@media (max-width: 1080px) { .tool { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .nav-in { gap: 10px; }
  .nav-act { gap: 6px; }
  #btn-live-refresh { display: none; } /* still drives the auto refresh, just not shown */
}
@media (max-width: 960px) { .two { grid-template-columns: minmax(0, 1fr); } }
.two > *, .guide-grid > *, .faq2 > *, .tiles > * { min-width: 0; }

/* ==========================================================
   Polish pass: type, rhythm, the pay/get equation, motion.
   Space Grotesk / IBM Plex: display weight 600, body 400–500.
   ========================================================== */
:root { --e-out: cubic-bezier(.22, 1, .36, 1); --e-spring: cubic-bezier(.34, 1.56, .64, 1); }
.logo-word, .ask-h, .blk-h h2, .card-h, .t-v, .rc-big b, .f-brand, .prose h3, .focus-text h3, .focus-hist h3, .o-price, .fstat .fv { font-weight: 600; }
body { font-size: 15px; line-height: 1.6; }
::selection { background: var(--accent); color: var(--on-accent); }

/* The equation: you pay  →  you get */
.desk { padding-top: 0; }
.tool { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px); padding-top: clamp(36px, 6vw, 88px); padding-bottom: clamp(16px, 2vw, 24px); align-items: center; }
.ask { gap: 18px; padding-top: 0; }
.eyebrow { font-size: 12.5px; gap: 6px 14px; }
.ask-h { font-size: clamp(30px, 3.3vw, 50px); line-height: 1.06; letter-spacing: -.035em; max-width: 14em; }
.ask-h em { display: block; }
.amt-card { margin-top: clamp(8px, 1.6vw, 20px); display: flex; flex-direction: column; gap: 14px; }
.ask-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ask .toggle { width: auto; max-width: none; grid-template-columns: auto auto; }
.ask .toggle button { padding: 9px 18px; font-size: 14px; }
.sel { position: relative; display: inline-flex; }
.sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.ask .fill-sel { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 38px 0 16px; border-radius: 12px; border: 0; background: var(--surface-2); font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; max-width: 260px; transition: background-color .2s; }
.ask .fill-sel:hover { background: color-mix(in oklab, var(--surface-2) 70%, var(--line-2)); }
.amt-lbl { font-size: 13px; color: var(--ink-3); margin-top: 10px; letter-spacing: .02em; }
.amt-row { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; transition: border-color .25s; }
.amt-row:focus-within { border-color: var(--accent); }
.amt-sym { font-size: clamp(24px, 2.6vw, 38px); color: var(--ink-3); font-weight: 500; }
.amt-row input { flex: 1; min-width: 0; width: 100%; border: 0; outline: none; background: transparent; padding: 0; font-family: var(--f-sans); font-weight: 500; font-size: clamp(52px, 6.6vw, 104px); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--ink); caret-color: var(--accent); }
.amt-code { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.ask .presets { gap: 6px; }
.ask .pill { border: 0; background: transparent; color: var(--ink-3); padding: 6px 10px; transition: background-color .2s, color .2s, transform .2s var(--e-spring); }
.ask .pill:hover { color: var(--ink); background: var(--surface-2); }
.ask .pill:active { transform: scale(.94); }
.ask .pill.on { background: var(--ink); color: var(--bg); }

.eq { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-3); align-self: center; background: var(--bg); }
.eq svg { width: 26px; height: 26px; }

.receipt { padding-top: 26px; transform-origin: top center; }
.rc-head { font-size: 11.5px; }
.rc-lbl { margin-top: 12px; font-size: 13px; color: var(--rc-dim); }
.rc-big { margin: 2px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.rc-big b { font-size: clamp(48px, 5.6vw, 92px); line-height: 1; font-weight: 500; letter-spacing: -.05em; margin: 0; }
.rc-k { font-size: 13px; }
.rc-cta { height: 54px; border-radius: 12px; font-size: 15px; gap: 10px; }
.rc-cta .arr { transition: transform .35s var(--e-out); }
.rc-cta:hover .arr { transform: translateX(5px); }
.rc-row { transition: padding .3s var(--e-out); }
.rc-row:hover { padding-left: 6px; }
.rc-sum { font-size: 11.5px; color: var(--rc-dim); margin-top: 4px; }
.rc-sum:empty { display: none; }
.receipt.feed .rc-best { animation: feed .55s var(--e-out); }
@keyframes feed { from { opacity: .2; transform: translateY(-10px); clip-path: inset(0 0 60% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

/* First screen arrives in order */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.tool .eyebrow, .tool .ask-h, .tool .amt-card, .tool .eq, .tool .receipt { animation: rise .9s var(--e-out) both; }
.tool .ask-h { animation-delay: .06s; }
.tool .amt-card { animation-delay: .14s; }
.tool .eq { animation-delay: .26s; }
.tool .receipt { animation-delay: .2s; }

/* Rhythm: a white band for the market, generous gaps elsewhere */
.blk { padding-top: clamp(64px, 8vw, 120px); }
.blk-h { margin-bottom: 8px; }
.blk-h h2 { font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.03em; }
.blk-d { margin-bottom: 22px; }
#pulse { position: relative; isolation: isolate; margin-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 88px); }
#pulse::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#pulse .tile { background: var(--bg); border-color: transparent; }
#pulse .chart-card { box-shadow: none; background: var(--bg); border-color: transparent; }
.pulse-sum { margin: 18px 0 4px; max-width: 78ch; font-size: 13.5px; color: var(--ink-3); line-height: 1.75; }
.tile { transition: transform .35s var(--e-out), border-color .2s; }
.tile:hover { transform: translateY(-2px); }
.t-v { letter-spacing: -.035em; }

/* Lists and tables: hover feedback */
.orow { transition: background-color .2s; border-radius: 10px; }
.orow:hover { background: var(--bg); }
.o-cta { transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--e-spring); }
.o-cta:active, .btn:active { transform: scale(.97); }
.xt tbody tr { transition: background-color .2s; }
.xt tbody tr:hover { background: var(--bg); }
.fchip { transition: background-color .2s, color .2s, border-color .2s; }
.rep { transition: transform .2s var(--e-spring); }
.rep:hover { transform: scale(1.08); }
.faq2 details { transition: border-color .2s, box-shadow .2s; }
.faq2 details:hover { border-color: var(--line-2); }
.faq2 summary::after { transition: transform .3s var(--e-out); }
.faq2 details[open] summary::after { content: "+"; transform: rotate(45deg); }
.method-d summary { list-style: none; display: flex; justify-content: space-between; }
.method-d summary::-webkit-details-marker { display: none; }
.method-d summary::after { content: "+"; color: var(--accent-ink); transition: transform .3s var(--e-out); }
.method-d[open] summary::after { transform: rotate(45deg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Scroll reveal (added by the page script) */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--e-out), transform .9s var(--e-out); }
.rv.in { opacity: 1; transform: none; }

/* Phone result bar */
.mbar { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--rc-bg); color: var(--rc-ink); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); transform: translateY(140%); transition: transform .45s var(--e-out); }
.mbar.show { transform: none; }
.mbar:empty { display: none !important; }
.mb-t { display: flex; flex-direction: column; min-width: 0; }
.mb-t small { font-size: 11.5px; color: var(--rc-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-t b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.mbar .btn { height: 44px; padding: 0 18px; border-radius: 11px; background: var(--rc-acc); color: var(--rc-bg); flex: none; }

@media (max-width: 1080px) {
  .tool { grid-template-columns: minmax(0, 1fr); padding-top: clamp(24px, 5vw, 48px); }
  .eq { justify-self: center; transform: rotate(90deg); width: 44px; height: 44px; margin: -4px 0; }
  .tool .eq { animation-name: none; }
  .mbar { display: flex; }
}
@media (max-width: 520px) {
  .ask-ctl { flex-direction: column; align-items: stretch; }
  .ask .toggle { grid-template-columns: 1fr 1fr; }
  .ask .fill-sel { max-width: none; width: 100%; }
  .sel { display: flex; }
  .ask .presets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .ask .presets::-webkit-scrollbar { display: none; }
  .ask .pill { flex: none; }
  .nav-links a[aria-current="page"]::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .tool .eyebrow, .tool .ask-h, .tool .amt-card, .tool .eq, .tool .receipt { animation: none; }
}

/* Round 2: quieter repeated actions, tidier tables and link lists */
.ob .o-cta, .xt .o-cta { border-color: transparent; background: transparent; color: var(--accent-ink); height: 38px; padding: 0 14px; }
.orow:hover .o-cta, .xt tbody tr:hover .o-cta { background: var(--accent); color: var(--on-accent); }
.ob .o-cta:focus-visible, .xt .o-cta:focus-visible { background: var(--accent); color: var(--on-accent); }
.two { align-items: start; }
.fill-table .fh-tbl th:nth-child(2), .fill-table .fh-tbl td:nth-child(2) { text-align: left; }
.fh-tbl th, .fh-tbl td { padding: 9px 10px; }
.fh-tbl tbody tr:hover td { background: var(--bg); }
.explore .f-links { flex-direction: column; gap: 2px; }
.explore .f-links a { border: 0; padding: 5px 0; border-radius: 0; background: none; color: var(--ink-2); font-size: 14px; }
.explore .f-links a:hover { background: none; color: var(--accent-ink); }
.explore-grid { gap: 32px; }
footer { background: var(--surface); }
/* Selling reverses the flow: the arrow turns to point from USDT back to the money */
.eq svg { transition: transform .6s var(--e-out); }
.tool:has(#fill-side[data-side="sell"]) .eq svg { transform: rotate(180deg); }
.toggle .knob { transition: transform .45s var(--e-out); }
/* Scroll boxes must contain their absolutely positioned children (e.g. .sr-only headers),
   or those escape and widen the phone layout viewport. */
.tbl-card, .fh-tbl, .tbl { position: relative; }
.sr-only { top: 0; left: 0; }

/* ==========================================================
   Weekday × hour premium map ("when is USDT cheapest")
   ========================================================== */
.heat-card { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: clamp(18px, 2.4vw, 28px); }
.heat-zone { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.heat-call { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; max-width: 72ch; }
.heat-call b { font-weight: 600; }
.heat-call b.up { color: var(--accent-ink); }
.heat-call b.warn { color: var(--warn); }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; }
.heat .hx { font: 10px/1 var(--f-mono); color: var(--ink-3); padding-bottom: 4px; }
.heat .hy { font-size: 11px; color: var(--ink-3); align-self: center; white-space: nowrap; }
.heat i { height: 22px; border-radius: 3px; background: color-mix(in oklab, var(--accent) calc(var(--k) * 100%), var(--surface-2)); transition: transform .2s var(--e-out); }
.heat i.hi { background: color-mix(in oklab, var(--warn) calc(var(--k) * 100%), var(--surface-2)); }
.heat i.na { background: var(--surface-2); opacity: .5; }
.heat i:hover { transform: scale(1.35); position: relative; z-index: 1; box-shadow: 0 0 0 1.5px var(--ink); }
.heat-leg { margin-top: 12px; }
.heat-leg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.heat-leg i.lo { background: var(--accent); }
.heat-leg i.hi { background: var(--warn); }
.heat-wait p { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; max-width: 64ch; }
.heat-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.heat-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
@media (max-width: 560px) { .heat { grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 2px; } .heat i { height: 14px; border-radius: 2px; } }

/* Receipt: split-order breakdown and share button */
.rc-legs { margin-top: 8px; border-top: 1px dashed var(--rc-line); padding-top: 8px; font-size: 12.5px; }
.rc-legs summary { cursor: pointer; color: var(--rc-dim); list-style: none; display: flex; align-items: center; gap: 6px; }
.rc-legs summary::-webkit-details-marker { display: none; }
.rc-legs summary::after { content: "+"; font-family: var(--f-mono); margin-left: auto; transition: transform .25s var(--e-out); }
.rc-legs[open] summary::after { transform: rotate(45deg); }
.rc-legs ol { list-style: none; margin-top: 6px; }
.rc-legs li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; color: var(--rc-ink); }
.rc-legs li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-legs li .mono { color: var(--rc-dim); flex: none; }
.rc-share { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rc-line); background: transparent; color: var(--rc-dim); font: 500 12.5px var(--f-sans); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.rc-share:hover { color: var(--rc-ink); border-color: var(--rc-dim); }
.rc-share.done { color: var(--rc-bg); background: var(--rc-acc); border-color: var(--rc-acc); }
.rc-share svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Telegram price alerts */
.alert-card { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 18px clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(120deg, var(--accent-soft), var(--surface) 60%); }
.alert-txt { display: flex; gap: 14px; align-items: flex-start; min-width: 0; flex: 1 1 280px; }
.alert-txt b { font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.alert-txt p { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.alert-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.alert-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.alert-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.alert-btn { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; transition: border-color .2s, transform .25s var(--e-out), background-color .2s; }
.alert-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.alert-more { font-size: 13px; color: var(--accent-ink); text-decoration: none; padding: 9px 4px; }
@media (max-width: 560px) { .alert-acts { width: 100%; } .alert-btn { flex: 1 1 auto; text-align: center; } }

/* Quote card: link to the sign-up guide under the buy button */
.rc-su { display: block; margin-top: 10px; text-align: center; font-size: 13px; color: var(--rc-dim); text-decoration: underline; text-decoration-color: var(--rc-line); text-underline-offset: 3px; }
.rc-su:hover { color: var(--rc-acc); }

/* Beginner reading path on the currency page */
.start-grid { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.start-grid li { counter-increment: st; min-width: 0; }
.start-c { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px 20px; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.45; transition: border-color .2s, transform .3s var(--e-out); }
.start-c::before { content: "0" counter(st); font: 500 12px var(--f-mono); color: var(--accent-ink); }
.start-c:hover { border-color: var(--ink-3); transform: translateY(-2px); }
@media (max-width: 900px) { .start-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .start-grid { grid-template-columns: 1fr; } }

/* Featured exchanges under the quote card */
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.pick { display: flex; flex-direction: column; gap: 14px; }
.pick-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pick-h .exi { width: 26px; height: 26px; }
.pick-h h3 { font-size: 20px; margin: 0 4px 0 2px; }
.pick-tag { border: 1px solid var(--accent-ink); color: var(--accent-ink); background: transparent; }
.pick-pts { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.pick-p { margin: 0; font-size: 13px; color: var(--ink-3); }
.pick-a { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: auto; }
.pick-g { font-size: 14px; color: var(--accent-ink); }
.pick-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.xt .pick-tag { margin-left: 8px; font-size: 11px; vertical-align: middle; }
@media (max-width: 720px) { .picks { grid-template-columns: 1fr; } }

/* Quote card: the winner reads first, the number stays big but no longer drowns it */
.rc-k { gap: 10px; }
.rc-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--rc-acc); color: var(--rc-bg); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.rc-exn { display: inline-flex; align-items: center; gap: 8px; color: var(--rc-ink); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.rc-exn .exi { width: 24px; height: 24px; }
.rc-big b { font-size: clamp(44px, 4.6vw, 72px); }
.rc-ok { color: var(--rc-acc); font-size: 14px; font-weight: 600; }
.rc-others:empty { display: none; }
.rc-bot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.rc-bot .rc-sum { margin: 0; }
.rc-bot .rc-share { margin: 0 0 0 auto; padding: 5px 10px; font-size: 12px; }
.rc-foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rc-line); }

/* Merchant list: column names, and a label on every number */
.ob-head { display: grid; grid-template-columns: minmax(230px, 1.7fr) minmax(120px, .9fr) minmax(170px, 1.2fr) minmax(180px, 1.4fr) minmax(150px, 1fr) 150px; gap: 20px; padding: 12px 0 10px; margin-top: 10px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.o-k { margin-right: 6px; color: var(--ink-3); font-size: 11.5px; }
@media (max-width: 960px) { .ob-head { display: none; } }

/* "?" next to a hard word, linking to its glossary entry */
.gl { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; border: 1px solid currentColor; font: 600 10px/1 var(--f-sans); color: var(--ink-3); text-decoration: none; vertical-align: 1px; opacity: .8; }
.gl:hover { color: var(--accent-ink); opacity: 1; }
