/* ==========================================================================
   WarehouseOps — Design System
   Dark, precise, engineering-grade. Built for speed on Indian mobile networks.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:            #07080c;
  --bg-elevated:   #0d0f16;
  --surface:       rgba(255, 255, 255, 0.032);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text:       #eef1f7;
  --text-muted: #9aa3b5;
  --text-dim:   #6b7488;

  /* Brand — Amit Mehta Group orange leading, violet retained as the second hue.
     The token names are historical accent slots; --cyan is the primary accent.
     To revert to the original cool palette, restore:
       --cyan: #22d3ee;  --indigo: #6366f1;  --warn: #fbbf24;
       --grad: linear-gradient(115deg, #22d3ee 0%, #6366f1 52%, #8b5cf6 100%); */
  --cyan:   #f2703c;   /* AMG orange, lifted for legibility on dark */
  --indigo: #e0533a;
  --violet: #8b5cf6;
  --amg:    #dd5c2b;   /* the exact logo orange, for the mark itself */
  --grad:   linear-gradient(115deg, var(--cyan) 0%, var(--indigo) 48%, var(--violet) 100%);

  /* Semantic — warn shifted to yellow so it can't be mistaken for the accent */
  --good: #34d399;
  --warn: #facc15;
  --bad:  #f87171;
  --info: #60a5fa;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Space & shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --maxw: 1180px;
  --gut:  clamp(16px, 4vw, 32px);

  /* Elevation */
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.34);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.45), 0 24px 64px rgba(0,0,0,.46);
  --glow:      0 0 0 1px rgba(242,112,60,.16), 0 8px 40px rgba(224,83,58,.16);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Animated background -------------------------------------------------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .55;
  pointer-events: none;
}

.bg-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 560px at 12% -8%,  rgba(242,112,60,.13), transparent 62%),
    radial-gradient(800px 520px at 88% 4%,   rgba(139,92,246,.13), transparent 62%),
    radial-gradient(1000px 700px at 50% 108%, rgba(224,83,58,.09), transparent 66%);
}

@media (prefers-reduced-motion: reduce) {
  #bg-canvas { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.wrap-narrow { max-width: 780px; }

section { padding-block: clamp(48px, 8vw, 88px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 16px; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(7, 8, 12, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

/* The Amit Mehta Group chevron mark. Sits on the page's own dark ground
   rather than in a filled tile, so the chevrons read at small sizes. */
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.55));
  transition: transform .24s cubic-bezier(.4,0,.2,1);
}
/* The carton lifts, as if picked off a shelf. */
.brand:hover .brand-mark svg { transform: translateY(-2px) scale(1.04); }
.brand em { font-style: normal; color: var(--text-dim); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: .925rem;
  font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gut) 20px;
    background: rgba(7,8,12,.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-links .btn { margin-top: 8px; text-align: center; }
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .2s, background .2s, border-color .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #04060b;
  box-shadow: 0 4px 18px rgba(224,83,58,.32);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(224,83,58,.46); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-strong); }

.btn-sm { padding: 8px 15px; font-size: .875rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  line-height: 1.16;
  letter-spacing: -0.028em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.02rem; letter-spacing: -0.015em; }

p { color: var(--text-muted); }
.lead { font-size: clamp(1.03rem, 1.9vw, 1.2rem); color: var(--text-muted); line-height: 1.7; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--cyan);
  opacity: .6;
}

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { margin-top: 12px; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding-block: clamp(56px, 10vw, 108px) clamp(40px, 6vw, 72px);
  text-align: center;
}
.hero .lead { max-width: 640px; margin: 20px auto 0; }
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.pill b {
  background: var(--grad);
  color: #04060b;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 36px;
  font-size: .85rem;
  color: var(--text-dim);
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 15px; height: 15px; stroke: var(--good); flex-shrink: 0; }

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.4,0,.2,1), border-color .2s, background .2s, box-shadow .25s;
}
.tool-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .25s;
}
.tool-card:hover {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.tool-card:hover::after { opacity: 1; }

.tool-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(242,112,60,.16), rgba(139,92,246,.16));
  border: 1px solid var(--border);
  margin-bottom: 4px;
}
.tool-card .icon svg { width: 20px; height: 20px; stroke: var(--cyan); }
.tool-card h3 { font-size: 1.04rem; }
.tool-card p { font-size: .9rem; line-height: 1.6; flex: 1; }

.tool-card .tag {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(242,112,60,.1);
  color: var(--cyan);
  border: 1px solid rgba(242,112,60,.2);
}
.tool-card.soon { opacity: .58; pointer-events: none; }
.tool-card.soon .tag { background: rgba(255,255,255,.05); color: var(--text-dim); border-color: var(--border); }

/* --- Calculator UI -------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.calc > * { min-width: 0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

.panel {
  min-width: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.panel-title svg { width: 15px; height: 15px; stroke: var(--cyan); }

.field { margin-bottom: 16px; }
.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.field label .unit { font-weight: 500; font-size: .78rem; color: var(--text-dim); }

.field input[type="number"],
.field input[type="text"],
.field select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0,0,0,.34);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: .95rem;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.field input:hover, .field select:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0,0,0,.5);
  box-shadow: 0 0 0 3px rgba(242,112,60,.13);
}
.field select {
  font-family: var(--font);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b5' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
  padding-right: 38px;
}
.field .hint { font-size: .78rem; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }
.field.invalid input { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(248,113,113,.12); }
.field .err { font-size: .78rem; color: var(--bad); margin-top: 6px; display: none; }
.field.invalid .err { display: block; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }

.fieldset-group {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 16px;
}
.fieldset-group legend {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-inline: 8px;
}

/* Results */
.result-hero {
  text-align: center;
  padding: 26px 20px;
  border-radius: var(--r);
  background: linear-gradient(140deg, rgba(242,112,60,.1), rgba(139,92,246,.1));
  border: 1px solid rgba(242,112,60,.22);
  margin-bottom: 18px;
}
.result-hero .label {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.result-hero .value {
  font-family: var(--mono);
  font-size: clamp(2.3rem, 7vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 6px;
  letter-spacing: -0.03em;
}
.result-hero .value small { font-size: .42em; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.result-hero .sub { font-size: .87rem; color: var(--text-muted); margin-top: 8px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; }
.stat {
  background: rgba(0,0,0,.28);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px;
}
.stat .k {
  font-size: .73rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat .v {
  font-family: var(--mono);
  font-size: 1.32rem;
  font-weight: 600;
  margin-top: 5px;
  letter-spacing: -0.02em;
}
.stat .v small { font-size: .6em; color: var(--text-dim); font-weight: 400; }

.v.good { color: var(--good); }
.v.warn { color: var(--warn); }
.v.bad  { color: var(--bad); }
.v.info { color: var(--info); }

.verdict {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: .89rem;
  line-height: 1.6;
  margin-top: 16px;
  border: 1px solid;
}
.verdict svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.verdict.good { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.24); color: #a7f3d0; }
.verdict.good svg { stroke: var(--good); }
.verdict.warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.24); color: #fde68a; }
.verdict.warn svg { stroke: var(--warn); }
.verdict.bad  { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.24); color: #fecaca; }
.verdict.bad svg { stroke: var(--bad); }
.verdict.info { background: rgba(96,165,250,.08); border-color: rgba(96,165,250,.24); color: #bfdbfe; }
.verdict.info svg { stroke: var(--info); }
.verdict b { color: #fff; font-weight: 700; }

/* Formula display */
.formula {
  background: rgba(0,0,0,.42);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-sm);
  padding: 15px 17px;
  font-family: var(--mono);
  font-size: .845rem;
  line-height: 1.85;
  overflow-x: auto;
  color: var(--text-muted);
  margin-top: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}
.formula .hl { color: var(--cyan); font-weight: 600; }
.formula .res { color: var(--good); font-weight: 700; }
.formula .cap {
  display: block;
  font-family: var(--font);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 9px;
  font-weight: 700;
}

.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Bar meter */
.meter { margin-top: 6px; }
.meter-track {
  height: 7px;
  background: rgba(0,0,0,.45);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  transition: width .5s cubic-bezier(.4,0,.2,1), background .3s;
}
.meter-fill.good { background: linear-gradient(90deg, #34d399, #10b981); }
.meter-fill.warn { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.meter-fill.bad  { background: linear-gradient(90deg, #f87171, #ef4444); }
.meter-target {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--text);
  opacity: .8;
  border-radius: 2px;
}
.meter-scale {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--text-dim);
  margin-top: 5px;
  font-family: var(--mono);
}

/* --- Content prose -------------------------------------------------------- */
.prose h2 { margin-top: 44px; margin-bottom: 14px; }
.prose h3 { margin-top: 30px; margin-bottom: 10px; }
.prose p, .prose ul, .prose ol { margin-bottom: 15px; }
.prose ul, .prose ol { padding-left: 22px; color: var(--text-muted); }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--text); font-weight: 650; }
.prose code {
  font-family: var(--mono);
  font-size: .87em;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--cyan);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 18px;
  font-size: .9rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.prose th {
  font-size: .74rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}
.prose td { color: var(--text-muted); }
.prose tbody tr:hover td { background: var(--surface); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
  background: rgba(139,92,246,.06);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  margin-block: 20px;
}
.callout h4 { margin-bottom: 7px; color: #ddd6fe; }
.callout p:last-child { margin-bottom: 0; }

.mistakes { list-style: none; padding: 0; }
.mistakes li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 13px;
  color: var(--text-muted);
}
.mistakes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(248,113,113,.14);
  border: 1px solid rgba(248,113,113,.4);
}
.mistakes li::after {
  content: '!';
  position: absolute;
  left: 6px;
  top: 4.5px;
  font-size: .7rem;
  font-weight: 800;
  color: var(--bad);
}
.mistakes b { color: var(--text); }

/* --- Breadcrumb ----------------------------------------------------------- */
.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: var(--text-dim);
  padding-top: 26px;
  flex-wrap: wrap;
}
.crumb a { color: var(--text-muted); }
.crumb svg { width: 13px; height: 13px; stroke: var(--text-dim); }

/* --- Privacy badge -------------------------------------------------------- */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(52,211,153,.07);
  border: 1px solid rgba(52,211,153,.22);
  font-size: .82rem;
  color: #a7f3d0;
  margin-top: 18px;
}
.privacy-badge svg { width: 15px; height: 15px; stroke: var(--good); flex-shrink: 0; }

/* --- Email capture -------------------------------------------------------- */
.capture {
  background: linear-gradient(140deg, rgba(242,112,60,.09), rgba(139,92,246,.09));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
}
.capture h3 { margin-bottom: 10px; }
.capture p { max-width: 480px; margin-inline: auto; }
.capture form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 22px auto 0;
  flex-wrap: wrap;
}
.capture input[type="email"] {
  flex: 1 1 210px;
  padding: 12px 16px;
  background: rgba(0,0,0,.42);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.capture input[type="email"]:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(242,112,60,.13);
}
.capture .note { font-size: .78rem; color: var(--text-dim); margin-top: 13px; }

/* --- Products ------------------------------------------------------------- */
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  position: relative;
  transition: transform .2s, border-color .2s, box-shadow .25s;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.price-card.featured {
  border-color: rgba(242,112,60,.4);
  box-shadow: var(--glow);
  background: linear-gradient(170deg, rgba(242,112,60,.07), rgba(139,92,246,.05));
}
.price-card .badge {
  position: absolute;
  top: -11px;
  left: 26px;
  background: var(--grad);
  color: #04060b;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.price-card .price {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-block: 10px 4px;
}
.price-card .price s { color: var(--text-dim); font-size: .5em; font-weight: 400; margin-left: 8px; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0; flex: 1; }
.price-card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: .89rem;
  color: var(--text-muted);
}
.price-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* --- Ad slots ------------------------------------------------------------- */
.ad-slot {
  margin-block: 34px;
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,.012);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(107,116,136,.45);
  overflow: hidden;
}
.ad-slot:empty::before { content: 'Advertisement'; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding-block: 48px 30px;
  background: rgba(0,0,0,.28);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text-muted); font-size: .89rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-about p { font-size: .87rem; margin-top: 14px; max-width: 320px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-dim);
}

/* --- Parent company attribution ------------------------------------------ */
.group-tag-mark {
  display: inline-flex;
  flex-shrink: 0;
  margin-right: 2px;
}
.group-tag-mark svg { display: block; }

.group-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-dim);
}
.group-tag a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.group-tag a:hover { color: var(--cyan); }

.group-strip {
  display: flex;
  align-items: center;
  gap: 10px 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.group-strip-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.group-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.group-strip a {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .84rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.group-strip a:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

/* --- Utilities ------------------------------------------------------------ */
.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;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }

/* Progressive enhancement: content is visible by default and only animates
   in when JavaScript is present. Without JS — or if the observer fails —
   nothing is ever hidden. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.4,0,.2,1);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 120%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 11px 22px;
  font-size: .88rem;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.toast.show { transform: translate(-50%, 0); }

@media print {
  #bg-canvas, .bg-wash, .site-header, .site-footer, .ad-slot, .actions-row { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .card { border-color: #ccc; box-shadow: none; }
}
