/* "The receipt" — lp01 landing (11.11.2026). Loaded only by lp01; style.css
   stays for lp02–05, the home page and from-trust-wallet until they move to this system.
   Palette = brand "Passage" (ink #14283F, muted cobalt #54769B, frost #EDF2F7)
   plus one signal colour: stamp-pad cobalt — the Passage cobalt hue pushed to
   full chroma, used only for the 0 TRX stamp, the primary action and links.
   Tokens use the --rc- prefix: landing.js writes the old --page/--ink/… tokens
   inline from theme.js, and those must not leak into this page. */

/* Fonts: self-hosted Google Fonts subsets (SIL OFL 1.1, see fonts/OFL-*.txt).
   unicode-range lets the browser fetch only the scripts a page actually uses. */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Unbounded-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-017F;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Unbounded-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
    U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
    U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/Onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/Onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-0130, U+0132-0151, U+0154-017F;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/Onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/Onest-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,
    U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,
    U+0329, U+1EA0-1EF9, U+20AB;
}
/* Amounts only: digits, separators (incl. U+00A0/U+202F from Intl), letters. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/JetBrainsMono-amounts.woff2") format("woff2");
  unicode-range: U+0020, U+002B-002E, U+0030-0039, U+0041-005A, U+0061-007A,
    U+00A0, U+00B7, U+2009, U+202F, U+2026, U+2212;
}

:root {
  --rc-display: "Unbounded", "Onest", system-ui, sans-serif;
  --rc-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rc-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas,
    monospace;
  /* Light — Passage on frost */
  --rc-bg: #edf2f7; /* frost (brand) */
  --rc-paper: #ffffff; /* receipt surface */
  --rc-band: #f8fafc; /* fee band */
  --rc-ink: #14283f; /* ink (brand) — 13.4:1 on frost */
  --rc-muted: #4c6178; /* ink-tinted slate — 5.7:1 on frost */
  --rc-line: #cfdae6;
  --rc-rule: #9fb1c5; /* dotted receipt rules */
  --rc-cobalt: #54769b; /* muted cobalt (brand) — decorative only */
  --rc-signal: #2257c5; /* stamp-pad cobalt — 6.5:1 with white, 5.8:1 on frost */
  --rc-on-signal: #ffffff;
  --rc-signal-soft: rgba(34, 87, 197, 0.08);
  --rc-night: #14283f; /* keys band */
  --rc-night-ink: #edf2f7;
  --rc-night-muted: #b4c4d6;
  --rc-night-link: #a9c6ff;
  --rc-shadow: 0 1px 0 rgba(20, 40, 63, 0.04), 0 18px 40px -18px rgba(20, 40, 63, 0.28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rc-bg: #0c1724;
    --rc-paper: #15263a;
    --rc-band: #101e2f;
    --rc-ink: #e7eef6;
    --rc-muted: #a3b4c8;
    --rc-line: #24384f;
    --rc-rule: #3a5674;
    --rc-cobalt: #7d9cc0;
    --rc-signal: #8cb2f5;
    --rc-on-signal: #0b1626;
    --rc-signal-soft: rgba(140, 178, 245, 0.1);
    --rc-night: #e3ebf4;
    --rc-night-ink: #14283f;
    --rc-night-muted: #3f5670;
    --rc-night-link: #2257c5;
    --rc-shadow: 0 0 0 1px rgba(140, 178, 245, 0.08), 0 24px 48px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --rc-bg: #0c1724;
  --rc-paper: #15263a;
  --rc-band: #101e2f;
  --rc-ink: #e7eef6;
  --rc-muted: #a3b4c8;
  --rc-line: #24384f;
  --rc-rule: #3a5674;
  --rc-cobalt: #7d9cc0;
  --rc-signal: #8cb2f5; /* 8.4:1 with #0b1626 text: the primary stays primary */
  --rc-on-signal: #0b1626;
  --rc-signal-soft: rgba(140, 178, 245, 0.1);
  --rc-night: #e3ebf4; /* keys band flips to frost: the one bright block */
  --rc-night-ink: #14283f;
  --rc-night-muted: #3f5670;
  --rc-night-link: #2257c5;
  --rc-shadow: 0 0 0 1px rgba(140, 178, 245, 0.08), 0 24px 48px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--rc-bg);
  color: var(--rc-ink);
  font: 400 17px/1.55 var(--rc-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--rc-signal);
  outline-offset: 3px;
  border-radius: 4px;
}
.noscript {
  margin: 0;
  padding: 14px 16px;
  text-align: center;
  background: var(--rc-paper);
  color: var(--rc-ink);
  border-bottom: 1px solid var(--rc-line);
  font-size: 15px;
}
.shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}
.num {
  font-family: var(--rc-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Chinese (/zh-Hans/, /zh-Hant/): the brand fonts have no CJK glyphs. Latin words
   and digits keep Unbounded/Onest; Han characters fall to the platform's CJK face for the
   script (SC/TC differ in glyph shapes), never to an unrelated system default. */
:root:lang(zh-Hans) {
  --rc-cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC",
    "Microsoft YaHei";
}
:root:lang(zh-Hant) {
  --rc-cjk: "PingFang TC", "Noto Sans TC", "Source Han Sans TC", "Microsoft JhengHei";
}
:root:lang(zh-Hans),
:root:lang(zh-Hant) {
  --rc-display: "Unbounded", "Onest", var(--rc-cjk), system-ui, sans-serif;
  --rc-text: "Onest", var(--rc-cjk), system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
}
/* Negative tracking tightens Han characters into each other. */
:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hant) h1,
:lang(zh-Hant) h2 {
  letter-spacing: 0;
}
h1,
h2 {
  font-family: var(--rc-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(22px, 5.6vw, 34px);
  line-height: 1.2;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.mark {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}
.desktop-nav {
  display: none;
}
.preferences {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.preferences select,
.preferences button {
  height: 36px;
  border: 1px solid var(--rc-line);
  border-radius: 8px;
  background: var(--rc-paper);
  color: var(--rc-ink);
  font: 500 16px var(--rc-text);
}
.preferences select {
  max-width: 136px;
  padding: 0 8px;
  font-size: 16px; /* under 16px iOS zooms the page on focus */
}
.preferences button {
  width: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.preferences svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons and links */
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--rc-signal);
  color: var(--rc-on-signal);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.primary:hover {
  filter: brightness(1.08);
}
.text-link {
  color: var(--rc-signal);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link:hover {
  text-decoration-thickness: 2px;
}

/* Hero */
.hero {
  display: grid;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 56px;
}
.hero h1 {
  font-size: clamp(27px, 7.2vw, 52px);
  line-height: 1.16;
  max-width: 13em;
}
.lead {
  margin-top: 12px;
  max-width: 34em;
  color: var(--rc-muted);
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 20px;
}

/* The receipt: life-size send confirmation, HTML not an image. */
.receipt-wrap {
  width: 100%;
  max-width: 380px;
  justify-self: center;
}
.receipt {
  position: relative;
  padding: 18px 20px 30px;
  background: var(--rc-paper);
  border-radius: 14px 14px 0 0;
  /* Torn bottom edge. */
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat,
    conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 18px 9px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat,
    conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 18px 9px repeat-x;
}
.receipt-wrap {
  filter: drop-shadow(0 16px 24px rgba(20, 40, 63, 0.16));
}
:root[data-theme="dark"] .receipt-wrap {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .receipt-wrap {
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  }
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  font-weight: 600;
  font-size: 16px;
}
.network {
  padding: 2px 8px;
  border: 1px solid var(--rc-line);
  border-radius: 6px;
  color: var(--rc-muted);
  font-size: 12px;
  font-weight: 500;
}
.receipt dl,
.fee-table dl {
  display: grid;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 8px 0;
  border-top: 1.5px dotted var(--rc-rule);
}
.row dt {
  color: var(--rc-muted);
  font-size: 15px;
}
.row dd {
  text-align: right;
  font-size: 16px;
}
.receipt .row.fee dd {
  color: var(--rc-signal);
}
.receipt .row.total {
  border-top-style: solid;
  border-top-width: 1.5px;
  border-top-color: var(--rc-ink);
}
.receipt .row.total dt {
  color: var(--rc-ink);
  font-weight: 600;
}
.receipt .row.total dd {
  font-size: 18px;
}
.stamp {
  display: inline-block;
  padding: 3px 10px 2px;
  border: 2.5px solid var(--rc-signal);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1.5px var(--rc-paper), inset 0 0 0 3px var(--rc-signal);
  color: var(--rc-signal);
  font: 600 17px/1.3 var(--rc-display);
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-right: 4px;
  transform: rotate(-5deg);
  background: var(--rc-signal-soft);
}
.receipt-button {
  margin-top: 14px;
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 10px;
  /* Illustration of the wallet's own button: quieter than the page CTA. */
  background: var(--rc-signal-soft);
  border: 1px solid var(--rc-line);
  color: var(--rc-ink);
  font-weight: 600;
  font-size: 16px;
}
.receipt-wrap figcaption {
  margin-top: 12px;
  color: var(--rc-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

/* One print-in on load: paper feeds down, the stamp lands last. */
@media (prefers-reduced-motion: no-preference) {
  .receipt {
    animation: rc-print 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
  }
  .stamp {
    animation: rc-stamp 0.28s cubic-bezier(0.3, 0.6, 0.3, 1.3) 0.75s both;
  }
}
@keyframes rc-print {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(-10px);
  }
  to {
    clip-path: inset(0 0 -20px 0);
    transform: none;
  }
}
@keyframes rc-stamp {
  from {
    opacity: 0;
    transform: rotate(-5deg) scale(1.35);
  }
  to {
    opacity: 1;
    transform: rotate(-5deg) scale(1);
  }
}

/* Sections */
section:not(.hero) {
  padding-block: 64px;
}
.split {
  display: grid;
  gap: 28px;
}
.prose {
  display: grid;
  gap: 14px;
  max-width: 36em;
  align-content: start;
}
.prose p {
  color: var(--rc-muted);
  text-wrap: pretty;
}
.prose h2 {
  margin-bottom: 4px;
}
.band {
  background: var(--rc-band);
  border-block: 1px solid var(--rc-line);
}
.band > .shell {
  padding-block: 0;
}
.fee-table {
  align-self: start;
  padding: 6px 20px 18px;
  background: var(--rc-paper);
  border: 1px solid var(--rc-line);
  border-radius: 14px;
}
.fee-table .row:first-child {
  border-top: 0;
}
.fee-table .row dt {
  color: var(--rc-ink);
  font-size: 16px;
}
.fee-table .row dd {
  font-size: 18px;
}
.fee-table figcaption {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1.5px dotted var(--rc-rule);
  color: var(--rc-muted);
  font-size: 13px;
  line-height: 1.5;
}

.who h2 {
  margin-bottom: 24px;
}
.situations {
  display: grid;
  border-top: 1.5px solid var(--rc-ink);
}
.situations li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1.5px dotted var(--rc-rule);
}
.situations p {
  color: var(--rc-muted);
  max-width: 40em;
}

.wallets.split {
  padding-top: 0;
}
.wallet-list {
  width: 100%;
  max-width: 380px;
}
.wallet-list ul {
  padding: 6px;
  background: var(--rc-paper);
  border: 1px solid var(--rc-line);
  border-radius: 14px;
  box-shadow: var(--rc-shadow);
}
.wallet-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 9px;
  font-weight: 500;
}
.wallet-list li + li {
  border-top: 1px solid var(--rc-line);
  border-radius: 0 0 9px 9px;
}
.wallet-list li.selected {
  background: var(--rc-signal-soft);
  box-shadow: inset 3px 0 0 var(--rc-signal);
}
.wallet-list li .num {
  font-size: 15px;
}
.wallet-list figcaption {
  margin-top: 10px;
  color: var(--rc-muted);
  font-size: 13px;
}

.keys {
  background: var(--rc-night);
  color: var(--rc-night-ink);
  border: 0;
}
.keys .prose p {
  color: var(--rc-night-muted);
}
.keys .prose p:first-child {
  color: var(--rc-night-ink);
}
.keys .text-link {
  color: var(--rc-night-link);
  justify-self: start;
}

.closing {
  display: grid;
  justify-items: start;
  gap: 16px;
}
.fee-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  color: var(--rc-muted);
  font-size: 15px;
}
.fee-line .num {
  color: var(--rc-ink);
}
.fee-line .dot {
  color: var(--rc-rule);
}
.closing .primary {
  margin-top: 8px;
}

/* Footer (featured-on badges slot sits just above it). */
.site-footer {
  border-top: 1px solid var(--rc-line);
  padding-block: 32px 40px;
  color: var(--rc-muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  gap: 16px;
}
.site-footer .brand {
  color: var(--rc-ink);
  margin-bottom: 4px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--rc-ink);
}
.privacy-note {
  max-width: 44em;
  font-size: 13px;
}

/* Small phones: keep the receipt + CTA above the fold. */
@media (max-width: 380px) {
  .shell {
    padding-inline: 16px;
  }
  .preferences select {
    max-width: 124px;
  }
}

@media (min-width: 760px) {
  .shell {
    padding-inline: 32px;
  }
  .desktop-nav {
    display: flex;
    gap: 24px;
    margin-left: 32px;
    font-size: 15px;
  }
  .desktop-nav a {
    color: var(--rc-muted);
    text-decoration: none;
  }
  .desktop-nav a:hover {
    color: var(--rc-ink);
  }
  .site-header {
    min-height: 76px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 56px;
    padding-top: 40px;
    padding-bottom: 96px;
  }
  .lead {
    font-size: 19px;
    margin-top: 20px;
  }
  .hero-actions {
    margin-top: 32px;
  }
  section:not(.hero) {
    padding-block: 104px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
  .wallets.split {
    align-items: center;
  }
  .wallet-list {
    justify-self: end;
  }
  .who {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 64px;
  }
  .who h2 {
    margin-bottom: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .privacy-note {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 96px;
  }
  .receipt-wrap {
    max-width: 400px;
  }
}
