/* Palette: deliberately not LEGO red/yellow/blue: all text/background pairs meet WCAG AA (>= 4.5:1) */
:root {
  --violet: #6A1B9A; --teal: #00676F; --green: #007A38; --mint: #6EE7C8; --coral: #FF8A65; --error: #B3261E;
  --ink: #1A1A2E; --white: #fff; --muted: #4A4A5E; --tint-mint: #E3FAF3; --tint-teal: #E3F2F3; --screen: #F3F6FB;
  --font-base: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-brand: "Lilita One", var(--font-base);
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 1.06rem/1.6 var(--font-base); color: var(--ink); background: var(--white); }
/* no fake bold on single-weight display fonts; fallback stacks use their real 800 */
h1, h2, h3, .wordmark, .tier-price, .step-num, .pop-title { font-family: var(--font-brand); font-weight: 800; font-synthesis: none; line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); margin: 0 0 1rem; }
h3 { font-size: 1.5rem; margin: 0 0 .4rem; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 900px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; color: var(--white); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--mint); }
.row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stud patterns and bands */
.studs-m { background-color: var(--mint); background-image: radial-gradient(circle, rgba(26,26,46,.08) 9px, transparent 10px); background-size: 36px 36px; }
.studs-t { background-color: var(--tint-teal); background-image: radial-gradient(circle, rgba(0,103,111,.08) 9px, transparent 10px); background-size: 36px 36px; }
.band { border-bottom: 3px solid var(--ink); padding-block: 56px; }
.band h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: .5rem; }
.lead { font-size: 1.2rem; max-width: 44em; }
.lead p { margin: 0 0 .5rem; }
.section { padding-block: 80px 64px; }
.ruled { border-block: 3px solid var(--ink); }
.page { padding-block: 48px 88px; }
.intro { font-size: 1.2rem; max-width: 40em; margin: -0.25rem 0 2.5rem; }

/* Brick card: outlined box with two studs on top */
.brick { position: relative; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink); background: var(--white); padding: 26px 24px 22px; margin-top: 14px; }
.brick::before, .brick::after { content: ""; position: absolute; top: -14px; width: 30px; height: 11px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 9px 9px 0 0; background: inherit; }
.brick::before { left: 22px; }
.brick::after { left: 66px; }
.brick > :last-child { margin-bottom: 0; }
.tint-mint { background: var(--tint-mint); }
.tint-teal { background: var(--tint-teal); }
.bricks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 28px; align-items: stretch; }
.bricks p { margin: 0; }
.features > li:nth-child(3n+2) { background: var(--tint-mint); }
.features > li:nth-child(3n) { background: var(--tint-teal); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink); font: 800 1.06rem/1.2 var(--font-base); text-decoration: none; cursor: pointer; color: var(--ink); background: var(--white); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-violet { background: var(--violet); color: var(--white); } .btn-violet:hover { background: #4A1270; color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); } .btn-teal:hover { background: #004E54; color: var(--white); }
.btn-white:hover { background: var(--tint-mint); color: var(--ink); }
.btn-mint { background: var(--mint); } .btn-mint:hover { background: #A6F0DC; }
.btn-small { min-height: 44px; padding: 6px 14px; font-size: .95rem; box-shadow: none; }
.linklike { background: none; border: 0; font: inherit; color: var(--white); text-decoration: underline; cursor: pointer; padding: .25rem 0; min-height: 44px; }

/* Header */
.site-header { background: var(--white); border-bottom: 3px solid var(--ink); }
.header-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); padding: 4px; border-radius: 10px; }
.wordmark { font-size: 1.8rem; margin: 0; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 800; text-decoration: none; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--tint-mint); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.badge { display: inline-block; min-width: 1.6em; margin-left: .3em; padding: 0 .4em; border-radius: 999px; background: var(--violet); color: var(--white); text-align: center; }

/* Hero with scan animation */
.hero { border-bottom: 3px solid var(--ink); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 72px 80px; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero-text { font-size: 1.25rem; max-width: 34em; margin: 0 0 28px; }
.slogan { font-size: 1.3rem; font-weight: 800; margin: 0 0 1rem; }
.pill { display: inline-block; margin: 0 0 16px; padding: 6px 14px; background: var(--ink); color: var(--mint); border-radius: 999px; font-weight: 900; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.hero-visual { flex: 0 1 340px; display: flex; justify-content: center; }
.phone { width: 300px; height: 540px; background: var(--ink); border-radius: 40px; padding: 14px; box-shadow: 0 10px 0 rgba(26,26,46,.35); }
.phone-screen { position: relative; width: 100%; height: 100%; background: var(--screen); border-radius: 28px; overflow: hidden; }
.phone-title { padding: 18px 18px 0; font-weight: 900; font-size: .95rem; }
.pile { position: absolute; height: 30px; border-radius: 5px; border: 2px solid rgba(26,26,46,.55); }
.beam { position: absolute; left: 0; right: 0; top: 86%; height: 5px; background: var(--mint); box-shadow: 0 0 18px 6px rgba(110,231,200,.7); animation: beam 2s ease-in-out 2; }
.pop { position: absolute; left: 16px; right: 16px; bottom: 18px; background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px; animation: pop .5s ease-out 4s both; }
.pop-title { font-size: 1.6rem; }
.pop-text { font-size: .9rem; font-weight: 700; }
@keyframes beam { 0% { top: 6%; } 50% { top: 86%; } 100% { top: 6%; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps p { margin: 0; }
.step-num { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--violet); color: var(--white); border: 3px solid var(--ink); border-radius: 12px; font-size: 2.1rem; }
.steps li:nth-child(3n+2) .step-num { background: var(--teal); }
.steps li:nth-child(3n) .step-num { background: var(--mint); color: var(--ink); }

/* Pricing tiers (featured products) */
.tier { display: flex; flex-direction: column; gap: 14px; }
.tier h3 { font-size: 1.75rem; margin: 0; }
.tier h3 a { color: var(--ink); text-decoration: none; }
.tier h3 a:hover { text-decoration: underline; }
.tier-price { font-size: 2.75rem; }
.tier-desc { flex-grow: 1; }
.tier-desc ul { margin: 0; padding-left: 20px; }
.tier .btn { align-self: stretch; }
.tier-hot { outline: 4px solid var(--violet); outline-offset: 4px; }
.tier-badge { align-self: flex-start; margin: 0; background: var(--violet); color: var(--white); font-weight: 900; font-size: .875rem; padding: 4px 10px; border-radius: 8px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq details { background: var(--white); border: 3px solid var(--ink); border-radius: 12px; padding: 14px 18px; }
.faq summary { font-weight: 900; font-size: 1.2rem; cursor: pointer; }
.faq details > div p { margin: 10px 0 0; }

/* Shop grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 24px; }
.card { padding: 0; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 5/3; background: var(--screen); display: grid; place-items: center; border-bottom: 3px solid var(--ink); border-radius: 11px 11px 0 0; overflow: hidden; }
.card.cat-1 .card-img { background: var(--tint-teal); }
.card.cat-2 .card-img { background: var(--tint-mint); }
.card.cat-3 .card-img { background: #E6F4EC; }
.card-img img, .card-img svg { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.3rem; }
.card-body h3 a { color: var(--ink); }
.card-body .btn { margin-top: auto; }
.price-note { font-size: .9rem; font-weight: 600; color: var(--muted); }
.tag { margin: 0; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.price { font-weight: 900; font-size: 1.2rem; margin: 0; }
.price.big { font-size: 1.8rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { font: inherit; font-weight: 800; padding: .45rem 1rem; min-height: 44px; border-radius: 999px; border: 3px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.product { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; align-items: start; }
.product-img { padding: 0; overflow: visible; background: var(--screen); }
.product-img svg, .product-img img { display: block; width: 100%; border-radius: 11px; }

/* About / marks */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.facts dt { font-weight: 900; }
.facts dd { margin: 0; }
.mark { display: flex; flex-direction: column; gap: 14px; }
.mark-stage { display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 16px; background: var(--screen); border-radius: 10px; }
.mark-stage img { max-height: 140px; }
.wordmark.big { font-size: 2.2rem; text-align: center; }

/* Legal text pages */
.legal h2 { font-size: 1.9rem; margin: 44px 0 10px; }
.legal h3 { font-size: 1.4rem; margin: 28px 0 6px; }
.legal p, .legal li { max-width: 78ch; }
.table-wrap { overflow-x: auto; }
.table, .legal table { border-collapse: collapse; width: 100%; background: var(--white); }
.table th, .table td, .legal th, .legal td { border: 2px solid var(--ink); padding: 10px 12px; text-align: left; vertical-align: top; }
.table thead th, .legal thead th { background: var(--mint); }
.qty { width: 4.5rem; font: inherit; padding: .4rem; min-height: 44px; border: 3px solid var(--ink); border-radius: 10px; }

/* Forms */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split-main { flex: 999 1 520px; min-width: 0; }
.split-side { flex: 1 1 320px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form p { margin: 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 800; }
.field input, .field textarea, .field select { font: inherit; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 10px; background: var(--white); color: var(--ink); min-height: 48px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--teal); }
.form > div:has(> .btn) { margin-top: 4px; }
[aria-invalid="true"] { border-color: var(--error) !important; outline: 2px solid var(--error); }
.error { color: var(--error); font-weight: 800; }
.error:empty { display: none; }
.success { background: #E6F4EC; font-weight: 700; margin-top: 1rem; }
.note { background: var(--tint-mint); border: 3px solid var(--ink); border-radius: 12px; padding: .7rem 1rem; }
.missing { color: var(--error); font-weight: 800; }
.prose { max-width: 75ch; }
.video { width: 100%; max-width: 800px; border: 3px solid var(--ink); border-radius: var(--radius); }

/* Cookie banner: sticky, both choices look the same */
.cookie { position: sticky; bottom: 0; z-index: 40; background: var(--white); border-top: 4px solid var(--ink); box-shadow: 0 -6px 0 rgba(26,26,46,.15); }
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-block: 18px; }
.cookie-text { flex: 999 1 480px; min-width: 0; }
.cookie h2 { font-size: 1.4rem; margin: 0 0 4px; }
.cookie p { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); border-top: 6px solid var(--mint); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; padding-block: 56px 32px; }
.footer-brand { flex: 1 1 300px; min-width: 0; }
.footer-brand p { max-width: 30em; margin: 12px 0 0; }
.site-footer nav { flex: 1 1 200px; }
.site-footer h2 { font-size: 1.25rem; color: var(--mint); margin: 0 0 12px; }
.site-footer nav ul { flex-direction: column; gap: 4px; }
.site-footer a { color: var(--white); display: inline-block; padding: .2rem 0; }
.site-footer a:hover { color: var(--mint); }
.site-footer a[aria-current="page"] { color: var(--mint); }
.footer-bottom { padding-block: 20px 28px; border-top: 1px solid #4A4A6A; font-size: .9rem; color: #E6E6EE; }
.footer-bottom p { margin: 0 0 6px; }
.footer-bottom .btn { margin-top: 8px; border-color: var(--white); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } .btn:active { transform: none; } }
@media (forced-colors: active) { .brick::before, .brick::after, .pile { display: none; } .btn, .chip { border: 2px solid ButtonText; } }
