/* Web purchase pages: landings (/go/), welcome, activation, restore. Mobile first, one column. */
:root {
  --bg: #f4f7fb; --card: #fff; --text: #111418; --muted: #667085; --line: #e4e8ee;
  --accent: #0a7cff; --accent-text: #fff; --price: #0a7cff; --check: #0a7cff; --chip: #eef4ff;
}
.theme-dark { --bg: #121212; --card: #1d1d1f; --text: #fff; --muted: #a1a1a6; --line: #2c2c2e;
  --accent: #b4e23f; --accent-text: #111; --price: #b4e23f; --check: #b4e23f; --chip: #242426; }
.theme-brand { --bg: #fff; --price: #0a7cff; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Until the page's language is applied; shown anyway after a moment if the script fails. */
html.loading body { visibility: hidden; animation: reveal 0s 1.2s forwards; }
@keyframes reveal { to { visibility: visible; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Arabic", sans-serif; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.page { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.content { padding: 0 20px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Hero: a photo or the brand illustration fading into the page. */
.hero { position: relative; width: 100%; overflow: hidden; }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: auto 0 -2px 0; height: 45%; background: linear-gradient(to bottom, transparent, var(--bg) 92%); }
.hero-photo { height: clamp(230px, 40vh, 470px); }
.hero-photo img { object-position: 50% 20%; }
.hero-brand { height: clamp(210px, 36vh, 380px); background: #1aa3ee; }
.hero-brand img { object-position: 50% 40%; }
.hero-brand::after { height: 30%; }
.title { margin: -30px 0 12px; position: relative; z-index: 1; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.sub { margin: -4px 0 14px; color: var(--muted); font-size: 16px; }
.save { display: inline-flex; align-items: center; gap: 7px; margin: -2px 0 14px; padding: 7px 14px; border-radius: 99px; background: color-mix(in srgb, var(--price) 16%, transparent); color: var(--price); font-size: 15px; font-weight: 700; }
.save svg { flex: none; width: 17px; height: 17px; }

.checks { list-style: none; margin: 0 0 16px; padding: 0; display: inline-flex; flex-direction: column; gap: 6px; text-align: start; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--check); }

.offer { margin: 0 0 16px; }
.offer-title { margin: 0; font-size: 22px; font-weight: 600; }
.offer-price { margin: 2px 0; font-size: 30px; font-weight: 800; color: var(--price); }
.offer-then { margin: 0; color: var(--muted); font-size: 15px; }

.cta { width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-text); font-size: 19px; font-weight: 700; letter-spacing: 0.01em; transition: transform 0.08s, opacity 0.2s; }
.cta:active { transform: scale(0.98); }
a.cta { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.h1 { margin: 4px 0 10px; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.cta[disabled] { opacity: 0.6; }
.cta.pulse { animation: pulse 2.4s ease-in-out 1.5s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.note { margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 500; }
.note svg { width: 16px; height: 16px; color: var(--check); }
.after { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.terms { margin: 14px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.terms a { color: var(--muted); }
.secure { margin: 10px 0 0; color: var(--muted); font-size: 12px; display: flex; gap: 5px; align-items: center; justify-content: center; }
.secure svg { width: 13px; height: 13px; }
.foot { margin-top: auto; padding: 18px 20px 26px; text-align: center; font-size: 12px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin-bottom: 8px; }
.foot a { color: var(--muted); }
.error { margin: 10px 0 0; color: #e5484d; font-size: 14px; min-height: 1px; }
.banner { width: 100%; margin: 0; padding: 10px 16px; background: var(--chip); color: var(--text); font-size: 14px; text-align: center; }

/* Plan picker (quiz). */
.plans { width: 100%; display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.plan { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); text-align: start; }
.plan[aria-checked="true"] { border-color: var(--accent); }
.plan .radio { flex: none; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.plan[aria-checked="true"] .radio { border-color: var(--accent); background: var(--accent); }
.plan[aria-checked="true"] .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.plan b { display: block; font-size: 17px; }
.plan span.small { display: block; color: var(--muted); font-size: 14px; }
.plan .badge { position: absolute; top: -10px; inset-inline-end: 14px; padding: 2px 9px; border-radius: 99px; background: #34c759; color: #fff; font-size: 12px; font-weight: 700; }

/* Quiz. */
.quiz-top { width: 100%; padding: 16px 20px 0; }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width 0.3s; }
.step-label { margin: 10px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.q { width: 100%; display: none; flex-direction: column; align-items: stretch; }
.q.on { display: flex; }
.q h2 { margin: 18px 0 4px; font-size: 26px; line-height: 1.2; text-align: center; }
.q .hint { margin: 0 0 14px; color: var(--muted); text-align: center; font-size: 14px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 10px; padding: 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font-size: 17px; font-weight: 500; text-align: start; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--chip); }
.opt .box { flex: none; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 6px; display: grid; place-items: center; }
.opt[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.opt[aria-pressed="true"] .box::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px, -1px); }
[dir="rtl"] .opt[aria-pressed="true"] .box::after { transform: rotate(45deg) translate(-1px, -1px); }
.estimate { width: 100%; margin: 6px 0 16px; padding: 16px; border-radius: 16px; background: var(--chip); }
.estimate b { display: block; font-size: 34px; color: var(--accent); }
.estimate p { margin: 4px 0 0; }
.estimate small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

/* Welcome, activation, restore. */
.card { width: 100%; margin: 0 0 14px; padding: 18px; border-radius: 18px; background: var(--card); text-align: start; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06); }
.card h3 { margin: 0 0 12px; font-size: 17px; }
.card .num { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-end: 8px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; }
.store { display: flex; justify-content: center; }
.store img { display: block; height: 50px; }
.center { text-align: center; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px 0 12px; text-align: center; }
.qr-code svg { display: block; width: 180px; height: 180px; padding: 10px; border-radius: 14px; background: #fff; }
.code-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.code { flex: 1; min-width: 0; padding: 12px 8px; border-radius: 12px; background: var(--chip); font: 600 18px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.03em; white-space: nowrap; text-align: center; direction: ltr; user-select: all; }
.copy { padding: 12px 14px; border: 0; border-radius: 12px; background: var(--chip); color: var(--accent); font-weight: 600; }
.muted { color: var(--muted); font-size: 14px; }
.spinner { width: 34px; height: 34px; margin: 24px auto; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo { width: 76px; height: 76px; margin: 28px auto 8px; display: block; border-radius: 18px; box-shadow: 0 4px 14px rgba(10, 124, 255, 0.25); }
input[type="email"] { width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; margin: 6px 0 12px; }
input[type="email"]:focus { outline: none; border-color: var(--accent); }
.hidden { display: none !important; }

/* Meta consent (EEA, UK, Switzerland). */
.consent { position: fixed; inset: auto 12px 12px 12px; max-width: 456px; margin: 0 auto; padding: 14px; border-radius: 16px; background: #1c1c1e; color: #fff; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); z-index: 10; }
.consent p { margin: 0 0 10px; }
.consent div { display: flex; gap: 8px; }
.consent button { flex: 1; padding: 10px; border: 0; border-radius: 10px; background: #3a3a3c; color: #fff; font-weight: 600; }
.consent button.yes { background: #0a7cff; }
@media (max-height: 700px) { .hero-photo { height: 31vh; } .hero-brand { height: 29vh; } .save { margin-bottom: 10px; } .checks { gap: 3px; } .checks li { font-size: 15px; } .offer-price { font-size: 26px; } .offer-title { font-size: 20px; } }
.q .checks { align-self: center; }
.q .logo { margin-top: 14px; }
/* Stripe's payment form embedded in the landing (an iframe; Stripe sets its height). */
/* Loaded in the background, collapsed until "Continue" opens it (grid rows animate to the form's height). */
.pay { width: 100%; display: grid; grid-template-rows: 0fr; margin: 0; scroll-margin-top: 12px; transition: grid-template-rows 0.35s ease, margin 0.35s ease; }
.pay.open { grid-template-rows: 1fr; margin-top: 18px; }
.pay-inner { min-height: 0; overflow: hidden; border-radius: 16px; }
.pay.open.pay-loading .pay-inner { min-height: 420px; background: var(--card) linear-gradient(100deg, transparent 30%, rgba(127, 127, 127, 0.08) 50%, transparent 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
