/* EVEBOT Store — design system. Clean, product-first, inspired by modern hardware brand sites. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f7;
  --bg-dark: #0b0c0d;
  --ink: #18191b;
  --ink-2: #3a3d41;
  --muted: #73787e;
  --line: #e4e6e9;
  --accent: #0a6cf5;
  --accent-ink: #ffffff;
  --accent-hover: #0858cc;
  --sale: #e2452f;
  --ok: #1f9d55;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 60px;
  --subnav-h: 52px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--subnav-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-lg { height: 52px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.link::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .2s var(--ease); }
.link:hover::after { transform: translate(3px, -1px); }
.on-dark .link { color: #5aa2ff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(0,0,0,.06); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: .14em; display: flex; align-items: center; gap: 10px; }
.logo small { font-size: 11px; letter-spacing: .08em; font-weight: 500; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.main-nav { display: flex; gap: 4px; height: 100%; margin-right: auto; }
.main-nav > li { position: static; display: flex; align-items: center; }
.main-nav > li > a, .main-nav > li > button { height: 100%; display: flex; align-items: center; padding: 0 12px; font-size: 14px; color: var(--ink-2); background: none; border: 0; transition: color .2s; }
.main-nav > li:hover > a, .main-nav > li:hover > button, .main-nav > li.open > button { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; transition: background .2s; }
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.cart-count:empty, .cart-count[data-n="0"] { display: none; }
.menu-toggle { display: none; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
.main-nav > li:hover .mega, .main-nav > li:focus-within .mega, .main-nav > li.open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega .wrap { height: auto; display: block; padding-top: 28px; padding-bottom: 32px; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.mega-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 12px; border-radius: var(--radius); transition: background .2s; }
.mega-item:hover { background: var(--bg-alt); }
.mega-item img { width: 120px; height: 120px; object-fit: contain; mix-blend-mode: multiply; }
.mega-item strong { font-size: 14px; font-weight: 600; }
.mega-item span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.mega-foot { display: flex; gap: 28px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-start; overflow: hidden; background: var(--bg-alt); }
.hero picture, .hero > img { position: absolute; inset: 0; }
.hero img.bg { width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { position: relative; width: 100%; padding-top: clamp(56px, 9vh, 110px); text-align: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 80px); letter-spacing: -0.035em; }
.hero .sub { font-size: clamp(17px, 1.8vw, 22px); color: var(--ink-2); margin: 16px auto 28px; max-width: 640px; }
.hero .actions { justify-content: center; }
.hero.on-dark { color: #fff; background: var(--bg-dark); }
.hero.on-dark .sub, .hero.on-dark .eyebrow { color: rgba(255,255,255,.78); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--bg-dark); color: #fff; }
.section.dark .muted, .section.dark p { color: rgba(255,255,255,.72); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 52px); }
.section-head p { margin-top: 14px; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); }

/* Category tiles (home) */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile { position: relative; min-height: 560px; border-radius: var(--radius); background: var(--bg-alt); overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 32px 0; isolation: isolate; }
.tile.wide { grid-column: 1 / -1; min-height: 600px; }
.tile h3 { font-size: clamp(26px, 3vw, 40px); }
.tile p { color: var(--ink-2); margin: 10px 0 18px; font-size: 17px; max-width: 460px; }
.tile .media { margin-top: auto; width: 100%; display: flex; justify-content: center; align-items: flex-end; flex: 1; min-height: 0; }
.tile .media img { max-height: 340px; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.tile:hover .media img { transform: scale(1.03); }
.tile.cover { color: #fff; padding-bottom: 48px; justify-content: flex-start; }
.tile.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .8s var(--ease); }
.tile.cover:hover > img { transform: scale(1.03); }
.tile.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0) 45%); }
.tile.cover p { color: rgba(255,255,255,.88); }
.tile.cover .link { color: #fff; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.card:hover { box-shadow: 0 18px 40px -18px rgba(0,0,0,.22); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 1; display: grid; place-items: center; padding: 22px; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 0 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.card .desc { font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 600; font-size: 16px; }
.price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 6px; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.badge.sale { background: var(--sale); }
.card .btn { height: 34px; padding: 0 16px; font-size: 13px; }

/* Feature band (why / use cases) */
.features4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.features4 h3 { font-size: 18px; margin-bottom: 8px; }
.features4 p { font-size: 15px; color: var(--muted); }
.features4 .num { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 12px; display: block; }

.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usecase { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; isolation: isolate; }
.usecase img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .8s var(--ease); }
.usecase:hover img { transform: scale(1.05); }
.usecase::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,0) 60%); }
.usecase h3 { font-size: 22px; }
.usecase p { font-size: 14px; color: rgba(255,255,255,.85); margin-top: 6px; }

/* Trust bar */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { padding: 28px 20px; display: flex; gap: 14px; align-items: flex-start; }
.trust li + li { border-left: 1px solid var(--line); }
.trust svg { flex: none; width: 26px; height: 26px; color: var(--ink); }
.trust strong { display: block; font-size: 15px; font-weight: 600; }
.trust span { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Video */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .3s, transform .8s var(--ease); }
.video:hover img { opacity: 1; transform: scale(1.02); }
.video button { position: absolute; inset: 0; border: 0; background: transparent; display: grid; place-items: center; }
.video button span { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.video button:hover span { transform: scale(1.08); }
.video button svg { width: 26px; height: 26px; margin-left: 4px; color: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

/* ---------- Product page ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; }
.buy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: 24px 0 72px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: 72px 1fr; gap: 16px; }
.gallery .main { order: 2; position: relative; aspect-ratio: 1; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); box-shadow: 0 4px 12px rgba(0,0,0,.12); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.gallery .main:hover .nav { opacity: 1; }
.gallery .nav.prev { left: 12px; } .gallery .nav.next { right: 12px; }
.gallery .nav svg { width: 18px; height: 18px; }
.thumbs { order: 1; display: flex; flex-direction: column; gap: 10px; max-height: 620px; overflow-y: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: none; width: 72px; height: 72px; padding: 4px; border-radius: var(--radius-sm); border: 1.5px solid transparent; background: var(--bg-alt); transition: border-color .2s; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.buybox h1 { font-size: clamp(26px, 2.8vw, 36px); }
.buybox .tagline { font-size: 17px; color: var(--ink-2); margin-top: 8px; }
.buybox .price-line { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 6px; }
.buybox .price-line .now { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.buybox .price-line s { color: var(--muted); font-size: 17px; }
.buybox .price-line .save { font-size: 13px; font-weight: 600; color: var(--sale); background: #fdecea; padding: 3px 8px; border-radius: 6px; }
.highlights { margin: 22px 0; display: grid; gap: 10px; }
.highlights li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.highlights li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318191b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.opt { margin: 22px 0; border: 0; padding: 0; }
.opt legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.opt legend em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 6px; }
.opt .choices { display: flex; flex-wrap: wrap; gap: 10px; }
.opt label { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label span { display: flex; align-items: center; min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 14px; line-height: 1.3; transition: border-color .2s, background .2s; cursor: pointer; }
.opt label:hover span { border-color: #b9bdc2; }
.opt input:checked + span { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 .5px var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt input.na + span { color: var(--muted); border-style: dashed; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 44px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 18px; color: var(--ink-2); }
.qty input { width: 38px; border: 0; text-align: center; font: inherit; font-weight: 600; background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-top: 26px; }
.buy-row .btn { flex: 1; }
.stock { font-size: 13px; margin-top: 12px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.stock.out::before { background: var(--sale); }
.assurance { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 14px; color: var(--ink-2); }
.assurance li { display: flex; gap: 12px; align-items: center; }
.assurance svg { width: 20px; height: 20px; flex: none; }

/* Sticky sub-nav */
.subnav { position: sticky; top: var(--header-h); z-index: 40; height: var(--subnav-h); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.subnav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.subnav strong { font-size: 17px; font-weight: 600; margin-right: auto; white-space: nowrap; }
.subnav nav { display: flex; gap: 24px; font-size: 14px; color: var(--ink-2); }
.subnav nav a { position: relative; height: var(--subnav-h); display: flex; align-items: center; }
.subnav nav a:hover, .subnav nav a.active { color: var(--ink); }
.subnav nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.subnav .btn { height: 34px; padding: 0 18px; font-size: 13px; }
.subnav .sn-price { font-size: 14px; font-weight: 600; }

/* Feature story blocks */
.story-hero { position: relative; overflow: hidden; }
.story-hero img { width: 100%; height: auto; max-height: 92vh; object-fit: cover; }
.story-hero .copy { position: absolute; left: 0; right: 0; top: clamp(36px, 7vw, 96px); text-align: center; padding: 0 var(--gutter); }
.story-hero h2 { font-size: clamp(34px, 5.4vw, 72px); letter-spacing: -0.035em; }
.story-hero p { font-size: clamp(16px, 1.8vw, 22px); color: var(--ink-2); margin-top: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(72px, 10vw, 140px); }
.split.rev .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy .eyebrow { color: var(--accent); }
.split-copy h3 { font-size: clamp(28px, 3.4vw, 44px); }
.split-copy p { margin-top: 18px; font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); line-height: 1.7; max-width: 520px; }
.full-media { border-radius: var(--radius); overflow: hidden; }
.full-media img { width: 100%; }
.full-copy { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.full-copy h3 { font-size: clamp(28px, 3.6vw, 48px); }
.full-copy p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.story-grid figure { margin: 0; background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.section.alt .story-grid figure { background: #fff; }
.story-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story-grid figcaption { padding: 18px 20px 22px; }
.story-grid strong { display: block; font-size: 17px; font-weight: 600; }
.story-grid span { font-size: 14px; color: var(--muted); display: block; margin-top: 6px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Specs */
.specs { max-width: 980px; margin: 0 auto; }
.spec-group { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.spec-group h3 { font-size: 18px; }
.spec-group dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 32px; }
.spec-group dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.spec-group dd { margin: 0; font-size: 15px; font-weight: 500; }
.inbox { display: flex; flex-wrap: wrap; gap: 10px; }
.inbox li { padding: 8px 16px; border-radius: 999px; background: var(--bg-alt); font-size: 14px; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq .a { padding: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 760px; white-space: pre-line; }

/* ---------- Store listing ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); }
.page-head p { color: var(--muted); font-size: 18px; margin-top: 12px; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters a { padding: 9px 18px; border-radius: 999px; font-size: 14px; background: var(--bg-alt); color: var(--ink-2); transition: background .2s, color .2s; }
.filters a:hover { color: var(--ink); background: #eceef0; }
.filters a.active { background: var(--ink); color: #fff; }
.cat-block + .cat-block { margin-top: 72px; }
.cat-block > h2 { font-size: 28px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cat-block > h2 a { font-size: 15px; font-weight: 500; }

/* ---------- Cart drawer & page ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.36); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(440px, 100vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.15); }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 0; }
.line .img { width: 84px; height: 84px; border-radius: var(--radius-sm); background: var(--bg-alt); padding: 6px; }
.line .img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line h3 { font-size: 15px; font-weight: 600; line-height: 1.35; }
.line .variant { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.line .controls { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.line .qty { height: 34px; }
.line .qty button { width: 32px; font-size: 16px; }
.line .qty input { width: 30px; font-size: 14px; }
.line .remove { border: 0; background: none; padding: 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line .remove:hover { color: var(--ink); }
.line .lp { font-weight: 600; font-size: 15px; text-align: right; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; }
.sum-row.total { font-size: 18px; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }
.empty { text-align: center; padding: 64px 0; color: var(--muted); }
.empty svg { width: 48px; height: 48px; margin: 0 auto 16px; color: #c3c7cc; }
.cart-page { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; padding-bottom: 96px; }
.cart-page .summary { position: sticky; top: calc(var(--header-h) + 24px); background: var(--bg-alt); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.cart-page .summary h2 { font-size: 20px; margin-bottom: 4px; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pay-icons span { font-size: 11px; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 4px 8px; color: var(--ink-2); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; background: #fff5e6; color: #8a5300; }
.alert.err { background: #fdecea; color: #a1261a; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Search overlay */
.search { position: fixed; inset: 0; z-index: 110; background: rgba(255,255,255,.98); display: none; }
.search.open { display: block; }
.search .wrap { padding-top: 40px; }
.search-bar { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.search-bar input { flex: 1; border: 0; font: 500 clamp(22px, 3vw, 32px)/1.2 var(--font); outline: none; background: none; min-width: 0; }
.search-results { margin-top: 24px; display: grid; gap: 4px; max-height: 70vh; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: var(--radius-sm); }
.search-results a:hover, .search-results a:focus { background: var(--bg-alt); }
.search-results img { width: 56px; height: 56px; object-fit: contain; background: var(--bg-alt); border-radius: 8px; mix-blend-mode: multiply; }
.search-results .p { margin-left: auto; font-weight: 600; font-size: 14px; }

/* ---------- Prose pages ---------- */
.prose { max-width: 760px; margin: 0 auto; padding-bottom: 96px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 72px; }
.support-cards a { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; display: grid; gap: 8px; transition: background .2s; }
.support-cards a:hover { background: #eceef0; }
.support-cards strong { font-size: 18px; }
.support-cards span { color: var(--muted); font-size: 14px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form textarea, .form select { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }

/* Newsletter */
.newsletter { display: flex; gap: 10px; max-width: 460px; margin: 28px auto 0; }
.newsletter input { flex: 1; min-width: 0; height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); font: inherit; }
.newsletter .btn { height: 48px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); color: var(--ink-2); font-size: 13px; padding: 56px 0 28px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-cols h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.foot-cols li + li { margin-top: 10px; }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-about p { margin-top: 12px; line-height: 1.6; max-width: 320px; color: var(--muted); }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.foot-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features4, .usecases { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .foot-about { grid-column: 1 / -1; }
  .cart-page { grid-template-columns: 1fr; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  :root { --header-h: 56px; }
  .menu-toggle { display: grid; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; gap: 0; height: auto; background: #fff; padding: 8px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); }
  body.nav-open .main-nav { transform: none; }
  body.nav-open { overflow: hidden; }
  .main-nav > li { display: block; border-bottom: 1px solid var(--line); }
  .main-nav > li > a, .main-nav > li > button { width: 100%; height: 56px; padding: 0; font-size: 17px; color: var(--ink); justify-content: space-between; }
  .main-nav > li > button::after { content: "+"; font-size: 20px; font-weight: 300; }
  .main-nav > li.open > button::after { content: "−"; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; }
  .main-nav > li:hover .mega, .main-nav > li:focus-within .mega { display: none; }
  .main-nav > li.open .mega { display: block; }
  .mega .wrap { padding: 0 0 16px; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mega-item { padding: 12px 6px; }
  .mega-item img { width: 88px; height: 88px; }
  .mega-foot { flex-wrap: wrap; gap: 16px; }
  .header-tools { margin-left: auto; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile.wide { min-height: 480px; }
  .buy { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery .main { order: 1; }
  .thumbs { order: 2; flex-direction: row; overflow-x: auto; max-height: none; }
  .gallery .nav { opacity: 1; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .spec-group { grid-template-columns: 1fr; gap: 16px; }
  .subnav nav { display: none; }
  .support-cards { grid-template-columns: 1fr; }
  .story-hero .copy { position: static; padding: 40px var(--gutter) 24px; }
}
@media (max-width: 600px) {
  .features4, .usecases { grid-template-columns: 1fr; }
  .usecase { aspect-ratio: 4/3; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .thumb { padding: 12px; }
  .card .body { padding: 0 12px 14px; }
  .card h3 { font-size: 14px; }
  .card .desc { display: none; }
  .card .foot { flex-direction: column; align-items: flex-start; }
  .card .btn { width: 100%; }
  .spec-group dl { grid-template-columns: 1fr; }
  .trust ul { grid-template-columns: 1fr; }
  .trust li + li { border-left: 0; border-top: 1px solid var(--line); }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 640px; }
  .logo small { display: none; }
  .line { grid-template-columns: 64px 1fr; }
  .line .img { width: 64px; height: 64px; }
  .line .lp { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.tile.cover.light { color: var(--ink); }
.tile.cover.light::after { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 45%); }
.tile.cover.light p { color: var(--ink-2); }
.tile.cover.light .link { color: var(--accent); }
.split.text-only { grid-template-columns: 1fr; text-align: center; }
.split.text-only .split-copy p { margin-left: auto; margin-right: auto; }
.hero.left .wrap { text-align: left; }
.hero.left .copy { max-width: 660px; }
.hero.left .sub { margin-left: 0; }
.hero.left .actions { justify-content: flex-start; }
.hero.left img.bg { object-position: 70% center; }
@media (max-width: 700px) { .hero.left .wrap { text-align: center; } .hero.left .copy { max-width: none; } .hero.left .actions { justify-content: center; } .hero.left .sub { margin-left: auto; } .hero.left img.bg { object-position: center bottom; } }
.main-nav > li > a, .main-nav > li > button { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1120px) { .main-nav > li > a, .main-nav > li > button { padding: 0 8px; font-size: 13px; } .logo small { display: none; } .site-header .wrap { gap: 16px; } }
.nw { white-space: nowrap; }
.tile .eyebrow { margin-bottom: 8px; }
.tile.cover .eyebrow { color: rgba(255,255,255,.8); }
.tile.cover.light .eyebrow { color: var(--muted); }
.tile.cover::after { background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.15) 40%, rgba(0,0,0,0) 60%); }
.tile.cover h3, .tile.cover > p { text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.tile.cover.light h3, .tile.cover.light > p { text-shadow: none; }
/* feather product-shot edges into the matched background */
.tile:not(.cover) .media img, .card .thumb img, .mega-item img, .gallery .main img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect;
}
.tile .media img { max-height: 400px; }
@media (max-width: 900px) {
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nav-open .menu-toggle { background: var(--bg-alt); }
}
@media (max-width: 700px) {
  .hero, .hero.left { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
  .hero .wrap { order: -1; padding-top: 44px; padding-bottom: 28px; }
  .hero picture, .hero > img { position: static; }
  .hero img.bg { height: auto; aspect-ratio: auto; }
  .hero.on-dark { background: var(--bg-dark); }
}

/* ---------- blog, announcement, rich-text pages (admin-managed content) ---------- */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 8px var(--gutter); }
.preview-bar { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 13px; padding: 8px var(--gutter); }
.preview-bar a { text-decoration: underline; margin-left: 8px; }
.center-link { text-align: center; margin-top: 32px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.section.alt .post-card { border-color: transparent; }
.post-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.post-card .cover { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .cover img { transform: scale(1.03); }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card time { font-size: 13px; color: var(--muted); }
.post-card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.post-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .link { margin-top: auto; padding-top: 6px; }
.wrap.narrow { max-width: 808px; }
.article header { padding: 8px 0 36px; }
.article header time, .article header span { font-size: 14px; color: var(--muted); }
.article h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin-top: 10px; }
.article .lede { font-size: 20px; color: var(--ink-2); margin-top: 16px; line-height: 1.5; }
.article .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.article .tags a { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 48px; max-height: 560px; }
.article-cover img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose ol { list-style: decimal; padding-left: 22px; margin: 12px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); color: var(--ink-2); font-style: italic; }
.prose img { border-radius: var(--radius-sm); margin: 24px auto; }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
@media (max-width: 700px) { .posts { grid-template-columns: 1fr; } .article .lede { font-size: 18px; } .article-cover { margin-bottom: 32px; } }
