/* Mobile Tech storefront
 * Design language: cool monochrome, near-black ink, one electric-blue accent.
 * Shape system: interactive controls are pills; surfaces use 24px (large) / 18px (media); form inputs 12px.
 * Z-index scale: header 40, sticky buy bar 30, drawers 80, toasts 90, skip link 100.
 */

:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #ECEDF0;
  --surface-3: #E3E5E9;
  --text: #0C0E12;
  --text-2: #5A606C;
  --text-3: #80868F;
  --border: #E2E4E8;
  --border-strong: #C9CDD4;
  --ink: #0B0D11;
  --ink-2: #16191F;
  --ink-hover: #262A33;
  --accent: #2457D6;
  --accent-hover: #1C47B3;
  --accent-soft: #E9EFFC;
  --green: #16793A;
  --amber: #9A5800;
  --red: #BD2F28;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --r-input: 12px;
  --r-media: 18px;
  --r-surface: 24px;
  --r-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(15, 20, 30, .04), 0 8px 28px rgba(15, 20, 30, .06);
  --shadow-lift: 0 2px 6px rgba(15, 20, 30, .05), 0 18px 48px rgba(15, 20, 30, .10);

  --container: 1320px;
  --gutter: 40px;
  --header-h: 64px;
}

@media (max-width: 1024px) { :root { --gutter: 28px; } }
@media (max-width: 640px) { :root { --gutter: 18px; --header-h: 58px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
picture { display: contents; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r-pill); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
main { display: block; min-height: 50vh; }
.section { padding: 112px 0; }
.section--tight { padding: 56px 0; }
.section + .section--tight, .section--tight + .section { padding-top: 72px; }
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .section--tight { padding: 40px 0; }
  .section + .section--tight, .section--tight + .section { padding-top: 48px; }
}
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section__title { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 3rem); letter-spacing: -0.04em; font-weight: 600; }
.section__sub { color: var(--text-2); margin-top: 10px; font-size: 17px; max-width: 52ch; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 14px; letter-spacing: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; text-decoration: none; white-space: nowrap; font-size: 15px; }
.link-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn:active:not([disabled]) { transform: scale(0.98); }
.btn--primary, .btn--dark { background: var(--ink); color: #fff; }
.btn--primary:hover, .btn--dark:hover { background: var(--ink-hover); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--light { background: #F7F8FA; color: var(--ink); }
.btn--light:hover { background: #fff; box-shadow: 0 8px 30px rgba(255,255,255,.18); }
.btn--glass {
  color: #fff; border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.btn--glass:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.36); }
.btn--lg { min-height: 52px; padding: 0 30px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--text-3); border-color: transparent; cursor: not-allowed; box-shadow: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--r-pill); border: 0; background: transparent; cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--ease);
}
.icon-btn:hover { background: rgba(12,14,18,.06); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
.demo-strip { background: var(--ink); color: #A9B0BC; font-size: 12.5px; text-align: center; padding: 8px var(--gutter); }
.demo-strip strong { color: #fff; font-weight: 500; }
.announce { display: block; background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 8px var(--gutter); text-decoration: none; }
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245,245,247,.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: rgba(12,14,18,.07); background: rgba(250,250,252,.82); }
.header__row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.header__menu { display: none; margin-left: -10px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.035em; text-decoration: none; white-space: nowrap; }
.wordmark__mark { width: 24px; height: 24px; border-radius: 7px; background: var(--ink); position: relative; flex: none; }
.wordmark__mark::after { content: ""; position: absolute; left: 8px; right: 8px; top: 5px; bottom: 5px; border-radius: 3px; border: 1.6px solid #fff; border-bottom-color: var(--accent); }
.wordmark--light .wordmark__mark { background: #fff; }
.wordmark--light .wordmark__mark::after { border-color: var(--ink); border-bottom-color: var(--accent); }

.catnav { flex: 1; min-width: 0; }
.catnav__list { display: flex; gap: 2px; justify-content: center; }
.catnav a {
  display: block; padding: 8px 12px; font-size: 14px; font-weight: 450; color: var(--text-2);
  text-decoration: none; white-space: nowrap; border-radius: var(--r-pill); transition: color .2s, background-color .2s;
}
.catnav a:hover { color: var(--text); background: rgba(12,14,18,.05); }
.catnav a[aria-current="page"] { color: var(--text); background: rgba(12,14,18,.07); }

.search { width: 200px; display: flex; align-items: center; position: relative; transition: width .4s var(--ease); }
.search:focus-within { width: 260px; }
.search input {
  width: 100%; height: 38px; padding: 0 16px 0 38px; border-radius: var(--r-pill); border: 1px solid transparent;
  background: rgba(12,14,18,.06); font-size: 14px; transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--text-2); }
.search input:focus { outline: none; background: #fff; border-color: var(--border-strong); box-shadow: 0 0 0 4px var(--accent-soft); }
.search__btn { position: absolute; left: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.search__btn svg { width: 17px; height: 17px; fill: none; stroke: var(--text-2); stroke-width: 1.8; stroke-linecap: round; }
.header__actions { display: flex; gap: 2px; }

@media (max-width: 1180px) { .catnav a { padding: 8px 9px; } .search { width: 160px; } .search:focus-within { width: 200px; } }
@media (max-width: 1020px) {
  .catnav { display: none; }
  .header__menu { display: inline-grid; }
  .search { margin-left: auto; width: 220px; }
}
@media (max-width: 640px) {
  .header__row { gap: 6px; flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; }
  .header__actions { margin-left: auto; }
  .search, .search:focus-within { order: 5; width: 100%; margin: 0; }
}

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(8,10,14,.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s var(--ease); }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(380px, 88vw); background: var(--surface);
  transform: translateX(-100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer--right .drawer__panel { left: auto; right: 0; transform: translateX(100%); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 24px; }
.drawer__links { padding: 8px 12px; }
.drawer__links a { display: block; padding: 13px 12px; text-decoration: none; font-size: 20px; font-weight: 550; letter-spacing: -0.025em; border-radius: 14px; }
.drawer__links a:hover { background: var(--bg); }
.drawer__body { padding: 8px 24px 24px; flex: 1; }
.drawer__foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; }
.drawer__foot .btn { flex: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #07080B; color: #fff; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 55%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,7,10,.94) 0%, rgba(6,7,10,.72) 32%, rgba(6,7,10,.08) 64%, rgba(6,7,10,0) 100%),
    linear-gradient(0deg, rgba(6,7,10,.55) 0%, rgba(6,7,10,0) 30%);
}
.hero__inner { min-height: min(calc(100dvh - var(--header-h) - 32px), 860px); display: flex; align-items: center; }
.hero__copy { max-width: 600px; padding: 96px 0; }
.hero h1 { font-size: clamp(3rem, 1.6rem + 5vw, 6.25rem); letter-spacing: -0.055em; line-height: 0.96; font-weight: 600; }
.hero p.lead { font-size: clamp(17px, 1rem + .3vw, 20px); color: #AEB5C1; margin-top: 26px; max-width: 32ch; line-height: 1.5; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; }
  .hero__media::after { background: linear-gradient(180deg, #07080B 0%, rgba(7,8,11,.6) 22%, rgba(7,8,11,0) 50%); }
  .hero__media { position: relative; order: 2; aspect-ratio: 5 / 4; margin-top: -12%; }
  .hero__media img { object-position: 70% 50%; }
  .hero__inner { min-height: 0; display: block; order: 1; }
  .hero__copy { padding: 56px 0 8px; }
}

/* ---------- Category bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(260px, auto)); gap: 16px; }
.bento > :first-child { grid-column: span 2; grid-row: span 2; }
.cat-tile {
  --tone: var(--surface-2);
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: var(--tone); border-radius: var(--r-surface); text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cat-tile__text { position: relative; z-index: 3; padding: 24px 26px 0; display: flex; flex-direction: column; gap: 6px; }
.cat-tile__label { font-size: 22px; font-weight: 600; letter-spacing: -0.035em; }
.cat-tile__blurb { color: var(--text-2); font-size: 16px; max-width: 36ch; text-wrap: pretty; }
.cat-tile__go {
  position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.7); display: grid; place-items: center; transition: background-color .3s, transform .4s var(--ease);
}
.cat-tile__go svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.cat-tile:hover .cat-tile__go { background: var(--ink); transform: rotate(-45deg); }
.cat-tile:hover .cat-tile__go svg { stroke: #fff; }
.cat-tile__media { position: relative; flex: 1; min-height: 170px; margin-top: 4px; overflow: hidden; }
.cat-tile__media::before { content: ""; position: absolute; inset: 0 0 auto; height: 22%; background: linear-gradient(var(--tone), transparent); z-index: 1; }
.cat-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-tile:hover .cat-tile__media img { transform: scale(1.05); }
/* The feature tile is much wider than tall, so show the whole product instead of cropping it. */
.cat-tile--feature .cat-tile__media img {
  object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 46% 60% at 50% 62%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 46% 60% at 50% 62%, #000 62%, transparent 100%);
}
.cat-tile--feature .cat-tile__text { padding: 34px 36px 0; }
.cat-tile--feature .cat-tile__label { font-size: clamp(28px, 1.4rem + 1vw, 40px); }
.cat-tile--feature .cat-tile__go { top: 30px; right: 30px; width: 44px; height: 44px; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .bento > :first-child { grid-column: span 2; grid-row: auto; min-height: 460px; }
  .cat-tile { min-height: 300px; }
}
@media (max-width: 560px) {
  .bento { gap: 10px; }
  .bento > :first-child { min-height: 400px; }
  .cat-tile { min-height: 230px; }
  .cat-tile__text { padding: 16px 16px 0; }
  .cat-tile__label { font-size: 18px; }
  .cat-tile__go { top: 12px; right: 12px; width: 32px; height: 32px; }
}

.cat-grid--page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-grid--page .cat-tile { min-height: 420px; }
.cat-grid--page .cat-tile--feature .cat-tile__text { padding: 26px 28px 0; }
.cat-grid--page .cat-tile--feature .cat-tile__label { font-size: 26px; }
.cat-grid--page .cat-tile--feature .cat-tile__go { top: 22px; right: 22px; width: 38px; height: 38px; }
@media (max-width: 900px) { .cat-grid--page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid--page { grid-template-columns: 1fr; } .cat-grid--page .cat-tile { min-height: 340px; } }

/* ---------- Product grid & cards (borderless) ---------- */
.grid--products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
@media (max-width: 1100px) { .grid--products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid--products { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; } }
.shop-layout .grid--products { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .shop-layout .grid--products { grid-template-columns: repeat(2, 1fr); } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; z-index: 2; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; border-radius: var(--r-media); isolation: isolate; }
.card__media > a { display: block; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__body { display: flex; flex-direction: column; gap: 2px; padding: 16px 2px 0; flex: 1; }
.card__eyebrow { font-size: 13px; color: var(--text-3); }
.card__title { font-size: 17px; font-weight: 550; letter-spacing: -0.02em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__title a:hover { color: var(--accent); }
.card__attrs { font-size: 14px; color: var(--text-2); min-height: 1.5em; }
.card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.card__actions { margin-top: auto; padding-top: 14px; position: relative; z-index: 2; }
.card__actions .btn { width: 100%; }
.card .wish, .card .card__media > a { position: relative; z-index: 2; }
.card .wish--card { position: absolute; }
.price { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.price__from { font-size: 14px; color: var(--text-2); }
.price--was { color: var(--text-3); font-size: 14px; }
.stock { font-size: 13px; font-weight: 450; display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--green); }
.stock--low { color: var(--amber); }
.stock--out { color: var(--red); }
.tag {
  position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,.86); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 550; padding: 5px 11px; border-radius: var(--r-pill);
}
.tag--sale { background: var(--accent); color: #fff; }
.wish {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .25s var(--ease), background-color .2s;
}
.wish:hover { background: #fff; transform: scale(1.06); }
.wish:active { transform: scale(0.94); }
.wish svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.6; transition: fill .2s, stroke .2s; }
.wish.is-on svg { fill: var(--red); stroke: var(--red); }
.wish--card { top: 12px; right: 12px; opacity: 0; transform: translateY(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.card:hover .wish--card, .wish--card:focus-visible, .wish--card.is-on { opacity: 1; transform: none; }
@media (hover: none) { .wish--card { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .card__title { font-size: 15px; }
  .card__attrs { display: none; }
  .price { font-size: 15px; }
  .card__actions .btn { min-height: 40px; font-size: 13px; padding: 0 10px; }
  .tag { top: 10px; left: 10px; font-size: 11px; padding: 4px 9px; }
  .wish--card { top: 8px; right: 8px; width: 34px; height: 34px; }
}

.card--skeleton { pointer-events: none; }
.card--skeleton .card__media, .sk-line { background: linear-gradient(90deg, var(--surface-2) 0%, #F4F5F7 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-line { height: 14px; border-radius: 6px; margin: 16px 2px 0; }
.sk-line--short { width: 45%; margin-bottom: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Editorial banner ---------- */
.editorial { position: relative; border-radius: 32px; overflow: hidden; background: #D9DBDE; min-height: 560px; display: flex; align-items: center; isolation: isolate; }
.editorial__media { position: absolute; inset: 0; z-index: -1; }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; transition: transform 1.6s var(--ease); }
.editorial:hover .editorial__media img { transform: scale(1.02); }
.editorial__copy { max-width: 480px; padding: 64px; }
.editorial__copy h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.4rem); letter-spacing: -0.045em; line-height: 1.02; }
.editorial__copy p { color: #3B424E; margin: 18px 0 32px; font-size: 18px; max-width: 34ch; }
@media (max-width: 760px) {
  .editorial { display: block; min-height: 0; border-radius: var(--r-surface); }
  .editorial__media { position: relative; aspect-ratio: 4 / 3; z-index: 0; }
  .editorial__copy { padding: 30px 24px 34px; background: #E1E2E4; max-width: none; }
}

/* ---------- Horizontal rail ---------- */
.rail-nav { display: flex; gap: 8px; }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.rail-btn:hover { border-color: var(--ink); }
.rail-btn:active { transform: scale(0.95); }
.rail-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.rail {
  --rail-pad: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 23vw, 300px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad);
  padding: 4px var(--rail-pad) 12px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 640px) { .rail { grid-auto-columns: 62%; gap: 12px; } .rail-nav { display: none; } }

/* ---------- Guides accordion ---------- */
.guides { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.guides__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.accordion details { border-top: 1px solid var(--border); }
.accordion details:last-child { border-bottom: 1px solid var(--border); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: clamp(19px, 1rem + .6vw, 24px); font-weight: 550; letter-spacing: -0.03em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--accent); }
.acc-icon { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); flex: none; transition: transform .4s var(--ease), background-color .3s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .4s var(--ease), background-color .3s; }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .acc-icon { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
details[open] .acc-icon::before, details[open] .acc-icon::after { background: #fff; }
details[open] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.accordion__body { padding: 0 64px 28px 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.accordion__body p { color: var(--text-2); font-size: 17px; max-width: 60ch; }
@media (max-width: 900px) {
  .guides { grid-template-columns: 1fr; gap: 24px; }
  .guides__intro { position: static; }
  .accordion__body { padding-right: 0; }
}

/* ---------- Assurance strip ---------- */
.assurance { padding: 8px 0 40px; }
.assurance__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--border); padding-top: 36px; }
.assurance__item { display: flex; gap: 16px; align-items: flex-start; }
.assurance__item svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; margin-top: 2px; }
.assurance__item h3 { font-size: 16px; font-weight: 550; letter-spacing: -0.015em; }
.assurance__item p { font-size: 14.5px; color: var(--text-2); margin-top: 3px; }
@media (max-width: 860px) { .assurance__row { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #A0A7B3; margin-top: 88px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer__brand p { margin-top: 16px; max-width: 30ch; font-size: 15px; }
.footer .wordmark { color: #fff; font-size: 19px; }
.footer h2 { font-size: 13px; font-weight: 500; letter-spacing: 0; color: #fff; margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer a { color: #A0A7B3; text-decoration: none; font-size: 14.5px; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__note { font-size: 14.5px; max-width: 32ch; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #1E222A; padding-top: 22px; padding-bottom: 30px; font-size: 13px; color: #737B88; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Page header / breadcrumb ---------- */
.page-head { padding: 48px 0 36px; }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.75rem); letter-spacing: -0.05em; line-height: 1; }
.page-head p { color: var(--text-2); margin-top: 12px; font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border-strong); }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.filters__panel { display: flex; flex-direction: column; }
.facet { border-top: 1px solid var(--border); padding: 18px 0; }
.facet:first-child { border-top: 0; padding-top: 0; }
.facet legend, .facet__title { font-weight: 550; font-size: 14px; margin-bottom: 10px; padding: 0; letter-spacing: -0.01em; }
fieldset.facet { border-left: 0; border-right: 0; border-bottom: 0; margin: 0; min-width: 0; }
fieldset.facet:first-child { border-top: 0; }
.check { display: flex; align-items: center; gap: 11px; padding: 5px 0; cursor: pointer; font-size: 15px; color: var(--text-2); }
.check:hover { color: var(--text); }
.check input { width: 17px; height: 17px; accent-color: var(--ink); margin: 0; }
.check:has(input:checked) { color: var(--text); font-weight: 500; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-sm { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-2); }
.field-sm input { height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-input); background: #fff; color: var(--text); width: 100%; }
.field-sm input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar__count { color: var(--text-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.toolbar__right { display: flex; gap: 8px; align-items: center; }
.select {
  height: 40px; padding: 0 38px 0 16px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); font-size: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A606C' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; cursor: pointer;
}
.select:focus { outline: none; border-color: var(--ink); }
.filter-toggle { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px 7px 14px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; border: 0; cursor: pointer; transition: background-color .2s; }
.chip:hover { background: var(--ink-hover); }
.chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.chip--clear { background: transparent; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.chip--clear:hover { background: transparent; color: var(--text); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 56px; }
.pager button { min-width: 42px; height: 42px; border-radius: var(--r-pill); border: 1px solid var(--border); background: #fff; cursor: pointer; font-variant-numeric: tabular-nums; }
.pager button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filter-toggle { display: inline-flex; }
  .filter-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
}

/* ---------- States ---------- */
.state { text-align: center; padding: 72px 24px; background: var(--surface); border-radius: var(--r-surface); }
.state__title { font-size: 22px; letter-spacing: -0.03em; }
.state p { color: var(--text-2); margin: 10px auto 24px; max-width: 44ch; }
.state--error .state__title { color: var(--red); }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 24px); border-radius: 28px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; }
.pdp__gallery img { width: 100%; height: 100%; object-fit: cover; }
.pdp__gallery .wish { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; }
.pdp__info { padding-top: 12px; }
.pdp__info .card__eyebrow { font-size: 14px; }
.pdp__info h1 { font-size: clamp(2.3rem, 1.5rem + 2.4vw, 3.6rem); letter-spacing: -0.05em; line-height: 1; margin-top: 8px; }
.pdp__config { color: var(--text-2); margin-top: 12px; font-size: 16px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 28px 0 8px; }
.pdp__price .price { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.save-note { color: var(--accent); font-weight: 500; font-size: 14px; }
.pdp__desc { color: var(--text-2); margin: 22px 0 6px; font-size: 17px; max-width: 52ch; }
.opt { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.opt legend { font-weight: 550; font-size: 15px; margin-bottom: 12px; padding: 0; }
.opt legend span { font-weight: 400; color: var(--text-2); }
.opt__values { display: flex; flex-wrap: wrap; gap: 10px; }
.opt__btn {
  position: relative; min-height: 50px; min-width: 104px; padding: 8px 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer; font-weight: 500; font-size: 15px; text-align: center;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.opt__btn small { display: block; font-weight: 400; font-size: 12px; color: var(--text-3); }
.opt__btn:hover { border-color: var(--text-3); }
.opt__btn:active { transform: scale(0.98); }
.opt__btn[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt__btn.is-soldout { color: var(--text-3); background: repeating-linear-gradient(-45deg, var(--surface) 0 7px, var(--bg) 7px 8px); }
.opt__btn[aria-disabled="true"] { color: var(--text-3); border-style: dashed; background: transparent; }
.opt__btn[aria-disabled="true"]:hover { border-color: var(--border-strong); }
.pdp__buy { display: flex; gap: 12px; margin-top: 36px; align-items: stretch; flex-wrap: wrap; }
.pdp__buy .btn { flex: 1; min-width: 200px; min-height: 54px; font-size: 16px; }
.pdp__meta { margin-top: 22px; font-size: 14px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--border); }
.pdp__meta span:nth-child(2) { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.pdp__info .stock { font-size: 14.5px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: var(--surface); height: 54px; padding: 0 4px; }
.qty button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 20px; transition: background-color .2s; }
.qty button:hover:not(:disabled) { background: var(--bg); }
.qty button:disabled { color: var(--border-strong); cursor: not-allowed; }
.qty input { width: 38px; height: 100%; border: 0; text-align: center; font-weight: 550; -moz-appearance: textfield; background: transparent; font-variant-numeric: tabular-nums; }
.qty input:focus { outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 40px; padding: 0 2px; }
.qty--sm button { width: 34px; height: 34px; font-size: 18px; }
.qty--sm input { width: 32px; }

.panel { background: var(--surface); border-radius: var(--r-surface); padding: 32px; }
.detail-sections { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 96px; }
.detail-sections h2 { font-size: 24px; letter-spacing: -0.035em; margin-bottom: 22px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.spec-group { background: var(--bg); border-radius: 16px; padding: 20px; }
.spec-group h3 { font-size: 13px; font-weight: 500; color: var(--text-3); margin-bottom: 12px; letter-spacing: 0; }
.spec-list { display: grid; gap: 12px; margin: 0; }
.spec-list div { display: flex; flex-direction: column; gap: 1px; }
.spec-list dt { font-size: 13px; color: var(--text-2); }
.spec-list dd { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.box-list { display: flex; flex-wrap: wrap; gap: 8px; }
.box-list li { padding: 8px 14px; background: var(--bg); border-radius: var(--r-pill); font-size: 14px; }
.fine { font-size: 13px; color: var(--text-3); margin-top: 16px; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp__gallery { position: relative; top: 0; border-radius: var(--r-surface); }
  .detail-sections { grid-template-columns: 1fr; margin-top: 56px; }
  .panel { padding: 24px; }
}
@media (max-width: 520px) { .spec-grid { grid-template-columns: 1fr; } }

.sticky-buy {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(12,14,18,.06); border-radius: 22px;
  padding: 10px 10px 10px 18px; display: none; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lift); transform: translateY(140%); transition: transform .45s var(--ease);
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy__text { flex: 1; min-width: 0; }
.sticky-buy__text strong { display: block; font-size: 15px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__text span { font-size: 13px; color: var(--text-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .sticky-buy { display: flex; }
  body[data-page="product"] .footer { padding-bottom: 90px; }
}

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.cart-lines { background: var(--surface); border-radius: var(--r-surface); padding: 8px 28px; }
.line { display: grid; grid-template-columns: 112px 1fr auto; gap: 20px; padding: 24px 0; align-items: start; }
.line + .line { border-top: 1px solid var(--border); }
.line__img { border-radius: 14px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-weight: 550; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.line__name:hover { color: var(--accent); }
.line__variant { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.line__controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.line__remove { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: var(--text-2); cursor: pointer; font-size: 14px; padding: 6px 8px; border-radius: var(--r-pill); }
.line__remove:hover { color: var(--red); background: #FBEDEC; }
.line__remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.line__price { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.line__unit { font-size: 13px; color: var(--text-3); font-weight: 400; }
.line__warn { font-size: 13px; color: var(--amber); margin-top: 8px; }
.summary { position: sticky; top: calc(var(--header-h) + 24px); }
.summary h2 { font-size: 22px; letter-spacing: -0.035em; margin-bottom: 18px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.summary__row span:last-child { font-variant-numeric: tabular-nums; }
.summary__row--muted { color: var(--text-2); }
.summary__total { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 16px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.summary .btn { margin-top: 22px; min-height: 52px; }
.promo { margin-top: 18px; }
.promo summary { cursor: pointer; font-weight: 500; font-size: 14px; }
.promo p { font-size: 13px; color: var(--text-2); margin-top: 8px; }
@media (max-width: 960px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 520px) {
  .cart-lines { padding: 4px 18px; }
  .line { grid-template-columns: 84px 1fr; gap: 14px; }
  .line__price { grid-column: 2; text-align: left; }
}

/* ---------- Forms / checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; }
.form-section { background: var(--surface); border: 0; border-radius: var(--r-surface); padding: 32px; margin: 0 0 16px; min-width: 0; }
.form-section legend { float: left; width: 100%; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 22px; padding: 0; }
.form-section legend + * { clear: both; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; }
.field .opt-label { font-weight: 400; color: var(--text-2); }
.field input, .field select, .field textarea {
  height: 50px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--r-input); background: #fff; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--text-3); }
.field textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__error { color: var(--red); font-size: 13px; }
.radio-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--border-strong); border-radius: 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.radio-card input { margin-top: 3px; accent-color: var(--ink); width: 18px; height: 18px; }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card small { display: block; color: var(--text-2); margin-top: 2px; }
.alert { padding: 14px 18px; border-radius: 14px; font-size: 14px; margin-bottom: 16px; }
.alert--warn { background: #FFF4DC; color: #5A3A00; }
.alert--error { background: #FCEBEA; color: #87201B; }
.alert--info { background: var(--accent-soft); color: #1A3C93; }
.mini-lines li { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; font-size: 14px; }
.mini-lines li + li { border-top: 1px solid var(--border); }
.mini-lines .line__img { position: relative; overflow: visible; border-radius: 12px; }
.mini-lines .line__img img { border-radius: 12px; }
.mini-lines .qty-dot { position: absolute; top: -6px; right: -6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; border-radius: var(--r-pill); display: grid; place-items: center; padding: 0 5px; }
@media (max-width: 1000px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-layout .summary { order: -1; }
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-section { padding: 22px; } }

.confirm { max-width: 640px; margin: 0 auto; text-align: center; }
.confirm__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; margin: 0 auto 28px; }
.confirm__icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.confirm h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); letter-spacing: -0.045em; }
.confirm .ref { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 14px; background: var(--surface); padding: 8px 16px; border-radius: var(--r-pill); }
.confirm .panel { text-align: left; margin-top: 32px; }

/* ---------- Toast ---------- */
.toast-region { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); }
.toast {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: rgba(14,16,20,.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff;
  padding: 14px 16px 14px 20px; border-radius: var(--r-pill); box-shadow: 0 16px 40px rgba(8,10,14,.25); font-size: 14px;
  animation: toastIn .45s var(--ease);
}
.toast a { color: #fff; font-weight: 500; white-space: nowrap; background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: var(--r-pill); text-decoration: none; }
.toast a:hover { background: rgba(255,255,255,.24); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
body[data-page="product"] .toast-region { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- Motion (only when the user hasn't asked for reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: heroZoom 1.8s var(--ease) both; }
  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }

  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .grid--products > .card, .rail > .card { animation: rise .7s var(--ease) both; }
  .grid--products > .card:nth-child(2), .rail > .card:nth-child(2) { animation-delay: .05s; }
  .grid--products > .card:nth-child(3), .rail > .card:nth-child(3) { animation-delay: .10s; }
  .grid--products > .card:nth-child(4), .rail > .card:nth-child(4) { animation-delay: .15s; }
  .grid--products > .card:nth-child(n+5), .rail > .card:nth-child(n+5) { animation-delay: .2s; }
  .pdp { animation: rise .8s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes heroZoom { from { transform: scale(1.06); opacity: .6; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
 * Mockup alignment (v3): monogram logo, kickers, hero perks + scribbles,
 * blue feature tile, boxed product cards, contained rail, footer extras.
 * ===================================================================== */
:root { --script: "Caveat", "Segoe Print", "Bradley Hand", cursive; --accent-bright: #4D8DFF; }

/* Monogram logo */
.wordmark__mark { display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.wordmark__mark::after { content: none; }
.wordmark--light .wordmark__mark { color: var(--ink); }

/* Small uppercase section labels */
.kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.kicker--light { color: #AFC3E8; margin-bottom: 18px; }

/* Buttons with a trailing arrow */
.btn--arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease); }
.btn--arrow:hover svg { transform: translateX(3px); }

/* Hero */
.hero { display: flex; flex-direction: column; }
.hero__inner { position: relative; min-height: min(calc(100dvh - var(--header-h) - 150px), 640px); }
.hero__copy { padding: 72px 0 40px; }
.hero h1 .accent { color: var(--accent-bright); }
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 45% 55% at 68% 38%, rgba(45, 110, 255, .38), transparent 70%);
}
.hero__media::after { z-index: 2; }
.hero__perks-wrap { position: relative; padding-bottom: 40px; }
.hero__perks { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.perk { display: flex; align-items: center; gap: 14px; color: #fff; }
.perk__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
.perk strong { display: block; font-size: 14px; font-weight: 550; letter-spacing: -0.01em; }
.perk small { display: block; font-size: 12.5px; color: #9AA3B2; }

/* Handwritten notes */
.scribble { position: absolute; font-family: var(--script); font-weight: 500; line-height: 1.02; pointer-events: none; }
.scribble svg { display: block; width: 56px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scribble--hero { right: calc(var(--gutter) + 36px); top: 64px; white-space: nowrap; color: rgba(255,255,255,.78); font-size: 27px; transform: rotate(-9deg); text-align: center; }
.scribble--hero svg { margin: 6px auto 0 10px; }
.scribble--kit { left: 40%; top: 20%; color: #4B5361; font-size: 25px; transform: rotate(-8deg); z-index: 1; }
.scribble--kit svg { margin: 4px 0 0 60px; }
@media (max-width: 1000px) { .scribble { display: none; } }
@media (max-width: 760px) {
  .hero__inner { min-height: 0; }
  .hero__copy { padding-bottom: 8px; }
  .hero__perks-wrap { order: 3; padding: 20px var(--gutter) 32px; background: #07080B; }
  .hero__perks { gap: 16px 28px; }
}

/* Blue feature tile with two phones */
.cat-tile--feature { background: linear-gradient(165deg, #EEF3FD 0%, #D3E0F8 55%, #B9CDF2 100%); }
.cat-tile--feature .cat-tile__go { position: static; margin-top: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.cat-tile__duo { display: flex; align-items: flex-end; justify-content: center; padding: 0 6% 0; }
.cat-tile__duo::before { content: none; }
.cat-tile--feature .cat-tile__duo img {
  position: relative; inset: auto; width: 54%; height: auto; max-height: 100%; object-fit: contain;
  mix-blend-mode: multiply;
  /* Lift the photo's grey studio backdrop to white so multiply drops it out against the blue tile. */
  filter: brightness(1.12) contrast(1.06);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
}
.cat-tile--feature .cat-tile__duo img + img, .cat-tile__duo picture + picture img { margin-left: -30%; }
.cat-tile:not(.cat-tile--feature) { background: linear-gradient(170deg, #F3F5F9 0%, var(--tone) 100%); }

/* Boxed product cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 10px;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .3s;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: transparent; }
.card__media { border-radius: 14px; }
.card__body { padding: 14px 6px 4px; }
.grid--products { gap: 20px; }
@media (max-width: 760px) { .grid--products { gap: 12px; } .card { padding: 6px; border-radius: 16px; } .card__body { padding: 10px 4px 2px; } }

/* Rail stays inside the container, four cards per view on desktop */
.rail {
  max-width: var(--container); margin: 0 auto; padding: 6px var(--gutter) 18px;
  scroll-padding-inline: var(--gutter); grid-auto-columns: calc((100% - 60px) / 4);
}
@media (max-width: 1024px) { .rail { grid-auto-columns: calc((100% - 40px) / 2.6); } }
@media (max-width: 640px) { .rail { grid-auto-columns: 68%; } }

/* Lighter accordion */
.accordion summary { padding: 18px 0; font-size: 18px; }
.acc-icon { border: 0; background: transparent; width: 22px; height: 22px; }
details[open] .acc-icon { background: transparent; transform: none; }
details[open] .acc-icon::before { background: var(--ink); }
details[open] .acc-icon::after { opacity: 0; }
.accordion__body p { font-size: 15.5px; }

/* Footer: back-to-top */
.footer__base { align-items: center; }
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 35; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14);
  background: #1A1E26; display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body[data-page="product"] .to-top { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- Blog ---------- */
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .blog-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-list { grid-template-columns: 1fr; } }

.post-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 10px; transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .3s;
}
.post-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: transparent; }
.post-card__media { display: block; border-radius: 14px; overflow: hidden; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 10px 10px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); }
.post-tag { background: var(--accent-soft); color: var(--accent); font-weight: 550; font-size: 12px; padding: 4px 10px; border-radius: var(--r-pill); }
.post-card__title { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.post-card__title a { text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card:hover .post-card__title a { color: var(--accent); }
.post-card__excerpt { color: var(--text-2); font-size: 15px; }
.post-card__more { margin-top: auto; padding-top: 6px; font-size: 14px; }
.post-card:hover .post-card__more svg { transform: translateX(4px); }

/* Cover image + placeholder shown until the real image is added to assets/blog */
.post-cover { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; border-radius: 14px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-cover.is-placeholder { background: linear-gradient(150deg, #EEF3FD 0%, #D8E3F8 60%, #C6D6F4 100%); }
.post-cover__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #5B6B8C; }
.post-cover__icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.post-cover__file { font-family: var(--mono); font-size: 11.5px; max-width: 88%; text-align: center; overflow-wrap: anywhere; background: rgba(255,255,255,.7); padding: 4px 10px; border-radius: var(--r-pill); }

/* Article page */
.post { max-width: 860px; margin: 0 auto; padding-top: 40px; }
.post__head { max-width: 720px; margin: 0 auto 32px; }
.post__head h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.6rem); letter-spacing: -0.05em; line-height: 1.02; margin-top: 16px; }
.post__lead { color: var(--text-2); font-size: 19px; margin-top: 16px; }
.post__cover { border-radius: var(--r-surface); }
.post__body { max-width: 680px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.post__body p { font-size: 18px; line-height: 1.7; color: #2A2F38; }
.post__body .btn { margin-top: 12px; }
.footer__credit a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.footer__credit a:hover { text-decoration-color: #fff; }
