:root {
  --navy: #13213f;
  --navy-2: #24407c;
  --navy-soft: #eef2f9;
  --red: #d31f2a;
  --red-dark: #b01822;
  --red-soft: #fdeeee;
  --green: #11804a;
  --green-soft: #e7f6ee;
  --gold-dark: #d99d08;
  --white: #ffffff;
  --ink: #0d1424;
  --muted: #5a6478;
  --line: #e6e9f0;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--navy-soft); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
svg { display: block; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h1 { font-size: clamp(1.5rem, 4vw, 1.875rem); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
[hidden] { display: none !important; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: 960px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.nav { background: var(--white); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--white); }
.secure { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.secure .ico { width: 16px; height: 16px; color: var(--green); }

.layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-block: clamp(24px, 5vw, 48px); }
.card { background: var(--white); border-radius: 20px; box-shadow: 0 1px 3px rgba(13, 20, 36, .06), 0 12px 32px rgba(13, 20, 36, .06); padding: clamp(20px, 4vw, 32px); }

/* Resumo */
.summary { display: grid; gap: 16px; position: sticky; top: 24px; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.product { display: flex; gap: 14px; align-items: center; }
.cover { display: grid; place-items: center; width: 56px; height: 68px; border-radius: 8px; background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: var(--white); flex: none; }
.cover .ico { width: 26px; height: 26px; }
.product strong { display: block; line-height: 1.3; }
.product span { color: var(--muted); font-size: .875rem; }
.lines { display: grid; gap: 8px; padding-block: 14px; border-block: 1px solid var(--line); font-size: .9375rem; }
.lines li { display: flex; justify-content: space-between; gap: 12px; }
.lines s { color: var(--muted); }
.lines .disc { color: var(--green); font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.total b { font-size: 1.75rem; letter-spacing: -.02em; }
.perks { display: grid; gap: 8px; font-size: .875rem; color: var(--muted); }
.perks li { display: flex; gap: 8px; align-items: center; }
.perks .ico { width: 16px; height: 16px; color: var(--navy-2); }

/* Formulário */
form, .state { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
label, legend { font-weight: 600; font-size: .9375rem; }
.hint { color: var(--muted); font-size: .8125rem; }
input[type="text"], input[type="tel"] { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; }
input:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(36, 64, 124, .15); }
input[aria-invalid="true"] { border-color: var(--red); }
.prefix { display: flex; align-items: stretch; }
.prefix span { display: grid; place-items: center; padding-inline: 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--navy-soft); color: var(--muted); font-weight: 600; font-size: .9375rem; }
.prefix input { border-radius: 0 12px 12px 0; }
.err { color: var(--red); font-size: .8125rem; font-weight: 600; }

fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.method { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method .dot { width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; flex: none; }
.method .logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--white); font-size: .6875rem; font-weight: 800; flex: none; }
.mpesa .logo { background: #e60000; }
.emola .logo { background: #f58220; }
.method:has(input:checked) { border-color: var(--navy-2); background: var(--navy-soft); }
.method:has(input:checked) .dot { border: 5px solid var(--navy-2); }
.method:has(input:focus-visible) { outline: 3px solid var(--gold-dark); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 14px 24px; border: 0; border-radius: 999px; background: var(--red); color: var(--white); font: inherit; font-weight: 700; font-size: 1.0625rem; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 12px 28px rgba(211, 31, 42, .25); transition: background .15s; }
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: var(--white); color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--navy-soft); }
.note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.note .ico { width: 16px; height: 16px; margin-top: 2px; }
.alert { padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red-dark); font-size: .9375rem; font-weight: 600; }

/* Estados */
.state { justify-items: center; text-align: center; padding-block: 16px; }
.state p { color: var(--muted); max-width: 30em; }
.state .big { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; }
.state .big .ico { width: 34px; height: 34px; }
.wait .big { background: var(--navy-soft); color: var(--navy-2); }
.ok .big { background: var(--green-soft); color: var(--green); }
.spinner { width: 34px; height: 34px; border: 4px solid rgba(36, 64, 124, .2); border-top-color: var(--navy-2); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { display: grid; gap: 10px; width: 100%; max-width: 340px; text-align: left; counter-reset: s; }
.steps li { display: flex; gap: 10px; align-items: center; font-size: .9375rem; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-soft); color: var(--navy-2); font-weight: 700; font-size: .8125rem; flex: none; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); }
.receipt { width: 100%; max-width: 340px; display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--navy-soft); font-size: .875rem; text-align: left; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 700; word-break: break-all; text-align: right; }

@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .summary { position: static; order: -1; }
  .perks { display: none; }
}
@media (max-width: 380px) {
  .methods { grid-template-columns: minmax(0, 1fr); }
  .secure span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .spinner { animation-duration: 3s; }
}
