:root {
  --primary: #1E2A78;
  --primary-700: #162063;
  --primary-50: #EEF0FA;
  --accent: #F59E0B;
  --accent-700: #B45309;
  --accent-50: #FEF3C7;
  --teal: #0EA5A4;
  --teal-700: #0F766E;
  --teal-50: #E6F7F6;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --dark: #0F172A;
  --danger: #B91C1C;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .07);
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--teal-700); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mt-lg { margin-top: 32px; }
.center { text-align: center; }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); flex-shrink: 0; }
.brand:hover { color: var(--primary); }
.brand-mark .mx { stroke: var(--teal); }
.brand-word { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--primary); letter-spacing: -.01em; white-space: nowrap; }
.brand-word .x { color: var(--teal); }
.brand-word .labs { font-weight: 300; color: var(--text); margin-left: .25em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { background: var(--primary-50); color: var(--primary); }
.site-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-50); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.cart-link { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; color: var(--primary); }
.cart-link:hover { background: var(--primary-50); }
.cart-count { position: absolute; top: 2px; right: 0; background: var(--accent); color: var(--text); font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--primary); }
@media (max-width: 1020px) {
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; margin: 0; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 12px 20px 20px; }
  .site-nav a { padding: 12px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); color: #fff; }
.btn-accent { background: var(--accent); color: var(--text); }
.btn-accent:hover { background: #D97706; color: var(--text); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled], fieldset[disabled] .btn { opacity: .55; cursor: not-allowed; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 64px; background: radial-gradient(circle at 85% 10%, var(--accent-50), transparent 40%), radial-gradient(circle at 10% 90%, var(--teal-50), transparent 45%), var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 .hl { color: var(--primary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; max-width: 420px; width: 100%; margin-left: auto; aspect-ratio: 1; }
.hero-art::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
.hero-art .mark-big { position: absolute; inset: 18%; width: 64%; height: 64%; color: var(--primary); }
.chip { position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; font-size: .875rem; font-weight: 600; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-p { background: var(--primary); } .dot-t { background: var(--teal); } .dot-a { background: var(--accent); }
.chip-1 { top: 4%; left: 0; } .chip-2 { top: 48%; right: 0; } .chip-3 { bottom: 4%; left: 6%; }
.page-hero { padding: 56px 0 48px; background: linear-gradient(180deg, var(--primary-50), var(--bg)); }
.page-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.page-hero .lead { max-width: 760px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin: 0 auto; }
}

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--primary); }
.card > p:last-child { margin-bottom: 0; }
.icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }
.icon.teal { background: var(--teal-50); color: var(--teal-700); }
.icon.accent { background: var(--accent-50); color: var(--accent-700); }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.badge { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--primary-50); color: var(--primary); letter-spacing: .02em; margin-bottom: 12px; }
.badge.teal { background: var(--teal-50); color: var(--teal-700); }
.badge.accent { background: var(--accent-50); color: #92400E; }
.price { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--primary); margin: 4px 0 16px; }
.price s { font-size: .95rem; color: var(--muted); font-weight: 400; margin-left: 8px; }
.price .save { font-size: .8rem; color: var(--teal-700); font-weight: 600; margin-left: 8px; font-family: var(--font-body); }
.card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.tag-list li { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: .85rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col.top { align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.stack-lg > * + * { margin-top: 40px; }

/* Steps */
.steps { counter-reset: step; }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--text); font-weight: 700; font-family: var(--font-head); margin-bottom: 14px; }

/* CTA band */
.cta-band { background: var(--primary); color: #fff; border-radius: 20px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background-image: radial-gradient(circle at 95% 0%, rgba(245, 158, 11, .35), transparent 35%), radial-gradient(circle at 0% 100%, rgba(14, 165, 164, .35), transparent 40%); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #CBD5E1; margin: 0; max-width: 620px; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }

/* Notices */
.notice { border-left: 4px solid var(--accent); background: var(--accent-50); padding: 14px 18px; border-radius: 8px; margin: 0 0 28px; color: #78350F; }
.notice.info { border-color: var(--teal); background: var(--teal-50); color: #134E4A; }
.notice p { margin: 0; }
.disclaimer { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn { border: 1px solid var(--border); background: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: .9rem; color: var(--text); }
.filter-btn:hover { border-color: var(--primary); }
.filter-btn[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Product detail */
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.buy-box { position: sticky; top: 88px; }
.meta-list { list-style: none; padding: 0; margin: 0 0 20px; font-size: .92rem; }
.meta-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.meta-list li span:first-child { color: var(--muted); }
.meta-list li span:last-child { font-weight: 600; text-align: right; }
.buy-box .small { margin: 12px 0 0; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .buy-box { position: static; } }
.outline { counter-reset: o; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.outline li { counter-increment: o; padding: 12px 16px; background: #fff; border: 1px solid var(--border); border-radius: 10px; display: flex; gap: 12px; }
.outline li::before { content: counter(o, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; color: var(--teal-700); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 16px; margin: 0; color: var(--muted); }
.faq h2 { font-size: 1.3rem; margin: 36px 0 14px; }
.faq h2:first-child { margin-top: 0; }

/* Forms */
.form { display: grid; gap: 18px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 10px; font: inherit; background: #fff; color: var(--text); }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 42, 120, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; margin: 0; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.req { color: var(--danger); }
.form-status { font-weight: 600; margin: 0; min-height: 1.4em; }
.form-status.ok { color: var(--teal-700); }
.form-status.err { color: var(--danger); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: 0; }
.info-list .icon { width: 40px; height: 40px; margin: 0; }
.info-list strong { display: block; }

/* Cart and checkout */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.cart-table th { background: var(--primary-50); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.cart-summary { display: flex; justify-content: flex-end; gap: 20px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.total { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.link-btn { background: none; border: none; color: var(--danger); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.empty { text-align: center; padding: 48px 24px; background: #fff; border: 1px dashed #CBD5E1; border-radius: var(--radius); }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.summary-list { list-style: none; padding: 0; margin: 0 0 16px; }
.summary-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }

/* Legal and long-form text */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; background: #fff; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--primary-50); width: 34%; }
.updated { font-size: .9rem; color: var(--muted); }

.not-found { text-align: center; padding: 96px 0; }
.not-found .big { font-family: var(--font-head); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 12px; }

/* Footer */
.site-footer { background: var(--dark); color: #CBD5E1; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-about { margin-top: 14px; max-width: 340px; font-size: .92rem; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word .x { color: #2DD4BF; }
.site-footer .brand-word .labs { color: #CBD5E1; }
.site-footer .brand-mark .mx { stroke: #2DD4BF; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #1E293B; margin-top: 40px; padding-top: 20px; font-size: .8rem; color: #94A3B8; }
.footer-bottom p { margin: 0 0 6px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.coming-soon-toast{position:fixed;left:50%;bottom:24px;z-index:1000;width:min(92vw,440px);padding:14px 18px;border-radius:12px;background:var(--primary);color:#fff;box-shadow:0 12px 32px rgba(15,23,42,.28);border-left:5px solid var(--accent);font-size:.95rem;line-height:1.45;transform:translate(-50%,24px);opacity:0;visibility:hidden;transition:opacity .25s,transform .25s,visibility .25s}
.coming-soon-toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
.coming-soon-toast strong{color:var(--accent)}
@media (prefers-reduced-motion:reduce){.coming-soon-toast{transition:none}}
