/* PAYp2p landing — the portal's "Clearing" palette, dark only.
   Colours and type mirror payp2p-app apps/web/src/design/tokens.ts.
   No JavaScript and no inline styles: nginx.conf's CSP is default-src 'self'. */

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/space-grotesk-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/public-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --base: #0a1110;
  --raised: #121a17;
  --raised-2: #18231f;
  --line: #212c28;
  --line-2: #2c3a34;
  --text: #e8efea;
  --text-2: #a7b3ac;
  --muted: #87938d;
  --faint: #515d57;
  --accent: #22c07d;
  --accent-bright: #2bd98f;
  --accent-ink: #06130d;
  --approved-bg: #12261c;
  --approved-border: #1f4a34;
  --approved-fg: #5ce0a6;
  --amber: #e2b354;
  --telegram: #1a78a8;
  --telegram-deep: #156690;
  --display: 'Space Grotesk', 'Public Sans', system-ui, sans-serif;
  --ui: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
  --wrap: 1120px;
  --gutter: 16px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--base);
  background-image:
    radial-gradient(70rem 44rem at 12% -12%, rgba(34, 192, 125, 0.16), transparent 60%),
    radial-gradient(50rem 36rem at 108% 18%, rgba(43, 217, 143, 0.07), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
strong,
b {
  font-family: var(--display);
  font-weight: 600;
}
svg {
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.block {
  padding-top: clamp(56px, 9vw, 104px);
  padding-bottom: clamp(56px, 9vw, 104px);
}
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 26, 23, 0.7), rgba(10, 17, 16, 0));
}
.band + .band {
  border-top: 0;
}

.skip {
  position: absolute;
  left: -200vw;
  top: 8px;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

/* ---------- header ---------- */
/* ---------- event bar (SiGMA South Asia, Colombo — remove after 2 Dec) ---------- */
.event-bar {
  display: block;
  border-bottom: 1px solid var(--approved-border);
  background: var(--approved-bg);
  color: var(--text);
  font: 400 0.875rem/1.35 var(--ui);
  text-decoration: none;
}
.event-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-top: 9px;
  padding-bottom: 9px;
  text-align: center;
}
.event-bar strong {
  font-weight: 600;
  color: var(--approved-fg);
}
.event-cta {
  font: 600 0.875rem/1.35 var(--display);
  color: var(--accent-bright);
  white-space: nowrap;
}
.event-bar:hover .event-cta {
  text-decoration: underline;
}
.event-bar:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: -2px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 17, 16, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.name em {
  font-style: normal;
  color: var(--accent-bright);
}
.wordmark {
  display: flex;
  flex-direction: column;
}
.name {
  font: 600 0.9375rem/1 var(--display);
  letter-spacing: -0.015em;
}
.tag {
  margin-top: 3px;
  font: 500 0.5rem/1.2 var(--mono);
  letter-spacing: 0.14em;
  color: var(--muted);
}
.menu {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.menu a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
}
.menu a:hover {
  color: var(--text);
  background: var(--raised);
}
.portal-link {
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.portal-link:hover {
  border-color: var(--accent);
}
@media (min-width: 1000px) {
  .menu {
    display: flex;
  }
  .portal-link {
    margin-left: 0;
  }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  gap: 48px;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 4px 10px;
  border: 1px solid var(--approved-border);
  border-radius: 999px;
  background: var(--approved-bg);
  color: var(--approved-fg);
  font: 500 0.625rem/1.4 var(--mono);
  letter-spacing: 0.12em;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  animation: breathe 2.4s ease-in-out infinite;
}
h1 {
  font-size: clamp(2.125rem, 5.4vw, 3.5rem);
  line-height: 1.06;
}
.hero .lede {
  max-width: 540px;
  margin-top: 20px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-2);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font: 600 0.9375rem/1.2 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn.primary {
  background: var(--telegram);
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 120, 168, 0.32);
}
.btn.primary:hover {
  background: var(--telegram-deep);
  transform: translateY(-1px);
}
.btn.ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn.ghost:hover {
  border-color: var(--accent);
}
.btn.big {
  padding: 16px 26px;
  font-size: 1.0625rem;
}
.btn.big svg {
  width: 22px;
  height: 22px;
}
.rails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.rails li {
  position: relative;
  padding-left: 14px;
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.rails li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* two phones, overlapping, and a stamp */
.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  padding-bottom: 36px;
}
.phone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--raised-2), var(--raised));
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
}
.phone.raast {
  margin-top: 40px;
}
.phone-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.6875rem;
}
.phone-timer {
  font: 500 0.625rem/1.4 var(--mono);
  color: var(--amber);
  white-space: nowrap;
}
.phone-amount {
  font: 600 1.5rem/1.1 var(--display);
  letter-spacing: -0.02em;
}
.phone-amount small {
  display: block;
  margin-top: 4px;
  font: 500 0.5625rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  color: var(--approved-fg);
  text-transform: uppercase;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--base);
}
.tabs span {
  padding: 5px 0;
  border-radius: 7px;
  text-align: center;
  font-size: 0.5625rem;
  color: var(--muted);
}
.tabs .on {
  background: var(--raised-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.acct {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 0;
}
.acct dt {
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.acct dd {
  margin: 0 0 6px;
  font: 500 0.75rem/1.3 var(--mono);
}
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  text-align: center;
  color: var(--text-2);
}
.drop small {
  font-size: 0.5625rem;
  color: var(--muted);
}
.submit {
  padding: 9px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  font: 600 0.75rem/1.2 var(--display);
}
.qr {
  width: 72%;
  margin: 4px auto;
  padding: 8px;
  border-radius: 10px;
  background: #f4f8f5;
}
.qr path {
  fill: #0b0f0e;
}
.scan {
  text-align: center;
  color: var(--text-2);
  font-size: 0.6875rem;
}
.stamp {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--approved-border);
  border-radius: 999px;
  background: var(--approved-bg);
  color: var(--approved-fg);
  font: 500 0.6875rem/1.2 var(--mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  animation: rise 0.8s 0.3s cubic-bezier(0.32, 0.72, 0, 1) both;
}
.stamp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px rgba(43, 217, 143, 0.8);
  animation: breathe 2.4s ease-in-out infinite;
}
@media (max-width: 420px) {
  .hero-art {
    grid-template-columns: 1fr;
  }
  .phone.raast {
    margin-top: 0;
  }
}

/* ---------- six things ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 26, 23, 0.5);
}
.six {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}
@media (min-width: 720px) {
  .six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.six li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.six strong {
  font-size: 0.9375rem;
  color: var(--text);
}
.six span {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- section headings ---------- */
.eyebrow {
  margin-bottom: 14px;
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  color: var(--accent);
}
h2 {
  max-width: 720px;
  font-size: clamp(1.625rem, 3.6vw, 2.375rem);
  line-height: 1.12;
}
h2 + .cards,
h2 + .steps,
h2 + .ways,
h2 + .why,
h2 + .mini-steps {
  margin-top: clamp(28px, 4vw, 44px);
}

/* ---------- solutions ---------- */
.cards {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 26, 23, 0.9), rgba(18, 26, 23, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.kicker {
  font: 500 0.625rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  color: var(--muted);
}
.card h3 {
  font-size: clamp(1.5rem, 2.8vw, 1.875rem);
  line-height: 1.1;
}
.card > p:not(.kicker) {
  color: var(--text-2);
}
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--approved-bg);
  border: 1px solid var(--approved-border);
}
.ticks li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: calc(0.35em + 4px);
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--approved-fg);
  border-bottom: 1.5px solid var(--approved-fg);
  transform: rotate(-45deg);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.chips span {
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--text-2);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  gap: 24px;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}
.steps li {
  position: relative;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 0.8125rem/1 var(--display);
}
.steps h3 {
  margin-top: 14px;
  font-size: 1.125rem;
}
.steps p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* ---------- hosted / self-hosted ---------- */
.ways {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.way {
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(18, 26, 23, 0.6);
}
.way h3 {
  margin-top: 8px;
  font-size: 1.375rem;
}
.way p {
  margin-top: 12px;
  color: var(--text-2);
}
.way .best {
  color: var(--approved-fg);
  font-size: 0.875rem;
}
.same {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.875rem;
}
.same strong {
  color: var(--text-2);
}

/* ---------- portal ---------- */
.portal {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .portal {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
  }
}
.portal-copy .lede {
  margin-top: 16px;
  color: var(--text-2);
}
.portal-copy .ticks {
  margin-top: 16px;
}
.screen {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--raised);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--base);
}
.screen-brand {
  font: 600 0.8125rem/1 var(--display);
}
.screen-nav {
  display: flex;
  gap: 4px;
  overflow: hidden;
}
.screen-nav i {
  padding: 4px 8px;
  border-radius: 6px;
  font-style: normal;
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
}
.screen-nav .on {
  color: var(--text);
  background: var(--raised-2);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.tiles div {
  padding: 14px 16px;
  background: var(--raised);
}
.tiles small {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.tiles b {
  display: block;
  margin-top: 4px;
  font-size: clamp(0.8125rem, 1.6vw, 1.0625rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.tiles div:nth-child(3) b {
  color: var(--approved-fg);
}
.rows {
  width: 100%;
  border-collapse: collapse;
}
.rows th,
.rows td {
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
}
.rows th {
  font-weight: 400;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.rows td {
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.rows td:first-child {
  font: 500 0.6875rem/1.4 var(--mono);
  color: var(--text);
}
.rows tr:last-child td {
  border-bottom: 0;
}
.rows th:nth-child(4),
.rows td:nth-child(4) {
  display: none;
}
@media (min-width: 520px) {
  .rows th:nth-child(4),
  .rows td:nth-child(4) {
    display: table-cell;
  }
}
.rows em {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
}
.rows .ok {
  background: var(--approved-bg);
  color: var(--approved-fg);
  border: 1px solid var(--approved-border);
}
.rows .wait {
  background: rgba(226, 179, 84, 0.1);
  color: var(--amber);
  border: 1px solid rgba(226, 179, 84, 0.3);
}
.illus {
  padding: 8px 16px 10px;
  font-size: 0.625rem;
  color: var(--muted);
  text-align: right;
}

/* ---------- why ---------- */
.why {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .why {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.why article {
  padding: clamp(20px, 3vw, 28px);
  background: var(--raised);
}
.why h3 {
  font-size: 1.0625rem;
}
.why p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.9rem;
}

/* ---------- get started ---------- */
.start {
  background:
    radial-gradient(40rem 20rem at 50% 120%, rgba(34, 192, 125, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(18, 26, 23, 0.7), rgba(10, 17, 16, 0));
}
.start .block {
  text-align: center;
}
.start h2,
.start .eyebrow {
  margin-left: auto;
  margin-right: auto;
}
.mini-steps {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.mini-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 26, 23, 0.7);
  color: var(--text-2);
  font-size: 0.9375rem;
}
.mini-steps .num {
  flex: none;
}
.start .cta-row {
  justify-content: center;
  margin-top: 36px;
}
.fine {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ---------- shared sub-heading ---------- */
.sub {
  max-width: 640px;
  margin-top: 14px;
  color: var(--text-2);
}

/* ---------- three solution cards ---------- */
@media (min-width: 1040px) {
  .cards.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- payment methods ---------- */
.methods {
  display: grid;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 760px) {
  .methods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.methods li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 26, 23, 0.7);
}
.methods strong {
  font-size: 1rem;
}
.methods span {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- settlements ---------- */
.settle {
  display: grid;
  gap: 20px;
  margin-top: clamp(28px, 4vw, 44px);
}
@media (min-width: 760px) {
  .settle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.settle article {
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid var(--approved-border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--approved-bg), rgba(18, 26, 23, 0.4));
}
.big-fig {
  font: 600 clamp(2rem, 4vw, 2.75rem)/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--approved-fg);
}
.settle h3 {
  margin-top: 14px;
  font-size: 1.125rem;
}
.settle p:not(.big-fig) {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* ---------- custom integrations ---------- */
.integrate {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .integrate {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 56px;
  }
}
.integrate .ticks {
  margin-top: 16px;
}
.talk {
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--raised);
}
.talk-head {
  font: 600 1.25rem/1.2 var(--display);
}
.talk p:not(.talk-head) {
  margin: 10px 0 20px;
  color: var(--text-2);
}

/* ---------- brochures ---------- */
.docs {
  display: grid;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
}
@media (min-width: 760px) {
  .docs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.doc {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 26, 23, 0.7);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.doc:hover,
.doc:focus-visible {
  border-color: var(--accent);
}
.doc:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}
.doc svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doc-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-text span {
  font-size: 0.875rem;
  color: var(--muted);
}
.doc-cta {
  grid-column: 2;
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: var(--approved-fg);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 18px 36px 18px 0;
  font: 600 1.0625rem/1.35 var(--display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  font: 500 1.25rem/1 var(--mono);
  color: var(--accent);
}
.faq details[open] summary::after {
  content: '−';
}
.faq summary:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}
.faq details p {
  padding: 0 0 18px;
  color: var(--text-2);
}
.faq a {
  color: var(--approved-fg);
}

/* ---------- topic pages (scripts/build-pages.py) ---------- */
.page-hero {
  padding-top: clamp(36px, 6vw, 72px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.page-hero .lede {
  max-width: 680px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-2);
}
.crumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  font: 500 0.75rem/1.4 var(--mono);
  color: var(--muted);
}
.crumbs a {
  color: var(--text-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--text);
}
.page-body {
  display: grid;
  gap: 40px;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
@media (min-width: 960px) {
  .page-body {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
  }
  .side {
    position: sticky;
    top: 84px;
  }
}
.prose {
  max-width: 720px;
}
.prose-sec + .prose-sec {
  margin-top: clamp(32px, 4vw, 44px);
}
.prose h2 {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
}
.prose p {
  margin-top: 14px;
  color: var(--text-2);
}
.prose strong {
  color: var(--text);
}
.prose a,
.aside-note a {
  color: var(--approved-fg);
}
.prose .ticks {
  margin-top: 12px;
}
.olist {
  margin-top: 14px;
  counter-reset: o;
}
.olist li {
  position: relative;
  counter-increment: o;
  padding: 10px 0 10px 40px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.olist li::before {
  content: counter(o);
  position: absolute;
  left: 0;
  top: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 0.8125rem/1 var(--display);
}
.aside-note {
  margin-top: 28px;
}
.side {
  display: grid;
  gap: 20px;
}
.related {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.related ul {
  margin-top: 10px;
}
.related a {
  display: block;
  padding: 7px 0;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.related li:last-child a {
  border-bottom: 0;
}
.related a:hover {
  color: var(--approved-fg);
}
.more {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--approved-fg);
  text-decoration: none;
}
.more:hover {
  text-decoration: underline;
}
.methods a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}
.methods a:hover strong {
  color: var(--approved-fg);
}
.guides {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 24px;
}
.guides a {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-2);
  text-decoration: none;
}
.guides a:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-bottom: 88px; /* room for the sticky Telegram button */
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  font: 500 0.6875rem/1.6 var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.foot-links a {
  color: var(--muted);
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--text);
}

/* ---------- sticky Telegram ---------- */
.tg {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--telegram);
  color: #fff;
  font: 600 0.9rem/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow:
    0 12px 32px rgba(34, 158, 217, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}
.tg svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.tg:hover {
  background: var(--telegram-deep);
  transform: translateY(-2px);
}
.tg:focus-visible,
.btn:focus-visible,
.portal-link:focus-visible,
.menu a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}
@media (max-width: 560px) {
  .tg {
    padding: 14px;
  }
  .tg span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Text-only cards (guides): one column, the CTA under the text. */
.doc:not(:has(> svg)) {
  grid-template-columns: 1fr;
}
.doc:not(:has(> svg)) .doc-cta {
  grid-column: 1;
}
.byline {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.prose .byline {
  margin: 0 0 8px;
}
