@font-face { font-family: "Bai Jamjuree"; src: url(/fonts/bai-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bai Jamjuree"; src: url(/fonts/bai-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(/fonts/work-sans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(/fonts/space-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(/fonts/space-mono-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #0b0b0a; --paper-hi: #151513; --paper-lo: #1d1d1a;
  --ink: #ecebe6; --ink-2: #a6a49c; --ink-3: #858279;
  --rule: rgba(236, 235, 230, .09); --rule-strong: rgba(236, 235, 230, .18);
  --stamp: #ff5b37; --stamp-soft: rgba(255, 91, 55, .16);
  --display: "Bai Jamjuree", "Arial Narrow", sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --wrap: 1180px; --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background-color: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); overflow-x: clip;
  background-image: radial-gradient(ellipse 70% 520px at 50% -120px, rgba(255, 91, 55, .07), transparent 70%); background-repeat: no-repeat; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--stamp); }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--stamp); color: #140603; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 10, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--rule); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-lo); }
.xbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--rule-strong); color: var(--ink); }
.xbtn svg { width: 16px; height: 16px; }
.xbtn[hidden] { display: none; }
@media (max-width: 560px) { .nav a.hide-sm { display: none; } .nav a { padding: 8px 8px; font-size: 14px; } .brand { font-size: 19px; } }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1.5px solid var(--rule-strong);
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .2s, color .2s; background: transparent; color: var(--ink); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn.solid { background: var(--stamp); border-color: var(--stamp); color: #140603; }
.btn.solid:hover { background: #ff7656; border-color: #ff7656; }
.btn:not(.solid):hover { background: var(--paper-lo); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--rule-strong); background: var(--paper-hi); color: var(--ink);
  font: 400 15px/1 var(--mono); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--stamp); box-shadow: 0 0 0 4px var(--stamp-soft); }
.hint { font-size: 14px; color: var(--ink-2); }
.err { color: #ff8a7a; font-weight: 500; font-size: 14px; }

/* hero */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 4.9vw, 64px); }
.hero .lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero .ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 480px) { .hero h1 { font-size: clamp(32px, 9vw, 44px); } .hero .ctas { gap: 8px; margin-top: 22px; } .hero .ctas .btn { padding: 0 14px; font-size: 15px; } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* cost-part colours (hero, table, legend); the hero itself is in hero.css */
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.c-fee { background: var(--stamp); } .c-pri { background: #ecebe6; } .c-tip { background: #7d7b74; } .c-slip { background: repeating-linear-gradient(135deg, #ecebe6 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px #ecebe6; }

/* sections */
.sec { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sec h2 { font-size: clamp(30px, 4vw, 48px); }
.sec .sub { margin-top: 10px; color: var(--ink-2); max-width: 40em; }

/* table */
.rates { width: 100%; border-collapse: collapse; }
.rates th { text-align: right; font: 600 13px/1.2 var(--body); color: var(--ink-2); padding: 0 12px 10px; border-bottom: 1.5px solid var(--rule-strong); white-space: nowrap; }
.rates th:nth-child(-n+2) { text-align: left; }
.rates td { padding: 14px 12px; border-bottom: 1px solid var(--rule); text-align: right; font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.rates td.app { text-align: left; font: 600 17px/1.2 var(--body); white-space: normal; }
.rates td.rank { text-align: left; width: 48px; font-weight: 700; color: var(--stamp); }
.rates td.total { font-weight: 700; font-size: 16px; }
.rates .pct { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.rates tr.first td { background: rgba(255, 91, 55, .07); }
.rates tr.first td.rank::after { content: ""; }
.rates tr.unranked td { color: var(--ink-3); }
.bar { display: flex; height: 8px; border-radius: 3px; overflow: hidden; margin-top: 8px; background: var(--paper-lo); }
.bar span { display: block; height: 100%; transform-origin: left; }
.approw-meta { display: block; font: 400 13px/1.3 var(--body); color: var(--ink-3); margin-top: 3px; }
.table-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .rates thead { display: none; }
  .rates, .rates tbody, .rates tr, .rates td { display: block; }
  .rates tr { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 8px; padding: 14px 4px; border-bottom: 1px solid var(--rule); }
  .rates td { border: 0; padding: 0; text-align: left; }
  .rates td.rank { grid-row: 1; grid-column: 1; align-self: center; }
  .rates td.app { grid-row: 1; grid-column: 2; }
  .rates td.total { grid-row: 1; grid-column: 3; text-align: right; }
  .rates td.cost { grid-column: 2 / 4; display: flex; justify-content: space-between; font-size: 13.5px; }
  .rates td.cost { justify-content: flex-start; align-items: baseline; }
  .rates td.cost::before { content: attr(data-label); font-family: var(--body); color: var(--ink-2); margin-right: auto; }
  .rates td.cost .pct { min-width: 4.2em; text-align: right; }
  .rates td.cost .pct { display: inline; margin-left: 6px; }
  .rates td.swaps { display: none; }
  .rates tr.first { background: rgba(255, 91, 55, .07); border-radius: 12px; padding: 14px 10px; }
  .rates tr.first td { background: none; }
}
.empty { border: 1.5px dashed var(--rule-strong); border-radius: 18px; padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--paper-hi); }
.empty h3 { font-size: 22px; }
.empty p { margin-top: 6px; color: var(--ink-2); max-width: 46em; }
.empty svg { width: 76px; height: 76px; }
@media (max-width: 560px) { .empty { grid-template-columns: 1fr; } .empty svg { width: 60px; height: 60px; } }

/* method */
.parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--rule-strong); }
.part { padding: 22px 22px 26px 0; }
.part + .part { padding-left: 22px; border-left: 1px solid var(--rule); }
.part svg { width: 44px; height: 44px; margin-bottom: 14px; }
.part h3 { font-size: 21px; }
.part p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .parts { grid-template-columns: 1fr 1fr; } .part:nth-child(3) { padding-left: 0; border-left: 0; } .part:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 520px) { .parts { grid-template-columns: 1fr; } .part, .part + .part { padding: 20px 0; border-left: 0; } .part + .part { border-top: 1px solid var(--rule); } .part { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; } .part svg { grid-row: span 2; margin: 2px 0 0; } }
.fine { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 14.5px; color: var(--ink-2); }
.fine b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }
@media (max-width: 760px) { .fine { grid-template-columns: 1fr; gap: 16px; } }

/* wallet strip on home */
.strip { background-color: #151513; background-image: radial-gradient(circle at 100% 0%, rgba(255, 91, 55, .14), transparent 55%); border: 1px solid var(--rule-strong); color: var(--ink); border-radius: 22px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr minmax(0, 1fr); gap: 28px; align-items: center; }
.strip h2 { color: var(--ink); }
.strip p { margin-top: 10px; color: var(--ink-2); }
.strip form { display: flex; gap: 10px; }
.strip .input { background: #0b0b0a; color: var(--ink); border-color: var(--rule-strong); }
.strip .btn { border-color: var(--stamp); background: var(--stamp); color: #140603; flex: none; }
.strip .btn:hover { background: #ff7656; border-color: #ff7656; }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .strip form { flex-direction: column; } }

/* footer */
.foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* inner pages */
.page-head { padding: clamp(32px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(36px, 5.4vw, 60px); }
.page-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 40em; }
.panel { background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(18px, 3vw, 28px); }
.panel h2 { font-size: 24px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > .field { flex: 1 1 220px; }
.pay { display: grid; gap: 12px; margin-top: 14px; }
.pay .amt { font: 700 clamp(26px, 6vw, 34px)/1 var(--mono); letter-spacing: -.03em; }
.copy { display: flex; gap: 8px; align-items: center; background: var(--paper); border: 1px dashed var(--rule-strong); border-radius: 12px; padding: 10px 12px; }
.copy code { font: 400 13.5px/1.4 var(--mono); word-break: break-all; flex: 1; }
.copy button { flex: none; border: 1.5px solid var(--rule-strong); background: none; color: var(--ink); border-radius: 9px; min-height: 36px; padding: 0 12px; font: 600 13px/1 var(--body); cursor: pointer; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); }
.dot.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.wreport { margin-top: 24px; display: grid; gap: 14px; }
.wcard { background: var(--paper-hi); border: 1px solid var(--rule); border-radius: 16px; padding: 18px; }
.wcard .wtop { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.wcard h3 { font-size: 22px; }
.wcard .big { font: 700 22px/1 var(--mono); }
.wcard dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.wcard dt { font-size: 13px; color: var(--ink-2); }
.wcard dd { margin: 2px 0 0; font: 400 15px/1.2 var(--mono); }
@media (max-width: 560px) { .wcard dl { grid-template-columns: 1fr 1fr; } }
.docs h2 { font-size: 26px; margin-top: 36px; }
.docs h3 { font-size: 19px; margin-top: 22px; }
.docs p, .docs li { color: var(--ink-2); max-width: 46em; }
.docs p { margin-top: 10px; }
.docs pre { background: #151513; color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; overflow-x: auto; font: 400 13.5px/1.55 var(--mono); margin: 12px 0 0; }
.docs code { font-family: var(--mono); font-size: .92em; }
.docs table { border-collapse: collapse; margin-top: 12px; width: 100%; font-size: 14.5px; }
.docs td, .docs th { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.docs td:first-child { font-family: var(--mono); white-space: nowrap; }
@media (max-width: 560px) { .docs tr, .docs td, .docs th { display: block; } .docs th { display: none; } .docs td:first-child { white-space: normal; word-break: break-word; padding-bottom: 2px; border-bottom: 0; } .docs td + td { padding-top: 0; } }
.tablewrap { overflow-x: auto; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal .part, .fine.reveal > * { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in .part, .fine.reveal.in > * { opacity: 1; transform: none; }
.reveal.in .part:nth-child(2), .fine.reveal.in > :nth-child(2) { transition-delay: 80ms; }
.reveal.in .part:nth-child(3), .fine.reveal.in > :nth-child(3) { transition-delay: 160ms; }
.reveal.in .part:nth-child(4) { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal .part, .fine.reveal > * { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.mt8 { margin-top: 8px; }
.top-align { align-items: start; }
.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.pb-l { padding-bottom: 72px; }
.pb-xl { padding-bottom: 120px; }
.input.area { padding: 12px; min-height: 110px; line-height: 1.5; }
