/* ---------------------------------------------------------------
   Remittance — showcase
   Palette lifted from the app itself: near-black green, mint accent.
   Mobile-first. Both viewers will open this on a phone.
   --------------------------------------------------------------- */

:root {
  --bg:          #060D0A;
  --bg-2:        #0B1712;
  --surface:     #0E1F17;
  --surface-2:   #14291F;
  --line:        rgba(140, 220, 175, 0.13);
  --line-strong: rgba(140, 220, 175, 0.28);

  --text:        #E8F5EC;
  --text-dim:    #90A99A;
  --text-faint:  #5E7568;

  --mint:        #7BE3A4;
  --mint-soft:   #B9F2CF;
  --deep:        #0B6B3A;
  --amber:       #E8B06A;

  --radius:      16px;
  --radius-lg:   24px;

  --pad:         20px;
  --maxw:        680px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow behind the hero — subtle, one light source */
body::before {
  content: "";
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 130vw;
  max-width: 900px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(123, 227, 164, 0.10) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- type ---------- */

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.1; font-weight: 640; }

h1 {
  font-size: clamp(38px, 11vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(26px, 6.6vw, 36px);
  margin-bottom: 14px;
}

h3 { font-size: 18px; letter-spacing: -0.02em; }

p { color: var(--text-dim); }
strong { color: var(--text); font-weight: 600; }

.lead {
  font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.5;
  color: var(--text-dim);
}

.eyebrow {
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}

.mint { color: var(--mint); }

/* ---------- layout ---------- */

section { padding: 62px 0; }
section + section { border-top: 1px solid var(--line); }

/* ---------- hero ---------- */

.hero { padding: 68px 0 54px; }

.hero h1 { margin-bottom: 20px; }
.hero h1 .sub { display: block; color: var(--text-faint); }

.hero .lead { max-width: 30ch; margin-bottom: 30px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.chip {
  font-size: 13px;
  font-weight: 550;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 13px;
  white-space: nowrap;
}

.chip.live { color: var(--mint); border-color: var(--line-strong); }

.chip.live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 7px;
  vertical-align: 1px;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.25; } }

/* ---------- buttons ---------- */

.actions { display: flex; flex-direction: column; gap: 10px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.985); }

.btn-primary { background: var(--mint); color: #04170D; }
.btn-primary:hover { background: var(--mint-soft); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn .arrow { opacity: 0.55; font-weight: 400; }

/* ---------- video showcase ---------- */

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 4px;
  margin-bottom: 22px;
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 570;
  letter-spacing: -0.01em;
  padding: 9px 4px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.tab[aria-selected="true"] {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.panel { display: none; }
.panel.on { display: block; animation: fade 0.28s ease; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* Device shells */

.stage { display: flex; justify-content: center; }

.device {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.device.phone {
  max-width: 270px;
  border-radius: 34px;
  border: 5px solid #1B2A22;
  box-shadow: 0 22px 60px -18px rgba(0, 0, 0, 0.9),
              0 0 0 1px rgba(140, 220, 175, 0.10);
}

.device.screen {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 22px 60px -22px rgba(0, 0, 0, 0.9);
}

.device video {
  display: block;
  width: 100%;
  height: auto;
}

/* play affordance */
.playbtn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 12, 8, 0.30);
  border: 0;
  cursor: pointer;
  transition: opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.playbtn.hide { opacity: 0; pointer-events: none; }

.playbtn span {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(232, 245, 236, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.playbtn span::after {
  content: "";
  border-left: 17px solid #06140C;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
}

.caption {
  text-align: center;
  font-size: 14px;
  color: var(--text-faint);
  margin-top: 16px;
}

/* ---------- feature list ---------- */

.feats { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }

.feat {
  background: var(--bg-2);
  padding: 16px 18px;
}

.feat h3 { margin-bottom: 3px; }
.feat p { font-size: 14.5px; line-height: 1.45; }

/* ---------- flow diagram ---------- */

.flow { display: grid; gap: 10px; }

.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.step .n {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--mint);
  font-size: 14px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-bottom: 3px; }
.step p { font-size: 14.5px; line-height: 1.45; }
.step code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--mint);
  background: rgba(123, 227, 164, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
}

/* ---------- callout ---------- */

.callout {
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}

.callout.plain { background: var(--bg-2); border-color: var(--line); }

.callout h2 { font-size: clamp(23px, 5.6vw, 30px); }
.callout p + p { margin-top: 12px; }

/* ---------- stat band ---------- */

.stats { display: grid; gap: 10px; margin-bottom: 20px; }

.stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.stat .fig {
  font-size: clamp(32px, 9vw, 42px);
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 7px;
}

.stat.bad  .fig { color: #E8907A; }
.stat.good .fig { color: var(--mint); }

.stat p { font-size: 14.5px; line-height: 1.4; }

@media (min-width: 560px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- cost table ---------- */

.costs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.cost-row:last-child { border-bottom: 0; }

.cost-row .label { font-size: 15px; font-weight: 550; }
.cost-row .label small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0;
  margin-top: 2px;
}

.cost-row .val {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cost-row.total {
  background: var(--surface-2);
  padding: 18px;
}
.cost-row.total .label { font-size: 16px; font-weight: 650; }
.cost-row.total .val { color: var(--mint); font-size: 17px; font-weight: 680; }

.note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-faint);
  margin-top: 14px;
}

/* ---------- two-column status ---------- */

.cols { display: grid; gap: 12px; }

.col {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.col h3 { margin-bottom: 14px; font-size: 15px; letter-spacing: 0.02em; }
.col.done h3 { color: var(--mint); }
.col.pending h3 { color: var(--amber); }

.col ul { list-style: none; display: grid; gap: 10px; }

.col li {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-dim);
  padding-left: 24px;
  position: relative;
}

.col.done li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}

.col.pending li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
  opacity: 0.75;
}

/* ---------- providers ---------- */

.providers { display: grid; gap: 10px; }

.provider {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.provider .who h3 { margin-bottom: 2px; }
.provider .who p { font-size: 13.5px; line-height: 1.4; }

.provider .tag {
  font-size: 12px;
  font-weight: 620;
  color: var(--mint);
  background: rgba(123, 227, 164, 0.09);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 5px 11px;
  white-space: nowrap;
}

/* ---------- footer ---------- */

footer {
  padding: 46px 0 60px;
  border-top: 1px solid var(--line);
}

footer p { font-size: 14px; color: var(--text-faint); }
footer a { color: var(--text-dim); }

.filelink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 24px;
  transition: background 0.15s ease;
}
.filelink:hover { background: var(--surface); }
.filelink .who h3 { margin-bottom: 2px; }
.filelink .who p { font-size: 13.5px; }
.filelink .arrow { color: var(--mint); }

/* ---------- desktop ---------- */

@media (min-width: 760px) {
  body { font-size: 18px; }
  :root { --maxw: 760px; --pad: 32px; }

  section { padding: 84px 0; }
  .hero { padding: 96px 0 72px; }

  .actions { flex-direction: row; }
  .btn { flex: 0 1 auto; justify-content: center; padding: 15px 26px; }

  .feats { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1fr 1fr; }

  .device.phone { max-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
