/* CoolerScout — the app's own palette, on a page.
   One cold blue for the product, and colour otherwise reserved for shelf state,
   because that is the only thing in this business worth colouring. */
:root {
  --ground: #ffffff;
  --sunken: #f2f5f8;
  --raised: #ffffff;
  --ink: #0c1522;
  --body: #59626f;
  --muted: #6e7786;
  --line: #e3e8ee;
  --line-soft: #eef2f6;
  --primary: #0b6fd4;
  --primary-press: #0857a6;
  --primary-soft: #deeafb;
  --stocked: #1a7330;
  --low: #8a5a02;
  --empty: #b3122f;
  --empty-soft: #fde4e9;
  --navy: #08131f;
  --max: 1140px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--body);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 780; line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 740; line-height: 1.12; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0.9em 0 0; max-width: 62ch; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; border-radius: 6px; }
strong { color: var(--ink); font-weight: 640; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.eyebrow {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 1rem;
}
.lede { font-size: clamp(1.08rem, 2vw, 1.28rem); max-width: 60ch; }

/* ------------------------------------------------------------------ nav -- */
header.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 720; color: var(--ink); font-size: 1.08rem; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.nav-links { display: none; gap: 1.9rem; align-items: center; }
.nav-links a { color: var(--body); font-size: 0.96rem; font-weight: 520; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (min-width: 860px) { .nav-links { display: flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--primary); color: #fff; font-weight: 620; font-size: 1rem;
  padding: 0.82rem 1.5rem; border-radius: 11px; border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--primary-press); text-decoration: none; transform: translateY(-1px); }
.btn.small { padding: 0.55rem 1.05rem; font-size: 0.94rem; border-radius: 9px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--sunken); }
.btn.light { background: #fff; color: var(--primary); }
.btn.light:hover { background: #eef4fd; }

/* ----------------------------------------------------------------- hero -- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--empty-soft);
  color: var(--empty); font-size: 0.82rem; font-weight: 640; padding: 0.4rem 0.85rem;
  border-radius: 999px; margin-bottom: 1.3rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; align-items: center; }
.hero-note { font-size: 0.9rem; color: var(--muted); margin-top: 1.1rem; }

/* the phone mock, drawn rather than screenshotted so it never goes stale */
.phone {
  width: 100%; max-width: 330px; margin: 0 auto; background: var(--navy);
  border-radius: 40px; padding: 11px; box-shadow: 0 30px 70px -25px rgba(8,19,31,0.45);
}
.phone-screen { background: var(--sunken); border-radius: 30px; padding: 1.15rem 1rem 1.4rem; }
.phone-status { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted); font-weight: 620; padding: 0 0.3rem 0.7rem; }
.phone-h { font-size: 1.45rem; font-weight: 760; color: var(--ink); letter-spacing: -0.03em; }
.phone-eyebrow { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.alert-strip {
  background: var(--empty-soft); color: var(--empty); font-size: 0.82rem; font-weight: 620;
  padding: 0.65rem 0.8rem; border-radius: 10px; margin: 0.9rem 0;
}
.cooler-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 0.85rem 0.9rem; margin-bottom: 0.65rem;
}
.cooler-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.cooler-name { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.cooler-sub { font-size: 0.74rem; color: var(--muted); }
.tag { font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.tag.empty { background: var(--empty-soft); color: var(--empty); }
.tag.ok { background: #e3f4e8; color: var(--stocked); }
.tag.low { background: #fcf1dc; color: var(--low); }
.dots { display: flex; gap: 0.75rem; margin-top: 0.6rem; font-size: 0.7rem; color: var(--muted); }
.dot { display: inline-flex; align-items: center; gap: 0.28rem; }
.dot i { width: 7px; height: 7px; border-radius: 50%; display: block; }

/* --------------------------------------------------------------- blocks -- */
.band { background: var(--sunken); }
.band.dark { background: var(--navy); color: #aebccb; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark .eyebrow { color: #7d8ea1; }

.grid { display: grid; gap: 1.15rem; }
.grid.g2 { grid-template-columns: 1fr; }
.grid.g3 { grid-template-columns: 1fr; }
.grid.g4 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.g2 { grid-template-columns: repeat(2, 1fr); } .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } .grid.g4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--raised); border: 1px solid var(--line); border-radius: 15px;
  padding: 1.5rem 1.4rem;
}
.card p { margin-top: 0.55rem; font-size: 0.98rem; }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--primary-soft);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.band.dark .card { background: #10202f; border-color: #1c3040; }

.step-n {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; margin-bottom: 0.9rem;
}

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* --------------------------------------------------------------- pricing - */
.price-grid { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 860px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem 1.6rem; }
.price.featured { border: 2px solid var(--primary); box-shadow: 0 20px 50px -30px rgba(11,111,212,0.5); position: relative; }
.price.featured::after {
  content: "Most stores"; position: absolute; top: -11px; left: 1.6rem; background: var(--primary);
  color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.price .amount { font-size: 2.5rem; font-weight: 760; color: var(--ink); letter-spacing: -0.04em; }
.price .per { font-size: 0.92rem; color: var(--muted); font-weight: 520; }
.price ul { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; display: grid; gap: 0.6rem; }
.price li { font-size: 0.95rem; padding-left: 1.6rem; position: relative; }
.price li::before {
  content: ""; position: absolute; left: 0; top: 0.52em; width: 0.55rem; height: 0.3rem;
  border-left: 2px solid var(--stocked); border-bottom: 2px solid var(--stocked);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ faq -- */
details {
  border-bottom: 1px solid var(--line); padding: 1.15rem 0;
}
details summary {
  cursor: pointer; font-weight: 640; color: var(--ink); font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { margin-top: 0.7rem; }

/* --------------------------------------------------------------- footer -- */
footer { background: var(--navy); color: #8b9bab; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--mono); font-weight: 600; margin-bottom: 1rem; }
footer a { color: #aebccb; font-size: 0.95rem; }
footer a:hover { color: #fff; }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-links { display: grid; gap: 0.55rem; }
.foot-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid #1b2b3a;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.86rem; color: #6f8091;
}

/* --------------------------------------------------------------- legal --- */
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.4rem; margin-top: 2.6rem; }
.legal h3 { font-size: 1.06rem; margin-top: 1.8rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.45rem 0; }
.legal .updated { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
