/* Standtron design system — 8px scale, editorial e-commerce */
:root {
  --paper: #f6efe4;
  --paper-2: #eadfcf;
  --sand: #e7d3b8;
  --sage: #d7e2d6;
  --sage-deep: #5f7a68;
  --mist: #d5e0e6;
  --navy: #1c3344;
  --navy-2: #152833;
  --clay: #c46a4a;
  --ink: #1a1612;
  --ink-2: #3a342c;
  --muted: #6d645a;
  --line: #e0d4c4;
  --line-2: #cfc0ab;
  --accent: #c45c26;
  --accent-hover: #a44b1d;
  --accent-soft: #f3ddd0;
  --gold: #c9a227;
  --inverse: #1c3344;
  --inverse-2: #152833;
  --on-inverse: #f6efe4;
  --on-inverse-muted: #c5b7a4;
  --success: #3d6b52;
  --white: #fffaf3;
  --shadow: 0 1px 0 rgba(20, 18, 16, 0.06);
  --radius: 4px;
  --radius-lg: 8px;
  --max: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --announce-h: 36px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; background: none; border: 0; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 12px; }

.wrap { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.band-sand { background: var(--sand); }
.band-mist { background: var(--mist); }
.band-sage { background: var(--sage); }
.eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; }
h1, .h1 { font-family: var(--font-serif); font-size: clamp(40px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.03em; font-weight: 400; }
h2, .h2 { font-family: var(--font-serif); font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 400; }
h3, .h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 42ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.caption { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: 0; min-height: 40px; gap: 6px; }
.btn-ghost::after { content: "→"; transition: transform 0.2s var(--ease); }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn-on-dark { background: var(--white); color: var(--ink); }
.btn-on-dark:hover { background: var(--paper); }
.btn-outline-light { border: 1px solid rgba(243,240,232,0.45); color: var(--on-inverse); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* Announce + header */
.announce {
  height: var(--announce-h); background: var(--accent); color: #fffaf3;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 28px;
}
.announce span { opacity: 0.95; position: relative; }
.announce span + span::before {
  content: ""; position: absolute; left: -16px; top: 50%; width: 4px; height: 4px;
  border-radius: 50%; background: rgba(255,250,243,0.7); transform: translateY(-50%);
}
.header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h); background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 96%, transparent); }
.nav {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; height: 100%;
  font-size: 17px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
}
.logo em { font-style: normal; color: var(--accent); }
.nav-center {
  display: flex; align-items: stretch; justify-content: center; gap: 2px; height: 100%;
}
.nav-link {
  display: inline-flex; align-items: center; height: 100%;
  padding: 0 16px; font-size: 14px; font-weight: 500; line-height: 1;
  color: var(--ink-2); position: relative;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent); }
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transform-origin: center; transition: transform 0.2s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; height: 100%; gap: 4px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); }
.menu-toggle { display: none; }

/* Mega */
.shop-wrap { position: relative; display: flex; align-items: stretch; height: 100%; }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: min(760px, 80vw); background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 24px; display: none;
  box-shadow: 0 20px 50px rgba(28, 51, 68, 0.12);
}
.shop-wrap:hover .mega, .shop-wrap:focus-within .mega { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.mega a { padding: 12px; border-radius: var(--radius); }
.mega a:hover { background: var(--accent-soft); }
.mega strong { display: block; font-size: 14px; margin-bottom: 4px; }
.mega span { font-size: 12px; color: var(--muted); }

/* Hero */
.hero { padding: 48px 0 24px; }
.hero-grid {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: center; min-height: 68vh;
}
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede { margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual {
  background: var(--paper-2); border-radius: 2px; overflow: hidden; aspect-ratio: 5/4;
  position: relative;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute; left: 16px; bottom: 16px; background: var(--accent); color: #fffaf3;
  padding: 10px 14px; font-size: 12px; letter-spacing: 0.04em; font-weight: 600;
}

/* Trust */
.trust { background: var(--sage); border-block: 0; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 32px 0;
}
.trust-item { text-align: center; padding: 8px; }
.trust-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.trust-item span { font-size: 13px; color: var(--sage-deep); }
.trust-item:nth-child(1) strong { color: var(--navy); }
.trust-item:nth-child(2) strong { color: var(--sage-deep); }
.trust-item:nth-child(3) strong { color: var(--accent); }
.trust-item:nth-child(4) strong { color: var(--navy); }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  display: block; background: var(--paper-2); overflow: hidden; position: relative;
  min-height: 340px;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; transition: transform 0.6s var(--ease); }
.cat-card:hover img { transform: scale(1.04); }
.cat-meta {
  position: absolute; inset: auto 0 0 0; padding: 20px;
  background: linear-gradient(transparent, rgba(20,18,16,0.62));
  color: var(--white);
}
.cat-meta strong { display: block; font-size: 22px; font-family: var(--font-serif); margin-bottom: 4px; }
.cat-meta span { font-size: 13px; opacity: 0.86; }

/* Products */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.prod-card .btn { margin-top: auto; width: 100%; }
.prod-media {
  background: var(--paper-2); aspect-ratio: 1; overflow: hidden; position: relative; margin-bottom: 14px;
}
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.prod-card:hover .prod-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fffaf3;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; font-weight: 600;
}
.prod-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.prod-benefit { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.prod-price { font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.compare { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.stars { font-size: 12px; color: var(--gold); margin-bottom: 6px; letter-spacing: 0.08em; }
.prod-card .prod-price { margin-bottom: 12px; }

/* Story */
.story {
  display: grid; grid-template-columns: 1.15fr 0.85fr; min-height: 680px; background: var(--inverse); color: var(--on-inverse);
  align-items: stretch;
}
.story-visual { overflow: hidden; position: relative; min-height: 520px; }
.story-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-copy { padding: 72px 56px; display: flex; flex-direction: column; justify-content: center; }
.story-copy .eyebrow { color: #e8a078; }
.story-copy h2 { margin: 16px 0 18px; }
.story-copy p { color: var(--on-inverse-muted); max-width: 42ch; margin-bottom: 28px; }
.benefits { display: grid; gap: 14px; margin-bottom: 32px; }
.benefits li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; }
.benefits li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; }

/* Before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; }
.ba-col { padding: 72px 48px; }
.ba-col:first-child { background: var(--sand); }
.ba-col:last-child { background: var(--navy); color: var(--on-inverse); }
.ba-col:last-child .eyebrow { color: #e8a078; }
.ba-col:first-child .eyebrow { color: var(--accent-hover); }
.ba-list { margin-top: 28px; display: grid; gap: 16px; }
.ba-list li { font-size: 20px; font-family: var(--font-serif); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ba-col:last-child .ba-list li { border-bottom-color: rgba(243,240,232,0.14); }

/* Use cases */
.use-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 12px; }
.use-card { position: relative; overflow: hidden; background: var(--paper-2); min-height: 220px; }
.use-card img { width: 100%; height: 100%; object-fit: cover; }
.use-card.wide { grid-row: 1 / span 2; }
.use-label {
  position: absolute; left: 16px; bottom: 16px; color: var(--white);
  font-family: var(--font-serif); font-size: 28px;
  text-shadow: 0 8px 24px rgba(0,0,0,0.4);
  background: var(--accent); padding: 6px 12px;
}

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { background: var(--white); padding: 28px; border: 1px solid var(--line); min-height: 180px; border-top: 3px solid var(--accent); }
.why-card:nth-child(2), .why-card:nth-child(5) { border-top-color: var(--sage-deep); }
.why-card:nth-child(3), .why-card:nth-child(6) { border-top-color: var(--navy); }
.why-card h3 { margin: 12px 0 8px; }
.why-card .eyebrow { color: var(--accent); }

/* Finder */
.finder { background: transparent; border: 0; padding: 0; }
.finder-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.finder-opt {
  border: 1px solid transparent; padding: 22px 18px; text-align: left; border-radius: var(--radius);
  min-height: 120px; background: var(--white);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.finder-opt:nth-child(1) { border-top: 3px solid var(--accent); }
.finder-opt:nth-child(2) { border-top: 3px solid var(--navy); }
.finder-opt:nth-child(3) { border-top: 3px solid var(--sage-deep); }
.finder-opt:nth-child(4) { border-top: 3px solid var(--gold); }
.finder-opt:hover, .finder-opt:focus { background: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28,51,68,0.08); }
.finder-opt strong { display: block; margin-bottom: 6px; }
.finder-opt span { font-size: 13px; color: var(--muted); }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
  background: var(--white); padding: 28px; border: 1px solid var(--line); min-height: 260px;
  display: flex; flex-direction: column; border-left: 3px solid var(--gold);
}
.review p { font-size: 16px; line-height: 1.5; margin: 12px 0 20px; flex: 1; }
.review footer { font-size: 13px; color: var(--muted); }
.review footer strong { color: var(--ink); display: block; }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide-card { display: block; }
.guide-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--paper-2); margin-bottom: 14px; }
.guide-card h3 { font-size: 18px; font-family: var(--font-serif); margin-bottom: 6px; }

/* CTA */
.final-cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy);
  color: var(--on-inverse); padding: 120px 0; text-align: center;
}
.final-cta-bg { position: absolute; inset: 0; z-index: 0; }
.final-cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.final-cta-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 40, 51, 0.55) 0%, rgba(21, 40, 51, 0.72) 45%, rgba(28, 20, 16, 0.82) 100%),
    linear-gradient(90deg, rgba(196, 92, 38, 0.22), transparent 55%);
}
.final-cta .wrap { position: relative; z-index: 1; }
.final-cta .eyebrow { color: #e8a078; }
.final-cta h2 { margin: 12px auto 16px; max-width: 16ch; color: #fffaf3; }
.final-cta p { color: rgba(246, 239, 228, 0.86); margin: 0 auto 28px; max-width: 46ch; }
.final-cta .hero-ctas { justify-content: center; }

/* Footer */
.footer { background: var(--inverse-2); color: var(--on-inverse); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h3 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-inverse-muted); margin-bottom: 16px; }
.footer a { display: block; font-size: 14px; color: var(--on-inverse); padding: 5px 0; opacity: 0.86; }
.footer a:hover { opacity: 1; }
.footer-brand p { color: var(--on-inverse-muted); font-size: 14px; max-width: 28ch; margin-top: 12px; }
.news { display: flex; gap: 0; margin-top: 12px; }
.news input {
  flex: 1; min-height: 44px; padding: 0 12px; background: transparent;
  border: 1px solid rgba(243,240,232,0.22); color: var(--white);
}
.news button { min-height: 44px; padding: 0 14px; background: var(--accent); color: #fffaf3; font-size: 13px; font-weight: 600; }
.footer-base {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(243,240,232,0.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--on-inverse-muted);
}
.footer-base a { display: inline; padding: 0; margin-right: 14px; }

/* Page hero (inner) */
.page-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.page-hero h1 { max-width: 16ch; margin-bottom: 16px; }
.page-hero .lede { max-width: 58ch; }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 16px; }
.prose h2 { margin: 36px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 18px; }
.prose li { margin: 6px 0; list-style: disc; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

.spec { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0 28px; }
.spec th, .spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec th { color: var(--muted); font-weight: 500; width: 38%; }

.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; padding: 40px 0 72px; align-items: start; }
.pdp-media { background: var(--paper-2); aspect-ratio: 1; overflow: hidden; position: sticky; top: calc(var(--header-h) + 16px); }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-buy .eyebrow { margin-bottom: 10px; }
.pdp-buy h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.price-row { font-size: 22px; margin: 16px 0; display: flex; gap: 10px; align-items: baseline; }
.stock { font-size: 13px; color: var(--success); margin-bottom: 20px; }
.compat { background: var(--white); border: 1px solid var(--line); padding: 18px; margin: 24px 0; font-size: 14px; }
.compat strong { display: block; margin-bottom: 6px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 28px; }
.chip {
  border: 1px solid var(--line); padding: 8px 12px; font-size: 13px; border-radius: 999px; background: transparent;
}
.chip.is-on, .chip:hover { border-color: var(--accent); background: var(--accent); color: var(--white); }

.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--paper); z-index: 50; padding: 24px;
  overflow: auto;
}
.mobile-nav .logo em { color: var(--accent); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.mobile-nav .close { position: absolute; top: 16px; right: 16px; }

.reveal { animation: rise 0.7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .prod-media img, .cat-card img { animation: none; transition: none; }
}

@media (max-width: 1024px) {
  .hero-grid, .story, .pdp, .ba { grid-template-columns: 1fr; }
  .prod-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .reviews-grid, .guide-grid, .finder-options { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .use-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .use-card.wide { grid-row: auto; min-height: 280px; }
  .story-copy { padding: 48px 24px; }
  .pdp-media { position: static; }
  .nav-center { display: none; }
  .menu-toggle { display: grid; }
  .announce span:nth-child(n+3) { display: none; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .section { padding: 64px 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid, .cat-grid, .why-grid, .reviews-grid, .guide-grid, .finder-options, .footer-grid, .use-grid, .ba { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-grid { min-height: 0; gap: 24px; }
  .hero-visual { aspect-ratio: 4/3; }
  .cat-card, .cat-card img { min-height: 260px; }
  .finder, .ba-col { padding: 28px 20px; }
  .final-cta { padding: 88px 0; }
  .final-cta-bg img { object-position: center; }
  .prod-scroll { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .prod-scroll .prod-card { min-width: 72%; scroll-snap-align: start; }
}

@media (min-width: 1440px) {
  :root { --max: 1280px; }
}
