:root{
  --navy-900:#081b4a; --navy-800:#0d2a73; --navy-700:#1638a0;
  --purple-600:#6c4fd6; --purple-500:#8467e6; --purple-100:#efe9fc;
  --bg:#f6f7fb; --card:#fff; --ink:#12162b; --ink-soft:#525a7a; --line:#e4e6f1;
  --ok:#22a06b; --bad:#c62f3c;
  --radius:18px; --shadow:0 24px 60px -24px rgba(13,42,115,.35);
  --grad:linear-gradient(135deg,var(--navy-800) 0%,var(--purple-600) 100%);
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{ font-family:'Inter',system-ui,sans-serif; color:var(--ink); background:var(--bg); line-height:1.6; }
body.locked{ overflow:hidden; }
h1,h2,h3{ font-family:'Space Grotesk','Inter',sans-serif; line-height:1.15; color:var(--navy-900); }
a{ color:var(--purple-600); text-decoration:none; }
a:hover{ color:var(--navy-800); }
ul{ list-style:none; }
[hidden]{ display:none !important; }
.container{ max-width:1180px; margin:0 auto; padding:0 24px; }
.eyebrow{ display:inline-flex; align-items:center; gap:.6rem; font:600 .74rem 'IBM Plex Mono',monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--purple-600); }
.eyebrow::before{ content:""; width:22px; height:2px; background:currentColor; }
.eyebrow.light{ color:#d9d1ff; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.5rem; border-radius:100px; padding:.8rem 1.5rem; font:600 .95rem 'Inter',sans-serif; border:1.5px solid transparent; cursor:pointer; transition:transform .2s, box-shadow .2s, background .2s, color .2s; text-align:center; }
.btn:hover{ transform:translateY(-1px); }
.btn:disabled{ opacity:.7; cursor:wait; transform:none; }
.btn-primary{ background:var(--grad); color:#fff; box-shadow:0 12px 28px -12px rgba(108,79,214,.7); }
.btn-primary:hover{ color:#fff; }
.btn-outline{ background:#fff; color:var(--navy-800); border-color:var(--line); }
.btn-outline:hover{ border-color:var(--purple-500); color:var(--purple-600); }
.btn-sm{ padding:.5rem 1rem; font-size:.85rem; }
.btn-lg{ padding:1rem 1.8rem; font-size:1rem; }
.btn.full{ width:100%; }

/* Top bar */
.topbar{ background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50; }
.topbar-inner{ display:flex; align-items:center; justify-content:space-between; height:72px; gap:1rem; }
.brand{ display:flex; align-items:center; gap:.7rem; color:var(--navy-900); }
.brand img{ width:40px; height:40px; border-radius:50%; object-fit:cover; }
.brand b{ display:block; font:700 1rem 'Space Grotesk',sans-serif; letter-spacing:.01em; }
.brand small{ display:block; font:600 .68rem 'IBM Plex Mono',monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--purple-600); }
.top-links{ display:flex; align-items:center; gap:1.4rem; }
.top-links a{ color:var(--ink-soft); font-weight:500; font-size:.93rem; }
.top-links a:hover{ color:var(--navy-800); }
.top-links a.btn{ color:var(--navy-800); }

/* Hero */
.shop-hero{ background:radial-gradient(circle at 80% 20%,rgba(132,103,230,.5),transparent 45%),linear-gradient(135deg,#061236,#0d2a73 60%,#3b2a8f); color:#fff; padding:3.6rem 0 6.4rem; }
.shop-hero h1{ color:#fff; font-size:clamp(1.9rem,4vw,2.9rem); max-width:720px; margin:.8rem 0 .9rem; }
.shop-hero p{ color:rgba(255,255,255,.78); max-width:620px; font-size:1.05rem; }

/* Tabs */
.shop-main{ margin-top:-3.2rem; padding-bottom:4rem; }
.tabs{ display:grid; grid-template-columns:repeat(3,1fr); gap:.6rem; background:#fff; padding:.55rem; border-radius:20px; border:1px solid var(--line); box-shadow:var(--shadow); margin-bottom:2.4rem; }
.tab{ display:flex; align-items:center; justify-content:center; gap:.6rem; padding:1rem; border-radius:14px; border:none; background:none; cursor:pointer; font:600 1rem 'Inter',sans-serif; color:var(--ink-soft); transition:background .2s, color .2s; }
.tab:hover{ background:var(--bg); color:var(--navy-800); }
.tab.active{ background:var(--grad); color:#fff; }
.tab-icon{ display:inline-flex; }
.tab em{ font-style:normal; font:600 .65rem 'IBM Plex Mono',monospace; letter-spacing:.08em; text-transform:uppercase; padding:.2rem .5rem; border-radius:100px; background:var(--purple-100); color:var(--purple-600); }
.tab.active em{ background:rgba(255,255,255,.2); color:#fff; }
.panel{ animation:fade .35s ease; }
@keyframes fade{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:none;} }

/* Plans */
.plan{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; transition:transform .25s, box-shadow .25s; }
.plan:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.plan.highlight, .plan.selected{ border-color:var(--purple-500); box-shadow:0 0 0 3px rgba(132,103,230,.18); }
.plan-head{ background:var(--grad); color:#fff; padding:1.3rem 1.5rem; position:relative; }
.plan-head.center{ text-align:center; }
.plan-head small{ display:block; font:600 .7rem 'IBM Plex Mono',monospace; letter-spacing:.1em; text-transform:uppercase; color:#d9d1ff; margin-bottom:.2rem; }
.plan-head h3{ color:#fff; font-size:1.5rem; }
.plan-badge{ position:absolute; top:.9rem; right:.9rem; font-size:.66rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; background:#fff; color:var(--purple-600); padding:.25rem .6rem; border-radius:100px; }
.plan-specs{ flex:1; }
.plan-specs div{ display:flex; justify-content:space-between; gap:1rem; padding:.68rem 1.5rem; font-size:.92rem; }
.plan-specs div:nth-child(even){ background:var(--bg); }
.plan-specs span{ color:var(--ink-soft); }
.plan-specs b{ color:var(--navy-800); font-weight:600; text-align:right; }
.plan-foot{ padding:1.1rem 1.5rem 1.4rem; border-top:1px solid var(--line); }
.plan-price{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:1rem; }
.plan-price span{ color:var(--ink-soft); font-size:.9rem; }
.plan-price b{ font:700 1.9rem 'Space Grotesk',sans-serif; color:var(--navy-900); }
.plan-price b small{ font-size:1rem; }
.plan-price b small.from{ font:600 .8rem 'Inter',sans-serif; color:var(--ink-soft); margin-right:.3rem; }
.plan-price.big{ margin-bottom:0; }
.plan-price.big b{ font-size:2.2rem; }
.plan .btn{ width:100%; }

.featured{ display:grid; grid-template-columns:400px 1fr; gap:3rem; align-items:center; padding:2.4rem; border-radius:24px; margin-bottom:3.6rem; background:linear-gradient(135deg,var(--purple-100),#fff 70%); border:1px solid var(--line); }
.featured-copy h2{ font-size:clamp(1.6rem,3vw,2.2rem); margin:.8rem 0 1rem; }
.featured-copy > p{ color:var(--ink-soft); font-size:1.02rem; margin-bottom:1rem; }
.featured-copy .tagline{ font-weight:700; color:var(--navy-900); }
.ticks{ display:grid; gap:.75rem; margin:1.2rem 0 1.8rem; }
.ticks li{ display:flex; gap:.75rem; align-items:flex-start; }
.ticks li::before{ content:""; flex-shrink:0; width:22px; height:22px; border-radius:50%; margin-top:1px; background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }

.group-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:1.4rem; flex-wrap:wrap; margin-bottom:1.6rem; }
.group-head h2{ font-size:1.5rem; }
.group-head p{ color:var(--ink-soft); }
.seg{ display:inline-flex; background:#fff; border:1px solid var(--line); border-radius:100px; padding:4px; }
.seg button{ border:none; background:none; padding:.55rem 1.2rem; border-radius:100px; font:600 .9rem 'Inter',sans-serif; color:var(--ink-soft); cursor:pointer; }
.seg button.on{ background:var(--navy-800); color:#fff; }
.grid{ display:grid; gap:1.3rem; }
.grid.cols-3{ grid-template-columns:repeat(3,1fr); }
.grid.cols-4{ grid-template-columns:repeat(4,1fr); }

.perks{ display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin-top:2.6rem; }
.perks div{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:1.1rem 1.2rem; }
.perks b{ display:block; color:var(--navy-900); font-size:.95rem; }
.perks span{ color:var(--ink-soft); font-size:.85rem; }
.note{ margin-top:1.2rem; font-size:.82rem; color:var(--ink-soft); }

/* Coming soon */
.soon{ text-align:center; background:#fff; border:1px solid var(--line); border-radius:24px; padding:4rem 1.5rem; }
.soon-icon{ width:72px; height:72px; border-radius:20px; margin:0 auto 1.4rem; display:flex; align-items:center; justify-content:center; background:var(--purple-100); color:var(--purple-600); }
.soon-icon svg{ width:32px; height:32px; }
.soon .eyebrow::before{ display:none; }
.soon h2{ font-size:clamp(1.5rem,3vw,2rem); margin:.6rem 0 .8rem; }
.soon p{ color:var(--ink-soft); max-width:560px; margin:0 auto 1.8rem; }
.soon-ctas{ display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap; }

/* Checkout modal */
.backdrop{ position:fixed; inset:0; z-index:200; background:rgba(6,15,40,.62); backdrop-filter:blur(4px); display:flex; align-items:flex-start; justify-content:center; padding:4vh 16px; overflow-y:auto; }
.modal{ position:relative; background:#fff; border-radius:var(--radius); width:100%; max-width:560px; overflow:hidden; box-shadow:0 40px 80px -20px rgba(6,15,40,.5); animation:fade .25s ease; }
.modal-x{ position:absolute; top:.8rem; right:1rem; background:rgba(255,255,255,.15); color:#fff; border:none; width:34px; height:34px; border-radius:50%; font-size:1.4rem; line-height:1; cursor:pointer; }
.modal-head{ background:var(--grad); color:#fff; padding:1.5rem 1.7rem; }
.modal-head small{ font:600 .72rem 'IBM Plex Mono',monospace; letter-spacing:.1em; text-transform:uppercase; color:#d9d1ff; }
.modal-head h3{ color:#fff; font-size:1.5rem; margin:.2rem 0 .4rem; }
.modal-price{ color:rgba(255,255,255,.85); }
.modal-price b{ font:700 1.6rem 'Space Grotesk',sans-serif; color:#fff; margin-right:.2rem; }
.from-note{ display:block; font-size:.8rem; color:rgba(255,255,255,.7); }
.modal-body{ padding:1.4rem 1.7rem 1.7rem; }
.co-specs{ border:1px solid var(--line); border-radius:12px; padding:.7rem 1rem; margin-bottom:1.2rem; }
.co-specs summary{ cursor:pointer; font-weight:600; color:var(--navy-800); font-size:.92rem; }
.co-specs ul{ margin-top:.6rem; display:grid; gap:.3rem; }
.co-specs li{ display:flex; justify-content:space-between; font-size:.88rem; border-top:1px solid var(--line); padding-top:.3rem; }
.co-specs li span{ color:var(--ink-soft); }
.field{ margin-bottom:1rem; border:none; min-width:0; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:0 1rem; }
.field label, .field legend{ display:block; font-size:.86rem; font-weight:600; color:var(--navy-900); margin-bottom:.35rem; }
.field i{ color:var(--purple-600); font-style:normal; }
.opt{ font-weight:400; color:var(--ink-soft); }
.field input:not([type=radio]), .field textarea{ width:100%; border:1.5px solid var(--line); border-radius:10px; padding:.75rem .9rem; font:inherit; font-size:.95rem; color:var(--ink); outline:none; background:#fff; transition:border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus{ border-color:var(--purple-500); box-shadow:0 0 0 3px rgba(132,103,230,.18); }
.field .invalid, .check input.invalid{ border-color:var(--bad) !important; }
.radios{ display:flex; flex-wrap:wrap; gap:.4rem 1.2rem; margin-bottom:.6rem; }
.radios label{ font-weight:500; font-size:.9rem; color:var(--ink); display:flex; gap:.4rem; align-items:center; margin:0; cursor:pointer; }
.hint{ font-size:.8rem; color:var(--ink-soft); margin-top:.3rem; }
.err{ font-size:.8rem; color:var(--bad); margin-top:.25rem; }
.err:empty{ display:none; }
.check{ display:flex; gap:.6rem; align-items:flex-start; font-size:.86rem; color:var(--ink-soft); margin:.4rem 0 .3rem; cursor:pointer; }
.check input{ margin-top:.25rem; width:16px; height:16px; accent-color:var(--purple-600); flex-shrink:0; }
.form-alert{ background:#fdecee; color:var(--bad); border-radius:10px; padding:.7rem .9rem; font-size:.88rem; margin:.8rem 0; }
#coPay{ margin-top:1rem; }
.secure-line{ display:flex; gap:.4rem; align-items:center; justify-content:center; font-size:.78rem; color:var(--ink-soft); margin-top:.8rem; text-align:center; }

/* Result & text pages */
.page{ max-width:760px; margin:-3.2rem auto 4rem; background:#fff; border:1px solid var(--line); border-radius:24px; padding:2.6rem; box-shadow:var(--shadow); position:relative; }
.page.center{ text-align:center; }
.status-icon{ width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 1.2rem; background:var(--grad); color:#fff; }
.status-icon.bad{ background:var(--bad); }
.status-icon.wait{ background:#d38b12; }
.page h1{ font-size:clamp(1.6rem,3vw,2.1rem); margin-bottom:.8rem; }
.page p{ color:var(--ink-soft); margin-bottom:1rem; }
.summary{ text-align:left; border:1px solid var(--line); border-radius:14px; margin:1.6rem 0; overflow:hidden; }
.summary div{ display:flex; justify-content:space-between; gap:1rem; padding:.7rem 1.1rem; font-size:.94rem; }
.summary div:nth-child(even){ background:var(--bg); }
.summary span{ color:var(--ink-soft); }
.summary b{ color:var(--navy-900); text-align:right; }
.prose h2{ font-size:1.25rem; margin:1.8rem 0 .6rem; }
.prose p, .prose li{ color:var(--ink-soft); }
.prose ul{ list-style:disc; padding-left:1.3rem; margin-bottom:1rem; }
.prose li{ margin-bottom:.35rem; }

/* Footer */
.foot{ background:var(--navy-900); color:rgba(255,255,255,.7); padding:2.6rem 0 1.4rem; font-size:.88rem; }
.foot b{ color:#fff; }
.foot a{ color:#d9d1ff; }
.foot-inner{ display:flex; justify-content:space-between; gap:2rem; flex-wrap:wrap; }
.foot-links{ display:flex; flex-direction:column; gap:.4rem; align-items:flex-end; }
.secured{ display:inline-flex; gap:.4rem; align-items:center; color:rgba(255,255,255,.6); }
.foot-copy{ margin-top:1.8rem; padding-top:1.2rem; border-top:1px solid rgba(255,255,255,.1); font-size:.8rem; color:rgba(255,255,255,.5); }

@media (max-width:980px){
  .featured{ grid-template-columns:1fr; padding:1.6rem; gap:2rem; }
  .grid.cols-3, .grid.cols-4, .perks{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:720px){
  .container{ padding:0 16px; }
  .top-links a:not(.btn){ display:none; }
  .brand b{ font-size:.9rem; }
  .shop-hero{ padding:2.4rem 0 5.6rem; }
  .tabs{ grid-template-columns:1fr; }
  .tab{ justify-content:flex-start; padding:.8rem 1rem; }
  .featured{ padding:1rem; }
  .grid.cols-3, .grid.cols-4, .perks, .field-row{ grid-template-columns:1fr; }
  .group-head{ align-items:flex-start; }
  .seg{ width:100%; } .seg button{ flex:1; }
  .modal-body, .modal-head{ padding-left:1.2rem; padding-right:1.2rem; }
  .page{ padding:1.6rem 1.2rem; margin-left:16px; margin-right:16px; }
  .foot-links{ align-items:flex-start; }
}
