/* === Critical Hit Hot Sauce Co. — modern-01-flame ===
   Keep colors resolvable — any per-channel mix is expressed as
   rgba(var(--X-rgb), alpha) using the *-rgb tuples defined per theme below. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --radius:        12px;
  --radius-lg:     18px;
  --radius-pill:   999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  --container-max: 1200px;
  --container-pad: 32px;

  --t-fast: 160ms;
  --t-med:  240ms;
}

/* === Light theme === */
html[data-theme="light"] {
  --brand:           #C8312B;
  --brand-hover:     #A8231F;
  --brand-soft:      #FCEBE9;
  --brand-on:        #FFFFFF;

  --accent:          #E8732C;
  --accent-soft:     #FDE8D8;
  --gold:            #D4A534;
  --gold-soft:       #F8EBC9;

  --text-primary:    #1A0F0D;
  --text-secondary:  #5A4A45;
  --text-muted:      #998A85;

  --bg:              #FBF7F3;
  --bg-alt:          #F4ECE3;
  --bg-raised:       #FFFFFF;
  --bg-elevated:     #FFFFFF;

  --border:          #E5DACF;
  --border-strong:   #CFC0B2;

  /* RGB tuples for rgba() composition (no color-mix) */
  --brand-rgb:       200, 49, 43;
  --gold-rgb:        212, 165, 52;
  --accent-rgb:      232, 115, 44;
  --text-muted-rgb:  153, 138, 133;
  --bg-rgb:          251, 247, 243;
  --brand-on-rgb:    255, 255, 255;

  --accent-glow:     rgba(232, 115, 44, 0.18);
  --accent-glow-2:   rgba(200, 49, 43, 0.12);
  --shadow-sm:       0 1px 2px rgba(60, 20, 10, 0.05);
  --shadow-md:       0 4px 24px rgba(60, 20, 10, 0.07);
  --shadow-lg:       0 12px 48px rgba(60, 20, 10, 0.10);

  color-scheme: light;
}

/* === Dark theme === */
html[data-theme="dark"] {
  --brand:           #E84B45;
  --brand-hover:     #FF6760;
  --brand-soft:      rgba(232, 75, 69, 0.14);
  --brand-on:        #160806;

  --accent:          #F08A3A;
  --accent-soft:     rgba(240, 138, 58, 0.14);
  --gold:            #E5BD5A;
  --gold-soft:       rgba(229, 189, 90, 0.14);

  --text-primary:    #F4E4C9;
  --text-secondary:  #B6A38C;
  --text-muted:      #756857;

  --bg:              #0F0908;
  --bg-alt:          #14100E;
  --bg-raised:       #1A1311;
  --bg-elevated:     #221917;

  --border:          rgba(244, 228, 201, 0.08);
  --border-strong:   rgba(244, 228, 201, 0.18);

  /* RGB tuples for rgba() composition (no color-mix) */
  --brand-rgb:       232, 75, 69;
  --gold-rgb:        229, 189, 90;
  --accent-rgb:      240, 138, 58;
  --text-muted-rgb:  117, 104, 87;
  --bg-rgb:          15, 9, 8;
  --brand-on-rgb:    22, 8, 6;

  --accent-glow:     rgba(232, 75, 69, 0.32);
  --accent-glow-2:   rgba(240, 138, 58, 0.22);
  --shadow-sm:       0 1px 2px rgba(0,0,0,0.40);
  --shadow-md:       0 4px 24px rgba(0,0,0,0.45);
  --shadow-lg:       0 18px 60px rgba(0,0,0,0.55);

  color-scheme: dark;
}

html, body { background: var(--bg); color: var(--text-primary); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body { line-height: 1.55; min-height: 100vh; transition: background var(--t-med) ease, color var(--t-med) ease; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { display: block; max-width: 100%; }

::selection { background: var(--brand); color: var(--brand-on); }

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

/* === Container === */
.site-nav,
main > section,
.site-footer > div {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* === Image placeholder convention === */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background:
    repeating-linear-gradient(135deg,
      transparent 0 12px,
      rgba(var(--text-muted-rgb), 0.06) 12px 13px),
    var(--bg-alt);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 120px;
}

/* === Nav === */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--bg-rgb), 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease;
}
.site-nav.scrolled { border-bottom-color: var(--border); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.05;
}
.brand-name { display: inline-flex; flex-direction: column; }
.brand-name-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.logo-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
  position: relative;
  overflow: hidden;
}
.logo-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 55%);
}
.logo-mark-inner {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-on);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

/* Wordmark logo (replaces logo-mark + brand-name when used) */
.brand-logo { gap: 0; }
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-img-footer { height: 56px; }
/* Logo PNG is black; invert in dark theme so it shows on dark bg */
html[data-theme="dark"] .logo-img {
  filter: invert(1) brightness(1.05);
}
@media (max-width: 540px) {
  .logo-img        { height: 36px; }
  .logo-img-footer { height: 48px; }
}

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--t-fast) ease;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-tools { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) ease;
}
.theme-toggle:hover { background: var(--bg-elevated); border-color: var(--border-strong); }
.theme-toggle:active { transform: scale(0.96); }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="dark"]  .theme-toggle .icon-sun  { display: none; }
html[data-theme="dark"]  .theme-toggle .icon-moon { display: block; }

/* === Hero === */
.hero {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -10% -10% 0 -10%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 50% 18%, var(--accent-glow), transparent 65%),
    radial-gradient(ellipse 35% 30% at 70% 30%, var(--accent-glow-2), transparent 70%),
    radial-gradient(ellipse 30% 28% at 30% 35%, var(--accent-glow-2), transparent 70%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.22);
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.02;
  max-width: 920px;
  margin: 0 auto 24px;
}
.hero h1 em {
  font-style: normal;
  /* Solid color fallback for html2canvas screenshots (bg-clip:text doesn't render). */
  color: var(--brand);
  background: linear-gradient(100deg, var(--brand) 0%, var(--accent) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 64px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t-fast) ease, transform var(--t-fast) ease,
              border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: var(--brand-on);
  box-shadow: 0 8px 24px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-ghost {
  background: var(--bg-raised);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--border-strong); }
.btn-on-cta {
  background: var(--brand-on);
  color: var(--brand);
}
.btn-on-cta:hover { transform: translateY(-1px); }
.btn-on-cta:disabled { opacity: 0.7; cursor: default; transform: none; }

/* === Hero visual === */
.hero-visual {
  max-width: 880px;
  margin: 0 auto;
}
.hero-placeholder {
  min-height: 320px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 16px,
      rgba(var(--text-muted-rgb), 0.06) 16px 17px),
    radial-gradient(ellipse 60% 80% at 50% 50%, var(--accent-soft), transparent 70%),
    var(--bg-alt);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* === Section primitives === */
.section { padding-top: 104px; padding-bottom: 104px; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 12px;
}
.section-eyebrow.on-cta { color: var(--brand-on); opacity: 0.85; }

.section-title {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.1;
  max-width: 760px;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 56px;
  line-height: 1.65;
}

/* === Lineup grid === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color var(--t-fast) ease,
              transform var(--t-fast) ease,
              box-shadow var(--t-fast) ease;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--gold));
  opacity: 0;
  transition: opacity var(--t-fast) ease;
}
.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.product-card:hover::before { opacity: 1; }

.product-card.is-featured {
  border-color: rgba(var(--brand-rgb), 0.50);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.30),
              var(--shadow-md);
}
.product-card.is-featured::before { opacity: 1; }

.product-img {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 60%, var(--accent-soft), transparent 70%),
    var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.product-img img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
  transition: transform 240ms ease;
}
.product-card:hover .product-img img { transform: translateY(-3px) scale(1.02); }

/* Enraged Barbarian — same character, dialed up: extra red glow + a subtle hue shift */
.product-img.is-enraged {
  background:
    radial-gradient(ellipse 70% 90% at 50% 60%, rgba(var(--brand-rgb), 0.30), transparent 65%),
    var(--bg-alt);
}
.product-img.is-enraged img {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)) drop-shadow(0 0 18px rgba(var(--brand-rgb), 0.55)) saturate(1.15);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--text-primary);
}
/* Heat tags: uniform dark pill, heat color is the text/border */
.product-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  background: var(--bg-elevated);
  color: var(--brand);
  border: 1px solid rgba(var(--text-muted-rgb), 0.35);
}
/* Per-tier color + matching 35%-alpha border (color-mix(currentColor) replaced
   with explicit rgba per tier so html2canvas can resolve it). */
.product-tag.tag-mildest { color: var(--gold);    border-color: rgba(var(--gold-rgb), 0.35); }
.product-tag.tag-mild    { color: #F0B83A;        border-color: rgba(240, 184, 58, 0.35); }
.product-tag.tag-med     { color: var(--accent);  border-color: rgba(var(--accent-rgb), 0.35); }
.product-tag.tag-hot     { color: #E26A38;        border-color: rgba(226, 106, 56, 0.35); }
.product-tag.tag-xhot    { color: var(--brand);   border-color: rgba(var(--brand-rgb), 0.35); }
.product-tag.tag-endgame { color: #C8312B;        border-color: rgba(200, 49, 43, 0.35); }

.product-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.product-pepper {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Heat pip indicator (lineup card row) */
.heat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 6px;
}
.heat-pips {
  font-size: 16px;
  letter-spacing: 1.5px;
  line-height: 1;
  white-space: nowrap;
}
.heat-pips .filled { color: var(--brand); }
.heat-pips .empty  { color: var(--border-strong); }
.heat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
/* Per-tier escalation: lighter (Druid) -> angrier (Wizard) */
.product-card[data-heat="mildest"] .heat-pips .filled { color: var(--gold); }
.product-card[data-heat="mild"]    .heat-pips .filled { color: #F0B83A; }
.product-card[data-heat="med"]     .heat-pips .filled { color: var(--accent); }
.product-card[data-heat="hot"]     .heat-pips .filled { color: #E26A38; }
.product-card[data-heat="xhot"]    .heat-pips .filled { color: var(--brand); }
.product-card[data-heat="endgame"] .heat-pips .filled { color: #C8312B; }

.products-foot {
  margin-top: 56px;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 640px;
}
.inline-link {
  color: var(--brand);
  font-weight: 600;
  border-bottom: 1px solid rgba(var(--brand-rgb), 0.35);
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.inline-link:hover {
  color: var(--brand-hover);
  border-bottom-color: var(--brand-hover);
}

/* === Thesis / About === */
.thesis-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}
.thesis-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 620px;
}
.thesis-list li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 22px;
  border-left: 2px solid var(--brand);
}
.thesis-list strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.thesis-aside {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.thesis-aside::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.metric { position: relative; }
.metric-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1;
}
.metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 8px;
}

/* === CTA === */
.cta {
  max-width: var(--container-max);
  margin: 64px auto 96px;
  padding: 0 var(--container-pad);
}
.cta-inner {
  background: linear-gradient(135deg, var(--brand) 0%, #B8281F 50%, var(--accent) 100%);
  color: var(--brand-on);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(255,220,140,0.30), transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 80%, rgba(255,150,80,0.30), transparent 60%);
  pointer-events: none;
}
.cta-inner > * { position: relative; }
.cta-inner h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.cta-sub {
  color: rgba(var(--brand-on-rgb), 0.88);
  margin: 0 auto 32px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
}

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}
.signup input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--brand-on-rgb), 0.35);
  background: rgba(var(--brand-on-rgb), 0.10);
  color: var(--brand-on);
  font-size: 15px;
  font-family: inherit;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease;
}
.signup input[type="email"]::placeholder {
  color: rgba(var(--brand-on-rgb), 0.60);
}
.signup input[type="email"]:focus {
  background: rgba(var(--brand-on-rgb), 0.16);
  border-color: var(--brand-on);
  outline: none;
}
.signup input[type="email"]:disabled { opacity: 0.7; }

.cta-foot {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(var(--brand-on-rgb), 0.75);
}

/* === Order === */
.order { padding-top: 96px; padding-bottom: 96px; }

.order-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 880px;
}

.order-fieldset {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 12px;
  position: relative;
}

.order-legend {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  background: var(--bg-raised);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin-left: -2px;
}

.order-line-head {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 110px 110px;
  gap: 12px 28px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.order-line-head .head-info,
.order-line-head .head-qty {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.order-line-head .head-qty { text-align: center; }

.order-line {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 110px 110px;
  gap: 14px 28px;
  align-items: end;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.order-line:last-child { border-bottom: 0; }

.order-line-info {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px 14px;
}

.order-line-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* Order-line heat tags: uniform dark pill + heat color, matches lineup */
.order-line-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  background: var(--bg-elevated);
  color: var(--brand);
  border: 1px solid rgba(var(--text-muted-rgb), 0.35);
  justify-self: start;
}
.order-line-tag.tag-mildest { color: var(--gold);    border-color: rgba(var(--gold-rgb), 0.35); }
.order-line-tag.tag-mild    { color: #F0B83A;        border-color: rgba(240, 184, 58, 0.35); }
.order-line-tag.tag-med     { color: var(--accent);  border-color: rgba(var(--accent-rgb), 0.35); }
.order-line-tag.tag-hot     { color: #E26A38;        border-color: rgba(226, 106, 56, 0.35); }
.order-line-tag.tag-xhot    { color: var(--brand);   border-color: rgba(var(--brand-rgb), 0.35); }
.order-line-tag.tag-endgame { color: #C8312B;        border-color: rgba(200, 49, 43, 0.35); }
.order-line-tag.tag-bundle {
  color: var(--gold);
  border-color: rgba(var(--gold-rgb), 0.50);
}

.order-line-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.order-line.is-bundle {
  margin-top: 4px;
  padding: 22px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg,
    rgba(var(--brand-rgb), 0.06),
    rgba(var(--gold-rgb), 0.06));
  border: 1px solid rgba(var(--brand-rgb), 0.30);
}
.order-line.is-bundle + .order-line { border-top: 0; }

.order-qty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.qty-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.qty-label .price {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-transform: none;
}
.order-qty-spacer { visibility: hidden; }

.order-qty input[type="number"] {
  width: 100%;
  max-width: 100px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease, box-shadow var(--t-fast) ease;
  -moz-appearance: textfield;
}
.order-qty input[type="number"]::-webkit-outer-spin-button,
.order-qty input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: auto;
  opacity: 0.6;
}
.order-qty input[type="number"]:hover { border-color: var(--brand); }
.order-qty input[type="number"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.22);
}
.order-qty input[type="number"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Customer fields */
.order-customer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  padding-bottom: 28px;
}
.order-customer .order-legend { grid-column: 1 / -1; }

.order-field { display: flex; flex-direction: column; gap: 8px; }
.order-field-wide { grid-column: 1 / -1; }

.order-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.order-field-opt {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--text-muted);
}

.order-field input[type="text"],
.order-field input[type="email"],
.order-field textarea {
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease, box-shadow var(--t-fast) ease;
  width: 100%;
}
.order-field textarea { resize: vertical; min-height: 96px; }
.order-field input::placeholder,
.order-field textarea::placeholder {
  color: var(--text-muted);
}
.order-field input:focus,
.order-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.22);
}
.order-field input:disabled,
.order-field textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.order-disclaimer {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 14px 18px;
  max-width: 720px;
}

.order-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-order {
  padding: 16px 28px;
  font-size: 15px;
}
.btn-order:disabled {
  cursor: default;
  transform: none;
  filter: saturate(0.85);
  opacity: 0.92;
}

.order-form.is-submitted .order-fieldset {
  opacity: 0.7;
}

/* === Closing === */
.closing { padding-top: 64px; padding-bottom: 96px; }
.contact-line {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: -24px;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 0;
  background: var(--bg-alt);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 40px;
}
.footer-brand { max-width: 320px; }
.footer-brand p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 4px 0;
  transition: color var(--t-fast) ease;
}
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-veteran {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* === Hero image === */
.hero-img {
  width: 100%;
  max-width: 1200px;
  border-radius: 12px;
  margin: 48px auto 0;
  display: block;
}

/* === Responsive === */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .hero-placeholder { min-height: 240px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .thesis-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .cta { margin: 32px 0 64px; padding: 0 var(--container-pad); }
  .cta-inner { padding: 48px 28px; }
  .order { padding-top: 64px; padding-bottom: 64px; }
  .order-customer { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  :root { --container-pad: 20px; }
  .brand-name-sub { display: none; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero-stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .footer-cols { grid-template-columns: 1fr; }
  .thesis-aside { grid-template-columns: 1fr; }
  .product-card { padding: 18px; }
  .signup { flex-direction: column; }
  .signup .btn-on-cta { width: 100%; }

  .order-fieldset { padding: 22px 20px 8px; }
  .order-line-info { grid-template-columns: 1fr auto; }
  .order-line-note { grid-column: 1 / -1; }
  .order-qty input[type="number"] { width: 100%; max-width: none; }
  .btn-order { width: 100%; }
}

/* Order: collapse to stacked layout on mid + narrow widths */
@media (max-width: 700px) {
  .order-line-head { display: none; }
  .order-line {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "info info"
      "q1   q2";
    align-items: stretch;
    gap: 14px 16px;
    padding: 16px 0;
  }
  .order-line-info { grid-area: info; }
  .order-line > .order-qty:nth-of-type(1) { grid-area: q1; }
  .order-line > .order-qty:nth-of-type(2) { grid-area: q2; }
  .order-line .order-qty {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
  }
  .order-line .order-qty-spacer { display: none; }
}
