/* Portage site (P3-D14): the layout of exion.finance, in Portage's colours (docs/brand/README.md).
   Ink is the brand; green and amber mean payment safety only and appear nowhere else. */
:root {
  --bg: #ffffff;
  --surface: #f7f6f2;
  --surface-2: #efede6;
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --ink: #1d3b5c;
  --ink-2: #2b5682;
  --ink-3: #5b8fd1;
  --text: #0e0f0d;
  --muted: #5d5c57;
  --line: #e6e3db;
  --primary: var(--ink);
  --on-primary: #ffffff;
  --dark: #0e0f0d;
  --on-dark: #ffffff;
  --vault: #1b5e20;
  --unsecured: #8a4b00;
  --grad: linear-gradient(92deg, #1d3b5c 0%, #2f69a8 55%, #5b8fd1 100%);
  --shadow: 0 1px 2px rgba(14, 15, 13, 0.05), 0 18px 40px -18px rgba(29, 59, 92, 0.28);
  --radius: 22px;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f100e;
    --surface: #171816;
    --surface-2: #1f201d;
    --paper-2: #20211e;
    --text: #f1eee6;
    --muted: #a9a8a1;
    --line: #2a2b27;
    --primary: #8fb4db;
    --on-primary: #10202f;
    --dark: #f1eee6;
    --on-dark: #0f100e;
    --vault: #3f9b46;
    --unsecured: #d08a3c;
    --grad: linear-gradient(92deg, #8fb4db 0%, #b9d2ee 60%, #e3edf8 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 44px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0f100e;
  --surface: #171816;
  --surface-2: #1f201d;
  --paper-2: #20211e;
  --text: #f1eee6;
  --muted: #a9a8a1;
  --line: #2a2b27;
  --primary: #8fb4db;
  --on-primary: #10202f;
  --dark: #f1eee6;
  --on-dark: #0f100e;
  --vault: #3f9b46;
  --unsecured: #d08a3c;
  --grad: linear-gradient(92deg, #8fb4db 0%, #b9d2ee 60%, #e3edf8 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 44px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
/* Line icons. Not the mark: its pencil strokes keep their own widths (docs/brand). */
.btn svg,
.icon-btn svg,
.float svg,
.store svg,
.mock svg,
.feature > svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark {
  aspect-ratio: 1;
  color: #262624;
}
.mark svg,
.mark img {
  width: 100%;
  height: 100%;
}
a {
  color: var(--primary);
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
}
h3 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
p {
  margin: 0;
}
.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}
.narrow {
  width: min(820px, 100% - 32px);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--dark);
  color: var(--on-dark);
  padding: 8px 14px;
  border-radius: 999px;
}
.skip:focus {
  left: 12px;
}
:focus-visible {
  outline: 3px solid var(--ink-3);
  outline-offset: 3px;
  border-radius: 8px;
}
section {
  scroll-margin-top: 84px;
}

/* Buttons: Exion's black pills */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font: 600 1rem var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.92rem;
}
.btn-dark {
  background: var(--dark);
  color: var(--on-dark);
  box-shadow: 0 10px 24px -12px rgba(14, 15, 13, 0.5);
}
.btn-outline {
  background: var(--bg);
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--muted);
}
.btn-paper {
  background: #ffffff;
  color: #0e0f0d;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn[aria-disabled='true'] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-card {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
}
.wordmark {
  font: 700 1.3rem var(--serif);
  letter-spacing: 0.01em;
  color: var(--primary);
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.8rem var(--sans);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed='true'] {
  background: var(--surface-2);
  color: var(--text);
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn .moon {
  display: none;
}
:root[data-theme='dark'] .icon-btn .sun {
  display: none;
}
:root[data-theme='dark'] .icon-btn .moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-btn .sun {
    display: none;
  }
  :root:not([data-theme='light']) .icon-btn .moon {
    display: block;
  }
}

/* Hero: centred like Exion's */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 32px;
}
.hero-copy {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 22px;
}
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  box-shadow: 0 6px 18px -12px rgba(14, 15, 13, 0.3);
}
.pill-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink-3) 25%, transparent);
}
h1 {
  font-size: clamp(2.7rem, 7.6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 14ch;
}
h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* The showcase: a big Ink card holding the app on a phone, with floating notifications */
.showcase {
  position: relative;
  margin-top: clamp(40px, 6vw, 64px);
  border-radius: clamp(28px, 4vw, 48px);
  min-height: clamp(520px, 56vw, 640px);
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(143, 180, 219, 0.35), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.14) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(160deg, #23476e, #1d3b5c 55%, #142a42);
  overflow: hidden;
  display: grid;
  place-items: end center;
  padding-top: 64px;
  box-shadow: var(--shadow);
}
.show-brand {
  position: absolute;
  top: 26px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.show-brand .wordmark {
  color: #f6f3ec;
}
.mock {
  width: min(300px, 74vw);
  aspect-ratio: 9 / 18;
  border-radius: 44px 44px 0 0;
  background: #0f100e;
  padding: 12px 12px 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(8%);
}
.mock-screen {
  height: 100%;
  border-radius: 34px 34px 0 0;
  background: #f6f3ec;
  color: #1c1c1a;
  padding: 18px 14px;
  display: grid;
  align-content: start;
  gap: 12px;
  font-size: 12px;
}
.m-top {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-self: start;
  background: #e3ded2;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.m-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1d3b5c;
}
.m-card {
  background: #1d3b5c;
  color: #f6f3ec;
  border-radius: 20px;
  padding: 14px;
  display: grid;
  gap: 6px;
}
.m-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.85;
}
.m-amt {
  font: 800 1.7rem/1 var(--display);
  letter-spacing: -0.03em;
}
.m-amt small {
  font-size: 0.8rem;
  font-weight: 600;
}
.m-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}
.m-tiles div {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 7px 9px;
  display: grid;
}
.m-tiles small {
  opacity: 0.8;
  font-size: 10px;
}
.m-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.m-actions span {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.m-actions i,
.m-item i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1d3b5c;
  color: #fff;
  display: grid;
  place-items: center;
}
.m-actions em {
  font-style: normal;
  font-weight: 600;
  font-size: 10.5px;
}
.m-list {
  background: #f0ece3;
  border-radius: 18px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}
.m-list p {
  font-weight: 700;
}
.m-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.m-item i {
  width: 28px;
  height: 28px;
  background: #d6e2ef;
  color: #0b1e31;
}
.m-item span {
  display: grid;
  line-height: 1.25;
}
.m-item small {
  color: #5d5c57;
  font-size: 10px;
}
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #0e0f0d;
  padding: 10px 14px;
  border-radius: 16px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
  font-size: 0.86rem;
  animation: bob 6s ease-in-out infinite;
}
.float span {
  display: grid;
  line-height: 1.3;
}
.float small {
  color: #5d5c57;
}
.float i.ok {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d6e2ef;
  color: #1d3b5c;
}
.float .tier {
  font-size: 0.72rem;
}
.f1 {
  top: 18%;
  left: 6%;
}
.f2 {
  top: 44%;
  right: 5%;
  animation-delay: -2s;
}
.f3 {
  bottom: 16%;
  left: 9%;
  animation-delay: -4s;
}
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}
.store {
  position: absolute;
  left: 30px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0e0f0d;
  color: #fff;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.store span {
  display: grid;
  line-height: 1.1;
}
.store small {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Strip: Exion's "supported networks" row */
.strip {
  padding: 40px 0 24px;
}
.strip-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}
.strip-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.strip-row li {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 2px;
  padding: 16px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.strip-row b {
  font: 700 1.05rem var(--display);
  letter-spacing: -0.02em;
}
.strip-row span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Sections and heads */
.why,
.how,
.start,
.tiers,
.safety,
.programmes,
.faq,
.download {
  padding: clamp(64px, 9vw, 112px) 0;
}
.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 760px;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
  justify-items: center;
}
.section-head .sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 640px;
}
.eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-3);
  margin: 0;
}
.eyebrow.light {
  color: #b9d2ee;
}

/* Bento: Exion's "Why choose us" */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.tile p {
  color: var(--muted);
}
.tile-idea {
  grid-row: span 2;
  align-content: space-between;
}
.tile-idea .paper-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 18px;
}
.tile-idea .caption {
  font-size: 0.86rem;
  font-style: italic;
  margin-top: 10px;
}
.tile-art {
  height: 140px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--muted) 30%, transparent) 1px, transparent 0) 0 0 / 16px 16px,
    var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.art-offline .ph {
  width: 46px;
  height: 84px;
  border-radius: 12px;
  border: 3px solid var(--text);
  background: var(--bg);
}
.art-offline .beam {
  width: 70px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 8px, transparent 8px 14px);
  animation: slide 1.4s linear infinite;
}
@keyframes slide {
  to {
    background-position: 14px 0;
  }
}
.art-pending {
  flex-direction: column;
}
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.86rem;
}
.chip.done {
  color: var(--primary);
}

/* Steps: Exion's "Get started in minutes" */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 32px;
  border: 1px solid var(--line);
}
.step-card {
  border-radius: 24px;
  background: var(--surface);
  padding: 26px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.step-card p {
  color: var(--muted);
}
.step-tag {
  justify-self: start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.step-art {
  margin-top: 12px;
  height: 130px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
}
.step-art.words {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.step-art.words span {
  font-size: 0.72rem;
  color: var(--muted);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 4px 6px;
}
.step-art.words span::after {
  content: '';
  display: inline-block;
  width: 60%;
  height: 6px;
  margin-left: 6px;
  border-radius: 6px;
  background: var(--line);
}
.step-art .node {
  display: grid;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-2);
}
.step-art .node.ink {
  background: #1d3b5c;
  color: #f6f3ec;
}
.step-art .node small {
  font-size: 0.72rem;
  opacity: 0.8;
}
.step-art .line {
  width: 46px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 8px, transparent 8px 14px);
  animation: slide 1.4s linear infinite;
}
.qr-mini {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background:
    conic-gradient(var(--text) 25%, transparent 0 50%, var(--text) 0 75%, transparent 0) 0 0 / 14px 14px,
    var(--bg);
  border: 4px solid var(--bg);
  outline: 1px solid var(--line);
}

/* Banner: Exion's green band, in Ink */
.band {
  border-radius: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(140deg, #23476e, #1d3b5c 60%, #142a42);
  color: #f6f3ec;
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
.band h2 {
  margin: 10px 0 14px;
}
.band p {
  opacity: 0.86;
  margin-bottom: 24px;
  max-width: 520px;
}
.band-art {
  position: relative;
  height: 240px;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(246, 243, 236, 0.25);
}
.r1 {
  width: 120px;
  height: 120px;
}
.r2 {
  width: 190px;
  height: 190px;
}
.r3 {
  width: 260px;
  height: 260px;
}
.coin {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #f6f3ec;
  color: #1d3b5c;
  display: grid;
  place-items: center;
  font: 800 2.2rem var(--display);
  box-shadow: 0 0 0 10px rgba(246, 243, 236, 0.12);
}

/* Tiers */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.tier-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 14px;
}
.tier {
  display: inline-block;
  font: 650 0.82rem var(--sans);
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--vault);
}
.tier.t0 {
  background: var(--unsecured);
}
.tier.t2::before {
  content: '◆ ';
}
.tier.t3::before {
  content: '● ';
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  align-content: start;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature > svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink-3) 16%, transparent);
  color: var(--primary);
  margin-bottom: 6px;
}
.feature p {
  color: var(--muted);
}

/* Programmes */
.prog-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.prog-grid h2 {
  margin: 10px 0 16px;
}
.prog-grid > div > p {
  color: var(--muted);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  padding-left: 30px;
  position: relative;
}
.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--ink-3) 18%, transparent);
  color: var(--primary);
}
.prog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.prog-card .kicker {
  font-weight: 700;
  margin-bottom: 10px;
}
.prog-card ol {
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}

/* Download */
.dl-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: clamp(28px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.dl-main {
  background: linear-gradient(150deg, #23476e, #1d3b5c 60%, #142a42);
  color: #f6f3ec;
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.dl-main p {
  opacity: 0.86;
}
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}
.store-note {
  font-size: 0.86rem;
  opacity: 0.8;
}
.meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 12px 24px;
  margin: 10px 0 0;
}
.meta dt {
  font-size: 0.78rem;
  opacity: 0.75;
}
.meta dd {
  margin: 0;
  font-weight: 600;
}
.meta .wide {
  grid-column: 1 / -1;
}
.meta code {
  font-size: 0.78rem;
  word-break: break-all;
}
.copy {
  margin-left: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: inherit;
  border-radius: 999px;
  padding: 3px 10px;
  font: 600 0.78rem var(--sans);
  cursor: pointer;
}
.dl-steps {
  background: var(--surface);
  padding: clamp(28px, 5vw, 48px);
}
.dl-steps ol {
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  margin: 16px 0 0;
}

/* FAQ: Exion's accordion */
.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.chev {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.2s;
}
.chev::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: translateY(-2px) rotate(45deg);
}
.faq details[open] .chev {
  transform: rotate(180deg);
}
.faq details p {
  color: var(--muted);
  padding-bottom: 20px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 32px;
  align-items: start;
}
.foot-brand p {
  color: var(--muted);
  margin-top: 8px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.foot-links a {
  color: var(--muted);
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--text);
}
.fine {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Demo */
.demo {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: center;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.steps button {
  width: 100%;
  display: flex;
  gap: 16px;
  text-align: left;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  position: relative;
  overflow: hidden;
}
.steps button[aria-selected='true'] {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.steps button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--primary);
}
.steps button[aria-selected='true']::after {
  animation: progress var(--step-ms, 4200ms) linear forwards;
}
.demo.paused .steps button::after {
  animation: none;
}
@keyframes progress {
  to {
    width: 100%;
  }
}
.steps .n {
  font: 600 0.85rem var(--serif);
  color: var(--primary);
  padding-top: 2px;
}
.steps b {
  display: block;
  font-size: 1.05rem;
}
.steps small {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 2px;
}
.stage {
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  align-items: center;
  min-height: 440px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--paper-2), transparent);
  border: 1px solid var(--line);
}
.phone {
  width: min(200px, 100%);
  aspect-ratio: 9 / 18.5;
  margin-inline: auto;
  border-radius: 30px;
  background: #141513;
  padding: 9px;
  box-shadow: var(--shadow);
}
.screen {
  height: 100%;
  border-radius: 22px;
  background: var(--paper);
  color: #1e1e1c;
  position: relative;
  overflow: hidden;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 6px;
  font: 600 0.72rem var(--sans);
  color: #5b5a55;
}
.signal {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  height: 11px;
}
.signal i {
  width: 3px;
  background: #1d3b5c;
  border-radius: 1px;
}
.signal i:nth-child(1) {
  height: 4px;
}
.signal i:nth-child(2) {
  height: 7px;
}
.signal i:nth-child(3) {
  height: 11px;
}
.signal.off i {
  background: #c9c3b6;
}
.stage .receiver .signal i {
  background: #c9c3b6;
}
.stage[data-step='2'] .receiver .signal i {
  background: #1d3b5c;
  transition: background 0.4s 0.3s;
}
.view {
  position: absolute;
  inset: 34px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.view .muted {
  color: #5b5a55;
  font-size: 0.82rem;
  margin: 0;
}
.stage[data-step='0'] .v0,
.stage[data-step='1'] .v1,
.stage[data-step='2'] .v2 {
  opacity: 1;
  transform: none;
}
.viewfinder {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  border: 2px dashed #1d3b5c;
  position: relative;
  overflow: hidden;
}
.laser {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #1d3b5c;
  animation: scan 1.6s ease-in-out infinite alternate;
}
@keyframes scan {
  from {
    top: 10%;
  }
  to {
    top: 88%;
  }
}
.qr {
  width: 118px;
  height: 118px;
  border-radius: 6px;
  background:
    conic-gradient(#1e1e1c 0 25%, transparent 0 50%, #1e1e1c 0 75%, transparent 0) 0 0 / 14px 14px,
    #fff;
  box-shadow:
    inset 0 0 0 6px #fff,
    inset 0 0 0 1px #d9d2c3;
  position: relative;
}
.qr::before,
.qr::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 6px solid #1e1e1c;
  background: #fff;
  box-shadow:
    inset 0 0 0 4px #fff,
    inset 0 0 0 12px #1e1e1c;
}
.qr::before {
  top: 6px;
  left: 6px;
}
.qr::after {
  top: 6px;
  right: 6px;
}
.amount {
  font: 600 2rem/1 var(--serif);
  color: #1d3b5c;
}
.amount.sm {
  font-size: 0.95rem;
}
.finger {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1d3b5c;
  animation: pulse 1.4s ease-out infinite;
}
.finger svg {
  width: 30px;
  fill: none;
  stroke: #f6f3ec;
  stroke-width: 1.8;
  stroke-linecap: round;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(29, 59, 92, 0.45);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(29, 59, 92, 0);
  }
}
.check {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1b5e20;
  color: #fff;
  font-size: 1.7rem;
}
.payer .check {
  background: #1d3b5c;
}
.tiny {
  font-size: 0.72rem;
  color: #5b5a55;
  margin: 0;
  max-width: 14em;
}
.gap {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gap-label {
  font: 600 0.72rem var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--bg);
}
.waves {
  width: 120px;
  margin-top: 14px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  opacity: 0;
}
.stage[data-step='1'] .waves {
  opacity: 1;
  animation: dash 0.9s linear infinite;
}
@keyframes dash {
  to {
    stroke-dashoffset: -24;
  }
}
.packet {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 26px;
  height: 26px;
  margin-top: -40px;
  opacity: 0;
}
.packet span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: var(--primary);
  box-shadow: var(--shadow);
}
.stage[data-step='1'] .packet {
  animation: carry 1.8s cubic-bezier(0.5, 0, 0.3, 1) 0.6s infinite;
}
@keyframes carry {
  0% {
    left: -10%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 92%;
    opacity: 0;
  }
}


/* Responsive */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .bento,
  .step-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tile-idea {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 24px;
  }
  .step-grid .step-card:last-child {
    grid-column: 1 / -1;
  }
  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .demo,
  .prog-grid,
  .dl-card,
  .band {
    grid-template-columns: 1fr;
  }
  .band-art {
    display: none;
  }
  .strip-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .f2 {
    right: 3%;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .nav-inner {
    gap: 10px;
    height: 64px;
  }
  .nav-tools .btn {
    display: none;
  }
  .bento,
  .step-grid,
  .feature-grid,
  .tier-grid {
    grid-template-columns: 1fr;
  }
  .tile-idea {
    grid-template-columns: 1fr;
  }
  .step-grid {
    padding: 10px;
    border-radius: 24px;
  }
  .strip-row {
    grid-template-columns: 1fr 1fr;
  }
  .strip-row li:last-child {
    grid-column: 1 / -1;
  }
  .showcase {
    min-height: 600px;
    padding-top: 92px;
  }
  /* Small screens: one note above the phone, one over its foot; the badge and the third note go. */
  .show-brand,
  .store,
  .f3 {
    display: none;
  }
  .float {
    font-size: 0.74rem;
    padding: 8px 10px;
    gap: 8px;
  }
  .float i.ok {
    width: 26px;
    height: 26px;
  }
  .f1 {
    top: 22px;
    left: 50%;
    margin-left: -110px;
    width: 220px;
  }
  .f2 {
    top: auto;
    bottom: 22px;
    left: 50%;
    right: auto;
    margin-left: -140px;
    width: 280px;
  }
  .stage {
    grid-template-columns: 1fr 60px 1fr;
    padding: 14px 8px;
    min-height: 360px;
  }
  .phone {
    border-radius: 22px;
    padding: 6px;
  }
  .screen {
    border-radius: 17px;
  }
  .gap-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 10px 4px;
  }
  .waves {
    width: 54px;
  }
  .amount {
    font-size: 1.5rem;
  }
  .viewfinder,
  .qr {
    width: 86px;
    height: 86px;
  }
  .meta {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
