:root {
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --bad: #dc2626;
  --bad-bg: #fef2f2;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 16px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.secure { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.card h2 { font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; display: inline-grid; place-items: center; flex: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.seg button { border: 0; background: transparent; padding: 9px 6px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 14px 12px 12px; cursor: pointer; background: var(--card); text-align: left; font: inherit; color: inherit; }
.plan.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.plan .qty { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.plan .unit { color: var(--muted); font-size: 13px; }
.plan .price { margin-top: 8px; font-weight: 700; }
.plan .was { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 13px; margin-left: 4px; }
.badge { position: absolute; top: -10px; right: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
label.f { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 12px; }
.input { width: 100%; border: 1px solid #d1d5db; border-radius: 10px; padding: 12px; font: inherit; background: #fff; color: var(--ink); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.prefix { display: flex; align-items: stretch; }
.prefix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid #d1d5db; border-right: 0; border-radius: 10px 0 0 10px; background: var(--bg); color: var(--muted); }
.prefix .input { border-radius: 0 10px 10px 0; }
.summary { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 0; margin-top: 4px; border-top: 1px dashed var(--line); }
.summary .total { font-size: 20px; font-weight: 800; }
.btn { width: 100%; border: 0; border-radius: 12px; padding: 16px; font: inherit; font-size: 17px; font-weight: 700; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ok { background: var(--ok); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; padding: 12px; display: block; margin: 4px auto 0; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 12px; display: none; }
.alert.show { display: block; }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.trust { display: grid; gap: 6px; color: var(--muted); font-size: 13px; margin-top: 14px; }
.trust div { display: flex; gap: 8px; align-items: center; }
footer.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 24px; }
.spin { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: s .7s linear infinite; display: none; }
.busy .spin { display: inline-block; }
@keyframes s { to { transform: rotate(360deg); } }
.center { text-align: center; }
.muted { color: var(--muted); }
.skeleton { height: 120px; border-radius: 12px; background: linear-gradient(90deg, #eee, #f6f6f6, #eee); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.hidden { display: none !important; }
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
@media (max-width: 380px) { .plan .qty { font-size: 19px; } }
