/* Sendchrono — design tokens + base styles */

:root {
  /* Default palette — terracotta */
  --bg: #F5EFE2;
  --bg-2: #EDE3CE;
  --surface: #FBF7EC;
  --ink: #1A0F0A;
  --ink-2: #4A3A2F;
  --ink-3: #7A6A5C;
  --line: #E0D4B8;
  --line-2: #2A1F18;
  --brand: #B94B2A;
  --brand-ink: #FBF7EC;
  --brand-deep: #7A2D14;
  --accent: #2E5530;
  --ochre: #D4A23A;
  --danger: #B33A20;
  --ok: #2E5530;

  --radius-card: 4px;
  --radius-pill: 999px;

  --font-display: "Bricolage Grotesque", "Bricolage", Georgia, serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

.theme-dark {
  --bg: #15110C;
  --bg-2: #1F1812;
  --surface: #221A12;
  --ink: #F5EFE2;
  --ink-2: #C9BEAC;
  --ink-3: #8C8170;
  --line: #3A2D22;
  --line-2: #E8D9BC;
  --brand-ink: #15110C;
}

* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
}

/* Background grain + dotted weave */
.sc-app {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 0) 0 0 / 24px 24px,
    var(--bg);
}

/* Container queries — make breakpoints depend on the wrapping shell width,
   not the viewport. This way the in-page mobile preview frame triggers the
   mobile layout the same way a real phone does. */
.sc-shell {
  container-type: inline-size;
  container-name: scapp;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; color: inherit; }

/* Typography */
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
  color: var(--ink);
}
.h-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.h-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* Top nav */
.sc-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.sc-nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.sc-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 23px; font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
a.sc-logo:hover { opacity: 0.85; }
.sc-logo-word { display: inline-block; }
.sc-logo-accent { color: var(--brand); }
.sc-nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px; font-weight: 500;
}
.sc-nav-links a {
  color: var(--ink-2); text-decoration: none;
  padding: 6px 0; transition: color .15s;
}
.sc-nav-links a:hover { color: var(--ink); }
.sc-nav-cta { display: flex; gap: 12px; align-items: center; }

/* Buttons */
.btn {
  appearance: none; border: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: var(--radius-card);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .08s, background .15s, color .15s, box-shadow .15s;
  letter-spacing: -0.005em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 1px 0 color-mix(in oklab, var(--brand-deep) 60%, transparent) inset,
              0 8px 24px -8px color-mix(in oklab, var(--brand) 60%, transparent);
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-ink {
  background: var(--ink);
  color: var(--bg);
}
.btn-ink:hover { background: color-mix(in oklab, var(--ink) 88%, var(--brand) 12%); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.btn-text {
  background: transparent; padding: 8px 0;
  color: var(--ink-2);
}
.btn-text:hover { color: var(--ink); }
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 32px 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}
.hero-copy { padding-top: 36px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 18%, transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 6.2vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}
.hero h1 .stroke {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.hero p.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 56px;
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.trust-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.trust-stat .lbl {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
  font-weight: 500;
}

/* Calculator card */
.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0;
  box-shadow:
    0 1px 0 #fff inset,
    0 30px 60px -30px color-mix(in oklab, var(--ink) 30%, transparent),
    0 6px 18px -8px color-mix(in oklab, var(--ink) 15%, transparent);
  position: relative;
  overflow: hidden;
}
.calc-rate {
  background: var(--ink);
  color: var(--bg);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.calc-rate .rate-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.calc-rate .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
}
.calc-rate .live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #58D27C; animation: pulse 1.6s ease-in-out infinite;
}

.calc-body { padding: 24px; }

.calc-field {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex; flex-direction: column;
  gap: 6px;
  transition: border-color .15s;
}
.calc-field:focus-within { border-color: var(--line-2); }
.calc-field .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.calc-row { display: flex; align-items: center; gap: 12px; }
.calc-row input {
  flex: 1;
  border: 0; background: transparent; outline: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.025em;
  color: var(--ink);
  min-width: 0;
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
  -webkit-appearance: none;
  appearance: none;
  -moz-appearance: textfield;
}
.calc-row input::-webkit-outer-spin-button,
.calc-row input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.calc-row input::placeholder { color: color-mix(in oklab, var(--ink-3) 70%, transparent); }
.cur-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.cur-pill .flag {
  width: 22px; height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  border: 1px solid var(--line);
  position: relative;
}

/* Swap button */
.calc-swap {
  display: flex; justify-content: center;
  margin: -10px 0;
  position: relative; z-index: 2;
}
.calc-swap button {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: 3px solid var(--surface);
  display: grid; place-items: center;
  transition: transform .4s cubic-bezier(.5, 0, .3, 1.4);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.calc-swap button:hover { transform: rotate(180deg); }
.calc-swap button.swapping { transform: rotate(180deg); }

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

/* Breakdown */
.calc-breakdown {
  margin-top: 18px;
  padding: 16px;
  background: color-mix(in oklab, var(--bg-2) 50%, var(--surface) 50%);
  border-radius: var(--radius-card);
  border: 1px dashed var(--line);
}
.bd-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
  padding: 6px 0;
  color: var(--ink-2);
}
.bd-row .lbl { color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.bd-row strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.bd-row.total {
  border-top: 1px solid var(--line);
  margin-top: 6px; padding-top: 14px;
}
.bd-row.total strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.calc-cta { margin-top: 18px; }

.rails-strip {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center;
}
.rails-strip .h-label { margin-right: 4px; }
.rail-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.rail-chip .sw {
  width: 10px; height: 10px; border-radius: 2px;
}

/* Pattern band */
.pattern-band {
  background: var(--ink);
  color: var(--bg);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.pattern-band-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}
.pattern-band-inner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); }
.pattern-band .ticker {
  display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex; align-items: center; gap: 28px;
  animation: ticker 30s linear infinite;
  flex-shrink: 0;
  padding-right: 28px;
  white-space: nowrap;
}
.ticker-track .dot { background: var(--brand); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.pattern-band .live-count {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
}
.pattern-band .live-count .n {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: -0.01em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
.pattern-band .live-count .ldot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #58D27C;
  box-shadow: 0 0 0 4px color-mix(in oklab, #58D27C 30%, transparent);
  animation: pulse 1.6s ease-in-out infinite;
}

/* Sections */
section.sc-section {
  max-width: 1280px; margin: 0 auto;
  padding: 96px 32px;
}
.sec-head { margin-bottom: 56px; max-width: 720px; }
.sec-head .h-eyebrow { margin-bottom: 16px; display: inline-block; }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--ink);
}
.sec-head p {
  font-size: 18px; line-height: 1.5;
  color: var(--ink-2); margin: 0;
  max-width: 600px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.step {
  padding: 32px;
  border-right: 1px solid var(--line);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 280px;
}
.step:last-child { border-right: 0; }
.step .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand);
  margin-bottom: auto;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 24px 0 10px;
  color: var(--ink);
}
.step p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.test-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 20px;
  position: relative;
}
.test-card.feat {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.test-card.feat .test-name { color: var(--bg); }
.test-card.feat .test-role { color: color-mix(in oklab, var(--bg) 65%, transparent); }
.test-card.feat .quote-mark { color: var(--brand); }

.quote-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 0.7;
  color: var(--brand);
  height: 28px;
}
.test-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.test-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.test-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--bg);
  background: var(--brand);
  letter-spacing: -0.01em;
}
.test-name { font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.2; }
.test-role { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* Security */
.security {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.security-list { display: flex; flex-direction: column; gap: 0; }
.sec-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  align-items: start;
}
.sec-item:last-child { border-bottom: 0; }
.sec-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 4px;
  margin-top: 4px;
}
.sec-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.sec-item p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

.security-visual {
  background: var(--ink);
  border-radius: var(--radius-card);
  padding: 40px;
  color: var(--bg);
  position: relative;
  overflow: hidden;
  aspect-ratio: 5/6;
  display: flex; flex-direction: column; justify-content: space-between;
}
.security-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--bg) 14%, transparent) 1px, transparent 0) 0 0 / 14px 14px;
  pointer-events: none;
}
.security-visual h3 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
}
.security-visual h3 em {
  font-style: normal;
  color: var(--ochre);
}
.kpi-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.kpi {
  padding: 18px 0;
  border-top: 1px solid color-mix(in oklab, var(--bg) 22%, transparent);
}
.kpi .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.kpi .l { font-size: 13px; color: color-mix(in oklab, var(--bg) 65%, transparent); margin-top: 8px; }

/* Footer */
.sc-foot {
  border-top: 1px solid var(--line);
  padding: 48px 32px 28px;
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.sc-foot h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.sc-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sc-foot a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.sc-foot a:hover { color: var(--ink); }
.sc-foot .col-brand { max-width: 320px; }
.sc-foot .col-brand p { color: var(--ink-2); font-size: 14px; margin: 12px 0 0; }
.sc-foot-bottom {
  max-width: 1280px; margin: 0 auto;
  padding: 24px 32px 40px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Send flow overlay */
.sc-flow-mask {
  position: fixed; inset: 0;
  background: color-mix(in oklab, var(--ink) 60%, transparent);
  z-index: 100;
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 28px 16px;
  overflow-y: auto;
  animation: maskIn .25s ease-out;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.sc-flow {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -10px rgba(0,0,0,.4);
  overflow: hidden;
  animation: flowIn .35s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 56px);
}
@keyframes flowIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Sticky summary bar (mobile context anchor) */
.sc-flow-summary {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
}
.sc-flow-summary .sumv {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--bg);
}
.sc-flow-summary .sumcur {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 65%, transparent);
  margin-left: 3px;
}
.sc-flow-summary .arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: var(--bg);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.sc-flow-summary .right {
  margin-left: auto;
  text-align: right;
}
.sc-flow-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.sc-flow-head .back {
  background: transparent; border: 0; padding: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2); font-weight: 600; font-size: 13px;
}
.sc-flow-head .close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: transparent; border: 0;
  color: var(--ink-2); border-radius: 4px;
}
.sc-flow-head .close:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }

.sc-flow-progress {
  display: flex; gap: 4px;
  padding: 0 22px 14px;
}
.sc-flow-progress i {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--line);
  transition: background .3s;
}
.sc-flow-progress i.done { background: var(--brand); }
.sc-flow-progress i.now { background: var(--brand); }

.sc-flow-body { padding: 28px; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sc-flow-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--ink);
}
.sc-flow-body p.sub {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 15px;
}
.sc-flow-foot {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* Form fields in flow */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 16px;
  min-height: 48px;
  border-radius: 4px;
  font-size: 16px;     /* iOS no-zoom threshold */
  font-weight: 500;
  color: var(--ink);
  outline: none;
  transition: border-color .12s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field .hint { font-size: 12px; color: var(--ink-3); }

/* Searchable combobox — replaces native <select> for bank/provider on mobile */
.combo { position: relative; }
.combo-input {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .12s;
}
.combo-input:hover, .combo.open .combo-input { border-color: var(--ink); }
.combo-input input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font-size: 16px; font-weight: 500;
  color: var(--ink);
  padding: 12px 0;
}
.combo-input input::placeholder { color: var(--ink-3); }
.combo-input .caret { color: var(--ink-3); flex-shrink: 0; transition: transform .15s; }
.combo.open .combo-input .caret { transform: rotate(180deg); color: var(--ink); }
.combo-input .clear {
  background: var(--bg-2); border: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-3);
  cursor: pointer;
  flex-shrink: 0;
}
.combo-input .clear:hover { background: var(--line); color: var(--ink); }
.combo-pop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  z-index: 5;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 18px 36px -8px rgba(0,0,0,.18);
  -webkit-overflow-scrolling: touch;
}
.combo-opt {
  padding: 14px 16px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: background .1s;
  -webkit-tap-highlight-color: transparent;
}
.combo-opt:last-child { border-bottom: 0; }
.combo-opt:hover, .combo-opt.cursor { background: var(--bg-2); }
.combo-opt.on { background: color-mix(in oklab, var(--brand) 8%, transparent); color: var(--ink); }
.combo-opt .mark {
  width: 28px; height: 28px;
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}
.combo-opt .check {
  margin-left: auto;
  color: var(--brand);
  opacity: 0;
}
.combo-opt.on .check { opacity: 1; }
.combo-empty {
  padding: 18px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

/* Payment method radios */
.method-grid {
  display: flex; flex-direction: column;
  gap: 10px;
}
.method {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.method:hover { border-color: var(--ink-3); }
.method.on {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 8%, transparent);
}
.method-mark {
  width: 40px; height: 40px;
  border-radius: 4px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.02em;
}
.method-mark.mtn { background: #FFCC00; color: #1a1a1a; }
.method-mark.orange { background: #FF7900; }
.method-mark.bank { background: var(--accent); }
.method-mark.opay { background: #00C853; }
.method-mark.card { background: var(--ink); color: var(--bg); }
.method-body { flex: 1; }
.method-body .t { font-weight: 700; font-size: 15px; color: var(--ink); }
.method-body .s { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.method-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  position: relative;
  flex-shrink: 0;
}
.method.on .method-radio::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--ink);
}

/* Review screen */
.review-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  margin-bottom: 18px;
}
.review-amount {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.review-amount .label { font-size: 13px; color: var(--ink-3); }
.review-amount .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  display: block;
  margin-top: 4px;
}
.review-amount .arrow {
  width: 36px; height: 36px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin: auto;
}
.review-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}
.review-row .l { color: var(--ink-3); }
.review-row .v { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* Success */
.success-wrap { text-align: center; padding: 20px 0 8px; }
.success-mark {
  width: 80px; height: 80px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff;
  position: relative;
  animation: pop .5s cubic-bezier(.2,.8,.3,1.2);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-mark::before {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, var(--accent) 30%, transparent);
  animation: ring 1.4s ease-out infinite;
}
@keyframes ring {
  from { transform: scale(.9); opacity: 1; }
  to { transform: scale(1.4); opacity: 0; }
}
.success-wrap h2 { margin-bottom: 6px !important; }
.success-ref {
  display: inline-block;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px dashed var(--line-2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  margin: 18px 0 22px;
  letter-spacing: 0.08em;
}
.success-summary {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

/* Mobile preview shell */
.mob-frame-wrap {
  display: flex; justify-content: center;
  padding: 40px 16px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--ink) 12%, transparent) 1px, transparent 0) 0 0 / 28px 28px,
    var(--bg-2);
  min-height: 100vh;
}
.mob-frame {
  width: 390px;
  background: var(--bg);
  border-radius: 44px;
  border: 1px solid var(--line-2);
  padding: 10px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
  position: relative;
}
.mob-frame::before {
  content: "";
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px; border-radius: 18px;
  background: #000;
  z-index: 2;
}
.mob-screen {
  background: var(--bg);
  border-radius: 36px;
  overflow: hidden;
  height: 800px;
  overflow-y: auto;
  scrollbar-width: none;
  position: relative;
}
.mob-screen::-webkit-scrollbar { display: none; }
.mob-screen .sc-nav-inner { padding: 60px 18px 16px; }
.mob-screen .sc-nav-links { display: none; }
.mob-screen .hero {
  grid-template-columns: 1fr;
  padding: 24px 18px 40px;
  gap: 28px;
}
.mob-screen .hero-copy { padding-top: 0; }
.mob-screen .hero h1 { font-size: 48px; }
.mob-screen section.sc-section { padding: 56px 18px; }
.mob-screen .steps, .mob-screen .testimonials, .mob-screen .security {
  grid-template-columns: 1fr;
}
.mob-screen .steps { border-radius: 4px; }
.mob-screen .step { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; }
.mob-screen .step:last-child { border-bottom: 0; }
.mob-screen .step .num { font-size: 60px; }
.mob-screen .pattern-band-inner { font-size: 18px; padding: 0 18px; }
.mob-screen .sc-foot { grid-template-columns: 1fr 1fr; padding: 32px 18px 18px; }
.mob-screen .sc-foot-bottom { padding: 16px 18px 28px; flex-direction: column; gap: 8px; }
.mob-screen .hero-trust { gap: 18px; }
.mob-screen .trust-stat .num { font-size: 24px; }
.mob-screen .calc-row input { font-size: 26px; }
.mob-screen .security-visual { aspect-ratio: auto; padding: 28px; }

/* Responsive — both @media (viewport-based, works on every browser)
   and @container (shell-based, used by the in-page mobile preview frame).
   Keeping both ensures the layout responds correctly on real phones AND
   in the desktop preview frame. */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 32px 20px 48px; }
  .hero-copy { padding-top: 12px; }
  .hero h1 { font-size: clamp(40px, 9vw, 64px); }
  .sc-nav-inner { padding: 14px 20px; }
  .sc-nav-links { display: none; }
  section.sc-section { padding: 64px 20px; }
  .steps, .testimonials, .security { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; }
  .step:last-child { border-bottom: 0; }
  .sc-foot { grid-template-columns: 1fr 1fr; padding: 36px 20px 20px; }
  .pattern-band-inner { padding: 0 20px; font-size: 18px; }
  .security-visual { aspect-ratio: auto; }
}

@container scapp (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 32px 20px 48px; }
  .hero-copy { padding-top: 12px; }
  .hero h1 { font-size: clamp(40px, 9cqw, 64px); }
  .sc-nav-inner { padding: 14px 20px; }
  .sc-nav-links { display: none; }
  section.sc-section { padding: 64px 20px; }
  .steps, .testimonials, .security { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; }
  .step:last-child { border-bottom: 0; }
  .sc-foot { grid-template-columns: 1fr 1fr; padding: 36px 20px 20px; }
  .pattern-band-inner { padding: 0 20px; font-size: 18px; }
  .security-visual { aspect-ratio: auto; }
}

/* Small mobile rules (@media for real phones + @container for preview) */
@media (max-width: 600px) {
  .hero { padding: 24px 16px 40px; gap: 28px; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero p.lede { font-size: 16px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 16px; margin-top: 36px; padding-top: 22px; }
  .trust-stat .num { font-size: 22px; }
  .trust-stat .lbl { font-size: 11px; }

  .calc-rate { padding: 12px 16px; font-size: 10px; flex-wrap: wrap; gap: 8px; }
  .calc-rate .rate-val { font-size: 13px; }
  .calc-body { padding: 16px; }
  .calc-field { padding: 12px; }
  .calc-field .lbl { font-size: 9px; }
  .calc-row { gap: 8px; }
  .calc-row input { font-size: 24px; min-width: 0; }
  .cur-pill { padding: 7px 10px 7px 6px; font-size: 12px; gap: 6px; flex-shrink: 0; }
  .cur-pill .flag { width: 18px; height: 18px; }
  .calc-breakdown { padding: 12px; margin-top: 14px; }
  .bd-row { font-size: 12px; padding: 4px 0; gap: 8px; }
  .bd-row .lbl { font-size: 12px; }
  .bd-row strong { font-size: 13px; }
  .bd-row.total strong { font-size: 16px; }
  .rails-strip { gap: 6px; padding-top: 14px; margin-top: 14px; flex-wrap: wrap; }
  .rail-chip { padding: 5px 8px; font-size: 11px; }
  .rails-strip .h-label { font-size: 10px; width: 100%; margin-bottom: 2px; }

  .pattern-band { padding: 16px 0; }
  .pattern-band-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 16px; font-size: 16px; }
  .pattern-band .live-count { align-self: flex-end; font-size: 11px; }
  .pattern-band .live-count .n { font-size: 16px; }

  section.sc-section { padding: 48px 16px; }
  .sec-head { margin-bottom: 36px; }
  .sec-head h2 { font-size: clamp(28px, 7vw, 36px); }
  .sec-head p { font-size: 15px; }

  .step { padding: 24px; }
  .step .num { font-size: 52px; }
  .step h3 { font-size: 20px; margin: 16px 0 8px; }

  .test-card { padding: 22px; }
  .test-card blockquote { font-size: 17px; }

  .security { gap: 36px; }
  .security-visual { padding: 26px; }
  .security-visual h3 { font-size: clamp(32px, 8vw, 44px); }
  .kpi-row { gap: 10px; }
  .kpi { padding: 14px 0; }
  .kpi .v { font-size: 24px; }
  .kpi .l { font-size: 12px; }

  .sc-foot { grid-template-columns: 1fr; gap: 28px; padding: 32px 16px 20px; }
  .sc-foot-bottom { flex-direction: column; gap: 6px; padding: 16px 16px 24px; align-items: flex-start; }

  .sc-flow-mask { padding: 0; align-items: stretch; }
  .sc-flow {
    max-width: 100%; border-radius: 0; border: 0;
    max-height: 100%; min-height: 100%; box-shadow: none;
  }
  .sc-flow-body { padding: 22px 18px 32px; }
  .sc-flow-body h2 { font-size: 24px; }
  .sc-flow-foot {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    position: sticky; bottom: 0;
    box-shadow: 0 -8px 20px -8px rgba(0,0,0,.12);
  }
  .sc-flow-foot .btn { min-height: 52px; font-size: 16px; }
  .sc-flow-head { padding: 14px 16px; }
  .sc-flow-progress { padding: 0 16px 12px; }
  .sc-flow-summary { padding: 10px 16px; }
  .review-amount { flex-wrap: wrap; gap: 10px; }
  .review-amount .arrow { transform: rotate(90deg); margin: 0; }
  .review-amount > div:first-child,
  .review-amount > div:last-child { flex: 1 1 100%; text-align: left !important; }
  .pin-buttons .btn-ghost, .pin-buttons .btn-primary { min-width: 0; width: 100%; }
}

@container scapp (max-width: 600px) {
  .hero { padding: 24px 16px 40px; gap: 28px; }
  .hero h1 { font-size: clamp(36px, 10cqw, 52px); }
  .hero p.lede { font-size: 16px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { gap: 16px; margin-top: 36px; padding-top: 22px; }
  .trust-stat .num { font-size: 22px; }
  .trust-stat .lbl { font-size: 11px; }

  .calc-rate { padding: 12px 16px; font-size: 10px; flex-wrap: wrap; gap: 8px; }
  .calc-rate .rate-val { font-size: 13px; }
  .calc-body { padding: 16px; }
  .calc-field { padding: 12px; }
  .calc-field .lbl { font-size: 9px; }
  .calc-row { gap: 8px; }
  .calc-row input { font-size: 24px; min-width: 0; }
  .cur-pill { padding: 7px 10px 7px 6px; font-size: 12px; gap: 6px; flex-shrink: 0; }
  .cur-pill .flag { width: 18px; height: 18px; }
  .calc-breakdown { padding: 12px; margin-top: 14px; }
  .bd-row { font-size: 12px; padding: 4px 0; gap: 8px; }
  .bd-row .lbl { font-size: 12px; }
  .bd-row strong { font-size: 13px; }
  .bd-row.total strong { font-size: 16px; }
  .rails-strip { gap: 6px; padding-top: 14px; margin-top: 14px; flex-wrap: wrap; }
  .rail-chip { padding: 5px 8px; font-size: 11px; }
  .rails-strip .h-label { font-size: 10px; width: 100%; margin-bottom: 2px; }

  .pattern-band { padding: 16px 0; }
  .pattern-band-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 16px; font-size: 16px; }
  .pattern-band .live-count { align-self: flex-end; font-size: 11px; }
  .pattern-band .live-count .n { font-size: 16px; }

  section.sc-section { padding: 48px 16px; }
  .sec-head { margin-bottom: 36px; }
  .sec-head h2 { font-size: clamp(28px, 7cqw, 36px); }
  .sec-head p { font-size: 15px; }

  .step { padding: 24px; }
  .step .num { font-size: 52px; }
  .step h3 { font-size: 20px; margin: 16px 0 8px; }

  .test-card { padding: 22px; }
  .test-card blockquote { font-size: 17px; }

  .security { gap: 36px; }
  .security-visual { padding: 26px; }
  .security-visual h3 { font-size: clamp(32px, 8cqw, 44px); }
  .kpi-row { gap: 10px; }
  .kpi { padding: 14px 0; }
  .kpi .v { font-size: 24px; }
  .kpi .l { font-size: 12px; }

  .sc-foot { grid-template-columns: 1fr; gap: 28px; padding: 32px 16px 20px; }
  .sc-foot-bottom { flex-direction: column; gap: 6px; padding: 16px 16px 24px; align-items: flex-start; }

  .sc-flow-mask { padding: 0; align-items: stretch; }
  .sc-flow {
    max-width: 100%; border-radius: 0; border: 0;
    max-height: 100%; min-height: 100%; box-shadow: none;
  }
  .sc-flow-body { padding: 22px 18px 32px; }
  .sc-flow-body h2 { font-size: 24px; }
  .sc-flow-foot {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    position: sticky; bottom: 0;
    box-shadow: 0 -8px 20px -8px rgba(0,0,0,.12);
  }
  .sc-flow-foot .btn { min-height: 52px; font-size: 16px; }
  .sc-flow-head { padding: 14px 16px; }
  .sc-flow-progress { padding: 0 16px 12px; }
  .sc-flow-summary { padding: 10px 16px; }
  .review-amount { flex-wrap: wrap; gap: 10px; }
  .review-amount .arrow { transform: rotate(90deg); margin: 0; }
  .review-amount > div:first-child,
  .review-amount > div:last-child { flex: 1 1 100%; text-align: left !important; }
  .pin-buttons .btn-ghost, .pin-buttons .btn-primary { min-width: 0; width: 100%; }
}

/* View toggle (preview chrome above the design) */
.view-chrome {
  position: sticky; top: 0;
  z-index: 90;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  display: none;
  align-items: center; gap: 12px;
}

/* Util */
.flag-cm {
  background: linear-gradient(to right, #007A5E 33.3%, #CE1126 33.3% 66.6%, #FCD116 66.6%);
  position: relative;
}
.flag-cm::after {
  content: "★";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #FCD116; font-size: 8px;
}
.flag-ng {
  background: linear-gradient(to right, #008751 50%, #fff 50%);
}
.flag-ng::after {
  content: "";
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  background: #008751;
  transform: translateX(100%);
}
