/* ==========================================================================
   Werkor — landing-page layout extensions on top of tokens.css
   Not a new design system: every value here is a --wk-* token, just arranged
   into the page-level structures tokens.css doesn't itself define (nav,
   hero, grids, FAQ, comparison table, sticky bar).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- Nav ------------------------------------------------------------------ */
.wk-nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  height: var(--wk-nav-h);
  background: var(--wk-navy);
  box-shadow: var(--wk-shadow-nav);
}
.wk-nav__row {
  max-width: var(--wk-container); margin-inline: auto; padding-inline: var(--wk-gutter);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.wk-nav__brand { display: flex; align-items: center; gap: 8px; text-decoration: none; height: 36px; }
.wk-nav__brand img { height: 100%; width: auto; }
.wk-nav__wordmark { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; color: var(--wk-white); }
.wk-nav__actions { display: flex; align-items: center; gap: 8px; }
.wk-nav__actions .btn { white-space: nowrap; }

@media (max-width: 480px) {
  /* Two buttons wrap inside the fixed 68px bar below ~480px — drop the
     low-priority ghost link and keep the single primary CTA on one line. */
  .wk-nav__actions .btn--ghost { display: none; }
  .wk-nav__actions .btn--sm { padding: 8px 14px; font-size: 13px; }
}

body { padding-top: var(--wk-nav-h); }

/* --- Hero ------------------------------------------------------------------ */
.wk-hero {
  position: relative; overflow: hidden;
  /* Fills the first screen and anchors its content to the bottom of it —
     a short hero used to leave the badge/headline stranded near the nav
     with a wall of empty gradient below before the next section started.
     Pixel-based stops rather than percentages: the hero's height now
     depends on viewport height, and a percentage stop would put the dark
     "floor" in a different place — sometimes right under the reassurance
     line — on every screen size instead of a fixed, predictable distance
     from the bottom edge. */
  min-height: calc(100vh - var(--wk-nav-h));
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to bottom, #FFF7ED 0px, #FFFFFF 240px, #FFFFFF calc(100% - 200px), #1E3A8A 100%);
}
.wk-hero__in {
  width: 100%;
  max-width: var(--wk-prose); margin-inline: auto; padding-inline: var(--wk-gutter);
  padding-block: 48px 96px; text-align: center;
}
.wk-hero__eyebrow-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin-top: 28px; font-size: var(--wk-size-small); color: var(--wk-ink-500);
}
.wk-hero__eyebrow-strip span { display: inline-flex; align-items: center; gap: 6px; }
.wk-hero__eyebrow-strip .icon { width: 16px; height: 16px; color: var(--wk-orange-600); }

/* Split hero (HVAC page): copy left, real product screenshot right. Stacks
   copy-first on mobile. Opt-in modifier, so the centred A/B/C heroes are
   untouched. */
.wk-hero--split .wk-hero__in { max-width: var(--wk-container); text-align: left; display: grid; gap: 48px; align-items: center; }
.wk-hero--split .wk-cta-row { justify-content: flex-start; }
.wk-hero--split .wk-lead { margin-inline: 0; }
.wk-hero__media { margin: 0; }
.wk-hero__media img { width: 100%; height: auto; border-radius: var(--wk-radius-card); box-shadow: var(--wk-shadow-card-hover), var(--wk-ring-card); }
.wk-hero__media figcaption { margin-top: 12px; font-size: 12px; color: var(--wk-ink-500); text-align: center; }
@media (min-width: 1024px) { .wk-hero--split .wk-hero__in { grid-template-columns: 1fr 1.1fr; } }
/* Product screenshot inside a normal section (HVAC page). */
.wk-shot { max-width: 960px; margin: 40px auto 0; }
.wk-shot img { width: 100%; height: auto; border-radius: var(--wk-radius-card); box-shadow: var(--wk-shadow-card-hover), var(--wk-ring-card); }
.wk-shot figcaption { margin-top: 12px; font-size: 12px; color: var(--wk-ink-500); text-align: center; }

h1.wk-h1 {
  margin: 24px 0 0; font-size: var(--wk-size-h1); line-height: 1.1;
  color: var(--wk-ink); letter-spacing: -0.025em; font-weight: 700;
}
@media (min-width: 768px) {
  h1.wk-h1 { font-size: var(--wk-size-display); line-height: 1; }
}
h1.wk-h1 .accent { color: var(--wk-orange); display: block; }

.wk-lead { margin: 20px auto 0; max-width: var(--wk-measure); font-size: var(--wk-size-lead); line-height: 1.625; color: var(--wk-ink-600); }

.wk-cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.wk-reassurance { margin-top: 20px; font-size: var(--wk-size-small); color: var(--wk-ink-500); }

/* --- Sections --------------------------------------------------------------- */
.wk-sec { padding-block: var(--wk-section-y); scroll-margin-top: calc(var(--wk-nav-h) + 16px); }
.wk-sec--tinted { background: var(--wk-surface-tinted); }
.wk-sec--inverse { background: var(--wk-surface-inverse); color: var(--wk-text-on-inverse); }
.wk-sec--inverse h2, .wk-sec--inverse h3 { color: var(--wk-white); }
.wk-sec--inverse p { color: var(--wk-text-muted-on-inverse); }
.wk-in { max-width: var(--wk-container); margin-inline: auto; padding-inline: var(--wk-gutter); }

.wk-sec-head { max-width: var(--wk-measure); margin-inline: auto; text-align: center; }
.wk-sec-head h2 { margin: 24px 0 0; }
.wk-sec-head p { margin: 16px 0 0; font-size: var(--wk-size-lead); }
.wk-sec-head.on-dark p { color: var(--wk-navy-200); }

.wk-grid-4 { margin-top: 48px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .wk-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wk-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.wk-grid-3 { margin-top: 48px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .wk-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.wk-grid-2 { margin-top: 48px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .wk-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card { border-radius: var(--wk-radius-card); background: var(--wk-white); padding: 32px; box-shadow: var(--wk-shadow-card), var(--wk-ring-card); }
.card--inverse { background: var(--wk-navy); color: var(--wk-white); box-shadow: var(--wk-shadow-card); transition: transform .2s var(--wk-ease), box-shadow .2s var(--wk-ease); }
.card--inverse:hover { transform: translateY(-4px); box-shadow: var(--wk-shadow-card-hover); }
/* tokens.css sets `h1,h2,h3,h4 { color: navy }` directly on the element, which
   beats inherited color from any ancestor — without this, headings in navy
   cards render navy-on-navy and disappear. */
.card--inverse h3 { color: var(--wk-white); }
.card--inverse p { color: var(--wk-navy-200); }
.card h3 { margin: 20px 0 0; }
.card p { margin: 12px 0 0; font-size: var(--wk-size-small); line-height: 1.625; }

.tile { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--wk-radius-tile); background: var(--wk-orange); color: var(--wk-white); box-shadow: var(--wk-shadow-tile); transition: transform .2s var(--wk-ease); }
.tile .icon { width: 28px; height: 28px; }
.tile--soft { width: 48px; height: 48px; background: var(--wk-orange-50); color: var(--wk-orange); box-shadow: none; }
.tile--soft .icon { width: 24px; height: 24px; }
.card--inverse:hover .tile { transform: scale(1.1); }

.badge { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--wk-radius-pill); padding: 6px 16px; font-size: var(--wk-size-small); font-weight: 500; background: var(--wk-orange-50); color: var(--wk-orange-600); border: 1px solid var(--wk-orange-100); }
.badge--solid { background: var(--wk-orange); color: var(--wk-white); border: 0; padding: 4px 12px; font-weight: 600; }

.eyebrow { font-size: var(--wk-size-eyebrow); font-weight: 700; letter-spacing: var(--wk-tracking-wide); text-transform: uppercase; color: var(--wk-ink-500); }

/* --- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--wk-font);
  font-weight: 600; border-radius: var(--wk-radius-btn); border: 0; cursor: pointer;
  text-decoration: none; transition: background-color .2s var(--wk-ease), transform .2s var(--wk-ease), color .2s var(--wk-ease), border-color .2s var(--wk-ease);
}
.btn:focus-visible { outline: 2px solid var(--wk-orange-cta); outline-offset: 2px; }
.btn--sm { padding: 8px 16px; font-size: var(--wk-size-small); }
.btn--lg { padding: 16px 32px; font-size: var(--wk-size-lead); }
.btn--primary { background: var(--wk-orange-cta); color: var(--wk-white); box-shadow: var(--wk-shadow-card); }
.btn--primary:hover { background: var(--wk-orange-cta-hv); }
.btn--secondary { background: transparent; color: var(--wk-ink-700); border: 1px solid var(--wk-ink-300); }
.btn--secondary:hover { border-color: var(--wk-navy); color: var(--wk-navy); }
.btn--ghost { background: transparent; color: var(--wk-navy-100); }
.btn--ghost:hover { color: var(--wk-white); }
.btn .icon { width: 20px; height: 20px; transition: transform .2s var(--wk-ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }

/* --- Steps (mechanism / how it works) --------------------------------------- */
.steps { margin-top: 56px; display: grid; gap: 32px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps--3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; text-align: left; }
.step__num {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 999px; background: var(--wk-navy); color: var(--wk-white);
  font-weight: 700; font-size: 16px;
}
.step h3 { margin: 16px 0 0; font-size: 18px; }
.step p { margin: 8px 0 0; font-size: var(--wk-size-small); color: var(--wk-ink-600); }
/* .steps is reused on both light sections (numbered circle reads navy-on-white)
   and inverse ones (steps would otherwise vanish navy-on-navy) — same fix
   pattern as .card--inverse above, scoped so the light usage is untouched. */
.wk-sec--inverse .step__num { background: var(--wk-orange); }
.wk-sec--inverse .step p { color: var(--wk-navy-200); }

/* --- Pricing ----------------------------------------------------------------- */
.pricing-card {
  max-width: 420px; margin: 48px auto 0; border-radius: var(--wk-radius-card);
  background: var(--wk-white); box-shadow: var(--wk-shadow-card-hover), var(--wk-ring-card);
  padding: 40px 32px; text-align: center; border-top: 4px solid var(--wk-orange);
}
.pricing-card__name { font-size: var(--wk-size-eyebrow); font-weight: 700; text-transform: uppercase; letter-spacing: var(--wk-tracking-wide); color: var(--wk-orange-600); }
.pricing-card__price { margin: 12px 0 0; font-size: 48px; font-weight: 800; color: var(--wk-navy); letter-spacing: -0.025em; }
.pricing-card__price span { font-size: 16px; font-weight: 500; color: var(--wk-ink-500); }
.pricing-card__list { list-style: none; margin: 24px 0 0; padding: 0; text-align: left; display: grid; gap: 12px; }
.pricing-card__list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--wk-size-small); color: var(--wk-ink-600); }
.pricing-card__list .icon { width: 18px; height: 18px; color: var(--wk-orange-cta); flex: none; margin-top: 2px; }
.pricing-card .btn { margin-top: 28px; width: 100%; justify-content: center; }

/* --- FAQ (native details/summary, no JS needed) ------------------------------ */
.faq { max-width: var(--wk-prose); margin: 48px auto 0; display: grid; gap: 12px; }
.faq details {
  background: var(--wk-white); border-radius: var(--wk-radius-card); box-shadow: var(--wk-shadow-card), var(--wk-ring-card);
  padding: 4px 24px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; color: var(--wk-navy);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--wk-orange-cta); flex: none; transition: transform .2s var(--wk-ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; font-size: var(--wk-size-small); color: var(--wk-ink-600); line-height: 1.625; }

/* --- Comparison table (Variant C) -------------------------------------------- */
.compare { margin-top: 48px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .compare { grid-template-columns: repeat(2, 1fr); } }
.compare__col { border-radius: var(--wk-radius-card); padding: 32px; }
.compare__col--before { background: var(--wk-white); box-shadow: var(--wk-shadow-card), var(--wk-ring-card); }
.compare__col--after { background: var(--wk-navy); color: var(--wk-white); box-shadow: var(--wk-shadow-card); }
.compare__col h3 { margin: 0 0 20px; font-size: 18px; }
.compare__col--after h3 { color: var(--wk-white); }
.compare__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare__col li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--wk-size-small); line-height: 1.5; }
.compare__col--before li { color: var(--wk-ink-600); }
.compare__col--before .icon { color: var(--wk-ink-400); }
.compare__col--after li { color: var(--wk-navy-200); }
.compare__col--after .icon { color: var(--wk-orange-400); }
.compare__col .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* --- Trust / reassurance strip ------------------------------------------------ */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 32px;
  padding: 24px var(--wk-gutter); background: var(--wk-navy-50); border-block: 1px solid var(--wk-navy-100);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; font-size: var(--wk-size-small); font-weight: 600; color: var(--wk-navy); }
.trust-strip .icon { width: 18px; height: 18px; color: var(--wk-orange-cta); }

/* --- Testimonial -------------------------------------------------------------- */
.testimonial { max-width: var(--wk-prose); margin: 0 auto; text-align: center; }
.testimonial blockquote { margin: 0; font-size: 22px; line-height: 1.5; font-weight: 600; color: var(--wk-navy); }
.testimonial cite { display: block; margin-top: 20px; font-style: normal; font-size: var(--wk-size-small); color: var(--wk-ink-500); }

/* --- Sticky mobile CTA bar ----------------------------------------------------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  background: var(--wk-white); border-top: 1px solid var(--wk-navy-100);
  box-shadow: 0 -4px 12px rgb(0 0 0 / .06); padding: 12px var(--wk-gutter);
  display: none;
}
.sticky-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 640px) { .sticky-cta { display: block; } body { padding-bottom: 72px; } }

/* --- Footer -------------------------------------------------------------------- */
.wk-footer { background: var(--wk-white); border-top: 1px solid var(--wk-navy-100); padding-block: 48px; }
.wk-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.wk-footer__brand { display: flex; align-items: center; gap: 8px; }
.wk-footer__brand img { height: 24px; width: auto; }
.wk-footer__brand span { font-weight: 700; color: var(--wk-navy); }
.wk-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.wk-footer a { font-size: var(--wk-size-small); color: var(--wk-ink-500); text-decoration: none; }
.wk-footer a:hover { color: var(--wk-navy); }
.wk-footer__legal { margin-top: 24px; font-size: 12px; color: var(--wk-ink-400); }
