/* Prizeo PIN API landing – base styles (orange / purple design) */
:root {
  --o1: #ff781f; --o2: #f08a0c; --o3: #d9730a;
  --text: #1f1f1f; --muted: #555; --line: #e3e3e3;
  --bg: #f4f4f6; --card: #fff; --link: #1f6fc4;
  --err: #c62828; --ok: #2e7d32;
  --hero1: #2b1d5c; --hero2: #5b2a86;
  --accent: var(--o2);            /* labels, arrows */
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Segoe UI", Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: var(--link); }
.wrap { max-width: 480px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--hero1), var(--hero2)); color: #fff; text-align: center; padding: 28px 16px 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255,120,31,.35), transparent 60%); pointer-events: none; }
.brand { font-weight: 800; letter-spacing: .5px; font-size: 22px; position: relative; }
.brand span { color: var(--o1); }
.trophy { display: block; width: 160px; height: 160px; margin: 14px auto 6px; position: relative; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.hero h1 { font-size: 24px; margin: 6px 0 6px; position: relative; }
.hero p { margin: 0; opacity: .9; position: relative; }

/* Main card */
.card { background: var(--card); border-radius: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 22px 18px; margin-top: -44px; position: relative; }
.progress { display: flex; gap: 6px; margin-bottom: 16px; }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.progress i.on { background: linear-gradient(90deg, var(--o1), var(--o2)); }
.step-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.card h2 { font-size: 18px; margin: 0 0 14px; }

/* Phone input */
.phone { display: flex; border: 2px solid #cfcfcf; border-radius: 12px; overflow: hidden; transition: border-color .15s; }
.phone:focus-within { border-color: var(--o2); }
.phone .pre { background: #f6f6f6; padding: 0 12px; display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 600; border-right: 1px solid #ddd; white-space: nowrap; }
.phone .pre img { width: 22px; height: 15px; }
.phone input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 20px; padding: 14px 12px; letter-spacing: 1px; font-family: inherit; }

/* PIN boxes */
.otp { display: flex; gap: 10px; justify-content: center; margin: 6px 0 4px; }
.otp input { width: 54px; height: 62px; text-align: center; font-size: 26px; font-weight: 700; border: 2px solid #cfcfcf; border-radius: 12px; outline: 0; font-family: inherit; }
.otp input:focus { border-color: var(--o2); }

/* CTA */
.cta { display: block; width: 100%; margin-top: 16px; border: 0; border-radius: 12px; padding: 15px; font-family: inherit; font-size: 19px; font-weight: 800; letter-spacing: .5px; color: #fff; cursor: pointer; text-align: center; text-decoration: none;
       background: linear-gradient(180deg, var(--o1), var(--o2)); box-shadow: 0 4px 0 var(--o3), 0 6px 14px rgba(240,138,12,.35); transition: transform .08s, box-shadow .08s, opacity .15s; }
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--o3); }
.cta:disabled { opacity: .55; cursor: not-allowed; }
.cta small { display: block; font-size: 12px; font-weight: 600; opacity: .95; letter-spacing: 0; }

.price { margin-top: 10px; text-align: center; font-size: 14px; color: var(--text); }
.price b { font-size: 15px; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--text); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--o2); flex: none; }

.msg { min-height: 20px; font-size: 13px; margin-top: 8px; color: var(--err); text-align: center; }
.sub { text-align: center; font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.links { display: flex; justify-content: space-between; font-size: 13px; margin-top: 12px; }
.links button { background: none; border: 0; color: var(--link); cursor: pointer; font-size: 13px; padding: 0; font-family: inherit; }
.links button:disabled { color: #999; cursor: default; }

/* How it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 6px; text-align: center; }
.how div { background: var(--card); border-radius: 12px; padding: 12px 6px; font-size: 12.5px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.how .ic { font-size: 24px; display: block; margin-bottom: 4px; }
.how b { display: block; font-size: 11px; color: var(--accent); }

/* Service details */
details { background: var(--card); border-radius: 12px; margin: 14px 0; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "\25BE"; color: var(--accent); }
details[open] summary::after { content: "\25B4"; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
td { padding: 9px 16px; border-top: 1px solid var(--line); vertical-align: top; }
td:first-child { color: var(--muted); width: 38%; }

footer { text-align: center; font-size: 12px; color: var(--muted); padding: 10px 16px 28px; }

/* Success */
.done { text-align: center; }
.done .big { font-size: 54px; }
#confetti { position: fixed; inset: 0; pointer-events: none; }
