/* ==========================================================================
   Thermalyst — shared stylesheet (v2 brand: bold & friendly, no mascot)
   Brand tokens documented in /BRANDING.md
   ========================================================================== */

:root {
  --ink: #16223b;
  --ink-soft: #1e2c4a;
  --paper: #ffffff;
  --section: #f4f6f8;
  --coral: #ff5a3c;
  --coral-dark: #d93f24;
  --blue: #2f80ed;
  --blue-dark: #1a5fd6;
  --yellow: #ffc93c;
  --slate: #475467;
  --slate-light: #8896a6;
  --border: #e2e6ea;
  --border-dark: #2a3a5c;

  --gradient: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 45%, var(--coral) 100%);

  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max-width: 1160px;
  --radius: 14px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--slate); }

.mono { font-family: var(--font-mono); letter-spacing: 0.01em; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, .tier:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(255, 90, 60, 0.35); background: var(--coral-dark); }

.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: var(--yellow); }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { border-color: var(--coral); color: var(--coral-dark); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Nav ---------- */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; text-decoration: none; }
.logo .dot { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.72); font-size: 0.95rem; font-weight: 600; transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; width: 100%; border-top: 1px solid rgba(255,255,255,0.1); }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow-pill {
  display: inline-block;
  background: rgba(47,128,237,0.18);
  color: #7bb0ff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.eyebrow-pill.on-light { background: #eaf2ff; color: var(--blue-dark); }
.eyebrow-pill.coral { background: rgba(255,90,60,0.18); color: #ff9276; }
.eyebrow-pill.coral.on-light { background: #ffefe9; color: var(--coral-dark); }

.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); color: #fff; margin-bottom: 0.4em; }
.hero h1 .hl { color: var(--coral); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.72); max-width: 46ch; margin-bottom: 1.8em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 1.6em; }
.hero-price-note { font-family: var(--font-mono); font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 1.8em; }
.hero-price-note strong { color: var(--yellow); font-weight: 500; }

.trust-row { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 26px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.75); font-weight: 600; }
.stars { color: var(--yellow); letter-spacing: 1px; }

.steps-bar { display: flex; background: rgba(255,255,255,0.08); border-radius: 20px; padding: 8px; gap: 8px; max-width: 420px; }
.step-pill { flex: 1; text-align: center; padding: 12px 8px; border-radius: 14px; font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.55); }
.step-pill.active { background: var(--coral); color: #fff; }

/* Hero video */
.hero-video {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
  align-self: center;
}
.hero-video mux-player { display: block; width: 100%; --media-object-fit: cover; }
.hero-video-img { display: none; }
@media (max-width: 860px) {
  .hero-video { margin-top: 32px; }
  .hero-video mux-player { display: none; }
  .hero-video-img { display: block; width: 100%; border-radius: 16px; }
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-light { background: var(--paper); }
.section-alt { background: var(--section); }
.section-ink { background: var(--ink); color: #fff; }

.section-head { max-width: 640px; margin: 0 0 44px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-dark);
  display: block;
  margin-bottom: 10px;
}
.section-ink .section-eyebrow { color: var(--yellow); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-ink .section-head p { color: rgba(255,255,255,0.68); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.step { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: #ffefe9; color: var(--coral-dark);
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.step p { font-size: 0.95rem; margin: 0; }

/* ---------- Cards / grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.5em; }
.card p { font-size: 0.95rem; }

/* ---------- Box contents list ---------- */
.box-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
@media (max-width: 640px) { .box-list { grid-template-columns: 1fr; } }
.box-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}
.box-list .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--yellow);
  flex-shrink: 0;
  width: 3.5em;
}

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--paper);
  padding: 30px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tier:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(22,34,59,0.1); }
.tier.featured { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral); }
.tier-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.tier-price { font-family: var(--font-mono); font-size: 2rem; font-weight: 500; margin: 8px 0 4px; }
.tier-price .period { font-family: var(--font-display); font-size: 0.85rem; color: var(--slate); font-weight: 500; }
.tier-flag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-dark);
  background: #ffefe9;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.tier ul { list-style: none; margin: 18px 0 24px; padding: 0; flex: 1; }
.tier li { padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--slate); }
.tier li:first-child { border-top: none; }

/* ---------- Return/shipping diagram ---------- */
.return-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 760px) { .return-flow { grid-template-columns: 1fr; } }
.return-node { background: rgba(255,255,255,0.06); border-radius: var(--radius); padding: 24px; text-align: center; }
.return-node .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--coral); color: #fff;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  margin-bottom: 12px;
}
.return-node h4 { font-size: 1rem; margin-bottom: 6px; color: #fff; }
.return-node p { font-size: 0.88rem; margin: 0; color: rgba(255,255,255,0.7); }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 22px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #ffefe9; color: var(--coral-dark);
  font-family: var(--font-mono);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 4px; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 22px; }
.faq-a p { font-size: 0.96rem; }

.faq-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: #eaf2ff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin: 48px 0 4px;
}
.faq-category:first-of-type { margin-top: 0; }

/* ---------- Order form ---------- */
.order-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: flex-start; }
@media (max-width: 900px) { .order-layout { grid-template-columns: 1fr; } }

.form-block { margin-bottom: 34px; }
.form-block h3 { font-size: 1.05rem; margin-bottom: 6px; }
.form-block > p { font-size: 0.9rem; margin-bottom: 18px; }

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

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-hint { font-size: 0.8rem; color: var(--slate-light); margin-top: 4px; }

.tier-select { display: grid; gap: 12px; }
.tier-option {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.tier-option input { accent-color: var(--coral); }
.tier-option .to-name { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.tier-option .to-desc { font-size: 0.85rem; color: var(--slate); }
.tier-option .to-price { margin-left: auto; font-family: var(--font-mono); font-size: 1.05rem; }
.tier-option.selected { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral); }

.summary {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  position: sticky;
  top: 96px;
}
.summary h3 { font-size: 1.05rem; margin-bottom: 18px; color: #fff; }
.summary-row {
  display: flex; justify-content: space-between; font-size: 0.92rem;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.72);
}
.summary-row:first-of-type { border-top: none; }
.summary-row .amount { font-family: var(--font-mono); color: #fff; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12);
}
.summary-total .amount { font-family: var(--font-mono); font-size: 1.6rem; color: var(--yellow); }
.summary-note { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 16px; }

.deposit-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  border: 1px dashed rgba(255,255,255,0.25);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-top: 18px;
}

/* Weather hold notice */
.weather-notice {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 24px;
}
.weather-notice h4 { color: #92400e; margin: 0 0 8px; font-size: 1rem; }
.weather-notice p  { color: #78350f; font-size: 0.9rem; margin: 0 0 14px; }
.weather-override  { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9rem; color: #78350f; font-weight: 500; }
.weather-override input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: #d97706; width: 16px; height: 16px; }

#confirmation {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  background: var(--paper);
}
#confirmation.show { display: block; }
#confirmation .mono { color: var(--coral-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.65); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-secondary { background: var(--section); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--slate); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.25rem; margin: 2.4em 0 0.5em; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 1.6em 0 0.4em; color: var(--ink); }
.prose p, .prose li { font-size: 0.97rem; color: var(--slate); line-height: 1.7; }
.prose ul { padding-left: 1.4em; margin: 0.6em 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--blue-dark); text-decoration: underline; }
.prose .meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate-light); margin-bottom: 2.5em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,0.68); max-width: 60ch; margin: 0; }
