/* ==========================================================================
   Solutions of Today | Design System
   Generated from ui-ux-pro-max:
     Product    No.73  Digital Products/Downloads
     Style      No.72  SaaS Mobile (High-Tech Boutique)  [translated to web]
     Typography No.12  Luxury Serif (Cormorant + Montserrat)
     Landing    No.22  Marketplace / Directory
     Colors     No.16  Productivity Tool (teal focus + action orange)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Colors No.16 - verbatim */
  --primary: #0D9488;
  --on-primary: #000000;
  --secondary: #14B8A6;
  --on-secondary: #0F172A;
  --accent: #EA580C;
  --on-accent: #000000;
  --bg: #F0FDFA;
  --fg: #134E4A;
  --card: #FFFFFF;
  --card-fg: #134E4A;
  --muted: #E8F1F4;
  --muted-fg: #475569;
  --border: #99F6E4;
  --destructive: #DC2626;
  --on-destructive: #FFFFFF;
  --ring: #0D9488;

  /* Derived surfaces */
  --card-2: #FBFEFE;
  --ink: #0B2E2A;
  --hairline: rgba(19, 78, 74, 0.10);
  --grad: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  --grad-accent: linear-gradient(135deg, #EA580C 0%, #F97316 100%);

  /* Style No.72 - radius + elevation */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(19, 78, 74, 0.05);
  --shadow-2: 0 4px 10px rgba(19, 78, 74, 0.10);
  --shadow-3: 0 12px 28px rgba(19, 78, 74, 0.14);

  /* Style No.72 - spring (mass 1, damping 15, stiffness 120) */
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 420ms;

  /* Typography No.12 + No.72 mono data labels */
  --font-display: "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --nav-h: 68px;
  --maxw: 1200px;
}

/* Dark palette.
   Declared twice on purpose: once for viewers whose OS is dark and who have made no
   explicit choice, once for viewers who picked dark with the toggle. The two blocks
   MUST stay in sync - change one, change the other. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #2DD4BF;
    --on-primary: #04211E;
    --secondary: #5EEAD4;
    --on-secondary: #04211E;
    --accent: #FB923C;
    --on-accent: #2A1004;
    --bg: #06100F;
    --fg: #E6FFFB;
    --card: #0E1C1B;
    --card-fg: #E6FFFB;
    --card-2: #122423;
    --muted: #16302E;
    --muted-fg: #9DBDB8;
    --border: #1E4340;
    --ink: #F0FDFA;
    --hairline: rgba(230, 255, 251, 0.10);
    --grad: linear-gradient(135deg, #0D9488 0%, #2DD4BF 100%);
    --grad-accent: linear-gradient(135deg, #EA580C 0%, #FB923C 100%);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 4px 10px rgba(0, 0, 0, 0.45);
    --shadow-3: 0 12px 28px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  --primary: #2DD4BF;
  --on-primary: #04211E;
  --secondary: #5EEAD4;
  --on-secondary: #04211E;
  --accent: #FB923C;
  --on-accent: #2A1004;
  --bg: #06100F;
  --fg: #E6FFFB;
  --card: #0E1C1B;
  --card-fg: #E6FFFB;
  --card-2: #122423;
  --muted: #16302E;
  --muted-fg: #9DBDB8;
  --border: #1E4340;
  --ink: #F0FDFA;
  --hairline: rgba(230, 255, 251, 0.10);
  --grad: linear-gradient(135deg, #0D9488 0%, #2DD4BF 100%);
  --grad-accent: linear-gradient(135deg, #EA580C 0%, #FB923C 100%);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 4px 10px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 12px 28px rgba(0, 0, 0, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* Blueprint texture - replaces the old sky/mountain scene */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 20%, transparent 78%);
}

/* ---------- Focus (never removed) ---------- */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  padding: var(--s-3) var(--s-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-3); }

.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;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-8) 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: 0; }
h4 { font-size: 1.1rem; letter-spacing: 0; }
p { margin: 0 0 var(--s-4); }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted-fg); max-width: 62ch; }
.serif-em { font-style: italic; color: var(--primary); }

/* Mono data label - Style No.72 */
.mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Section badge with pulsing dot - Style No.72 */
.badge-section {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 14px 6px 10px;
  margin-bottom: var(--s-4);
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted-fg);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  flex: none;
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--spring), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:active { transform: scale(0.96); }  /* No.72 press 0.96 */

.btn--primary {
  background: var(--grad);
  color: var(--on-primary);
  box-shadow: var(--shadow-2);
}
.btn--primary:hover { box-shadow: var(--shadow-3); }

/* Add to Cart uses the No.16 action orange */
.btn--cart {
  background: var(--grad-accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-2);
  width: 100%;
}
.btn--cart:hover { box-shadow: var(--shadow-3); }
.btn--cart[data-added="true"] {
  background: var(--primary);
  color: var(--on-primary);
}

.btn--ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--muted); border-color: var(--primary); }

.btn--quiet {
  background: transparent;
  color: var(--muted-fg);
  border-color: transparent;
  padding: 10px 12px;
}
.btn--quiet:hover { color: var(--ink); background: var(--muted); }

.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- Nav (glassmorphism - No.72) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.015em;
  flex: none;
}
.brand em { font-style: italic; color: var(--primary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: auto;
}
.nav__link {
  position: relative;
  /* shared by <a> and the <button> that opens the catalog panel */
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-fg);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--muted); }
.nav__link[aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

/* Catalog dropdown */
.nav__group { position: relative; }
.nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(560px, calc(100vw - 32px));
  padding: var(--s-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--spring), visibility var(--dur);
}
.nav__group[data-open="true"] .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__panel a {
  padding: var(--s-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.nav__panel a:hover { background: var(--muted); }
.nav__panel strong { display: block; font-size: 0.9rem; color: var(--ink); margin-bottom: 2px; }
.nav__panel span { font-size: 0.78rem; color: var(--muted-fg); line-height: 1.45; }

.nav__actions { display: flex; align-items: center; gap: var(--s-2); flex: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--muted-fg);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--spring);
}
.icon-btn:hover { background: var(--muted); color: var(--ink); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-count[data-n]:not([data-n="0"]) { display: inline-flex; }

.nav__toggle { display: none; }

/* ---------- Hero (search-first - Landing No.22) ---------- */
.hero { padding: var(--s-9) 0 var(--s-8); text-align: center; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lede { margin: 0 auto var(--s-6); text-align: center; }

.search {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
.search__field {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 6px 6px 6px var(--s-4);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-2);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search__field:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-3), 0 0 0 4px color-mix(in srgb, var(--ring) 18%, transparent);
}
.search__icon { width: 20px; height: 20px; color: var(--muted-fg); flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: none;
  background: none;
  outline: none;
  font-size: 1rem;
}
.search input::placeholder { color: var(--muted-fg); }

.search__results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  z-index: 60;
  max-height: 360px;
  overflow-y: auto;
  padding: var(--s-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
}
.search__results[hidden] { display: none; }
.search__opt {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: var(--s-3);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.search__opt:hover, .search__opt[aria-selected="true"] { background: var(--muted); }
.search__opt .t { flex: 1; min-width: 0; }
.search__opt strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.search__opt span { font-size: 0.78rem; color: var(--muted-fg); }
.search__opt .price { color: var(--primary); font-weight: 600; }
.search__empty { padding: var(--s-4); color: var(--muted-fg); font-size: 0.9rem; }
.search__empty b { color: var(--ink); }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}
.stat span { color: var(--muted-fg); }

/* ---------- Bento category grid (No.73 secondary style) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  min-height: 210px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--dur) var(--spring), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--primary); }
.cat:hover::after { opacity: 0.04; }
.cat--wide { grid-column: span 2; flex-direction: row; align-items: center; gap: var(--s-6); min-height: 170px; }
.cat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  flex: none;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--primary);
}
.cat__icon svg { width: 26px; height: 26px; }
.cat__body { flex: 1; }
.cat h3 { margin-bottom: var(--s-2); }
.cat p { color: var(--muted-fg); font-size: 0.92rem; margin: 0; }
.cat__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-4);
  color: var(--muted-fg);
}
.cat__arrow { margin-left: auto; color: var(--primary); transition: transform var(--dur) var(--spring); }
.cat:hover .cat__arrow { transform: translateX(4px); }

/* ---------- Product cards (No.73) ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-4);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform var(--dur) var(--spring), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--primary); }

.card__top {
  position: relative;
  padding: var(--s-5) var(--s-5) 0;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.tag {
  padding: 4px 9px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted-fg);
}
.tag--new { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); border-color: var(--primary); }
.tag--fmt { background: transparent; color: var(--primary); }
.tag--soon {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border-color: var(--accent);
}

/* Legal / scope notice on a product card. Must stay legible, never fine print. */
.card__notice {
  margin: var(--s-4) var(--s-5) 0;
  padding: var(--s-3);
  background: var(--muted);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted-fg);
}

.card h3 { font-size: 1.3rem; margin-bottom: var(--s-2); }
.card__desc { font-size: 0.9rem; color: var(--muted-fg); margin: 0; }

.card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin: var(--s-4) var(--s-5) 0;
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border);
  color: var(--muted-fg);
}
.card__specs b { color: var(--ink); font-weight: 600; }

.card__foot {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: auto;
  padding: var(--s-5);
}
.price {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.price s { font-size: 0.85rem; font-weight: 400; color: var(--muted-fg); margin-right: 6px; }
.card__foot .btn { flex: 1; }

/* Rating. Renders only for products carrying real review data.
   Never colour alone: the numeric score and an aria-label carry the meaning. */
.rating { display: inline-flex; align-items: center; gap: 3px; color: var(--muted-fg); }
.rating .star { width: 13px; height: 13px; flex: none; color: var(--border); }
.rating .star--on { color: var(--accent); }
.rating b { margin-left: 4px; color: var(--ink); font-weight: 600; }

/* Stretched link: the whole card is one target, but the footer button sits above it. */
.card { position: relative; }
.card__link { text-decoration: none; color: inherit; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card__link:hover { color: var(--primary); }
.card__foot { position: relative; z-index: 2; }
.card:focus-within { border-color: var(--primary); box-shadow: var(--shadow-3); }

/* ---------- Product detail page ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--s-7);
  align-items: start;
}
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }

.pdp h1 { margin-bottom: var(--s-4); }
.pdp__h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-top: var(--s-7); }
.pdp__notice {
  margin: var(--s-5) 0 0;
  padding: var(--s-4);
  background: var(--muted);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--muted-fg);
}

.spec-list { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.spec-list li {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px dashed var(--border);
}
.spec-list li:last-child { border-bottom: none; }
.spec-list span { flex: 0 0 96px; color: var(--muted-fg); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 3px; }
.spec-list strong { color: var(--ink); font-weight: 600; font-size: 0.94rem; }

.pdp__buy { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 900px) { .pdp__buy { position: static; } }
.buy-card {
  padding: var(--s-6);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.buy-card__price { display: flex; align-items: baseline; gap: var(--s-3); }
.buy-card__price .price { font-size: 2.4rem; }
.buy-card__price .mono { color: var(--muted-fg); }
.buy-card__note { margin: var(--s-2) 0 var(--s-5); color: var(--muted-fg); }

/* Icon + text term list. Shared by the buy box and the custom build deposit card.
   Without the explicit svg size these inherit the viewBox and render enormous. */
.terms { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: var(--s-3); }
.terms li { display: flex; gap: var(--s-3); font-size: 0.9rem; color: var(--muted-fg); line-height: 1.5; }
.terms svg { width: 18px; height: 18px; flex: none; color: var(--primary); margin-top: 2px; }
.terms strong { color: var(--ink); }

/* ---------- Toolbar (filters + sort) ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) 0 var(--s-5);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--hairline);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  min-height: 38px;
  padding: 8px 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted-fg);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--spring);
}
.chip:hover { border-color: var(--primary); color: var(--ink); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  font-weight: 600;
}
.toolbar__right { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.select {
  min-height: 38px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
}
.result-count { color: var(--muted-fg); }

/* ---------- Empty state ---------- */
.empty {
  padding: var(--s-8) var(--s-5);
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty h3 { margin-bottom: var(--s-2); }
.empty p { color: var(--muted-fg); max-width: 46ch; margin-inline: auto; }

/* ---------- Cart drawer ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(4, 33, 30, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.scrim[data-open="true"] { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 150;
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--spring), visibility var(--dur-slow);
}
.drawer[data-open="true"] { transform: translateX(0); visibility: visible; }
.drawer__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-5);
  border-bottom: 1px solid var(--hairline);
}
.drawer__head h2 { margin: 0; font-size: 1.5rem; }
.drawer__head .icon-btn { margin-left: auto; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s-5); }
.drawer__foot { padding: var(--s-5); border-top: 1px solid var(--hairline); }

.line {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hairline);
}
.line:last-child { border-bottom: none; }
.line__t { flex: 1; min-width: 0; }
.line__t strong { display: block; font-size: 0.92rem; color: var(--ink); }
.line__t span { font-size: 0.78rem; color: var(--muted-fg); }
.line__p { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

.totals { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-4); }
.totals .price { font-size: 1.6rem; }
.note {
  margin-top: var(--s-3);
  font-size: 0.78rem;
  color: var(--muted-fg);
  text-align: center;
}

/* ---------- Trust strip (Landing No.22) ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}
.trust__item {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trust__item svg { width: 22px; height: 22px; color: var(--primary); flex: none; }
.trust__item strong { display: block; color: var(--ink); margin-bottom: 4px; }
.trust__item p { margin: 0; font-size: 0.86rem; color: var(--muted-fg); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); }
.step {
  padding: var(--s-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: var(--s-3);
  background: var(--grad);
  color: var(--on-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.step p { margin: 0; font-size: 0.9rem; color: var(--muted-fg); }

/* ---------- Motto as the hero headline ----------
   Two colour-coded keyword pairs: cause (teal) and effect (orange).
   Both sit at h1 size, so the 3:1 large-text contrast threshold applies, not 4.5:1. */
.hero__motto {
  max-width: 26ch;
  margin-inline: auto;
  line-height: 1.15;
  text-wrap: balance;
}
.hero__motto .kw {
  font-style: italic;
  white-space: nowrap;
}
.hero__motto .kw--cause  { color: var(--primary); }
.hero__motto .kw--effect { color: var(--accent); }

/* On narrow screens the manual line break fights the natural wrap. */
@media (max-width: 560px) {
  .hero__motto br { display: none; }
  .hero__motto { max-width: 16ch; }
}

/* ---------- Company motto (footer / inline) ---------- */
.motto {
  position: relative;
  display: inline-block;
  margin: 0 auto var(--s-5);
  padding: 0 var(--s-5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--primary);
}
/* Hairline rules either side, so the motto reads as a mark rather than a sentence. */
.motto::before,
.motto::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(16px, 4vw, 44px);
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.motto::before { left: calc(-1 * clamp(16px, 4vw, 44px)); }
.motto::after  { right: calc(-1 * clamp(16px, 4vw, 44px)); }

.footer__motto {
  margin-top: var(--s-3);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--primary);
}

/* ---------- CTA panel ----------
   Card surface with the same button set used everywhere else on the page,
   rather than a full-bleed gradient block with its own inverted button style. */
.cta-panel {
  padding: var(--s-8) var(--s-6);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  text-align: center;
}
.cta-panel h2 { margin-bottom: var(--s-3); }
.cta-panel .lede { margin: 0 auto var(--s-6); }
.cta-panel__actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: var(--s-9);
  padding: var(--s-8) 0 var(--s-6);
  border-top: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--muted) 45%, transparent);
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}
.footer h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: var(--s-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer a { color: var(--muted-fg); text-decoration: none; font-size: 0.9rem; }
.footer a:hover { color: var(--primary); text-decoration: underline; }
.footer__tag { color: var(--muted-fg); font-size: 0.9rem; max-width: 34ch; margin-top: var(--s-3); }
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
  color: var(--muted-fg);
}
.footer__bar .badges { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.footer__bar .tag { background: transparent; }

/* ---------- Developer mode ---------- */
.footer__dev {
  margin-left: var(--s-4);
  color: var(--muted-fg);
  text-decoration: none;
  opacity: 0.6;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer__dev:hover { opacity: 1; color: var(--primary); text-decoration: underline; }

.dev-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding: 12px var(--s-5);
  background: var(--ink);
  color: var(--bg);
  border-top: 2px solid var(--accent);
  font-size: 0.78rem;
}
.dev-bar .btn--ghost { background: transparent; color: var(--bg); border-color: currentColor; }
.dev-bar .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
/* Keep the fixed bar from covering page content. */
body[data-dev="true"] .footer { padding-bottom: var(--s-8); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-3);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--spring), visibility var(--dur);
}
.toast[data-show="true"] { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--secondary); flex: none; }

/* ---------- Prose (legal / about) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: var(--s-7); }
.prose h3 { font-size: 1.15rem; margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose h3 + p { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s-2); }
.prose a { color: var(--primary); }

/* ---------- Staggered entrance (No.72) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal[data-in="true"] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--spring);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-3);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--spring), visibility var(--dur);
  }
  .nav__links[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link { padding: 14px 12px; font-size: 1rem; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__panel {
    position: static;
    transform: none;
    width: auto;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: var(--muted);
    margin-bottom: var(--s-2);
  }
  .nav__group[data-open="false"] .nav__panel { display: none; }
}
@media (max-width: 720px) {
  :root { --s-9: 64px; --s-8: 48px; }
  .bento { grid-template-columns: 1fr; }
  .cat--wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .hero__stats { gap: var(--s-5); }
  .footer__cols { grid-template-columns: 1fr; }
  .card__foot { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  /* 4 stats wrap 3+1 in a flex row at phone widths; a 2x2 grid reads better */
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}
@media (max-width: 420px) {
  .wrap { padding: 0 var(--s-4); }
  .toolbar__right { margin-left: 0; width: 100%; }
}

/* ---------- Reduced motion (a11y rule: present final state) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .pulse-dot::after { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .drawer, .scrim, .toast, .toolbar, body::before { display: none !important; }
  body { background: #fff; color: #000; }
}
