/* B & Z Industries — site stylesheet
   Voice: quiet, machined, warm. Drenched warm-dark palette shared with Modulate. */

:root {
  --bg: #191512;
  --bg-2: #201b17;
  --panel: #262019;
  --panel-2: #2d261f;
  --hairline: rgba(245, 238, 220, 0.14);
  --hairline-strong: rgba(245, 238, 220, 0.26);
  --ink: #f5eedc;
  --ink-muted: #cfc6b0;
  --ink-faint: #a89e88;
  --amber: #d97706;
  --gold: #f59e0b;
  --sage: #a3b763;
  --coral: #fb923c;
  --plate-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Warm lamp gradient behind everything, echoing the app's therapy screen */
.lamp {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(217, 119, 6, 0.13), transparent 60%),
    radial-gradient(ellipse 70% 45% at 50% 108%, rgba(217, 119, 6, 0.07), transparent 60%),
    var(--bg);
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  gap: 1rem;
}
.nav-mark {
  font-stretch: 116%;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-mark:hover { text-decoration: none; color: var(--gold); }
.nav-mark .amp { color: var(--amber); }
.nav-links { display: flex; gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.nav-links a {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--gold); }

/* ---------- Nameplate hero ---------- */
.plate {
  position: relative;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, rgba(245, 238, 220, 0.03), transparent 40%),
    var(--bg-2);
  box-shadow: var(--plate-shadow);
  overflow: hidden;
}
.plate::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.rivet {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(245,238,220,0.5), rgba(245,238,220,0.12) 60%, transparent);
  border: 1px solid var(--hairline);
}
.rivet.tl { top: 18px; left: 18px; }
.rivet.tr { top: 18px; right: 18px; }
.rivet.bl { bottom: 18px; left: 18px; }
.rivet.br { bottom: 18px; right: 18px; }

.plate-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.plate-label::before, .plate-label::after {
  content: "";
  height: 1px;
  background: var(--hairline);
  flex: 0 0 34px;
}

.display {
  font-stretch: 120%;
  font-weight: 850;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display .amp { color: var(--amber); }

.lede {
  margin-top: 1.5rem;
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
section.tight { padding-top: clamp(1.5rem, 4vw, 2.5rem); }

.kicker {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

h2.title {
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 1.1rem;
}
h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
p.muted { color: var(--ink-muted); max-width: 62ch; text-wrap: pretty; }
p + p.muted, p.muted + p.muted { margin-top: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1a130a; }
.btn-primary:hover { background: var(--gold); }
.btn-ghost { border-color: var(--hairline-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ---------- Product / feature layouts ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
}

.phone {
  border-radius: 34px;
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--plate-shadow);
  background: #000;
  padding: 8px;
  max-width: 320px;
  margin: 0 auto;
}
.phone img { border-radius: 26px; }

.phone-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
  justify-items: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--hairline);
}
.card.amber { border-color: rgba(217, 119, 6, 0.4); }
.card.sage { border-color: rgba(163, 183, 99, 0.4); }
.card.coral { border-color: rgba(251, 146, 60, 0.4); }
.card .mode {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.card.amber .mode { color: var(--gold); }
.card.sage .mode { color: var(--sage); }
.card.coral .mode { color: var(--coral); }
.card p { color: var(--ink-muted); font-size: 0.98rem; }
.card .cite {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.card .cite a { color: var(--ink-faint); text-decoration: underline; text-underline-offset: 3px; }
.card .cite a:hover { color: var(--gold); }

/* ---------- Privacy banner ---------- */
.banner {
  border: 1px solid rgba(217, 119, 6, 0.45);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.08), rgba(217, 119, 6, 0.03));
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.banner ul {
  list-style: none;
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.7rem 1.6rem;
}
.banner li {
  color: var(--ink-muted);
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.98rem;
}
.banner li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step { counter-increment: step; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.5rem; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-stretch: 118%;
  font-weight: 850;
  font-size: 1.6rem;
  color: var(--amber);
  margin-bottom: 0.6rem;
}
.step p { color: var(--ink-muted); font-size: 0.98rem; }

/* ---------- About / dogs ---------- */
.dogs {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.dogs img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}
.dogs img:first-child { grid-row: span 2; }
@media (max-width: 640px) {
  .dogs { grid-template-columns: 1fr; grid-template-rows: none; }
  .dogs img:first-child { grid-row: auto; }
}

/* ---------- Disclaimer & footer ---------- */
.disclaimer {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1.6rem 0;
  color: var(--ink-faint);
  font-size: 0.9rem;
  max-width: none;
}
.footer {
  padding: 3rem 0 3.5rem;
  color: var(--ink-faint);
  font-size: 0.92rem;
}
.footer .cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem 2.5rem;
  align-items: flex-start;
}
.footer a { color: var(--ink-muted); }
.footer a:hover { color: var(--gold); }
.footer .mark {
  font-stretch: 116%;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.footer .dogline { margin-top: 1.1rem; font-size: 0.88rem; max-width: 46ch; }

/* ---------- Prose (legal & support pages) ---------- */
.prose { max-width: 680px; }
.prose h1 {
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.prose h2 { font-weight: 750; font-size: 1.3rem; margin: 2.2rem 0 0.6rem; color: var(--gold); }
.prose h3 { font-weight: 700; font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
.prose p, .prose li { color: var(--ink-muted); }
.prose p { margin-bottom: 0.9rem; text-wrap: pretty; }
.prose ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--ink); }
.prose .updated { color: var(--ink-faint); font-size: 0.92rem; margin-bottom: 2rem; }

/* ---------- Hero entrance (single orchestrated reveal) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(16px); animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.18s; }
  .rise.d3 { animation-delay: 0.3s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
