/* ─────────────────────────────────────────────────────────────────
   LOT | 23 — Canonical stylesheet
   Source: github.com/guibalito/lot23-roaster-lab @ commit 308dfb1
   Extracted verbatim from the <style> block in every client/*.html.
   Do NOT modify tokens, layout rules, or component classes without
   explicit approval from David. This file IS the brand visual.
─────────────────────────────────────────────────────────────────── */

:root {
  --bg: #f8f5f2;
  --bg-alt: #f1f1f0;
  --ink: #1d1d1b;
  --body: #4a4540;
  --line-12: rgba(29, 29, 27, 0.12);
  --line-18: rgba(29, 29, 27, 0.18);
  --line-28: rgba(29, 29, 27, 0.28);
  --soft: rgba(241, 241, 240, 0.72);
  --max: 1360px;
  --f-display: Avenir, "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
main { padding-top: 104px; }

.container { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; }

/* HEADER */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 104px; background: transparent;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header.is-hidden { transform: translateY(-100%); opacity: 0; }
.site-header--home { background: transparent; }
.header-shell {
  height: 100%; display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 18px;
}
.nav-group { display: flex; align-items: center; gap: 14px; min-width: 0; flex-wrap: wrap; }
.nav-right { justify-content: flex-end; }
.nav-link {
  font-family: var(--f-display); font-size: 11.2px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  opacity: 0.74; transition: opacity 0.35s ease, color 0.35s ease;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-current { opacity: 1; }
.header-logo { width: 106px; height: auto; }

.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-18); background: transparent; color: var(--ink);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}
.icon-button:hover, .icon-button:focus-visible {
  background: var(--ink); color: var(--bg-alt); border-color: var(--ink);
}

.cart-button, .auth-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0; border: 0; background: transparent; color: var(--ink);
  font-family: var(--f-display); font-size: 11.2px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  opacity: 0.74; transition: opacity 0.35s ease, color 0.35s ease;
}
.cart-button:hover, .cart-button:focus-visible, .auth-button:hover, .auth-button:focus-visible { opacity: 1; }
.cart-button svg { width: 15px; height: 15px; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: auto; height: auto; padding: 0; border: 0;
  font-family: var(--f-display); font-size: 10px; font-weight: 400; letter-spacing: 0.16em;
}

/* MODAL */
.modal-root {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.modal-root.is-open { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(9, 9, 8, 0.42); backdrop-filter: blur(8px); }
.modal-panel {
  position: relative; width: min(520px, calc(100vw - 32px)); padding: 28px;
  border: 1px solid var(--line-18); background: var(--bg);
  box-shadow: 0 32px 120px rgba(9, 9, 8, 0.12);
  transform: translateY(22px); transition: transform 0.35s ease;
}
.modal-root.is-open .modal-panel { transform: translateY(0); }
.auth-tabs { margin: 10px 0 6px; }
.auth-pane { display: none; }
.auth-pane.is-active { display: flex; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* SECTIONS */
.page { padding-bottom: 72px; }
.section { padding: 72px 0; border-bottom: 1px solid var(--line-12); }
.section-tight { padding: 48px 0; }
section[id], main[id] { scroll-margin-top: 132px; }
.section-dark { background: var(--ink); color: var(--bg); }

/* TYPE PRIMITIVES */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
}
.kicker-tag {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 18px;
  border: 1px solid var(--line-12); background: rgba(255,255,255,.34);
  font-family: var(--f-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; transform: rotate(-3deg);
}
.display, .paired-statement {
  margin: 0; font-family: var(--f-display);
  font-size: clamp(3.8rem, 8vw, 6.2rem); font-weight: 800;
  letter-spacing: -0.06em; line-height: 0.9;
}
.paired-statement.compact { font-size: clamp(3.2rem, 6vw, 5.2rem); }
.lead, .body-copy, .copy {
  margin: 0; max-width: 48rem; color: var(--body);
  font-size: 18px; line-height: 1.72;
}
.copy.small, .meta-copy { font-size: 15px; line-height: 1.7; }

/* MEDIA */
.hero-frame, .full-bleed-image, .media-card {
  position: relative; overflow: hidden; border: 1px solid var(--line-12); background: #ece7e1;
}
.hero-frame img, .full-bleed-image img, .media-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-frame { aspect-ratio: 16 / 8.5; }
.hero-caption {
  display: flex; justify-content: space-between; gap: 18px; padding: 16px 18px 0;
  font-family: var(--f-display); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(29,29,27,.58);
}

/* GRIDS */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-text-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px; align-items: end;
}
.stack { display: grid; gap: 24px; }
.stack-tight { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.row-between {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
}
.stat-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px; border-top: 1px solid var(--line-12); padding-top: 24px;
}
.stat-value { margin-top: 8px; font-size: 18px; color: var(--body); }

/* CONTROLS */
.btn, .chip, .input, .stepper-btn {
  min-height: 52px; border-radius: 0;
  border: 1px solid var(--ink); background: var(--bg-alt); color: var(--ink);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px; padding: 0 22px;
  font-family: var(--f-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn.secondary { background: transparent; border-color: var(--line-18); }
.btn.dark { background: var(--ink); color: var(--bg-alt); border-color: var(--ink); }
.btn:not(.dark):hover, .btn:not(.dark):focus-visible,
.btn.secondary:hover, .btn.secondary:focus-visible,
.chip:not(.active):not(.invert):hover, .chip:not(.active):not(.invert):focus-visible {
  background: var(--ink); color: var(--bg-alt); border-color: var(--ink);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; min-height: 42px;
  font-family: var(--f-display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; border-color: var(--line-18);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.home-filter-row .chip { min-height: 52px; padding: 0 22px; font-size: 12px; letter-spacing: 0.22em; }
.chip.active, .chip.invert { background: var(--ink); color: rgba(241,241,240,.72); border-color: var(--ink); }
.product-card.dark .chip:not(.active):not(.invert) { color: rgba(241,241,240,.72); border-color: rgba(241,241,240,.24); }
.product-card.dark .chip:not(.active):not(.invert):hover,
.product-card.dark .chip:not(.active):not(.invert):focus-visible {
  background: var(--bg-alt); color: var(--ink); border-color: var(--bg-alt);
}

/* MARQUEE */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line-12); border-bottom: 1px solid var(--line-12);
  background: var(--ink); color: var(--bg-alt);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 32px; padding: 16px 0; min-width: 100%;
  font-family: var(--f-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  animation: marquee 28s linear infinite;
}
.marquee-track span::after { content: '·'; margin-left: 32px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* CARDS */
.dark-card, .product-card, .plan-card, .info-card, .article-card, .simple-card, .account-card {
  border: 1px solid var(--line-12); background: rgba(255,255,255,.32);
}
.dark-card, .product-card.dark {
  background: var(--ink); color: var(--bg-alt); border-color: rgba(241,241,240,.16);
}
.product-card, .plan-card, .info-card, .article-card, .simple-card, .account-card { padding: 28px; }
.product-title, .card-title, .quote-mark, .mini-display {
  margin: 0; font-family: var(--f-display); letter-spacing: -0.05em;
}
.product-title, .card-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 0.95; }
.home-product-card .product-title { line-height: 1.08; }
.home-product-card { position: relative; }
.home-product-card > .row-between:first-child { padding-right: 96px; align-items: flex-start; }
.home-product-card > .row-between:first-child > [data-home-badge] { position: absolute; top: 28px; right: 28px; margin: 0; }
.mini-display { font-size: 2rem; line-height: 0.95; }

/* META / SPEC LISTS */
.meta-list, .spec-grid { display: grid; gap: 14px; }
.meta-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.meta-item, .spec-item { border-top: 1px solid var(--line-12); padding-top: 12px; }
.spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.meta-label, .spec-label, .price-label {
  display: block; margin-bottom: 8px;
  font-family: var(--f-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(74,69,64,.8);
}
.dark-card .meta-label, .product-card.dark .meta-label,
.dark-card .spec-label, .product-card.dark .spec-label,
.dark-card .price-label, .product-card.dark .price-label { color: rgba(241,241,240,.48); }
.meta-value, .spec-value, .price-line { color: inherit; font-size: 16px; line-height: 1.6; }
.price-line { font-family: var(--f-display); font-size: 1.55rem; letter-spacing: -0.05em; }

/* BUY PANEL */
.buy-panel {
  display: grid; gap: 18px; padding-top: 22px;
  border-top: 1px solid rgba(241,241,240,.14); align-content: start;
}
.home-drop-grid { align-items: start; }
.home-product-card { min-height: 612px; }
.home-panel-copy, .home-panel-note { min-height: 52px; }
.toggle-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  border: 1px solid rgba(241,241,240,.24);
}
.toggle-row .chip { width: 100%; min-height: 50px; border: 0; color: rgba(241,241,240,.54); }
.toggle-row .chip.active { background: var(--bg-alt); color: var(--ink); }

/* MOOD CAROUSEL */
.mood-wrap { display: grid; gap: 28px; }
.mood-carousel { display: grid; gap: 18px; }
.carousel-stage {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-12); background: #ece7e1;
  aspect-ratio: 16 / 9; max-height: 560px;
}
.carousel-track {
  display: flex; height: 100%;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide { position: relative; min-width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption {
  position: absolute; left: 22px; bottom: 22px; max-width: 360px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(248,245,242,.34); background: rgba(248,245,242,.82);
  backdrop-filter: blur(6px);
}
.visit-teaser {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px; align-items: center;
}

/* CART DRAWER */
.cart-overlay { position: fixed; inset: 0; z-index: 80; display: none; }
.cart-overlay.is-open { display: block; }
.cart-overlay-backdrop { position: absolute; inset: 0; background: rgba(29,29,27,.22); }
.cart-drawer {
  position: absolute; top: 18px; right: 18px;
  width: min(420px, calc(100% - 36px)); padding: 26px;
  border: 1px solid var(--line-18); background: var(--bg);
  display: grid; gap: 20px;
}
.cart-lines { display: grid; gap: 14px; }
.cart-line { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-12); }
.control-group { display: grid; gap: 12px; }

/* STEPPER */
.stepper {
  display: inline-grid; grid-template-columns: 50px 78px 50px; align-items: center;
  border: 1px solid var(--line-18);
}
.stepper-btn, .stepper-value {
  min-height: 50px; display: grid; place-items: center;
  background: transparent; border: 0;
}
.stepper-btn {
  font-family: var(--f-display); font-size: 24px; font-weight: 700; line-height: 1;
  cursor: pointer; transition: background-color 0.35s ease, color 0.35s ease;
}
.stepper-value {
  font-family: var(--f-display); font-size: 16px; font-weight: 700;
  border-left: 1px solid var(--line-18); border-right: 1px solid var(--line-18);
}
.product-card.dark .stepper { border-color: rgba(241,241,240,.24); }
.product-card.dark .stepper-btn, .product-card.dark .stepper-value { color: var(--bg-alt); }
.product-card.dark .stepper-value { border-left-color: rgba(241,241,240,.24); border-right-color: rgba(241,241,240,.24); }
.product-card.dark .stepper-btn:hover, .product-card.dark .stepper-btn:focus-visible {
  background: var(--bg-alt); color: var(--ink);
}

/* SPECIAL GRIDS */
.guide-grid, .tenet-grid, .post-grid, .related-grid, .legal-grid, .product-grid, .dashboard-grid {
  display: grid; gap: 20px;
}
.guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tenet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.number {
  font-family: var(--f-display); font-size: 1.2rem;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.placeholder-block {
  display: grid; place-items: center; min-height: 320px; padding: 28px;
  border: 1px dashed var(--line-28); color: rgba(74,69,64,.92);
  text-align: center; font-family: var(--f-display);
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}

/* ARTICLE */
.article-shell {
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(220px, 0.32fr);
  gap: 42px; align-items: start;
}
.article-prose {
  display: grid; gap: 22px; color: var(--body);
  font-size: 18px; line-height: 1.82;
}
.article-prose p { margin: 0; }
.article-prose blockquote {
  margin: 12px 0; padding-left: 22px; border-left: 2px solid var(--ink);
  font-family: var(--f-display); font-size: 1.4rem; line-height: 1.25;
  letter-spacing: -0.04em; color: var(--ink);
}

/* DATA LIST */
.data-list { display: grid; gap: 12px; padding: 0; margin: 0; }
.data-list div {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding-top: 12px; border-top: 1px solid var(--line-12);
}
.data-list dt {
  font-family: var(--f-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(74,69,64,.8);
}
.data-list dd { margin: 0; color: var(--body); }

/* FOOTER */
.footer { border-top: 1px solid var(--line-12); padding: 12px 0 8px; }
.footer-grid {
  display: grid; grid-template-columns: 0.82fr 0.95fr 1.08fr;
  gap: 10px 16px; align-items: center;
}
.footer-brand {
  display: grid; grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px; align-items: center;
}
.footer-column, .newsletter { gap: 4px; }
.footer-logo { width: 78px; margin-bottom: 0; }
.footer-brand .copy.small, .newsletter-copy { margin: 0; font-size: 13px; line-height: 1.35; }
.footer-title {
  margin: 0 0 4px;
  font-family: var(--f-display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.footer-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px; color: var(--body);
}
.newsletter { display: grid; gap: 4px; }
.newsletter-row {
  display: grid; grid-template-columns: minmax(0, 176px) 74px;
  gap: 6px; align-items: center;
}
.input {
  width: 100%; height: 38px; padding: 0 10px;
  background: transparent; border-color: var(--line-18);
}
.newsletter-row .btn { min-width: 74px; height: 38px; padding: 0 12px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 8px 14px; padding-top: 8px; margin-top: 8px;
  border-top: 1px solid var(--line-12); color: var(--body); font-size: 12px;
}
.footer-inline { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.mobile-only { display: none; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-text-grid, .article-shell, .grid-2, .footer-grid, .dashboard-grid,
  .product-grid, .guide-grid, .tenet-grid, .post-grid, .related-grid,
  .meta-list, .spec-grid { grid-template-columns: 1fr 1fr; }
  .article-shell, .hero-text-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-shell { gap: 12px; }
  .nav-group { gap: 10px; }
  .nav-link { font-size: 10.6px; letter-spacing: 0.17em; }
}

@media (max-width: 780px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .site-header { height: 88px; }
  main { padding-top: 88px; }
  .header-shell { grid-template-columns: 1fr auto 1fr; gap: 10px; }
  .nav-group { gap: 8px; flex-wrap: wrap; }
  .nav-link { font-size: 10px; letter-spacing: 0.14em; }
  .header-logo { width: 92px; }
  .section { padding: 56px 0; }
  .hero-frame { aspect-ratio: 4 / 5; }
  .hero-caption { padding-top: 12px; font-size: 11px; }
  .display, .paired-statement { font-size: clamp(3rem, 14vw, 5rem); }
  .grid-2, .grid-3, .grid-4, .stat-grid, .guide-grid, .tenet-grid, .post-grid,
  .related-grid, .product-grid, .meta-list, .spec-grid, .dashboard-grid,
  .visit-teaser, .footer-links, .newsletter-row { grid-template-columns: 1fr; }
  .carousel-caption { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .cart-drawer { top: 12px; right: 12px; width: calc(100% - 24px); }
  .data-list div { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-only { display: inline-flex; }
}

/* SELF-HOST AVENIR NEXT (paid license) + DM Sans (free) when files exist */
@font-face {
  font-family: 'Avenir Next';
  src: url('../fonts/AvenirNextLTPro-Heavy.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir Next';
  src: url('../fonts/AvenirNextLTPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir Next';
  src: url('../fonts/AvenirNextLTPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
/* DM Sans loaded via Google Fonts in header — no @font-face needed */

/* nav-group-li-fix */
.nav-group ul,
.nav-group li {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 0;
}
.nav-group ul {
  display: inline-flex;
  gap: 22px;
}
