/*
  SweetSpot Heating & Cooling: coming-soon site
  Brand: SweetSpot Brand Guide v1.0 (Oct 12, 2026)
  - Brand colors: Orange #FF5A00 and White #FFFFFF only.
  - Ink #211A16 is functional: text, UI icons, borders. Never a brand accent.
  - White text on orange only at 19px bold / 24px regular and up (large text).
  - Plus Jakarta Sans 400/600/700/800, self-hosted (SIL OFL).
  - Logo files are the approved masters, used unaltered as <img>.
  - The comfort dial is only ever moved as a whole (translate) or scaled
    uniformly. It is never rotated, recolored or redrawn, and the dot stays
    at 12 o'clock.
*/

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --orange: #FF5A00;
  --white: #FFFFFF;
  --ink: #211A16;
  --ink-muted: rgba(33, 26, 22, 0.74);
  --rule: rgba(33, 26, 22, 0.14);
  --rule-on-orange: rgba(33, 26, 22, 0.3);
  --font: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 10vw, 144px);
  --ease: cubic-bezier(0.16, 0.84, 0.24, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
::selection { background: var(--ink); color: var(--white); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
main:focus { outline: none; }

.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;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.field-orange { background: var(--orange); }

/* Labels: Bold 700, caps, +12% tracking (brand guide) */
.eyebrow, .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.fine { font-size: 15px; color: var(--ink-muted); }

h2 {
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.042em;
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--ink); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Header */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(16px, 2.6vw, 30px);
}
.brand { display: block; border-radius: 6px; }
.brand img { width: clamp(226px, 20vw, 264px); }

/* ---------- Hero ---------- */
/* The rolling dial's transparent corners can swing past the screen edge on
   phones; clip them so the page never scrolls sideways. */
.hero-field { overflow: hidden; }
@supports (overflow: clip) { .hero-field { overflow: clip; } }
.hero { padding-block: clamp(26px, 3.6vw, 48px) clamp(40px, 5vw, 64px); }

.kicker { margin-bottom: clamp(14px, 2vw, 22px); }

.hero-title {
  color: var(--white);
  font-size: clamp(34px, min(11vw, 14.2vh), 128px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.052em;
  margin-left: -0.04em;
}
/* Each line sits in a mask; padding/negative margin keep descenders and the
   "j" hook inside the mask without changing the layout. */
.hero-title .line {
  display: block;
  overflow: clip;
  padding: 0 0.14em 0.18em;
  margin: 0 -0.14em -0.18em;
}
.hero-title .line-inner { display: block; position: relative; }
.phrase { display: inline-block; white-space: nowrap; }
/* Plus Jakarta's full stop sits loose after display-size letters; pull it in. */
.punct { margin-left: -0.06em; }
.phrase-out { position: absolute; left: 0; top: 0; pointer-events: none; }

/* Comfort dial: the interactive centrepiece */
.comfort {
  --dial: clamp(124px, min(14vw, 20vh), 192px);
  --word: clamp(24px, 6vw, 84px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "cool track warm";
  align-items: center;
  column-gap: clamp(12px, 2vw, 28px);
  margin-top: clamp(24px, 3vw, 40px);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.comfort.is-live { touch-action: pan-y; cursor: grab; }
.comfort.is-dragging { cursor: grabbing; }

.comfort-word {
  font-size: var(--word);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--white);
  white-space: nowrap;
}
.comfort-word .word { display: inline-block; will-change: transform; }
/* Words grow away from the dial so they never meet it. */
.comfort-cool { grid-area: cool; }
.comfort-cool .word { transform-origin: 100% 50%; }
.comfort-warm { grid-area: warm; text-align: right; }
.comfort-warm .word { transform-origin: 0% 50%; }

.comfort-track {
  grid-area: track;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.comfort-dial {
  width: var(--dial);
  flex: none;
  border-radius: 50%;
  will-change: transform;
}
.comfort-dial:focus-visible { outline-offset: 0; }
.dial-face img {
  width: 100%;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: transform 0.35s var(--ease);
}
.comfort-dial.is-locked .dial-face img { animation: dial-lock 0.6s var(--ease); }
@keyframes dial-lock {
  0% { transform: scale(1); }
  35% { transform: scale(1.045); }
  100% { transform: scale(1); }
}

.comfort-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7em;
  margin-top: clamp(10px, 1.2vw, 14px);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  min-height: 1.6em;
}
.hint-arrow { display: inline-block; font-size: 1.35em; line-height: 1; font-weight: 800; transform: translateY(-0.04em); }
.hint-left { animation: nudge-left 1.5s ease-in-out 2.4s 3; }
.hint-right { animation: nudge-right 1.5s ease-in-out 2.4s 3; }
.comfort-hint.is-after .hint-arrow { display: none; }
@keyframes nudge-left { 0%, 100% { transform: translateY(-0.04em); } 50% { transform: translate(-5px, -0.04em); } }
@keyframes nudge-right { 0%, 100% { transform: translateY(-0.04em); } 50% { transform: translate(5px, -0.04em); } }
.comfort-hint.is-swapping { animation: hint-in 0.45s var(--ease); }
@keyframes hint-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  margin-top: clamp(24px, 2.6vw, 34px);
  padding-top: clamp(20px, 2.2vw, 26px);
  border-top: 2px solid var(--rule-on-orange);
}
.hero-lede {
  color: var(--white);
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  max-width: 36ch;
}
.hero-foot .hero-actions { justify-content: flex-end; }
.notfound { min-height: 100vh; min-height: 100svh; }
.notfound .hero-lede { margin-top: clamp(24px, 3vw, 36px); }
.notfound .actions { margin-top: clamp(28px, 3.4vw, 40px); }
.hero-email {
  color: var(--white);
  font-size: 19px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.hero-email:hover { text-decoration-thickness: 0.14em; }

/* ---------- Comfort, your way ---------- */
.intro { padding-block: var(--section); }
.intro-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px clamp(32px, 6vw, 96px);
  align-items: end;
}
.intro-head .eyebrow { margin-bottom: 18px; }
.intro-copy { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-muted); max-width: 44ch; }

.principles {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 6.4vw, 88px);
}
.principle { border-top: 2px solid var(--ink); padding-top: 22px; }
.principle img { width: 28px; height: 28px; }
.principle h3 { margin-top: 18px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.principle p { margin-top: 8px; color: var(--ink-muted); font-size: 17px; max-width: 32ch; }

/* ---------- Where ---------- */
.where { padding-block: var(--section); }
.where-title {
  color: var(--white);
  font-size: clamp(30px, 10vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.052em;
  margin-top: clamp(16px, 2.2vw, 26px);
}
.where-and { font-weight: 400; }
.where-note {
  color: var(--ink);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 600;
  margin-top: clamp(22px, 2.8vw, 34px);
}

/* ---------- Questions ---------- */
.questions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 28px clamp(40px, 7vw, 120px);
  padding-block: var(--section);
  align-items: start;
}
.questions-head .eyebrow { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 22px;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  border-radius: 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon::after { transform: rotate(0deg); }
.faq summary:hover .faq-icon::before, .faq summary:hover .faq-icon::after { background: var(--ink); }
.faq details > div { padding-bottom: 24px; color: var(--ink-muted); max-width: 54ch; }
.faq details > div p + p { margin-top: 10px; }
.faq details[open] > div { animation: answer-in 0.4s var(--ease); }
@keyframes answer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Careers ---------- */
.careers {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 28px clamp(40px, 7vw, 120px);
  padding-bottom: var(--section);
  align-items: start;
}
.careers-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.careers-intro > p:last-child { color: var(--ink-muted); max-width: 40ch; }
.careers-role {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.careers-role h3 { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.careers-role > p { color: var(--ink-muted); max-width: 48ch; }
.careers-role .career-meta { color: var(--ink); font-size: 15px; font-weight: 700; }
.careers-role .career-pay { font-size: 16px; }
.career-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.career-links > a:last-child { font-size: 16px; font-weight: 700; }

/* ---------- Contact ---------- */
.contact { padding-block: var(--section); }
.contact-title {
  color: var(--white);
  font-size: clamp(44px, 7.6vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 11ch;
}
.contact-note {
  color: var(--ink);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 600;
  margin-top: clamp(18px, 2.4vw, 28px);
}
.contact-email {
  margin-top: clamp(26px, 3.6vw, 44px);
  font-size: clamp(22px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.contact-email a { color: var(--white); text-decoration-thickness: 0.06em; overflow-wrap: anywhere; }
.contact .actions { margin-top: clamp(26px, 3.4vw, 38px); }
.copy-status { font-size: 16px; font-weight: 700; color: var(--ink); min-height: 1.6em; }
.social { margin-top: clamp(32px, 4.4vw, 52px); font-size: 16px; font-weight: 600; color: var(--ink); }
.social a { font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: clamp(44px, 5.4vw, 68px);
}
.footer-logo { width: clamp(226px, 20vw, 256px); }
.footer-text { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-muted); }
.footer-text p:first-child { color: var(--ink); font-weight: 600; }
.footer-text .fine { font-size: 14px; }

/* ---------- Motion ---------- */
/* Load: headline, dial and words arrive once. `backwards` fill hands
   control back to the interactive transforms as soon as each finishes. */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
/* Uniform scale only, with a small overshoot so the dial lands with weight. */
@keyframes dial-in {
  0% { opacity: 0; transform: scale(0.55); }
  55% { opacity: 1; transform: scale(1.06); }
  78% { transform: scale(0.985); }
  100% { opacity: 1; transform: none; }
}
/* The words wipe in from the outside edge toward the dial. */
@keyframes wipe-from-left {
  from { clip-path: inset(-10% 100% -10% 0); transform: translateX(-24px); }
  to { clip-path: inset(-10% 0 -10% 0); transform: none; }
}
@keyframes wipe-from-right {
  from { clip-path: inset(-10% 0 -10% 100%); transform: translateX(24px); }
  to { clip-path: inset(-10% 0 -10% 0); transform: none; }
}

.bar { animation: fade-in 0.8s ease backwards; }
.hero .kicker { animation: rise 0.8s var(--ease) 0.05s backwards; }
.hero-title .line-inner { animation: line-up 1s var(--ease) 0.1s backwards; }
.hero-title .line + .line .line-inner { animation-delay: 0.2s; }
.dial-face { animation: dial-in 1.1s var(--ease) 0.38s backwards; }
.comfort-cool { animation: wipe-from-left 1s var(--ease) 0.55s backwards; }
.comfort-warm { animation: wipe-from-right 1s var(--ease) 0.55s backwards; }
.comfort-hint { animation: fade-in 0.8s ease 1s backwards; }
.hero-foot { animation: rise 0.9s var(--ease) 0.7s backwards; }

/* Scroll reveal: only applied by JS to content that starts below the fold.
   Headings marked data-split also rise word by word. */
.reveal-pending { opacity: 0; transform: translateY(26px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.wi { display: inline-block; }
.reveal-pending .wi { opacity: 0; transform: translateY(0.5em); }
.reveal-in .wi { transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }

/* ---------- Responsive ---------- */
@media (min-width: 901px) {
  .questions-head, .careers-intro { position: sticky; top: 40px; }
}

@media (max-width: 900px) {
  .intro-head, .questions, .careers { grid-template-columns: minmax(0, 1fr); }
  .intro-copy { max-width: 52ch; }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .principle {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 18px;
    border-top: 1px solid var(--rule);
    padding-block: 22px;
  }
  .principle:last-child { border-bottom: 1px solid var(--rule); }
  .principle img { grid-row: 1 / span 2; margin-top: 2px; }
  .principle h3 { margin-top: 0; font-size: 20px; }
  .principle p { margin-top: 4px; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .hero-foot .hero-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  /* Words sit above the dial so the dial has the full width to travel. */
  .comfort {
    --dial: clamp(124px, 40vw, 168px);
    --word: clamp(24px, 7vw, 30px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "cool warm" "track track";
    row-gap: 6px;
    margin-top: 30px;
  }
  /* Stacked layout: words grow inward, toward the centre of the screen. */
  .comfort-cool .word { transform-origin: 0% 50%; }
  .comfort-warm .word { transform-origin: 100% 50%; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .bar .btn-small { display: none; }
  .hero-actions .btn, .contact .actions .btn { width: 100%; }
  .hero-email { display: none; }
  .questions summary { padding-block: 18px; }
  .careers-role .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal-pending { opacity: 1; transform: none; }
}
