/* Store — public stylesheet. Brand colors come from :root --brand / --accent set per page. */
:root {
  --brand: #2563eb;
  --accent: #f97316;
  --text: #0f172a;
  --muted: #64748b;
  --subtle: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --err: #dc2626;
  --err-bg: #fef2f2;
  --warn-bg: #fffbeb;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 16px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .12);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100%); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.mono { font-family: Consolas, 'SFMono-Regular', Menlo, monospace; }
.section { padding: 64px 0; scroll-margin-top: 110px; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, opacity .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-accent { background: var(--accent); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-sm { padding: 7px 14px; font-size: .875rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 1.1rem; }
.nav-brand:hover { text-decoration: none; }
.nav-logo { height: 34px; width: auto; }
.nav-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: .92rem; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 500; }
@media (max-width: 560px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 50% -10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent), var(--bg); text-align: center; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust-row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 36px; color: var(--muted); font-size: .9rem; }
.trust-row span::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.grid { display: grid; gap: 20px; }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.product-card { display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s, transform .2s; color: var(--text); }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.product-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; border: 1px solid var(--border); background: #fff; }
.product-logo-ph { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.product-card .price-from { margin-top: auto; font-weight: 700; }

/* Product page */
.p-hero { padding: 56px 0 40px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.p-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .p-hero-grid { grid-template-columns: 1.1fr 1fr; } }
.p-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.p-hero .tagline { font-size: 1.15rem; color: var(--muted); }
.p-hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.p-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 26px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .82rem; color: var(--muted); font-weight: 500; }
.subnav { position: sticky; top: 64px; z-index: 40; background: #fff; border-bottom: 1px solid var(--border); overflow-x: auto; }
.subnav .container { display: flex; gap: 24px; white-space: nowrap; }
.subnav a { display: inline-block; padding: 14px 0; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--text); text-decoration: none; border-color: var(--brand); }
.prose { max-width: 760px; }
.prose p { color: #334155; font-size: 1.02rem; }
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.feature::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); font-weight: 800; font-size: .8rem; }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery figure { margin: 0; }
.gallery button { padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #fff; width: 100%; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 900px; margin: 0 auto; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox { position: fixed; inset: 0; background: rgba(15,23,42,.88); display: grid; place-items: center; z-index: 100; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; border-radius: 8px; }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.plan-name { font-weight: 700; font-size: 1.1rem; }
.plan-term { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.plan-price { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.plan-was { color: var(--subtle); text-decoration: line-through; font-size: 1rem; font-weight: 500; margin-left: 6px; }
.plan-save { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 2px 8px; border-radius: 6px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 8px; font-size: .92rem; color: #334155; }
.plan li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* FAQ, requirements, testimonials */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #334155; }
.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.req-list li { padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.quotes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.quote { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.quote p { font-style: italic; color: #334155; }
.quote .who { font-weight: 700; font-size: .9rem; }
.changelog { white-space: pre-wrap; font-size: .9rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; max-height: 360px; overflow: auto; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .88rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 4px; }
.otp-input { letter-spacing: .5em; font-size: 1.3rem; text-align: center; font-family: Consolas, monospace; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }
.alert-ok { background: var(--ok-bg); color: #065f46; border: 1px solid #a7f3d0; }
.alert-err { background: var(--err-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warn { background: var(--warn-bg); color: #92400e; border: 1px solid #fde68a; }

/* Checkout */
.checkout { display: grid; gap: 28px; padding: 40px 0 64px; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.step { margin-bottom: 18px; }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 14px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.step.done .step-num { background: var(--ok); }
.summary { position: sticky; top: 84px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .95rem; }
.summary-row.discount { color: var(--ok); }
.summary-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.2rem; font-weight: 800; }
.secure-note { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* Account */
.account { padding: 40px 0 64px; }
.stat-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 28px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat .num { font-size: 1.6rem; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #a7f3d0; }
.badge-err { background: var(--err-bg); color: var(--err); border-color: #fecaca; }
.badge-warn { background: var(--warn-bg); color: #b45309; border-color: #fde68a; }
.key-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.key-box code { font-family: Consolas, monospace; font-weight: 700; background: var(--bg-alt); border: 1px solid var(--border); padding: 4px 8px; border-radius: 6px; }
.auth-card { max-width: 440px; margin: 56px auto; }
.tabs { display: flex; gap: 4px; background: var(--bg-alt); padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 36px 0; margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; font-size: .9rem; }
.footer-links a { color: var(--muted); }

/* Privacy */
.notice { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 6px 0 12px; background: var(--bg-alt); font-size: .86rem; }
.notice summary { cursor: pointer; font-weight: 600; }
.notice ul { padding-left: 18px; margin: 8px 0; }
.notice p { margin: 6px 0 0; color: var(--muted); }
.consent-box { margin: 10px 0 14px; display: grid; gap: 8px; }
.danger-card { border-color: #fecaca; }
.danger { color: var(--err); border-color: #fecaca; }
.danger-solid { background: var(--err); }
.privacy-notice table { font-size: .88rem; }
.video-facade { position: absolute; inset: 0; display: grid; place-items: center; gap: 10px; align-content: center; background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; border: 0; cursor: pointer; font: inherit; text-align: center; padding: 20px; }
.video-facade .play { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 1.8rem; }
.video-facade small { color: #cbd5e1; max-width: 420px; }

/* Checkout billing details */
fieldset.billing { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px 6px; margin: 0 0 16px; min-width: 0; }
fieldset.billing legend { font-weight: 700; padding: 0 6px; }
.page-checkout .grid-2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .page-checkout .grid-2 { grid-template-columns: 1fr 1fr; } }
.page-checkout select { width: 100%; }

/* Invoice page */
.invoice-page { background: #f1f5f9; padding: 24px 12px; }
.invoice-sheet { max-width: 820px; margin: 0 auto; background: #fff; padding: 32px; border-radius: 12px; box-shadow: 0 1px 3px rgba(15,23,42,.12); overflow-x: auto; }
.invoice-actions { max-width: 820px; margin: 0 auto 14px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media print {
  .invoice-page { background: #fff; padding: 0; }
  .invoice-actions, .nav, footer, .site-footer { display: none !important; }
  .invoice-sheet { box-shadow: none; padding: 0; border-radius: 0; }
}
