/* HeatSig mockup: shared page styles (every page).
   Components come from components.css (a copy of the design system v2 bundle). This file adds the fixed
   header, phone menu, section labels, shared story pieces, footer newsletter, toast and page transitions.
   home.css and pages.css hold the page-specific layouts. Single light look with night bands (no dark theme). */

/* Base */
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  margin: 0;
}
img {
  max-width: 100%;
}
[hidden]:not([hidden="until-found" i]) {
  display: none !important;
}
html {
  background: var(--paper);
}
body {
  background: var(--paper);
  color: var(--ink-2);
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

.hs {
  --hs-edge: max(clamp(16px, 2.8vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  overflow-x: clip;
}

/* Header: fixed; transparent over the film, hides on scroll down, returns solid with the reading bar on scroll up */
.site-header {
  /* One transition list for every page: the slide back in on scroll up is smooth, and the
     hero film's quiet mode (home.css) can fade it */
  transition:
    transform 0.55s var(--ease-out),
    background-color 0.35s,
    color 0.35s,
    box-shadow 0.35s,
    opacity 0.6s var(--ease-out);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: calc(88px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .logo-dark {
  display: none;
}
.site-header.hs-header--solid .logo-dark {
  display: block;
}
.site-header.hs-header--solid .logo-light {
  display: none;
}
.site-header.hs-header--solid {
  box-shadow: 0 1px 0 var(--line);
}
/* At the footer: the light header on the footer's own night colour, so it never sits on top of text */
.site-header.hs-header--foot {
  background: var(--night);
  box-shadow: 0 1px 0 var(--night-line);
}
.site-header .hs-header__progress {
  transform: scaleX(0);
  opacity: 0;
}
.site-header.hs-header--solid .hs-header__progress {
  opacity: 1;
}
.site-header .hs-header__nav > a:hover::after {
  transform: scaleX(1);
}
.site-header .hs-header__account > button svg {
  transition: transform var(--duration-base) var(--ease-out);
}
.site-header .hs-header__account > button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.site-header .hs-header__menu {
  box-shadow:
    0 0 0 1px var(--line),
    0 24px 48px -24px rgba(12, 14, 17, 0.35);
}
.site-header .hs-header__menu a:hover {
  color: var(--ember);
}
.site-menu-btn {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font:
    500 13px/1 "Montserrat",
    sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 0;
  cursor: pointer;
}
.site-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 14, 17, 0.45), transparent);
  height: 140px;
  opacity: 1;
  transition: opacity var(--duration-base);
}
.site-scrim.is-off {
  opacity: 0;
}

/* Phone menu */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--night);
  color: var(--on-night);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) var(--hs-edge) calc(env(safe-area-inset-bottom, 0px) + 32px);
}
.site-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}
.site-menu__top img {
  width: 124px;
}
.site-menu nav {
  display: grid;
  align-content: center;
  gap: 4px;
}
.site-menu nav a {
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--on-night);
}
.site-menu nav a:hover {
  color: var(--ember-bright);
}
.site-menu__account {
  display: grid;
  gap: 12px;
}
.site-menu__account a {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--night-line);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Phone menu fit (2026-10-27): the pill keeps its own centred look (the row rule above
   stripped its side padding), long row labels wrap beside the arrow, and the menu
   scrolls on short screens instead of overflowing */
.site-menu {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site-menu__account a {
  gap: 16px;
  align-items: center;
  line-height: 1.35;
}
.site-menu__account a > span:first-child {
  min-width: 0;
}
.site-menu__account .site-menu__preorder {
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  margin-bottom: 4px;
  border-top: 0;
  white-space: normal;
  text-align: center;
}

/* Hero intro */
.hs-hero {
  padding-top: 88px;
}
.hs-hero__media {
  background: var(--night);
}

/* Section labels: number + rule, the search phrase in ember, its second half quieter (2026-10-23) */
main {
  counter-reset: sec 1;
}
.hs-opener,
.story-wrap {
  counter-increment: sec;
}
.hs-eyebrow {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.hs-eyebrow__s {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.hs-night .hs-eyebrow__s {
  color: var(--on-night-2);
}
.hs-night .hs-story__top .hs-eyebrow::before {
  color: var(--on-night-2);
  background-image: linear-gradient(var(--ember-bright), var(--ember-bright));
}
.hs-opener__left .hs-eyebrow::before,
.hs-story__top .hs-eyebrow::before {
  content: counter(sec, decimal-leading-zero);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 72px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  background: linear-gradient(var(--ember), var(--ember)) 28px 50% / 44px 1px no-repeat;
}

/* Isotherms: HeatSig's filler pattern (contour lines of warmth, drawn like a map) */
.has-iso {
  position: relative;
  isolation: isolate;
}
.iso-bg {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: url("../assets/img/isotherms.svg") center / cover no-repeat;
}
.iso-bg--warmth {
  top: 0;
  left: 0;
  width: 58%;
  height: 62%;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000 25%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000 25%, transparent 70%);
}
.iso-bg--trust {
  left: 0;
  top: 12%;
  width: 24%;
  height: 80%;
  background-size: auto 100%;
  background-position: 35% 50%;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 30% 50%, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 60% at 30% 50%, #000 30%, transparent 72%);
}

/* Warmth, never faces: two readings of the same moment, offset like a spread */
.hs-compare figure {
  position: relative;
  align-content: start;
}
.hs-compare figure + figure {
  margin-top: clamp(48px, 8vw, 120px);
}
.cmp-frame {
  position: relative;
  overflow: hidden;
}
.cmp-frame img {
  display: block;
}
.cmp-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(12, 14, 17, 0.72);
  color: var(--on-night);
}
.cmp-rec {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5484d;
}
.cmp-tag--heat {
  left: auto;
  right: 16px;
}
.cmp-corners {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  background:
    linear-gradient(#fff, #fff) 0 0 / 18px 1.5px,
    linear-gradient(#fff, #fff) 0 0 / 1.5px 18px,
    linear-gradient(#fff, #fff) 100% 0 / 18px 1.5px,
    linear-gradient(#fff, #fff) 100% 0 / 1.5px 18px,
    linear-gradient(#fff, #fff) 0 100% / 18px 1.5px,
    linear-gradient(#fff, #fff) 0 100% / 1.5px 18px,
    linear-gradient(#fff, #fff) 100% 100% / 18px 1.5px,
    linear-gradient(#fff, #fff) 100% 100% / 1.5px 18px;
  background-repeat: no-repeat;
  opacity: 0.85;
}
.cmp-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 100%) 0 0 / calc(100% / 32) 100%,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 100%) 0 0 / 100% calc(100% / 24);
}
.cmp-spot {
  position: absolute;
  left: 57%;
  top: 44%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}
.cmp-spot::before,
.cmp-spot::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
}
.cmp-spot::before {
  left: 50%;
  top: -10px;
  bottom: -10px;
  width: 1px;
}
.cmp-spot::after {
  top: 50%;
  left: -10px;
  right: -10px;
  height: 1px;
}
.cmp-spot span {
  position: absolute;
  left: calc(100% + 14px);
  top: -6px;
  white-space: nowrap;
  color: var(--on-night);
  background: rgba(12, 14, 17, 0.72);
  padding: 5px 8px;
}
.cmp-facts {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 24px;
  padding-top: 16px;
  position: relative;
  font-size: 14px;
  color: var(--ink);
}
.cmp-facts::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: radial-gradient(circle, var(--line) 0.75px, transparent 1px) 0 0 / 6px 1px repeat-x;
}
.cmp-facts dt {
  color: var(--ink-3);
}
.cmp-facts dd {
  margin: 0;
}
.cmp-facts .is-none {
  color: var(--ember);
}

/* How it sees pieces, shared by the homepage story and the How it works page */
.ch-img {
  width: min(100%, 460px);
  aspect-ratio: 460 / 340;
  object-fit: cover;
}
.ch-img--sq {
  width: min(100%, 420px);
  aspect-ratio: 1;
}
.ch-legend {
  width: min(100%, 460px);
  margin-top: 12px;
}
.ch-still {
  position: relative;
  width: min(100%, 460px);
}
.ch-still .ch-img {
  object-position: 60% 80%;
  filter: saturate(0.85) brightness(0.8);
}
.ch-still__box {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 33%;
  height: 32%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed var(--ember-bright);
}
.ch-still__box::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border: 1.5px solid var(--ember-bright);
  opacity: 0;
  animation: still-pulse 2.4s var(--ease-out) infinite;
}
@keyframes still-pulse {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}
.ch-still__tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: var(--on-night);
  background: rgba(12, 14, 17, 0.7);
  padding: 8px 10px;
}
.ch-alert {
  position: relative;
}
.ch-alert .hs-story__phone {
  width: min(260px, 60vw);
}
.ch-toast {
  position: absolute;
  left: calc(100% - 40px);
  top: 18%;
  width: 250px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}
.ch-toast b {
  font-size: 14px;
  font-weight: 600;
}
.ch-toast .hs-meta {
  color: var(--ink-3);
}
.ch-toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ember);
}

/* FAQ: Apple-style motion (2026-10-27, round 2). Only height, opacity and transform move;
   the question row never changes size. site.js animates the answer's height from wherever it
   is (so a second click reverses smoothly) and toggles .is-open; everything else follows .is-open
   with one spring curve. The big number lives in the answer's empty left column. */
.hs-faq {
  counter-reset: faq;
}
.hs-faq li {
  counter-increment: faq;
}
.hs-faq details {
  transition: background-color var(--faq-open) var(--ease-spring);
}
.hs-faq details[open] summary {
  align-items: center;
  padding-bottom: 30px;
}
.hs-faq details[open] .hs-faq__n {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  align-self: auto;
  color: var(--ember);
  opacity: 0;
}
/* The small number hands over to the big one in the answer (phones keep the small one) */
.hs-faq .hs-faq__n {
  transition:
    color var(--faq-open) var(--ease-spring),
    opacity 300ms var(--ease-spring);
}
.hs-faq .hs-round svg {
  transition: transform var(--faq-open) var(--ease-spring);
}
.hs-faq__a {
  overflow: hidden;
}
.hs-faq__a::before {
  content: counter(faq, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin-top: -8px;
  font-size: 64px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.hs-faq__a > p {
  grid-row: 1;
}
.hs-faq__a::before,
.hs-faq__a > p {
  transition:
    opacity 420ms var(--ease-spring) 60ms,
    transform var(--faq-open) var(--ease-spring) 60ms;
}
/* Closing (JS only): the row returns to its closed look at once, the text fades first */
.js-motion .hs-faq details[open]:not(.is-open) {
  background: transparent;
  transition-duration: var(--faq-close);
}
.js-motion .hs-faq details[open]:not(.is-open) .hs-faq__n {
  color: inherit;
  opacity: 1;
}
.js-motion .hs-faq details[open]:not(.is-open) .hs-round svg {
  transform: none;
  transition-duration: var(--faq-close);
}
.js-motion .hs-faq details:not(.is-open) .hs-faq__a::before,
.js-motion .hs-faq details:not(.is-open) .hs-faq__a > p {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease-out,
    transform var(--faq-close) var(--ease-spring);
}

/* Who it protects: the whole row is the link */
.row-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}
.hs-row {
  cursor: pointer;
}
.hs-row__title,
.hs-row .hs-meta,
.hs-row .hs-round {
  transition: color 450ms var(--ease-out);
}
/* Gliding hover (pointer + wide screens): one ember band and one photo frame travel between rows */
.hs-rows.is-glide {
  position: relative;
}
.hs-rows.is-glide .hs-row,
.hs-rows.is-glide .hs-row:hover,
.hs-rows.is-glide .hs-row.is-active {
  background: transparent;
  z-index: 1;
}
.hs-rows.is-glide .hs-row__media {
  display: none;
}
.rows-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  background: var(--ember);
  opacity: 0;
  pointer-events: none;
}
.rows-photo {
  position: absolute;
  left: 24%;
  top: 0;
  width: clamp(220px, 19vw, 300px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
  clip-path: inset(100% 0 0 0);
}
.rows-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 600ms var(--ease-out),
    transform 1200ms var(--ease-out);
}
.rows-photo img.is-on {
  opacity: 1;
  transform: scale(1);
}

/* In their words: two reviews, one at a time */
.quote-slides {
  display: grid;
}
.quote-slide {
  grid-area: 1 / 1;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  transition: opacity 500ms var(--ease-out);
}
.quote-slide > * {
  min-width: 0;
}
.quote-slide[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 400ms var(--ease-out),
    visibility 0s linear 400ms;
}
.quote-slide blockquote {
  margin: 0;
  display: grid;
  gap: 32px;
}
.quote-slide .hs-quote__photo {
  width: min(100%, 440px);
  aspect-ratio: 1;
  object-fit: cover;
}
.quote-slide q {
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  quotes: "\201C" "\201D";
}
.quote-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-left: calc(50% + 12px);
  margin-top: 32px;
}
.quote-foot .hs-meta:first-child {
  color: var(--ink);
}
.quote-foot button {
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.quote-foot button:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Newsletter result */
.news-done {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  color: var(--ink);
}
.news-error {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--ember-dark);
}

/* Toast for links that go to pages the mockup doesn't have yet */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  transform: translate(-50%, 16px);
  z-index: 70;
  background: var(--ink);
  color: var(--paper);
  font:
    500 13px/1.4 "Montserrat",
    sans-serif;
  letter-spacing: 0.02em;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 250ms,
    transform 250ms var(--ease-out);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.site-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mock-badge {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 14px;
  font:
    600 11px/1 "Montserrat",
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mock-badge button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: var(--ember-soft);
  color: var(--ember-dark);
  cursor: pointer;
  font:
    600 13px/1 "Montserrat",
    sans-serif;
}

@media (max-width: 480px) {
  .hs-header {
    gap: 16px;
  }
  .hs-header__logo img {
    width: 104px;
  }
  .hs-figures {
    gap: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ch-still__box::after {
    animation: none;
  }
}

/* Layout helpers (were inline styles) */
.hs-section--bleed {
  padding-left: 0;
  padding-right: 0;
}
.hs-section--flush-top {
  padding-top: 0;
}
.site-edge {
  padding: 0 var(--hs-edge);
}
.hs-body--ink {
  color: var(--ink);
}
.pill-start {
  justify-self: start;
}
.ch-toast__detail {
  font-size: 13px;
  color: var(--ink-2);
}
.photo-face {
  object-position: 50% 30%;
}
.hs-hero__film {
  color: var(--on-night);
  background: none;
  border-width: 0 0 1px;
  padding: 0 0 6px;
  cursor: pointer;
}
.site-menu__close {
  background: none;
  color: var(--on-night);
  cursor: pointer;
}
.site-menu__preorder {
  justify-content: center;
  border: 0;
  padding: 0 20px;
}

/* Current page in the header (set by site.js from the URL) */
.site-header .hs-header__nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-menu nav a[aria-current="page"] {
  color: var(--ember-bright);
}

/* Page transitions: a short fade between pages (2026-10-26) */
body {
  animation: page-in 500ms var(--ease-out) both;
}
body.is-leaving {
  opacity: 0;
  transition: opacity 220ms ease-in;
}
@keyframes page-in {
  from {
    opacity: 0;
  }
}

/* Detail-page hero: the homepage hero's look, shorter, with a still image (2026-10-26) */
.hs-hero--page {
  min-height: max(560px, 76svh);
}
.hs-hero--plain {
  min-height: max(460px, 60svh);
}
.hs-hero--plain::after {
  display: none;
}
.hs-hero--page h1,
.hs-hero--plain h1 {
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.hs-crumbs {
  display: flex;
  gap: 10px;
  color: rgba(252, 253, 253, 0.7);
}
.hs-crumbs a:hover {
  color: var(--on-night);
}

/* Scroll cue (2026-10-28, from home.css): bottom centre of a full-screen hero, so a visitor
   knows the page goes on. site.js fades it once the page moves past the hero and gives one
   soft nudge; on the homepage it stays (dimmed) while the hero text is quiet. */
.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 6px 12px;
  color: var(--on-night);
  text-decoration: none;
  transition: opacity 0.6s var(--ease-out);
}
.hero-cue .hs-meta {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: inherit;
  opacity: 0.85;
}
.hero-cue__track {
  position: relative;
  width: 1px;
  height: 40px;
  background: rgba(252, 253, 253, 0.28);
  overflow: hidden;
}
.hero-cue__dot {
  position: absolute;
  left: -2px;
  top: 0;
  width: 5px;
  height: 12px;
  border-radius: 3px;
  background: var(--ember-bright);
}
.hero-cue:hover .hs-meta,
.hero-cue:focus-visible .hs-meta {
  opacity: 1;
}
.hero-cue.is-gone {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-cue__dot {
    animation: cue-fall 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
  .hero-cue.is-nudge .hero-cue__dot {
    animation-duration: 0.9s;
  }
}
@keyframes cue-fall {
  0% {
    transform: translateY(-14px);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(42px);
    opacity: 0;
  }
}

/* Detail-page heroes with a scroll cue (2026-10-28): room for the cue below the text */
.hs-hero--page .hs-hero__content {
  padding-bottom: 112px;
}

/* Photo heroes (2026-10-28): a soft night shade behind the text, so a bright photo never
   washes out the white title. Wide screens: the title half; narrow screens: below. */
@media (min-width: 861px) {
  .hs-hero--page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      90deg,
      rgba(12, 14, 17, 0.62) 0%,
      rgba(12, 14, 17, 0.4) 38%,
      rgba(12, 14, 17, 0) 68%
    );
  }
}
/* Narrow screens: the text stacks over the lower half, so the shade runs top to bottom */
@media (max-width: 860px) {
  .hs-hero--page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(12, 14, 17, 0) 20%, rgba(12, 14, 17, 0.62) 42%, rgba(12, 14, 17, 0.5) 100%);
  }
}

/* Questions: the list ends on its own row, so an open last answer never meets the footer (2026-10-26) */
.faq-all {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 30px var(--hs-edge);
  color: var(--ink);
}
.faq-all::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: radial-gradient(circle, var(--line) 0.75px, transparent 1px) 0 0 / 6px 1px repeat-x;
}
.faq-all__go {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.faq-all .hs-round {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.faq-all:hover .hs-round {
  background: var(--ember);
  border-color: var(--ember);
  transform: rotate(-45deg);
}

/* Stay close: the newsletter opens the dark footer instead of a separate band (2026-10-26) */
.foot-news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: clamp(72px, 8vw, 120px);
}
.foot-news > * {
  min-width: 0;
}
.foot-news__label {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 1.4em;
}
/* A quiet touch of the heat pattern in the newsletter's empty left half: a few isotherm
   lines around one warm point that breathes slowly */
.foot-news__iso {
  position: relative;
  display: block;
  width: min(100%, 460px);
  aspect-ratio: 4 / 3;
  margin-top: 32px;
}
.foot-news__iso::before {
  content: "";
  position: absolute;
  inset: -10% -14%;
  background: url("../assets/img/isotherms.svg") 38% 40% / 260% auto;
  opacity: 0.42;
  -webkit-mask-image: radial-gradient(closest-side at 45% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side at 45% 50%, #000 45%, transparent 100%);
}
/* The warm point: a soft glow, a dot and two slow rings, offset so the heat keeps moving */
.foot-news__iso::after {
  content: "";
  position: absolute;
  left: 42%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 106, 58, 0.28), rgba(239, 106, 58, 0) 70%);
}
.foot-news__warm {
  position: absolute;
  z-index: 1;
  left: 42%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--ember-bright);
  box-shadow:
    0 0 0 0 rgba(239, 106, 58, 0.5),
    0 0 0 0 rgba(239, 106, 58, 0.3);
}
@media (prefers-reduced-motion: no-preference) {
  .foot-news__warm {
    animation: warm-breathe 6s ease-in-out infinite;
  }
}
@keyframes warm-breathe {
  50% {
    box-shadow:
      0 0 0 22px rgba(239, 106, 58, 0),
      0 0 0 10px rgba(239, 106, 58, 0.18);
  }
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(239, 106, 58, 0.5),
      0 0 0 34px rgba(239, 106, 58, 0);
  }
}
.foot-news__main {
  display: grid;
  gap: 24px;
}
.foot-news .hs-news__form {
  margin: 24px 0 0;
  padding-right: clamp(0px, 3vw, 48px);
}
.foot-rule {
  margin-bottom: 72px;
}
.hs-footer .hs-field span {
  color: var(--on-night-2);
}
.hs-footer .hs-field input {
  color: var(--on-night);
  border-bottom-color: rgba(252, 253, 253, 0.45);
}
.hs-footer .hs-field input:focus {
  border-color: var(--ember-bright);
}
.hs-footer .hs-consent {
  color: var(--on-night-2);
}
.hs-footer .hs-consent input {
  accent-color: var(--ember-bright);
}
/* The privacy policy / pre-order terms links in consent lines (2026-10-28) */
.hs-consent a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.hs-consent a:hover {
  color: var(--ember);
}
.hs-footer .hs-consent a:hover {
  color: var(--ember-bright);
}
.hs-footer .news-done {
  color: var(--on-night);
  font-size: 17px;
}
.hs-footer .news-error {
  color: var(--ember-bright);
}
.hs-footer__lead {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.4;
  max-width: 22ch;
}
.hs-footer__base a:hover {
  color: var(--on-night);
}

/* Mockup label: smaller, in the right corner, remembers when it's hidden (2026-10-26) */
.mock-badge {
  left: auto;
  right: max(16px, env(safe-area-inset-right, 0px));
  padding: 6px 6px 6px 12px;
  font-size: 10px;
}

/* Back to top (2026-10-27): bottom right above the mockup label; the ember ring is the
   page progress; light on dark once the footer is behind it */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 64px);
  z-index: 44;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  /* the soft shadow keeps it visible over white sections on bright phone screens */
  box-shadow:
    0 0 0 1px var(--line),
    0 6px 18px rgba(12, 14, 17, 0.16);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.45s var(--ease-spring),
    transform 0.45s var(--ease-spring),
    visibility 0s 0.45s,
    background-color 0.4s,
    color 0.4s,
    box-shadow 0.4s;
}
.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.to-top:hover .hs-icon {
  transform: translateY(-2px);
}
.to-top .hs-icon {
  transition: transform 0.3s var(--ease-spring);
}
.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  fill: none;
  stroke: var(--ember);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.to-top.is-dark {
  background: var(--night-2);
  color: var(--on-night);
  box-shadow: 0 0 0 1px var(--night-line);
}
.to-top.is-dark .to-top__ring {
  stroke: var(--ember-bright);
}
/* Phones (2026-10-27): iPhone Safari's floating bottom bar covers roughly the lowest 90px,
   so the button sits above it, clear of the home indicator too */
@media (max-width: 600px) and (pointer: coarse) {
  .to-top {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
  }
}

/* Reveal on scroll: content fades up once (site.js adds .js-motion and .is-in) */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 800ms var(--ease-out),
    transform 900ms var(--ease-out);
}
.js-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.swipe-hint {
  display: none;
}

/* Tablet: up to 860px */
@media (max-width: 860px) {
  .hs-header__nav {
    gap: 20px;
  }
  /* One column: the small number in the question row is enough */
  .hs-faq__a::before {
    display: none;
  }
  .hs-faq details[open] .hs-faq__n {
    opacity: 1;
  }
  .site-menu-btn {
    display: inline-block;
  }
  .site-header .hs-header__menu {
    right: -64px;
  }
  .ch-toast {
    position: static;
    margin-top: 16px;
    width: min(100%, 300px);
  }
  .quote-slide {
    grid-template-columns: 1fr;
  }
  .quote-slide .hs-quote__photo {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
  .quote-foot {
    margin-left: 0;
  }
  .iso-bg--warmth {
    width: 100%;
    height: 420px;
    opacity: 0.7;
  }
  .iso-bg--trust {
    display: none;
  }
  .foot-news {
    grid-template-columns: 1fr;
  }
  .foot-news__label {
    padding-top: 0;
  }
  .foot-news__iso {
    display: none;
  }
  .faq-all {
    grid-template-columns: 1fr;
  }
  .faq-all > .hs-meta {
    display: none;
  }
  /* Why trust it: a compact 2 x 2 instead of a long list */
  .hs-trust {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 40px;
  }
  .hs-trust article {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hs-disc {
    width: 52px;
    height: 52px;
  }
  .hs-disc svg {
    width: 22px;
    height: 22px;
  }
  .hs-trust h3 {
    font-size: 15px;
    margin-bottom: 8px;
  }
  .hs-trust h3 br {
    display: none;
  }
  .hs-trust .hs-body {
    font-size: 14px;
  }
  /* Story cards: one swipe row instead of a long stack */
  .hs-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-left: calc(var(--hs-edge) * -1);
    margin-right: calc(var(--hs-edge) * -1);
    padding-left: var(--hs-edge);
    padding-right: var(--hs-edge);
    scroll-padding-left: var(--hs-edge);
  }
  .hs-cards::-webkit-scrollbar {
    display: none;
  }
  /* Press logos: the label above, all four logos in one still row (2026-10-28) */
  .hs-press {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    align-items: center;
    gap: 20px clamp(16px, 6vw, 56px);
    margin-top: 56px;
    padding-top: 24px;
  }
  .hs-press .hs-meta {
    grid-column: 1 / -1;
  }
  .hs-press img {
    height: clamp(26px, 7vw, 32px);
  }
  .hs-cards {
    gap: 16px;
  }
  .hs-cards > .hs-card {
    flex: 0 0 min(78vw, 340px);
    scroll-snap-align: start;
  }
  .hs-card:first-child img {
    aspect-ratio: 4 / 3;
  }
  .hs-card h3 {
    font-size: 18px;
  }
  .swipe-hint {
    display: block;
    margin-top: 20px;
  }
}

/* Phone: up to 600px. Tighter type and spacing so each section reads in a screen or two */
@media (max-width: 600px) {
  .hero-cue {
    bottom: 12px;
  }
  .hs-hero--page .hs-hero__content {
    padding-bottom: 96px;
  }
  .hs-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .hs-opener {
    margin-bottom: 40px;
    gap: 16px;
  }
  .hs-opener__left .hs-eyebrow::before,
  .hs-story__top .hs-eyebrow::before {
    margin-bottom: 6px;
  }
  .hs-eyebrow {
    font-size: 12px;
  }
  .hs-eyebrow__s {
    display: none;
  }
  .hs-story-title {
    font-size: 44px;
    letter-spacing: -0.035em;
  }
  .hs-statement {
    font-size: 26px;
  }
  .hs-body {
    font-size: 14px;
  }
  .hs-hero__content {
    gap: 28px;
    padding-bottom: 32px;
  }
  .hs-hero h1 {
    font-size: 40px;
  }
  .hs-hero--page h1,
  .hs-hero--plain h1 {
    font-size: 44px;
  }
  .hs-hero__side {
    gap: 18px;
  }
  .hs-hero__side p {
    font-size: 14px;
  }
  .hs-hero__actions {
    gap: 20px;
  }
  .site-menu nav a {
    font-size: 30px;
  }
  .hs-row {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .hs-row__title {
    font-size: 22px;
  }
  .hs-row__media {
    width: 64px;
  }
  .hs-compare {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hs-compare figure + figure {
    margin-top: 0;
  }
  .hs-compare img {
    aspect-ratio: 3 / 4;
  }
  .cmp-tag {
    left: 8px;
    top: 8px;
    padding: 5px 7px;
    font-size: 10px;
  }
  .cmp-tag--heat {
    right: 8px;
    left: auto;
  }
  .cmp-spot {
    width: 40px;
    height: 40px;
  }
  .cmp-spot span {
    display: none;
  }
  .cmp-facts {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 13px;
  }
  .cmp-facts dd + dt {
    margin-top: 8px;
  }
  .hs-compare .hs-legend {
    display: none;
  }
  .quote-slide q {
    font-size: 20px;
  }
  .hs-faq summary {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 6px;
  }
  .hs-faq__q {
    font-size: 14px;
  }
  .hs-faq details[open] summary {
    padding-bottom: 20px;
  }
  .hs-faq .hs-round,
  .faq-all .hs-round {
    width: 36px;
    height: 36px;
  }
  .faq-all__go {
    font-size: 14px;
  }
  .hs-footer {
    padding-top: 72px;
  }
  .foot-rule {
    margin-bottom: 48px;
  }
  .hs-footer__grid {
    row-gap: 40px;
  }
  .hs-footer__lead {
    grid-column: 1 / -1;
    font-size: 18px;
  }
  .hs-footer__mark {
    margin-top: 64px;
  }
  .hs-footer__base {
    flex-direction: column;
  }
  .mock-badge {
    padding: 4px 4px 4px 10px;
  }
  .mock-badge__text {
    font-size: 0;
  }
  .mock-badge__text::before {
    content: "Mockup";
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
  .js-motion [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
