:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f8faff;
  --line: #d9e2ee;
  --text: #10243e;
  --muted: #617187;
  --brand: #002e62;
  --accent: #1266d6;
  --accent-deep: #0b4da8;
  --accent-ink: #ffffff;
  --success: #16794d;
  --warn: #ad6b00;
  --shadow: 0 18px 45px rgba(17, 47, 85, 0.10);
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 50% -20%, #e0edff 0, transparent 38rem), var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  position: relative;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(12, 38, 69, 0.05);
}
.topbar::after { position: absolute; right: 0; bottom: -3px; left: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand)); content: ""; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand); font-weight: 800; letter-spacing: 0.01em; }
.brand img { height: 52px; width: auto; display: block; }
.brand .wordmark { font-size: 1.2rem; }
.call, .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(18, 102, 214, 0.22);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.call { position: absolute; right: 24px; top: 50%; padding: 0 15px; transform: translateY(-50%); font-size: 0.9rem; }
.primary { padding: 13px 24px; }
.call:hover, .primary:hover { transform: translateY(-2px); background: var(--accent-deep); box-shadow: 0 10px 20px rgba(18, 102, 214, 0.28); }
.call:hover { transform: translateY(calc(-50% - 2px)); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(18, 102, 214, 0.32);
  outline-offset: 3px;
}

.stage { max-width: 820px; margin: 0 auto; padding: 48px 24px 56px; }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.title { max-width: 680px; margin: 0 0 10px; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.08; letter-spacing: -0.04em; }
.subtitle { max-width: 650px; margin: 0 0 30px; color: var(--muted); font-size: 1.05rem; }

/* The frame hugs the video rather than boxing it: reps shoot walkarounds on a
   phone, so a portrait clip in a fixed 16/9 box was pillarboxed in black. The
   inline script on the page sets the real ratio once metadata lands; 16/9 is
   only the placeholder that reserves space before then. */
.player { display: flex; justify-content: center; }
.player video { display: block; width: auto; max-width: 100%; height: auto; max-height: 76vh; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(0, 46, 98, 0.18); border-radius: 18px; background: #0d1117; box-shadow: var(--shadow); }
.specs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 24px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); box-shadow: 0 8px 24px rgba(17, 47, 85, 0.04); }
.specs > div { min-width: 0; padding: 14px; background: var(--panel); text-align: center; }
.specs dt { margin-bottom: 4px; color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.specs dd { overflow: hidden; margin: 0; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.cta { margin-top: 34px; text-align: center; }
.reassure { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; }
.promo { display: block; margin: 30px auto 0; max-width: 460px; }
.promo-img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(17, 47, 85, 0.06); }
.foot { padding: 30px 20px 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; text-align: center; }
.foot .addr { display: block; margin-top: 4px; }

@media (max-width: 680px) {
  .topbar { min-height: 72px; padding: 10px 16px; }
  .brand img { height: 44px; }
  .call { display: none; }
  .stage { padding: 32px 16px 44px; }
  .title { font-size: 2rem; }
  .subtitle { font-size: 1rem; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs > div:last-child { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Assigned-rep card on the customer page. Had no styles at all until
   2026-08-06, which ran the phone and email together as one blue blob. */
.rep-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 22px 0 4px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(17, 47, 85, 0.05);
}
.rep-photo {
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--panel);
  box-shadow: 0 0 0 2px var(--line);
}
.rep-body { min-width: 0; }
.rep-eyebrow {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rep-name { margin: 0; font-size: 1.06rem; font-weight: 800; }
.rep-message {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.5;
}
.rep-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 12px 0 0;
}
.rep-link {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid #bbd3f7;
  border-radius: 9px;
  background: var(--panel-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.rep-link:hover, .rep-link:focus-visible { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rep-link.phone::before { content: "📞 "; }
.rep-link.email::before { content: "✉️ "; }

@media (max-width: 560px) {
  .rep-card { gap: 13px; padding: 15px 16px; }
  .rep-photo { width: 54px; height: 54px; }
  .rep-contact { gap: 8px; }
  .rep-link { flex: 1 1 auto; text-align: center; }
}

/* ===== Customer page, 2026-08 redesign: text (default) + premiere styles.
   Everything centered to the screen — Justin's standing rule. The Liberty
   banner runs full width and minimizes on scroll or play. Specs never scroll
   sideways: chips wrap to as many lines as they need. ===== */
body[data-style] { text-align: center; background: #f2f5f9; }

.brandbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 2px 12px rgba(12, 38, 69, 0.08);
  transition: padding 0.25s ease;
}
.brandbar .brand img { height: 44px; transition: height 0.25s ease; }
.brandbar.mini { padding: 4px 16px; }
.brandbar.mini .brand img { height: 22px; }

.stage-x {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.stage-x .eyebrow { margin: 0; }
.stage-x .sub { margin: 0; max-width: 460px; color: var(--muted); font-size: 0.98rem; }
.stage-x .player { width: 100%; }
.stage-x .reassure { margin: 0; font-size: 0.8rem; }
.stage-x .sticker { margin: 0; font-size: 0.85rem; }
.stage-x .sticker a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
body[data-style="premiere"] .stage-x .sticker a { color: #6d8095; }
.vehline { margin: 0; font-size: 1.3rem; letter-spacing: -0.02em; text-wrap: balance; }

.thread { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.tstamp { margin: 0; color: var(--muted); font-size: 0.72rem; font-weight: 650; }
.msgrow { display: flex; align-items: flex-end; justify-content: center; gap: 8px; width: 100%; }
.msg {
  max-width: 88%;
  padding: 12px 15px;
  border-radius: 18px;
  background: #e4e9f0;
  color: #1c2735;
  font: 0.95rem/1.5 ui-rounded, -apple-system, sans-serif;
}
.avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #3c6ea8, #14406e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
}

.replies { display: flex; gap: 9px; width: 100%; max-width: 420px; }
.replies .btn { flex: 1; padding: 13px 8px; border-radius: 999px; text-align: center; font-weight: 750; font-size: 0.95rem; text-decoration: none; }
.replies .call-btn { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px rgba(18, 102, 214, 0.3); }
.replies .text-btn { background: #ffffff; color: var(--accent); border: 1.5px solid #bbd3f7; }
.contactline { margin: 0; color: var(--muted); font-size: 0.8rem; }

.specchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; margin: 4px 0 0; }
.specchips > div { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 0.78rem; white-space: nowrap; }
.specchips dt { color: var(--muted); font-weight: 800; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.specchips dd { margin: 0; font-weight: 700; }

.fromrow { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fromrow .avatar { width: 46px; height: 46px; font-size: 0.9rem; }
.fromrow .name { margin: 0; font-weight: 780; }
.fromrow .meta { margin: 0; color: var(--muted); font-size: 0.75rem; }

/* Premiere: the same bones on a dark cinematic stage. */
body[data-style="premiere"] { background: #080b10; color: #f2f5f9; }
body[data-style="premiere"] .eyebrow { color: #8fc0f7; }
body[data-style="premiere"] .bigtitle {
  margin: 0;
  font-family: "Avenir Next Condensed", "HelveticaNeue-CondensedBold", "Arial Narrow", -apple-system, sans-serif;
  font-size: clamp(2.2rem, 9vw, 3.1rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
body[data-style="premiere"] .sub { color: rgba(230, 238, 247, 0.78); }
body[data-style="premiere"] .player video { border-color: #223046; }
body[data-style="premiere"] .msg { background: #121a25; border: 1px solid #223046; color: #dbe6f2; }
body[data-style="premiere"] .msg b { color: #fff; }
body[data-style="premiere"] .tstamp,
body[data-style="premiere"] .fromrow .meta { color: #7f92a8; }
body[data-style="premiere"] .replies .call-btn { background: #2f7fe0; box-shadow: 0 10px 24px rgba(47, 127, 224, 0.35); }
body[data-style="premiere"] .replies .text-btn { background: #10161f; color: #9cc4f2; border-color: #2a3d57; }
body[data-style="premiere"] .specchips > div { background: #131a24; border-color: #223046; }
body[data-style="premiere"] .specchips dt { color: #8fa0b3; }
body[data-style="premiere"] .specchips dd { color: #fff; }
body[data-style="premiere"] .contactline,
body[data-style="premiere"] .stage-x .reassure { color: #6d8095; }
body[data-style="premiere"] .foot { border-top-color: #1c2735; color: #6d8095; }
