/* Sunkeep marketing site.
   Brand colours and fonts come from assets/brand/tokens.css (the --sk-* properties),
   loaded before this file. The few extra properties below are site-only. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600 700; font-display: swap; src: url("fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }

:root {
  --line: rgba(29, 31, 32, 0.16);
  --on-amber: #ffffff;          /* text on an --sk-amber-ink button */
  --band: #1a1c1e;              /* the dark bands, in both themes */
  --band-ink: #ececee;
  --band-muted: #d4d4d7;
  --band-line: rgba(236, 236, 238, 0.16);
  --band-amber: #f5b32e;
  --band-ink-on-amber: #1a1c1e;
  --card-on-surface: var(--sk-ground);
}

@media (prefers-color-scheme: dark) {
  :root {
    --line: rgba(236, 236, 238, 0.16);
    --on-amber: #1a1c1e;
    --band: #0f1011;
    --card-on-surface: #2c2e31;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sk-ground);
  color: var(--sk-ink);
  font-family: var(--sk-font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--sk-amber-ink); }
a:hover { color: var(--sk-ink); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ul, ol { margin: 0; }

h1, .h2, .h3 { font-family: var(--sk-font-heading); font-weight: 600; }
h1 { font-size: clamp(48px, 8vw, 76px); line-height: 0.95; }
h1 em { font-style: normal; color: var(--sk-amber-ink); }
.h2 { font-size: clamp(34px, 5vw, 48px); line-height: 1; }
.h2-sm { font-size: clamp(32px, 4.5vw, 44px); }
.h3 { font-size: 28px; line-height: 1.1; }
.h3-sm { font-size: 24px; }
.h3-md { font-size: 26px; }
.h3-lg { font-size: 34px; line-height: 1.05; }
.h4 { font-size: 18px; font-weight: 600; }

.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sk-text-secondary);
}
.lead { font-size: 20px; line-height: 30px; color: var(--sk-text-secondary); max-width: 34em; }
.body { font-size: 17px; line-height: 27px; color: var(--sk-text-secondary); }
.small { font-size: 16px; line-height: 25px; color: var(--sk-text-secondary); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.measure { max-width: 760px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split > * { min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 300px), 100%), 1fr)); gap: var(--gap, 24px); }
.surface { background: var(--sk-surface); }
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow, .band .body, .band .small { color: var(--band-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 8px;
  font-size: 17px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; align-self: flex-start;
}
.btn-primary { background: var(--sk-amber-ink); color: var(--on-amber); }
.btn-primary:hover { color: var(--on-amber); filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--sk-ink); }
.btn-ghost:hover { border-color: var(--sk-ink); }
.btn-band { background: var(--band-amber); color: var(--band-ink-on-amber); }
.btn-band:hover { color: var(--band-ink-on-amber); filter: brightness(1.08); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.site-head .logo { line-height: 0; }
.site-head .logo img { height: 34px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-left: auto; }
.nav a:not(.btn) { color: var(--sk-ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--sk-amber-ink); }
@media (max-width: 720px) {
  .nav { margin-left: 0; width: 100%; gap: 8px 20px; font-size: 15px; }
  .nav .btn { display: none; }
}

/* Screenshots */
.frame { background: var(--sk-surface); border-radius: 20px; padding: 14px; }
.shot { border-radius: 10px; border: 1px solid var(--line); width: 100%; }
.band .shot { border-color: var(--band-line); border-radius: 12px; }
.phone { border-radius: 24px; border: 1px solid var(--line); }

/* Cards */
.card { background: var(--sk-surface); border-radius: 14px; padding: 28px; }
.surface .card { background: var(--card-on-surface); }
.card.dark { background: var(--band); color: var(--band-ink); }
.card.dark .eyebrow, .card.dark .small, .card.dark .body { color: var(--band-muted); }
.icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ruled { border-top: 2px solid var(--sk-sun); padding-top: 18px; }
.fact { font-size: 17px; line-height: 26px; }
.band .ruled-thin { border-top: 1px solid var(--band-line); padding-top: 16px; }

/* Home: at-a-glance strip */
.glance { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glance .grid { padding-top: 22px; padding-bottom: 22px; gap: 16px 32px; }
.glance .grid > div { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.glance img { width: 22px; height: 22px; }

/* Installers: steps and site-type table */
.steps { list-style: none; padding: 0; }
.step-n { font-family: var(--sk-font-heading); font-weight: 600; font-size: 40px; line-height: 1; color: var(--sk-amber-ink); }
.table-scroll { overflow-x: auto; }
.sites { width: 100%; min-width: 640px; border-collapse: collapse; line-height: 24px; }
.sites th { text-align: left; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sk-text-secondary); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sites td { vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.sites th:first-child, .sites td:first-child { padding-left: 0; }
.sites th:last-child, .sites td:last-child { padding-right: 0; }
.sites td:first-child { font-weight: 600; width: 22%; }
.sites td:nth-child(2) { color: var(--sk-text-secondary); width: 34%; }

/* How it works: inputs, the box, outputs */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.flow-col { flex: 1 1 300px; min-width: 0; --gap: 12px; }
.flow-core { flex: 0 1 260px; min-width: 0; display: flex; align-items: center; padding: 24px 0; }
.flow-core > div { width: 100%; border-radius: 20px; padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.flow-core img { height: 40px; width: auto; }
.flow-item { background: var(--sk-surface); border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.flow-item b { display: block; font-size: 17px; font-weight: 600; }
.flow-item span { font-size: 15px; line-height: 22px; color: var(--sk-text-secondary); }
.swatch { flex: none; width: 14px; height: 14px; border-radius: 3px; margin-top: 4px; background: var(--c); }

/* Homeowners: example advice chip */
.advice { align-self: flex-start; margin-top: 6px; background: var(--sk-ground); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.advice b { font-weight: 600; }

/* Closing call-to-action strip */
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
.cta .stack { flex: 1 1 480px; min-width: 0; --gap: 12px; }
.cta .addr { font-size: 18px; font-weight: 500; user-select: all; }

/* Footer */
.site-foot { background: var(--band); color: var(--band-ink); font-size: 15px; }
.site-foot .top { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-top: 56px; padding-bottom: 40px; }
.site-foot .about { flex: 1 1 320px; min-width: 0; --gap: 14px; }
.site-foot .about img { height: 34px; width: auto; align-self: flex-start; }
.site-foot .about p { color: var(--band-muted); line-height: 23px; max-width: 34em; }
.site-foot nav, .site-foot .reach { display: flex; flex-direction: column; gap: 10px; }
.site-foot nav { flex: 0 1 200px; }
.site-foot .reach { flex: 0 1 280px; }
.site-foot nav a { color: var(--band-ink); text-decoration: none; }
.site-foot nav a:hover { color: var(--band-amber); }
.site-foot .reach a { color: var(--band-amber); font-size: 16px; text-decoration: none; }
.site-foot .reach .eyebrow, .site-foot .reach span { color: var(--band-muted); }
.site-foot .reach span { font-size: 14px; }
.site-foot .legal { border-top: 1px solid var(--band-line); padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: var(--band-muted); }

/* Section spacing */
.pad { padding-top: 96px; padding-bottom: 96px; }
.pad-88 { padding-top: 88px; padding-bottom: 88px; }
.hero { padding-top: 80px; padding-bottom: 64px; }
@media (max-width: 720px) {
  .pad, .pad-88 { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 48px; padding-bottom: 48px; }
  .card { padding: 22px; }
  .split { gap: 32px; }
  .flow-core { flex-basis: 100%; padding: 4px 0; }
}
