/* Compare the Heat - design system.
   Static, no build. One accent (sun orange), one radius system, light + dark locked. */

:root {
  color-scheme: light dark;

  /* Neutrals - warm stone family, used consistently. */
  --paper:        #fdfbf7;
  --paper-2:      #f4efe6;
  --surface:      #ffffff;
  --line:         #e4dbcc;
  --line-strong:  #cfc2ad;
  --ink:          #191512;
  --ink-2:        #4a423a;
  --ink-3:        #736858;

  /* THE single accent. Used identically everywhere. */
  --accent:       #d1481f;
  --accent-hover: #b23a15;
  --accent-soft:  #fbe9e1;

  /* One radius system: cards 12, pills full, media 14. */
  --r-card: 12px;
  --r-media: 14px;
  --r-pill: 999px;

  --shadow: 0 1px 2px rgb(25 21 18 / .05), 0 14px 34px -18px rgb(25 21 18 / .28);

  --wrap: 1160px;
  --gap-section: clamp(4rem, 3rem + 5vw, 8rem);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:        #14110e;
    --paper-2:      #1c1815;
    --surface:      #1f1a16;
    --line:         #332c25;
    --line-strong:  #4a4036;
    --ink:          #f6f1ea;
    --ink-2:        #c8bdaf;
    --ink-3:        #9a8d7d;
    --accent:       #ff7043;
    --accent-hover: #ff8a63;
    --accent-soft:  #2e1c14;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 34px -18px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .97rem + .16vw, 1.06rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 680;
  letter-spacing: -.028em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--surface); color: var(--ink);
  padding: .7rem 1.1rem; border-radius: var(--r-card); z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Rationed: max one eyebrow per three sections. */
.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .9rem;
}

/* ---------- header ---------- */
/* Sits over the hero photograph, then solidifies once the hero is scrolled past.
   Default state is the solid one so a no-JS page is never white-on-white. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
html.js-reveal .site-header.over-hero {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
html.js-reveal .site-header.over-hero .brand { color: #fff; }
html.js-reveal .site-header.over-hero .nav a { color: rgb(255 255 255 / .88); }
html.js-reveal .site-header.over-hero .nav a:hover { color: #fff; }
.site-header .wrap {
  height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.12rem; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #ffc46b, var(--accent) 72%);
  flex: none;
}
.nav { display: flex; gap: 1.6rem; }
.nav a {
  color: var(--ink-2); text-decoration: none;
  font-size: .93rem; font-weight: 550; white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--accent); }
@media (max-width: 900px) { .nav { display: none; } }

/* ---------- hero: full-bleed photograph, huge layered display type ---------- */
.hero {
  position: relative;
  min-height: 100dvh;              /* never h-screen: avoids iOS bar jump */
  display: flex; align-items: flex-end;
  padding: 0 0 clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
/* Scrim: keeps the display type legible over any part of the photograph. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgb(10 8 6 / .9) 0%, rgb(10 8 6 / .55) 46%, rgb(10 8 6 / .2) 74%),
    linear-gradient(to right, rgb(10 8 6 / .55), transparent 62%);
}

.hero h1 {
  margin: 0 0 1.2rem;
  line-height: .86;
  letter-spacing: -.045em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(3rem, 1rem + 10.5vw, 9.5rem);
}
.hero h1 .line { display: block; }
/* Layer one: outlined, recedes. Layer two: solid, carries the message. */
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: clamp(1px, .13vw, 2px) rgb(255 255 255 / .8);
  text-stroke: clamp(1px, .13vw, 2px) rgb(255 255 255 / .8);
}
.hero h1 .solid { color: #fff; }

.hero .lede {
  color: rgb(255 255 255 / .82);
  font-size: clamp(1rem, .95rem + .4vw, 1.24rem);
  max-width: 46ch; margin: 0 0 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

/* On the hero the ghost button sits on photography, so it needs its own contrast. */
.hero .btn-ghost { color: #fff; border-color: rgb(255 255 255 / .5); }
.hero .btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / .12); color: #fff; }

@media (max-width: 560px) {
  .hero { min-height: 92dvh; }
  .hero-bg img { object-position: 62% 50%; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  font-weight: 640; font-size: .95rem; padding: .78rem 1.5rem;
  border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost:active { transform: translateY(1px); }

/* ---------- sections ---------- */
section { padding-block: var(--gap-section); scroll-margin-top: 80px; }
.band { background: var(--paper-2); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.section-head h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem); margin-bottom: .8rem; }
.section-head p { color: var(--ink-2); }

/* ---------- bento: varied cells, exact count, image cells for variety ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(4, 1fr); } }

.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 150px; padding: 1.3rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); text-decoration: none; color: var(--ink);
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.tile h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.tile p { font-size: .87rem; color: var(--ink-3); }
.tile-wide { grid-column: span 2; }
@media (min-width: 760px) {
  .tile-tall { grid-row: span 2; min-height: 316px; }
}
/* photo tile: content sits over the image */
.tile-photo { border: 0; color: #fff; min-height: 220px; }
.tile-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.tile-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgb(12 9 7 / .85) 8%, rgb(12 9 7 / .12) 62%);
}
.tile-photo > * { position: relative; z-index: 2; }
.tile-photo h3 { color: #fff; }
.tile-photo p { color: rgb(255 255 255 / .8); }

/* ---------- booking-order timeline ---------- */
.timeline { position: relative; display: grid; gap: 1.6rem; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(7, 1fr); gap: 0; }
  /* One segment per gap, drawn from each dot to the next. Nothing trails the last. */
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 15px; left: 40px; right: 8px; height: 2px;
    background: color-mix(in srgb, var(--accent) 45%, transparent);
  }
}
.step { position: relative; padding-right: 1.2rem; }
.step-dot {
  width: 32px; height: 32px; border-radius: var(--r-pill);
  display: grid; place-items: center; margin-bottom: .9rem;
  background: var(--accent); color: #fff;
  font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 5px var(--paper);
}
.band .step-dot { box-shadow: 0 0 0 5px var(--paper-2); }
.step h3 { font-size: 1.04rem; margin-bottom: .3rem; }
.step h3 a { color: var(--ink); text-decoration: none; }
.step h3 a:hover { color: var(--accent); }
.step p { font-size: .88rem; color: var(--ink-3); }
.step .when {
  display: block; margin-top: .5rem; font-family: var(--mono);
  font-size: .74rem; letter-spacing: .04em; color: var(--accent);
}
/* mobile: vertical rail down the left of each step */
@media (max-width: 899px) {
  .timeline { padding-left: 0; }
  .step { display: grid; grid-template-columns: 32px 1fr; column-gap: 1rem; align-items: start; padding-right: 0; }
  .step-dot { margin-bottom: 0; }
  .step > :not(.step-dot) { grid-column: 2; }
  /* vertical rail joining each dot to the next */
  .step:not(:last-child)::after {
    content: ""; position: absolute; left: 15px; top: 38px; bottom: -1.6rem; width: 2px;
    background: color-mix(in srgb, var(--accent) 40%, transparent);
  }
}

/* ---------- feature: image + content split (used max twice, alternating) ---------- */
.feature { display: grid; gap: clamp(1.8rem, 1.4rem + 2.5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.flip .feature-media { order: 2; }
}
.feature-media { border-radius: var(--r-media); overflow: hidden; box-shadow: var(--shadow); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1216 / 832; }
.feature h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem); margin-bottom: .9rem; }
.feature p { color: var(--ink-2); margin-bottom: 1.4rem; }

/* ---------- comparison tables: grouped, no hairline on every row ---------- */
.table-wrap {
  overflow-x: auto;
  /* overflow-x alone does not stop the wide table contributing to the ROOT scroll
     area in Chrome, which forced 560px of horizontal scroll at a 390px viewport.
     contain:paint enforces the containment the scroll box already implies. */
  contain: paint;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
table.cmp { width: 100%; border-collapse: collapse; min-width: 620px; }
table.cmp caption {
  text-align: left; padding: 1.15rem 1.3rem .35rem;
  font-weight: 660; font-size: 1.08rem; letter-spacing: -.02em;
}
table.cmp thead th {
  text-align: left; font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  padding: .7rem 1.3rem; border-bottom: 1px solid var(--line);
}
table.cmp td { padding: 1rem 1.3rem; vertical-align: middle; border: 0; }
table.cmp tbody tr + tr td { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--line) 55%, transparent); }
table.cmp tbody tr:hover td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.b-name { font-weight: 660; }
.b-name span { display: block; font-weight: 450; font-size: .84rem; color: var(--ink-3); }
.window { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: .86rem; color: var(--ink-2); }
.go {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
  border-radius: var(--r-pill); padding: .45rem 1rem;
  font-size: .85rem; font-weight: 640; text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.go:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Grid items default to min-width:auto, so a child holding a wide table (min-width 620px)
   refuses to shrink and pushes the whole page wider on mobile. Reset it everywhere. */
.hero-grid > *, .bento > *, .feature > *, .statement-grid > *, .trio > * { min-width: 0; }

/* spacing utilities (kept tiny and named, not inline styles) */
.mt-lg { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.mt-sm { margin-top: 1.5rem; }
.mb-lg { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.muted-lead { color: var(--ink-2); margin-bottom: 1.4rem; }

/* ---------- statement band ---------- */
.statement { text-align: left; max-width: 30ch; }
.statement .big {
  font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5rem);
  font-weight: 700; letter-spacing: -.04em; line-height: .95; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.statement-grid { display: grid; gap: clamp(1.6rem, 1.2rem + 2vw, 3rem); }
@media (min-width: 860px) { .statement-grid { grid-template-columns: .85fr 1.15fr; align-items: center; } }

/* ---------- protection trio: asymmetric, not three equal cards ---------- */
.trio { display: grid; gap: 1rem; }
@media (min-width: 860px) { .trio { grid-template-columns: 1.4fr 1fr 1fr; align-items: stretch; } }
.trio > div {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 1.6rem;
}
.trio h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.trio p { color: var(--ink-2); font-size: .93rem; margin-bottom: 1.1rem; }

/* headline figure inside a trio card */
.big-stat {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 700; letter-spacing: -.035em; line-height: 1;
  color: var(--accent); margin: .1rem 0 .5rem;
}
.mt-md { margin-top: 1.4rem; }
code {
  font-family: var(--mono); font-size: .88em;
  background: var(--paper-2); padding: .1rem .35rem; border-radius: 5px;
}

/* ---------- faq ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: .3rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 620; font-size: 1.04rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-2); padding-bottom: 1.2rem; max-width: 70ch; }

/* ---------- disclosure ---------- */
.note {
  border-left: 3px solid var(--accent);
  padding: .2rem 0 .2rem 1.4rem;
  color: var(--ink-2); max-width: 76ch;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; gap: 2.2rem; margin-bottom: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .9rem; font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer li a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.site-footer li a:hover { color: var(--accent); }
.footer-blurb { color: var(--ink-2); max-width: 40ch; margin-top: .9rem; font-size: .93rem; }
.footer-base {
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  font-size: .84rem; color: var(--ink-3);
}

/* ---------- motion: reveal on enter (IntersectionObserver driven) ---------- */
/* Content is visible by default. The hidden start state is applied ONLY when the
   <html class="js-reveal"> flag is set by script, so no-JS users, a blocked script,
   or an observer that never fires can never leave a section invisible. */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
  html.js-reveal .reveal.in {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
