/* Thermal Space call funnel landing page
   Styling replicated from the Plushen theme + hotbox-dark palette */

:root {
  --p-bg: #000000;
  --p-bg-soft: #0d0d0d;
  --p-bg-tint: #161616;
  --p-fg: #ffffff;
  --p-fg-soft: #e6e6e6;
  --p-muted: #9a9a9a;
  --p-muted-2: #7a7a7a;
  --p-line: rgba(255, 255, 255, .14);
  --p-line-strong: rgba(255, 255, 255, .28);
  --hb-accent: #c8582a;
  --hb-accent-hover: #d96a38;
  --p-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --p-fs-13: .8125rem;
  --p-fs-14: .875rem;
  --p-fs-15: .9375rem;
  --p-fs-16: 1rem;
  --p-fs-18: 1.125rem;
  --p-r-md: 10px;
  --p-r-lg: 16px;
  --p-max-w: 1600px;
  --p-pad-x: clamp(16px, 4vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: var(--p-fg);
  font-family: var(--p-font);
  font-size: var(--p-fs-16);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Warm radial glow at top of page, same as store */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(200, 88, 42, .14), rgba(200, 88, 42, .05) 45%, transparent 70%);
}

main, header, footer { position: relative; z-index: 1; }

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

h1, h2, h3, p { margin: 0; }

.ts-wrap {
  width: 100%;
  max-width: var(--p-max-w);
  margin: 0 auto;
  padding-inline: var(--p-pad-x);
}

.ts-center { display: flex; justify-content: center; margin-top: clamp(28px, 3vw, 44px); }

/* ---------- Buttons ---------- */

.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 2px;
  font-family: var(--p-font);
  font-size: var(--p-fs-15);
  font-weight: 500;
  letter-spacing: -.01em;
  background: var(--hb-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .45s ease, color .45s ease, box-shadow .6s ease;
}

.ts-btn:hover {
  background: var(--hb-accent-hover);
  color: #fff;
  box-shadow: 0 0 28px #c8582a61, 0 0 64px #c8582a29;
}

.ts-btn--secondary {
  background: transparent;
  color: var(--p-fg);
  border: 1px solid var(--p-fg);
}

.ts-btn--secondary:hover {
  background: var(--p-fg);
  color: #000;
  box-shadow: none;
}

.ts-btn--sm { height: 40px; padding: 0 20px; font-size: var(--p-fs-14); }

/* ---------- Announcement bar ---------- */

.ts-announce {
  background: var(--hb-accent);
  color: #fff;
  text-align: center;
  padding: 9px var(--p-pad-x);
  font-size: var(--p-fs-13);
  font-weight: 600;
  letter-spacing: .08em;
  position: relative;
  z-index: 21;
}

@media (max-width: 749px) {
  .ts-announce { font-size: .6875rem; letter-spacing: .05em; }
}

/* ---------- Header ---------- */

.ts-header {
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  position: sticky;
  top: 0;
  z-index: 20;
}

.ts-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.ts-header__logo { height: 27px; width: auto; }

@media (max-width: 749px) {
  .ts-header__logo { height: 18px; }
}

/* ---------- Sections ---------- */

.ts-section {
  padding-block: clamp(40px, 5vw, 80px);
  position: relative;
}

/* Orange-tinted divider line between sections, same as store */
.ts-section + .ts-section::before,
.ts-trust + .ts-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(to right, #ffffff14, #d8744459 50%, #ffffff14);
}

.ts-section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 760px;
}

.ts-section-head--center {
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

.ts-section-head h2 {
  font-size: clamp(1.875rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 600;
  text-wrap: balance;
}

.ts-section-head p {
  color: var(--p-muted);
  font-size: var(--p-fs-18);
}

.ts-eyebrow {
  font-size: var(--p-fs-13);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hb-accent);
}

/* ---------- Hero ---------- */

.ts-hero { padding-bottom: clamp(24px, 3vw, 40px); }

.ts-hero > .ts-wrap { padding-inline: clamp(8px, 1.5vw, 24px); }

.ts-hero__rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-block: clamp(10px, 1.5vw, 18px);
  font-size: var(--p-fs-13);
  font-weight: 500;
  letter-spacing: .005em;
}

.ts-stars { display: inline-flex; align-items: center; gap: 2px; }

.ts-stars svg { width: 13px; height: 13px; fill: currentColor; }

.ts-hero__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--p-r-lg);
  isolation: isolate;
  background: var(--p-bg-soft);
  aspect-ratio: 21 / 10;
  color: #fff;
}

.ts-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ts-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, .18) 28%, transparent 60%);
}

.ts-hero__content {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  max-width: 640px;
  padding: clamp(20px, 3.5vw, 56px);
}

.ts-hero__eyebrow {
  font-size: var(--p-fs-13);
  font-weight: 500;
  opacity: .95;
  margin-bottom: 4px;
}

.ts-hero__heading {
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.028em;
  font-weight: 600;
  text-wrap: balance;
  max-width: 14ch;
}

.ts-hero__body {
  font-size: clamp(.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.4;
  opacity: .92;
}

.ts-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(12px, 1.6vw, 20px);
}

.ts-hero__note { font-size: var(--p-fs-13); opacity: .8; }

@media (max-width: 749px) {
  .ts-hero__frame { aspect-ratio: 4 / 5; border-radius: var(--p-r-md); }
  .ts-hero__content { padding: clamp(18px, 5vw, 28px); }
  .ts-hero__heading { font-size: clamp(1.875rem, 8vw, 3rem); max-width: 12ch; }
}

/* ---------- Trust bar ---------- */

.ts-trust {
  border-block: 1px solid rgba(255, 255, 255, .12);
  padding-block: 14px;
}

.ts-trust__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: var(--p-max-w);
  margin-inline: auto;
  padding-inline: var(--p-pad-x);
}

.ts-trust__item {
  font-size: var(--p-fs-13);
  font-weight: 500;
  white-space: nowrap;
}

.ts-trust__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hb-accent);
}

/* ---------- Points (what the call covers) ---------- */

.ts-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
}

.ts-point {
  background: var(--p-bg-soft);
  border: 1px solid var(--p-line);
  border-radius: var(--p-r-md);
  padding: clamp(24px, 2.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ts-point__num {
  font-size: var(--p-fs-13);
  font-weight: 600;
  color: var(--hb-accent);
  letter-spacing: .08em;
}

.ts-point h3 {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.ts-point p {
  font-size: var(--p-fs-15);
  color: var(--p-muted);
  line-height: 1.6;
}

@media (max-width: 899px) {
  .ts-points { grid-template-columns: 1fr; }
}

/* ---------- Products ---------- */

.ts-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
}

.ts-product__media {
  position: relative;
  border-radius: var(--p-r-md);
  overflow: hidden;
  background: #111;
  aspect-ratio: 1;
  margin-bottom: 16px;
}

.ts-product__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--hb-accent);
  color: #fff;
  font-size: var(--p-fs-13);
  font-weight: 600;
  letter-spacing: .02em;
  padding: 5px 12px;
  border-radius: 2px;
}

.ts-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .7s ease;
}

.ts-product:hover .ts-product__media img {
  filter: brightness(1.06) saturate(1.05);
}

.ts-product h3 {
  font-size: var(--p-fs-16);
  font-weight: 600;
  letter-spacing: -.01em;
}

.ts-product p {
  font-size: var(--p-fs-14);
  color: var(--p-muted);
  margin-top: 4px;
}

.ts-product__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  font-size: var(--p-fs-16);
}

.ts-product__price s {
  color: var(--p-muted-2);
  font-size: var(--p-fs-14);
}

.ts-product__price strong {
  color: var(--hb-accent);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}

.ts-product__price span {
  font-size: var(--p-fs-13);
  color: var(--p-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}

@media (max-width: 749px) {
  .ts-products { grid-template-columns: 1fr; }
}

/* ---------- Spotlights ---------- */

.ts-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}

.ts-spotlight--flip .ts-spotlight__media { order: 2; }
.ts-spotlight--flip .ts-spotlight__content { order: 1; }

.ts-spotlight__media {
  border-radius: var(--p-r-lg);
  overflow: hidden;
  background: var(--p-bg-soft);
}

.ts-spotlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.ts-spotlight__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 560px;
}

.ts-spotlight__content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 600;
  text-wrap: balance;
}

.ts-spotlight__content p {
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.6;
  color: var(--p-muted);
  max-width: 52ch;
}

@media (max-width: 899px) {
  .ts-spotlight { grid-template-columns: 1fr; }
  .ts-spotlight--flip .ts-spotlight__media { order: 1; }
  .ts-spotlight--flip .ts-spotlight__content { order: 2; }
}

/* ---------- Reviews ---------- */

.ts-reviews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
}

.ts-review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--p-line);
}

.ts-review img {
  border-radius: var(--p-r-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  margin-bottom: 6px;
}

.ts-review__stars {
  color: var(--hb-accent);
  font-size: var(--p-fs-14);
  letter-spacing: 2px;
}

.ts-review h3 {
  font-size: var(--p-fs-16);
  font-weight: 600;
}

.ts-review p {
  font-size: var(--p-fs-15);
  color: var(--p-fg-soft);
  line-height: 1.6;
}

.ts-review__author {
  font-size: var(--p-fs-13);
  color: var(--p-muted);
  font-weight: 500;
}

@media (max-width: 999px) {
  .ts-reviews { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
  .ts-reviews { grid-template-columns: 1fr; }
}

/* ---------- Coverage ---------- */

.ts-coverage {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
}

.ts-coverage__heading {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.ts-coverage__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.ts-coverage__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-inline: 8px;
}

.ts-coverage__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.ts-coverage__icon svg { width: 100%; height: 100%; display: block; }

.ts-coverage__title {
  font-size: clamp(.9375rem, 1.3vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.25;
  text-wrap: balance;
}

@media (max-width: 749px) {
  .ts-coverage__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Install photo marquee ---------- */
/* Same behavior as the store's product-page carousel:
   auto-scrolls on desktop (pauses on hover), swipeable on mobile */

.ts-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ts-marquee__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 16px;
  align-items: stretch;
  animation: ts-marquee-scroll 60s linear infinite;
  will-change: transform;
  padding-inline: 16px;
}

.ts-marquee__group { display: contents; }

.ts-marquee:hover .ts-marquee__track,
.ts-marquee:focus-within .ts-marquee__track {
  animation-play-state: paused;
}

@keyframes ts-marquee-scroll {
  0% { transform: translateZ(0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.ts-marquee-card {
  flex: 0 0 auto;
  width: clamp(260px, 26vw, 400px);
  scroll-snap-align: start;
}

.ts-marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border-radius: var(--p-r-lg);
  background: var(--p-bg-soft);
}

@media (max-width: 749px) {
  .ts-marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ts-marquee::-webkit-scrollbar { display: none; }
  .ts-marquee__track { animation: none; transform: none; }
  .ts-marquee-card { width: clamp(240px, 72vw, 320px); }
}

@media (prefers-reduced-motion: reduce) {
  .ts-marquee__track { animation: none; }
}

/* ---------- Booking ---------- */

.calendly-inline-widget {
  border-radius: var(--p-r-lg);
  overflow: hidden;
  background: var(--p-bg-soft);
  border: 1px solid var(--p-line);
}

/* ---------- Footer ---------- */

.ts-footer {
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: #000;
  position: relative;
}

/* Warm glow rising from footer, same as store */
.ts-footer::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 120%, rgba(200, 88, 42, .12), transparent 65%);
}

.ts-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-block: clamp(48px, 5vw, 80px) clamp(40px, 4vw, 64px);
  position: relative;
}

.ts-footer__logo { height: 22px; width: auto; }

.ts-footer__inner > p {
  color: var(--p-muted);
  font-size: var(--p-fs-15);
  max-width: 40ch;
}

.ts-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: var(--p-fs-14);
  color: var(--p-fg-soft);
}

.ts-footer__legal {
  font-size: var(--p-fs-13);
  color: var(--p-muted-2);
  margin-top: 12px;
}

/* ---------- Sticky mobile CTA ---------- */

.ts-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 -4px 24px #0009;
  transform: translateY(0);
  transition: transform .35s ease;
}

.ts-sticky--hidden { transform: translateY(110%); }

.ts-sticky__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--p-pad-x);
  max-width: var(--p-max-w);
  margin: 0 auto;
}

.ts-sticky__text { font-size: var(--p-fs-14); font-weight: 500; }

@media (min-width: 750px) {
  .ts-sticky { display: none; }
}

/* ---------- Reveal on scroll ---------- */

html.hb-motion .hb-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

html.hb-motion .hb-reveal.hb-reveal--in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.hb-motion .hb-reveal { opacity: 1; transform: none; transition: none; }
}
