:root{
  --bg:#f7f9fc; --surface:#ffffff; --ink:#0f1b2d; --muted:#5b6b80; --line:#e2e8f0;
  --accent:#0b6bcb; --accent-dark:#0857a5; --ice:#e8f2ff; --navy:#0b1b33;
  --ok:#15803d; --ok-bg:#e8f7ee; --warn:#a16207; --warn-bg:#fffbeb;
  --radius:18px; --radius-sm:12px;
  --shadow-sm:0 1px 2px rgba(15,27,45,.05);
  --shadow-md:0 16px 40px rgba(15,27,45,.09);
  --mono:ui-monospace,"SF Mono",Consolas,"Liberation Mono",monospace;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.6;
  font-family:Inter,"Segoe UI",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased}
a{color:var(--accent);text-decoration:none}
button,input,select{font:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.wrap{width:100%;max-width:1040px;margin:0 auto;padding:0 24px}

/* ---------- header ---------- */
.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);
  border-bottom:1px solid var(--line);backdrop-filter:saturate(1.2) blur(10px)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
.logo{display:inline-flex;align-items:center;gap:10px;color:var(--ink);flex:0 0 auto}
.mark{width:32px;height:32px;border-radius:9px;background:var(--navy);color:#dff1ff;
  display:grid;place-items:center;font-size:15px;font-weight:800;letter-spacing:-.02em}
.logo-text{font-size:16px;font-weight:750;letter-spacing:-.025em}
.top-right{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.secure{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);white-space:nowrap}
.secure svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.langsel{appearance:none;border:1px solid var(--line);background:#fff;color:var(--ink);
  border-radius:9px;padding:7px 28px 7px 10px;font-size:13px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235b6b80' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 10px center}
.langsel option{color:var(--ink)}

/* ---------- hero ---------- */
.hero{padding:58px 0 26px;text-align:center}
.eyebrow{display:inline-flex;padding:6px 11px;border-radius:999px;background:var(--ice);
  color:var(--accent);font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.hero h1{margin:16px auto 12px;max-width:720px;font-size:clamp(32px,4.4vw,46px);
  line-height:1.08;letter-spacing:-.035em}
.hero p{margin:0 auto;max-width:600px;font-size:16px;color:var(--muted)}
.hero-points{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;margin-top:20px;
  font-size:12.5px;color:var(--muted)}
.point{display:inline-flex;align-items:center;gap:6px}
.point svg{width:14px;height:14px;fill:none;stroke:var(--ok);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- plans ---------- */
.plans{padding:8px 0 0}
.tier-switch{display:flex;width:max-content;max-width:100%;margin:0 auto;padding:4px;
  background:#eef2f7;border:1px solid var(--line);border-radius:12px}
.tier-switch button{display:flex;flex-direction:column;align-items:center;gap:1px;
  padding:9px 20px;border:0;border-radius:9px;background:transparent;color:var(--muted);
  font-size:13px;font-weight:650;cursor:pointer;line-height:1.3;white-space:nowrap}
.tier-switch button small{font-size:11px;font-weight:500;color:#7b8aa0}
.tier-switch button.on{background:#fff;color:var(--ink);box-shadow:var(--shadow-sm)}
.tier-switch button.on small{color:var(--muted)}
.tier-note{min-height:20px;margin:14px auto 22px;max-width:620px;text-align:center;
  font-size:13px;color:var(--muted)}

.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.plan{display:flex;flex-direction:column;position:relative;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius);padding:22px;
  box-shadow:var(--shadow-sm)}
.plan.popular{border-color:#9cc7f5;box-shadow:var(--shadow-md);transform:translateY(-4px)}
.badge-pop{position:absolute;top:-11px;left:50%;transform:translateX(-50%);
  padding:4px 11px;border-radius:999px;background:var(--accent);color:#fff;
  font-size:10.5px;font-weight:750;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.plan-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dur{font-size:13px;font-weight:650;color:var(--muted)}
.save{padding:3px 8px;border-radius:999px;background:var(--ok-bg);color:var(--ok);
  font-size:10.5px;font-weight:750;white-space:nowrap}
.price{margin:14px 0 2px;font-size:42px;line-height:1;font-weight:780;letter-spacing:-.04em;
  font-variant-numeric:tabular-nums}
.plan-sub{min-height:18px;font-size:11.5px;color:#7b8aa0}
.feat{list-style:none;margin:18px 0 22px;padding:0;display:grid;gap:9px;font-size:13px;color:var(--muted)}
.feat li{display:flex;align-items:flex-start;gap:8px;line-height:1.45}
.feat li::before{content:"✓";color:var(--accent);font-weight:800;flex:0 0 auto}
.btn{display:inline-flex;align-items:center;justify-content:center;width:100%;height:44px;
  padding:0 16px;border:0;border-radius:10px;background:var(--accent);color:#fff;
  font-size:14px;font-weight:650;cursor:pointer;white-space:nowrap;
  transition:background .15s,transform .15s}
.btn:hover{background:var(--accent-dark)}
.btn:disabled{opacity:.6;cursor:not-allowed}
.plan:not(.popular) .btn{background:#fff;color:var(--ink);border:1px solid var(--line)}
.plan:not(.popular) .btn:hover{background:#f8fafc;border-color:#bcd7f5}
.micro{margin:10px 0 0;text-align:center;font-size:11px;color:#7b8aa0}
.formerr{min-height:18px;margin:14px 0 0;text-align:center;font-size:13px;color:#b91c1c}
.loaderr{grid-column:1/-1;margin:0;padding:28px;text-align:center;color:var(--muted)}
.devbar{display:flex;align-items:center;justify-content:center;gap:8px;margin:22px auto 0;
  max-width:720px;padding:10px 14px;border:1px dashed #e2c07a;border-radius:10px;
  background:var(--warn-bg);color:#8a5a0b;font-size:12.5px;text-align:center}
.dev-dot{width:7px;height:7px;border-radius:50%;background:#d99a1f;flex:0 0 auto}

/* ---------- how / trust ---------- */
.how{padding:64px 0 0}
.how h2{margin:0 0 24px;text-align:center;font-size:20px;letter-spacing:-.02em}
.how-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.how-step{position:relative;padding:20px;background:var(--surface);border:1px solid var(--line);
  border-radius:14px}
.num{display:grid;place-items:center;width:26px;height:26px;margin-bottom:12px;border-radius:50%;
  background:var(--ice);color:var(--accent);font-size:12px;font-weight:750}
.how-step h3{margin:0 0 5px;font-size:14.5px}
.how-step p{margin:0;font-size:12.5px;color:var(--muted);line-height:1.55}
.trust{display:flex;justify-content:center;gap:26px;flex-wrap:wrap;padding:30px 0 0;
  color:var(--muted);font-size:12px}
.trust-item{display:inline-flex;align-items:center;gap:7px}
.trust-item svg{width:15px;height:15px;fill:none;stroke:var(--accent);stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round}

/* ---------- footer ---------- */
.foot{margin-top:56px;padding:22px 24px 34px;border-top:1px solid var(--line)}
.foot p{max-width:900px;margin:0;font-size:11.5px;line-height:1.65;color:#7b8aa0}
.foot-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:14px;
  font-size:12px;color:#7b8aa0}
.foot-bottom a{font-weight:600}

/* ---------- success / redeem ---------- */
.hero + #keys{margin-top:8px}
.keybox{max-width:640px;margin:14px auto;padding:18px 20px;background:var(--surface);
  border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-sm)}
.keybox .k{font-family:var(--mono);font-size:17px;font-weight:600;letter-spacing:.02em;
  overflow-wrap:anywhere;line-height:1.5}
.keybox .meta{margin-top:6px;font-size:12.5px;color:var(--muted)}
.badge{display:inline-block;margin-left:8px;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:650}
.badge.ok{background:var(--ok-bg);color:var(--ok)}
.badge.used{background:#f1f5f9;color:var(--muted)}
.note{max-width:640px;margin:14px auto;font-size:13px;color:var(--muted);text-align:center}
form.redeem{display:flex;gap:10px;max-width:640px;margin:20px auto 0;flex-wrap:wrap}
form.redeem input{flex:1;min-width:240px;height:44px;border:1px solid var(--line);border-radius:10px;
  padding:0 13px;background:#fff;color:var(--ink);font-family:var(--mono);font-size:14px}
form.redeem input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--ice)}
form.redeem .btn{width:auto;min-width:120px}
.result{display:none;max-width:640px;margin:16px auto 0;padding:13px 15px;border-radius:10px;font-size:13.5px}
.result.ok{display:block;background:var(--ok-bg);border:1px solid #b7e4c7;color:#166534}
.result.err{display:block;background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.disclaimer{max-width:900px;margin:26px auto 0;padding:14px 16px;background:var(--surface);
  border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:12px;line-height:1.6}

/* ---------- RTL ---------- */
[dir="rtl"] .eyebrow,[dir="rtl"] .badge-pop{letter-spacing:0;text-transform:none}
[dir="rtl"] .feat li::before{content:"✓"}

/* ---------- responsive ---------- */
@media(max-width:860px){
  .plan-grid{grid-template-columns:1fr;gap:12px}
  .plan.popular{transform:none}
  .how-grid{grid-template-columns:1fr;gap:10px}
  .how{padding-top:44px}
  .hero{padding:42px 0 20px}
  .hero h1{font-size:clamp(30px,7vw,38px)}
}
@media(max-width:620px){
  .wrap{padding:0 18px}
  .top-right{gap:10px}
  .secure span{display:none}
  .tier-switch{width:100%}
  .tier-switch button{flex:1;padding:9px 10px}
  .hero-points{gap:12px;font-size:12px}
  .foot{padding-left:18px;padding-right:18px}
  .price{font-size:38px}
}
@media(prefers-reduced-motion:reduce){
  *{transition:none!important}
  html{scroll-behavior:auto}
}
