/* E8 Pay / E8 Wallet official site — static only. The CSP is style-src 'self': no <style> blocks and no
   style="" attributes anywhere (inline SVG included); every page is styled from files like this one. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-2: #243044;
  --muted: #667085;
  --line: #e6eaf0;
  --teal: #0f766e;
  --teal-soft: #ecfdf8;
  --navy: #0b1b2b;
  --navy-2: #123047;
  --max: 1120px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid #14b8a6;
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.top.is-solid {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  position: relative;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  order: 3;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-pay {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 500;
  order: 2;
  margin-left: auto;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--teal);
}

.nav a.nav-cta[aria-current="page"] {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--teal);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0b1b2b 0%, #0f766e 55%, #0b1220 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 85% 30%, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(500px 280px at 10% 90%, rgba(15, 118, 110, 0.35), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hero-name {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-aka {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 15em;
}

.hero-sub {
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--ink);
}

.btn-primary:hover {
  background: #eef7f4;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--teal);
}

.btn-line {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-line:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hero-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 1.6rem;
}

.hero-rail span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.hero-rail img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

img[src$=".svg"],
.hero-rail img,
.trust-item img,
.channel-ico img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* SVG prefers smooth; override crisp for vectors */
img[src$=".svg"] {
  image-rendering: auto;
}

.hero-visual {
  justify-self: end;
  width: min(100%, 300px);
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.35));
}

.phone {
  width: min(100%, 280px);
  border-radius: 26px;
  padding: 8px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  backdrop-filter: blur(8px);
}

.phone-notch {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 4px auto 8px;
}

.phone-screen {
  background: #f2f3f7;
  color: #14161a;
  border-radius: 18px;
  padding: 12px 12px 8px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mini-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-top img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.mini-top strong {
  font-size: 13px;
  letter-spacing: -0.02em;
}

.mini-chip {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: #2f6fed;
  background: rgba(47, 111, 237, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
}

.mini-hello {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mini-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2f6fed, #6a4cf5);
  color: #fff;
  border-radius: 16px;
  padding: 14px;
}

.mini-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.mini-label {
  font-size: 12px;
  opacity: 0.88;
}

.mini-amount {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}

.mini-amount small {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.88;
  margin-left: 4px;
}

.mini-sub,
.mini-link {
  font-size: 11px;
  opacity: 0.85;
}

.mini-link {
  margin-top: 6px;
}

.mini-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 4px;
}

.mini-actions > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #14161a;
}

.mini-actions i {
  font-style: normal;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(47, 111, 237, 0.1);
  color: #2f6fed;
  font-weight: 700;
  font-size: 14px;
}

.mini-sec {
  font-size: 12px;
  font-weight: 700;
  color: #667085;
  padding: 2px 2px 0;
}

.mini-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mini-tiles > div {
  background: #fff;
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
}

.mini-tiles span {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.mini-tiles em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 10px;
  color: #14161a;
}

.mini-tab {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: #fff;
  border-radius: 14px;
  padding: 6px 2px 4px;
  border: 1px solid #e6eaf0;
  text-align: center;
  font-size: 12px;
  color: #8a8f98;
  line-height: 1.15;
}

.mini-tab .on {
  color: #2f6fed;
  font-weight: 700;
}

.mini-tab small {
  font-size: 9px;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.02);
}

.feat-no {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Merchant */
.merchant {
  background: linear-gradient(160deg, #0b1b2b, #123047 55%, #0b1220);
  color: #fff;
}

.merchant .eyebrow {
  color: #5eead4;
}

.merchant .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.merchant-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.merchant-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.merchant-points li {
  padding: 0.9rem 0 0.9rem 1rem;
  border-left: 2px solid #5eead4;
}

.merchant-points strong {
  display: block;
  margin-bottom: 0.2rem;
}

.merchant-points span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

.merchant-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.merchant-panel h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.merchant-panel p {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.step-no {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Contacts */
.channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.channel:hover {
  border-color: #99f6e4;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.channel-ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #eff8ff;
  display: grid;
  place-items: center;
}

.channel-ico img {
  width: 26px;
  height: 26px;
}

.channel-body {
  min-width: 0;
  flex: 1;
}

.channel-body strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.channel-body span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.channel-handle {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
}

.support-strip {
  margin-top: 1.4rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: var(--teal-soft);
  border: 1px solid #ccfbf1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.support-strip p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  max-width: 36rem;
}

/* Footer */
.foot {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.72);
  padding: 2.4rem 0 2rem;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.45rem 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.trust-item > div {
  min-width: 0;
}

.trust-item strong,
.trust-item em {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trust-item strong {
  display: block;
  color: #fff;
  font-size: 0.74rem;
  line-height: 1.2;
}

.trust-item em {
  display: block;
  font-style: normal;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.1rem;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.3rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.foot-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.foot-brand strong {
  display: block;
  color: #fff;
}

.foot-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.foot-links a:hover {
  color: #fff;
}

.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
}

.foot-legal p {
  margin: 0;
}

.foot-legal a:hover {
  color: #fff;
}

@media (max-width: 960px) {
  .hero-inner,
  .feature-grid,
  .merchant-layout,
  .steps,
  .channels,
  .trust-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    width: min(100%, 280px);
  }

  .trust-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Five section links, the CTA and the language switch only fit side by side on wide screens. */
@media (max-width: 960px) {
  .nav {
    display: none;
    margin-left: 0;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.7rem 1rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 50;
  }

  .nav.open a {
    padding: 0.55rem 0.25rem;
  }

  .nav.open .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .top-actions {
    margin-left: auto;
  }

  .menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 3.2rem 0 2.8rem;
  }

  .hero-inner,
  .feature-grid,
  .merchant-layout,
  .steps,
  .channels,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 260px);
    order: -1;
  }

  .phone {
    width: min(100%, 250px);
    padding: 7px;
  }

  .phone-screen {
    min-height: 420px;
  }

  .mini-amount {
    font-size: 24px;
  }

  .hero-rail span {
    font-size: 0.72rem;
  }

  .hero-rail img {
    width: 18px;
    height: 18px;
  }

  .hero h1 {
    max-width: none;
  }

  .channel {
    align-items: flex-start;
  }

  .channel-handle {
    margin-left: auto;
  }

  .support-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .trust-item {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
    padding: 0.45rem 0.2rem;
  }

  .trust-item > div {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------------------------------
   E8 Pay platform (index.html, 2026-11-27)
   --------------------------------------------------------------------------------------------------- */

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  padding: 0.08em 0.36em;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.09);
  color: #0d4f49;
  overflow-wrap: anywhere;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.h1-line {
  display: block;
}

.hero-facts {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.2rem;
  max-width: 38rem;
}

.hero-facts li {
  position: relative;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #5eead4;
}

.hero-visual figcaption {
  margin-top: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}

.hero-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Web checkout illustration: no real address and no scannable code. */
.pay-card {
  width: min(100%, 300px);
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
}

.pay-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pay-head img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.pay-head strong {
  font-size: 0.95rem;
}

.pay-status {
  margin-left: auto;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 700;
}

.pay-to {
  color: var(--muted);
  font-size: 0.76rem;
}

.pay-to b {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.pay-amount {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pay-amount small {
  margin-left: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.pay-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.pay-nets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.pay-nets span {
  padding: 0.38rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 600;
}

.pay-nets .on {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.pay-addr {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.pay-qr {
  width: 84px;
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #fff;
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff), linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff), repeating-conic-gradient(#334155 0 25%, #fff 0 50%);
  background-size: 8px 8px, 8px 8px, 8px 8px, 14px 14px, 14px 14px, 14px 14px, 20px 20px, 20px 20px, 20px 20px,
    24px 24px, 24px 24px, 24px 24px, 7px 7px;
  background-position: 12px 12px, 64px 12px, 12px 64px, 9px 9px, 61px 9px, 9px 61px, 6px 6px, 58px 6px, 6px 58px,
    4px 4px, 56px 4px, 4px 56px, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat,
    no-repeat, no-repeat, no-repeat, no-repeat, repeat;
}

.pay-addr-text {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.pay-addr-text em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.72rem;
}

.pay-addr-text b {
  color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.pay-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pay-copy span {
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: #f2f4f7;
  color: var(--ink-2);
  font-size: 0.7rem;
  font-weight: 600;
}

.pay-note {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink-2);
  font-size: 0.72rem;
}

.pay-tg {
  display: block;
  padding: 0.55rem;
  border-radius: 999px;
  background: #0f6fa8;
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Payment flow diagram */
.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: start;
}

.flow-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.flow-notes li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.flow-notes strong {
  display: block;
  margin-bottom: 0.2rem;
}

.flow-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.flow-msg {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  background: var(--teal-soft);
  color: var(--ink-2);
  font-weight: 600;
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 34px;
}

.flow > li {
  position: relative;
}

.flow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 2px;
  height: 26px;
  margin-left: -1px;
  background: var(--teal);
}

.flow > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -34px;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--teal);
  border-bottom-width: 0;
}

.flow-node {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.flow-no {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.flow-node strong,
.flow-path strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.flow-node p,
.flow-path p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.flow-node.is-core {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.flow-node.is-core p {
  color: rgba(255, 255, 255, 0.78);
}

.flow-node.is-core .flow-no {
  background: #5eead4;
  color: var(--navy);
}

.flow-node.is-done {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.flow-tags span {
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 600;
}

.flow-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 22px 0;
}

.flow-split::before,
.flow-split::after {
  content: "";
  position: absolute;
  left: calc(25% - 0.2rem);
  right: calc(25% - 0.2rem);
  height: 22px;
  border: 2px solid var(--teal);
}

.flow-split::before {
  top: 0;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.flow-split::after {
  bottom: 0;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.flow-path {
  padding: 0.85rem 0.9rem;
  border: 1px solid #99f6e4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.08);
}

.flow-path-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
}

.flow-or {
  display: none;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Scenarios */
.scen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.scen {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.section-alt .scen {
  background: var(--bg);
}

.scen-tag {
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 700;
}

.scen h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.scen p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.ticks {
  list-style: none;
  margin: auto 0 0;
  padding: 0.8rem 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 0.35rem;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.ticks li {
  position: relative;
  padding-left: 1.3rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.42em;
  width: 0.6rem;
  height: 0.32rem;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.scen-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.scen-more h3 {
  font-size: 1.02rem;
}

.sub-title {
  margin: 2rem 0 0.9rem;
  color: var(--ink);
  font-size: 1.05rem;
}

/* Developer ecosystem */
.eco {
  background: linear-gradient(160deg, #0b1b2b, #0f3b3a 60%, #0b1220);
  color: #fff;
}

.eco .eyebrow {
  color: #5eead4;
}

.eco .section-head p {
  color: rgba(255, 255, 255, 0.74);
}

.eco code {
  background: rgba(255, 255, 255, 0.1);
  color: #ccfbf1;
}

.eco-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 1rem;
  align-items: stretch;
}

.eco-card {
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.eco-card.is-planned {
  border-style: dashed;
}

.eco-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
}

.eco-card > p {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.badge {
  display: inline-block;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-live {
  background: rgba(94, 234, 212, 0.16);
  color: #5eead4;
}

.badge-planned {
  background: rgba(251, 191, 36, 0.16);
  color: #fcd34d;
}

.badge-planned-light {
  background: #fffbeb;
  color: #92400e;
}

.eco-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.eco-list li {
  position: relative;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

.eco-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #5eead4;
}

.eco-map {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
  align-items: center;
  margin: 0 0 1.2rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.eco-team {
  position: relative;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  background: #5eead4;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

.eco-merchants {
  display: grid;
  gap: 0.4rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(94, 234, 212, 0.6);
}

.eco-merchants span {
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
}

.eco-cta {
  margin-top: 1.4rem;
}

/* Security */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sec-item {
  padding: 1.2rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.sec-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.7rem;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal);
}

.sec-ico svg {
  width: 20px;
  height: 20px;
}

.sec-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.sec-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Onboarding */
.steps-cta {
  margin-top: 1.4rem;
}

.merchant .cta-row + .cta-row {
  margin-top: 0.75rem;
}

/* Wallet intro */
.wallet-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.wallet-intro .section-head {
  margin-bottom: 1.4rem;
}

.wallet-intro .section-head p + p {
  margin-top: 0.75rem;
}

.wallet-visual {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  border-radius: 24px;
  background: linear-gradient(145deg, #0b1b2b 0%, #0f766e 60%, #0b1220 100%);
}

.wallet-visual .phone {
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.faq-group + .faq-group {
  margin-top: 2.2rem;
}

.feature h4 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.faq-group .sub-title {
  margin-top: 0;
}

/* Subpage header/footer (support, legal, developers, 404) */
.foot-sub {
  padding-top: 2rem;
}

/* support.html: prominent link to the developer docs */
.doc.doc-top {
  padding-top: 32px;
  padding-bottom: 0;
}

.doc-top + .doc {
  padding-top: 28px;
}

.doc-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}

.doc-banner strong {
  display: block;
  font-size: 1.05rem;
}

.doc-banner p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.doc-banner .btn-primary {
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------------------------------------
   Developer docs (developers.html)
   --------------------------------------------------------------------------------------------------- */

.docs-hero {
  padding: 2.8rem 0 2.4rem;
  background: linear-gradient(145deg, #0b1b2b 0%, #0f766e 70%, #0b1220 100%);
  color: #fff;
}

.crumbs {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

.crumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crumbs a:hover {
  color: #fff;
}

.docs-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.docs-hero p {
  margin: 0;
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.84);
}

.docs-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.docs-facts li {
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.docs-facts code {
  padding: 0;
  background: none;
  color: #fff;
}

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding: 2.4rem 0 4rem;
}

.toc {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.toc-title {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc-toggle {
  display: none;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.05rem;
  border-left: 2px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -2px;
  padding: 0.3rem 0.75rem;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.4;
}

.toc a:hover {
  color: var(--teal);
}

.toc a[aria-current="true"] {
  border-left-color: var(--teal);
  color: var(--teal);
  font-weight: 600;
}

.doc-body {
  min-width: 0;
}

.doc-body > section {
  padding: 0 0 2.2rem;
  margin: 0 0 2.2rem;
  border-bottom: 1px solid var(--line);
}

.doc-body > section:last-of-type {
  border-bottom: 0;
}

.doc-body h2 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.doc-body h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.doc-body p,
.doc-body li {
  color: var(--ink-2);
}

.doc-body p {
  margin: 0 0 0.85rem;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.doc-body li {
  margin: 0.3rem 0;
}

.doc-body a:not(.btn) {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-wrap {
  margin: 0.6rem 0 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: #f8fafc;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap td:first-child code {
  white-space: nowrap;
}

.callout {
  margin: 0 0 1.1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #ccfbf1;
  border-radius: 12px;
  background: var(--teal-soft);
}

.callout-warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.code {
  margin: 0.6rem 0 1.2rem;
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 12px;
  background: #0b1220;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem 0.35rem 0.9rem;
  background: #111a2e;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
}

.copy-btn {
  display: none;
  padding: 0.22rem 0.65rem;
  border: 1px solid #475569;
  border-radius: 8px;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.js .copy-btn {
  display: inline-block;
}

.copy-btn:hover,
.copy-btn.is-done {
  border-color: #5eead4;
  color: #5eead4;
}

.code pre {
  margin: 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  color: #e2e8f0;
  font-size: 0.82rem;
  line-height: 1.6;
  tab-size: 2;
}

.code pre code {
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

.tabs [role="tablist"] {
  display: none;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.6rem 0 0.4rem;
  border-bottom: 1px solid var(--line);
}

.js .tabs [role="tablist"] {
  display: flex;
}

.tab {
  margin-bottom: -1px;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-selected="true"] {
  border-bottom-color: var(--teal);
  color: var(--teal);
}

.method {
  display: inline-block;
  min-width: 3.1rem;
  padding: 0.04rem 0.4rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.method-get {
  background: #eff6ff;
  color: #1d4ed8;
}

.method-post {
  background: #ecfdf5;
  color: #047857;
}

.checklist {
  list-style: none;
  padding-left: 0 !important;
}

.checklist li {
  position: relative;
  padding-left: 1.85rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--teal);
  border-radius: 5px;
}

.faq-list details {
  margin: 0 0 0.6rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.faq-list summary {
  padding: 0.75rem 0;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.faq-list details p {
  margin: 0 0 0.9rem;
}

.doc-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 960px) {
  .flow-layout,
  .wallet-intro,
  .eco-grid {
    grid-template-columns: 1fr;
  }

  .scen-grid,
  .sec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-top: 1.4rem;
  }

  .toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0.2rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }

  .js .toc-title {
    display: none;
  }

  .js .toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .toc-toggle::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.2rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
  }

  .toc.open .toc-toggle::after {
    transform: rotate(-135deg);
  }

  .js .toc:not(.open) ol {
    display: none;
  }

  .toc ol {
    margin: 0.2rem 0 0.8rem;
  }
}

@media (max-width: 720px) {
  .hero-facts,
  .scen-grid,
  .scen-more,
  .sec-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner > .hero-visual {
    order: 1;
    width: min(100%, 300px);
  }

  .hero-visual figcaption {
    margin-top: 0.5rem;
  }

  .eco-map {
    grid-template-columns: 1fr;
  }

  .eco-merchants {
    padding-left: 0;
    padding-top: 0.6rem;
    border-left: 0;
    border-top: 2px solid rgba(94, 234, 212, 0.6);
  }

  .doc-body h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 440px) {
  .flow-split {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0;
  }

  .flow-split::before,
  .flow-split::after {
    display: none;
  }

  .flow-or {
    display: block;
  }

  .brand-pay {
    display: none;
  }
}
