:root {
  --navy-950: #000435;
  --navy-900: #00104a;
  --navy-800: #071b66;
  --navy-700: #102b7a;
  --yellow: #ffdb4d;
  --yellow-dark: #725d00;
  --white: #fff;
  --surface: #f5f7ff;
  --surface-dark: #07164d;
  --text: #fff;
  --text-dark: #08113f;
  --muted: #b9c3e4;
  --line: rgb(255 255 255 / 18%);
  --shadow: 0 18px 45px rgb(0 0 0 / 24%);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1180px;
  --focus: #fff29b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 0; background: var(--navy-950); color: var(--text); line-height: 1.55; }
body.dialog-open { overflow: hidden; }
img, picture { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 3rem); }
h3 { font-size: 1.08rem; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; inset: 8px auto auto 8px; padding: 10px 16px; border-radius: 8px; background: var(--white); color: var(--text-dark); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.site-header { position: sticky; z-index: 100; top: 0; background: rgb(0 4 53 / 94%); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 22px; }
.brand { flex: 0 0 auto; }
.brand img { width: 156px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.main-nav a { padding: 10px 13px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--line); background: rgb(255 255 255 / 9%); }
.cart-button, .menu-toggle, .icon-button { border: 0; color: var(--white); cursor: pointer; }
.cart-button { display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 7%); font-weight: 800; }
.cart-button strong { min-width: 28px; min-height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--text-dark); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 11px; margin-left: auto; border-radius: 12px; background: transparent; }
.menu-toggle > span:not(.sr-only) { display: block; height: 3px; margin: 5px 0; border-radius: 3px; background: currentColor; }

.hero { background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.hero-grid { min-height: 660px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 6vw, 72px); padding-block: 56px; }
.eyebrow { margin-bottom: 10px; color: var(--yellow); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hero-copy h1 { margin-bottom: 24px; max-width: 720px; }
.hero-text { max-width: 650px; color: #e5eaff; font-size: clamp(1rem, 2vw, 1.25rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 1px solid transparent; border-radius: 14px; cursor: pointer; font-weight: 850; text-decoration: none; transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--yellow); color: var(--text-dark); box-shadow: 0 10px 25px rgb(255 219 77 / 20%); }
.button-secondary { border-color: rgb(7 17 63 / 22%); background: var(--white); color: var(--text-dark); }
.button-ghost { border-color: var(--line); background: transparent; color: inherit; }
.button.full { width: 100%; }
.button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.hero-card { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); color: var(--text-dark); box-shadow: var(--shadow); }
.hero-card-kicker { margin: 0; padding: 20px 22px 10px; font-weight: 850; }
.hero-card picture { aspect-ratio: 1200 / 630; overflow: hidden; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-content { padding: 22px; }
.pill { display: inline-block; margin-bottom: 13px; padding: 5px 10px; border: 1px solid #cfd7f7; border-radius: 999px; background: var(--white); font-weight: 800; }

.catalog-section { padding-block: 72px; background: var(--navy-950); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading.compact { align-items: center; }
.catalog-count { flex: 0 0 auto; padding: 5px 10px; border: 1px solid #1676e9; border-radius: 999px; color: #eef6ff; font-size: .8rem; font-weight: 800; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 24px; padding: 22px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(255 255 255 / 6%); }
.category-filters { min-width: 0; padding: 0; margin: 0; border: 0; }
.category-filters legend, .catalog-controls label > span { display: block; margin-bottom: 8px; color: #d6ddf6; font-size: .78rem; font-weight: 850; letter-spacing: .04em; }
.filter-list { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 12px; background: var(--white); color: var(--text-dark); font-weight: 800; text-decoration: none; }
.filter-button > span { flex: 0 0 auto; font-size: 1.08em; line-height: 1; }
.filter-button:hover, .filter-button.active { background: var(--yellow); }
.catalog-controls { display: grid; gap: 12px; }
.catalog-controls input, .catalog-controls select, .form-grid input, .form-grid select, .dynamic-fields input, .dynamic-fields select, .dynamic-fields textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #ced5ec; border-radius: 12px; background: var(--white); color: var(--text-dark); }
.catalog-controls input::placeholder { color: #737d9a; }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid rgb(255 255 255 / 38%); border-radius: var(--radius); background: var(--white); color: var(--text-dark); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card-button { width: 100%; display: block; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: inherit; }
.product-media { aspect-ratio: 1; overflow: hidden; background: var(--surface-dark); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { min-height: 92px; display: grid; align-content: center; gap: 8px; padding: 13px 11px; text-align: center; }
.product-body h3 { margin: 0; font-size: .93rem; overflow-wrap: anywhere; }
.product-price { margin: 0; font-weight: 900; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.empty-state, .notice { grid-column: 1 / -1; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }

.trust-section, .content-section { padding-block: 64px; }
.trust-section { background: var(--surface); color: var(--text-dark); }
.trust-section .eyebrow, .alternate .eyebrow { color: var(--yellow-dark); }
.trust-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.trust-grid p:last-child { margin-bottom: 0; }
.trust-feature-grid, .benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.trust-feature-card, .benefit-card { padding: 22px; border: 1px solid #dbe0f0; border-radius: var(--radius); background: var(--white); color: var(--text-dark); }
.trust-feature-card > span, .benefit-card > span { display: block; margin-bottom: 12px; font-size: 1.6rem; }
.trust-feature-card p, .benefit-card p { margin-bottom: 0; }
.benefits-section { background: var(--surface); }
.content-section { background: var(--navy-900); }
.content-section.alternate { background: var(--surface); color: var(--text-dark); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card, .community-card { padding: 22px; border-radius: var(--radius); }
.step-card { border: 1px solid var(--line); background: rgb(255 255 255 / 6%); }
.step-number { color: var(--yellow); font-size: 1.5rem; font-weight: 950; }
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.community-card { background: var(--white); border: 1px solid #dbe0f0; }
.community-card h3 { margin-bottom: 14px; }
.community-card a { display: block; padding: 8px 0; color: #163e91; font-weight: 800; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgb(255 255 255 / 6%); }
.faq-list summary { cursor: pointer; font-weight: 850; }
.faq-list details p { margin: 12px 0 0; color: #e2e7f8; }

.site-footer { padding-top: 52px; background: #000326; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.footer-grid img { width: 142px; height: auto; margin-bottom: 16px; }
.footer-grid h2 { margin-bottom: 12px; font-size: 1rem; }
.footer-grid nav a, .social-links a { display: block; padding-block: 5px; color: #d9e0f8; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-block: 22px; margin-top: 32px; border-top: 1px solid var(--line); color: var(--muted); }

.dialog { width: min(720px, calc(100% - 24px)); max-height: min(90vh, 900px); padding: 0; border: 1px solid #d6ddf2; border-radius: var(--radius-lg); background: var(--white); color: var(--text-dark); box-shadow: 0 30px 90px rgb(0 0 0 / 55%); }
.dialog::backdrop { background: rgb(0 3 28 / 76%); backdrop-filter: blur(3px); }
.dialog-shell { padding: 24px; margin: 0; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.dialog-header h2 { margin-bottom: 8px; font-size: 1.8rem; }
.dialog-header .eyebrow { color: var(--yellow-dark); }
.icon-button { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--navy-950); font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 130px; gap: 12px; }
.form-grid label > span, .dynamic-fields label > span { display: block; margin-bottom: 6px; font-weight: 800; }
.dynamic-fields { display: grid; gap: 12px; margin-top: 16px; }
.dynamic-fields small { display: block; margin-top: 5px; color: #4c587d; }
.order-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-block: 18px; }
.order-summary div { padding: 12px; border-radius: 12px; background: var(--surface); }
.order-summary span { display: block; color: #596383; font-size: .8rem; }
.product-information { padding: 16px; margin-bottom: 18px; border-radius: 12px; background: #eef2ff; }
.product-information ul, .product-information ol { margin-bottom: 0; padding-left: 20px; }
.product-guide-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.product-guide-button { min-height: 44px; padding: 10px 12px; border-color: #c9d4f2; background: var(--white); color: var(--text-dark); text-align: center; }
.cart-dialog { width: min(620px, calc(100% - 24px)); }
.cart-items { display: grid; gap: 12px; max-height: 52vh; overflow: auto; }
.cart-line { display: grid; gap: 14px; padding: 15px; border: 1px solid #dfe4f2; border-radius: 14px; }
.cart-line-main { display: grid; grid-template-columns: minmax(0, 1fr) 82px; align-items: start; gap: 14px; }
.cart-thumbnail { width: 82px; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; border: 1px solid #dfe4f2; border-radius: 12px; background: #f4f6fd; font-size: 2rem; }
.cart-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h3, .cart-line p { margin-bottom: 5px; }
.cart-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-actions button { min-width: 38px; min-height: 38px; border: 1px solid #d0d7ec; border-radius: 9px; background: var(--white); color: var(--text-dark); cursor: pointer; }
.cart-actions .cart-remove { color: #c1123f; border-color: #ffd8df; background: #fff0f3; }
.cart-quantity-control { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #f4f6fd; }
.cart-quantity { min-width: 28px; text-align: center; font-weight: 850; }
.cart-summary { padding-top: 18px; }
.cart-summary > p { display: flex; justify-content: space-between; font-size: 1.1rem; }
.payment-dialog { width: min(520px, calc(100% - 24px)); }
.payment-content { display: grid; gap: 18px; }
.payment-qr { width: min(320px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; border: 1px solid #d9def0; border-radius: 14px; background: var(--white); }
.payment-content > .payment-qr { justify-self: center; }
.payment-copy p { margin: 0; color: #596383; }
.payment-copy .payment-label { margin-bottom: 6px; }
.payment-copy .payment-holder { margin-bottom: 14px; color: var(--text-dark); font-size: 1.15rem; font-weight: 850; }
.payment-total { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding-block: 4px; font-size: 1.08rem; }
.payment-total strong { font-size: 1.22rem; }
.terms-check { display: flex; align-items: start; gap: 10px; padding: 12px 0; }
.terms-check input { width: 20px; height: 20px; }
.payment-content .terms-check { width: 100%; padding: 16px; border: 1px solid #d9def0; border-radius: 14px; background: #f5f7ff; font-weight: 700; text-align: left; }
.payment-content small { color: #596383; text-align: center; }
.cart-summary .button + .button { margin-top: 9px; }
.cart-summary small { display: block; margin-top: 12px; color: #596383; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 24px; max-width: min(90vw, 440px); padding: 12px 18px; border-radius: 12px; background: var(--yellow); color: var(--text-dark); box-shadow: var(--shadow); font-weight: 850; transform: translate(-50%, calc(100% + 50px)); opacity: 0; transition: .2s ease; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.category-hero { padding-block: 56px; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.category-hero .breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.category-hero h1 { margin-bottom: 15px; font-size: clamp(2.2rem, 5vw, 4rem); }
.category-hero p:last-child { max-width: 700px; margin-bottom: 0; color: #e1e7fb; }

.page-main { min-height: 70vh; padding-block: 60px; background: var(--surface); color: var(--text-dark); }
.page-card { max-width: 900px; padding: clamp(22px, 4vw, 44px); margin-inline: auto; border: 1px solid #dce2f2; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 15px 40px rgb(4 18 74 / 10%); }
.page-card h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.page-card h2 { margin-top: 32px; font-size: 1.5rem; }
.page-card h3 { margin-top: 24px; }
.page-card li + li { margin-top: 8px; }
.page-card a { color: #164aa8; }
.page-card .eyebrow { color: var(--yellow-dark); }
.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-block: 28px; }
.reference-card { padding: 20px; border: 1px solid #dce2f2; border-radius: var(--radius); background: var(--surface); }
.info-callout { padding: 16px; margin-block: 20px; border-left: 5px solid var(--yellow-dark); border-radius: 8px; background: #fff7ce; }
.activation-list { padding-left: 22px; }
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 1050px) {
  .main-nav { gap: 2px; }
  .main-nav a { padding-inline: 9px; font-size: .9rem; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 70px; }
  .brand img { width: 132px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; inset: 70px 16px auto; display: none; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--navy-950); box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .main-nav.page-nav { position: static; display: flex; flex-wrap: wrap; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .main-nav a { padding: 12px; }
  .cart-button { margin-left: 0; }
  .cart-button > span:nth-child(2) { display: none; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 48px; }
  .hero-copy { max-width: 680px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-grid, .community-grid, .trust-feature-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout, .footer-grid { grid-template-columns: 1fr 1fr; }
  .reference-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .hero-card { display: none; }
  .main-nav.page-nav { display: none; }
  .hero-grid { padding-block: 40px; }
  .hero-copy h1 { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .button-row > * { width: 100%; }
  .catalog-section, .trust-section, .content-section { padding-block: 44px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading h2 { font-size: 2.3rem; }
  .catalog-toolbar { gap: 18px; padding: 15px; }
  .filter-list { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-button { justify-content: center; padding-inline: 8px; text-align: center; }
  .filter-button:first-child { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-body { min-height: 88px; padding: 10px 7px; }
  .product-body h3 { font-size: .84rem; }
  .trust-grid, .steps-grid, .community-grid, .faq-layout, .trust-feature-grid, .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .dialog-shell { padding: 18px; }
  .form-grid, .order-summary { grid-template-columns: 1fr; }
  .product-guide-links { grid-template-columns: 1fr; }
  .cart-actions { align-self: stretch; }
  .cart-dialog, .payment-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .cart-dialog .dialog-shell, .payment-dialog .dialog-shell { min-height: 100%; padding: 28px 16px; }
  .cart-dialog .dialog-shell { display: flex; flex-direction: column; }
  .cart-dialog .cart-items { flex: 1; max-height: none; }
  .cart-dialog .cart-line { min-height: 160px; align-content: space-between; }
  .payment-dialog .dialog-shell { overflow-y: auto; }
  .payment-qr { width: min(100%, 420px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto; transition-duration: .001ms; animation-duration: .001ms; animation-iteration-count: 1; }
}

@media (forced-colors: active) {
  .button, .filter-button, .product-card, .dialog { border: 1px solid CanvasText; }
}
