/*
 * PawCast marketing site — v1
 * Warm claymorphism that mirrors the Android app: cream #FFF7ED ground,
 * orange #F97316 for display and decoration, blue #2563EB for actions,
 * rust #9A3412 for headings. Orange is never used for small text (fails AA);
 * small orange text uses #C2410C.
 * Fonts: Fredoka 600 (display) and Nunito 400/700 (body), self-hosted Latin
 * subsets under the SIL Open Font License (see fonts/*-OFL.txt).
 * Files under /assets/v1/ are cached as immutable: change the path (v2) when
 * any of them changes.
 */

@font-face {
  font-family: "Fredoka";
  src: url("/assets/v1/fonts/fredoka-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/v1/fonts/nunito-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/v1/fonts/nunito-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FFF7ED;
  --cream-2: #FFEDD5;
  --peach: #FED7AA;
  --orange: #F97316;
  --orange-2: #FB923C;
  --orange-3: #EA580C;
  --orange-ink: #C2410C;
  --rust: #9A3412;
  --ink: #3B2416;
  --muted: #6A5A50;
  --blue: #2563EB;
  --blue-2: #1D4ED8;
  --night: #2A1710;
  --white: #FFFFFF;

  --score-excellent: #22C55E;
  --score-good: #84CC16;
  --score-moderate: #EAB308;
  --score-poor: #F97316;
  --score-dangerous: #EF4444;

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;

  --clay:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -5px 0 rgba(249, 115, 22, 0.07),
    0 22px 40px -22px rgba(154, 52, 18, 0.42),
    0 4px 12px -6px rgba(154, 52, 18, 0.16);
  --clay-sm:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -3px 0 rgba(249, 115, 22, 0.08),
    0 10px 20px -12px rgba(154, 52, 18, 0.45);
  --clay-blue:
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    inset 0 -4px 0 rgba(15, 23, 42, 0.22),
    0 12px 22px -12px rgba(37, 99, 235, 0.7);

  --font-display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--rust);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a {
  color: var(--orange-ink);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--rust); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}
/* Blue focus rings disappear on the orange CTA panel and the dark footer. */
.get :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--clay-blue);
}
.skip-link:focus { top: 12px; color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Header ---------- */

.site-header { padding: 18px 0 6px; }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rust);
  font: 600 1.375rem/1 var(--font-display);
  text-decoration: none;
}
.brand:hover { color: var(--rust); }
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--clay-sm);
}

.site-nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--rust);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.site-nav a:hover { background: var(--cream-2); }
.site-nav a[aria-current="page"] {
  background: var(--white);
  box-shadow: var(--clay-sm);
}
.site-nav .nav-cta {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--clay-blue);
}
.site-nav .nav-cta:hover { background: var(--blue-2); color: var(--white); }

@media (max-width: 430px) {
  .site-nav .nav-optional { display: none; }
  .brand { font-size: 1.25rem; }
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px 6px 8px;
  border: 2px solid var(--peach);
  border-radius: 999px;
  background: var(--white);
  color: var(--orange-ink);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--clay-sm);
}
.eyebrow svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--orange);
  fill: var(--white);
}

.section { padding: 56px 0; }
.section--tight { padding-top: 16px; }

.section-head { max-width: 44rem; margin-bottom: 32px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.125rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
}
.text-link::after {
  content: "\2192";
  transition: transform 0.2s ease;
}
.text-link:hover::after { transform: translateX(3px); }

.badge-link {
  display: inline-block;
  border-radius: 14px;
  line-height: 0;
  transition: transform 0.2s ease;
}
.badge-link:hover { transform: translateY(-2px); }
/* Official badge PNG: 646x250 incl. transparent clear space of ~1/4 badge height.
   80px tall -> visible badge ~54px (minimum is 28px). Never scale it below 42px. */
.badge-link img { width: 207px; height: 80px; }

.ticks {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 34px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--cream-2);
  box-shadow: inset 0 -2px 0 rgba(249, 115, 22, 0.18);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.2em + 5px);
  width: 6px;
  height: 10px;
  border: solid var(--orange-ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.callout {
  display: flex;
  gap: 12px;
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 2px dashed var(--peach);
  border-radius: var(--r-sm);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.9375rem;
}
.callout svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: var(--orange-ink);
}
.callout p { margin: 0; }

/* Clay screenshot tile */
.shot {
  width: min(280px, 100%);
  margin: 0;
  overflow: hidden;
  border: 4px solid var(--white);
  border-radius: 26px;
  background: #F9913B;
  box-shadow:
    0 30px 50px -28px rgba(154, 52, 18, 0.55),
    0 8px 16px -8px rgba(154, 52, 18, 0.25);
}
.shot img { width: 100%; }

/* ---------- Hero ---------- */

.hero { padding: 28px 0 40px; }

.hero .wrap {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6.4vw, 4.4rem);
  letter-spacing: -0.02em;
}

.hero__by {
  margin: 10px 0 0;
  color: var(--orange-ink);
  font: 600 1.1875rem/1.3 var(--font-display);
}

.hero__lede {
  max-width: 36ch;
  margin: 20px 0 0;
  font-size: 1.1875rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin-top: 22px;
}

.hero__fine {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero__visual {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 28px 0 8px;
}

.hero__blob {
  position: absolute;
  inset: 4% 6% 18%;
  border-radius: 46% 54% 44% 56% / 54% 44% 56% 46%;
  background: radial-gradient(circle at 32% 26%, #FDBA74 0, var(--orange) 55%, var(--orange-3) 100%);
  box-shadow:
    inset 0 14px 26px rgba(255, 255, 255, 0.38),
    inset 0 -22px 34px rgba(154, 52, 18, 0.38),
    0 40px 70px -40px rgba(154, 52, 18, 0.7);
}

.hero__paw {
  position: absolute;
  fill: var(--orange-2);
  opacity: 0.55;
}
.hero__paw--a { width: 64px; height: 64px; top: 0; left: 4%; transform: rotate(-18deg); }
.hero__paw--b { width: 44px; height: 44px; bottom: 22%; right: 0; transform: rotate(22deg); }

.hero .shot {
  position: relative;
  width: min(360px, 84vw);
  border-width: 5px;
  border-radius: 32px;
  transform: rotate(-2deg);
}

/* Landscape detail crop (one card from a screen) */
.shot--detail {
  width: min(360px, 100%);
  border-radius: 22px;
  background: var(--cream);
}

.inputs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 30rem;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 2px solid var(--peach);
  border-radius: 999px;
  background: var(--white);
  color: var(--rust);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--clay-sm);
}
.chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--orange));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.chip--temp { --dot: #EF4444; }
.chip--feels { --dot: #F97316; }
.chip--humid { --dot: #3B82F6; }
.chip--wind { --dot: #14B8A6; }
.chip--rain { --dot: #6366F1; }
.chip--air { --dot: #84CC16; }
.chip--dog { --dot: #A16207; }

@media (min-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .hero__visual { min-height: 600px; align-content: center; padding: 0; }
  .hero__blob { inset: 8% 8% 6%; }
  .inputs {
    position: absolute;
    inset: 0;
    display: block;
    max-width: none;
    margin: 0;
  }
  .inputs li { position: absolute; }
  .inputs li:nth-child(1) { top: 13%; left: 0; }
  .inputs li:nth-child(2) { top: 30%; left: -4%; }
  .inputs li:nth-child(3) { top: 50%; left: 1%; }
  .inputs li:nth-child(4) { top: 70%; left: -2%; }
  /* Right-hand chips stay inside the column until there is room to overhang
     (body hides horizontal overflow, so an overhang would be clipped, not scrolled). */
  .inputs li:nth-child(5) { top: 20%; right: 0; }
  .inputs li:nth-child(6) { top: 42%; right: 0; }
  .inputs li:nth-child(7) { top: 82%; right: 0; }
}

@media (min-width: 1240px) {
  .inputs li:nth-child(5) { right: -2%; }
  .inputs li:nth-child(6) { right: -5%; }
  .inputs li:nth-child(7) { right: -6%; }
}

/* ---------- Features ---------- */

.features {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 28px 22px;
  border: 3px solid rgba(249, 115, 22, 0.14);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--clay);
}

.feature__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--cream-2);
  color: var(--orange-ink);
  font: 600 1.125rem/1 var(--font-display);
  box-shadow: inset 0 -3px 0 rgba(249, 115, 22, 0.2), inset 0 2px 0 #fff;
}

.feature h3 {
  margin: 16px 0 10px;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
}
.feature p { margin: 0; }
.feature .text-link { margin-top: 14px; }

.feature__media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}
.feature__media--pair .shot { width: min(220px, 48%); border-radius: 22px; }
.feature__media--pair .shot:first-child { transform: rotate(-2deg) translateY(10px); }
.feature__media--pair .shot:last-child { transform: rotate(2deg); }

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    padding: 44px 52px;
  }
  .feature:nth-child(even) .feature__media { order: -1; }
  .feature:nth-child(even) .shot:only-child { transform: rotate(2deg); }
  .feature:nth-child(odd) .shot:only-child { transform: rotate(-2deg); }
}

/* ---------- Planning note ---------- */

.note {
  display: grid;
  gap: 18px;
  padding: 30px 24px;
  border: 3px solid var(--peach);
  border-radius: var(--r-lg);
  background: var(--cream-2);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.8);
}
.note h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
}
.note p { margin: 0; max-width: 62ch; }
.note .note__small { color: var(--muted); font-size: 0.9375rem; }

@media (min-width: 900px) {
  .note { grid-template-columns: 0.8fr 1.2fr; padding: 44px 52px; column-gap: 48px; }
  .note h2 { grid-row: span 3; }
}

/* ---------- Get the app ---------- */

.get {
  position: relative;
  overflow: hidden;
  padding: 44px 24px 40px;
  border-radius: var(--r-lg);
  background: var(--orange-ink);
  color: var(--cream);
  text-align: center;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 0 rgba(67, 20, 7, 0.25),
    0 30px 50px -30px rgba(154, 52, 18, 0.8);
}
.get h2 {
  position: relative;
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
}
.get p { position: relative; margin: 0 auto; max-width: 46ch; }
.get .badge-link { position: relative; margin-top: 18px; }
.get__paw {
  position: absolute;
  fill: var(--orange-3);
}
.get__paw--a { width: 150px; height: 150px; left: -30px; bottom: -40px; transform: rotate(-24deg); }
.get__paw--b { width: 110px; height: 110px; right: -18px; top: -20px; transform: rotate(28deg); }
/* On narrow screens the lower paw would reach into the badge's required clear space. */
@media (max-width: 600px) {
  .get__paw--a { display: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 72px;
  padding: 48px 0 36px;
  background: var(--night);
  color: #F5E6D8;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--peach); }
.site-footer a:hover { color: var(--white); }

.footer-grid {
  display: grid;
  gap: 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 11px; }
.footer-brand p { margin: 0; }
.footer-brand strong {
  display: block;
  color: var(--white);
  font: 600 1.125rem/1.2 var(--font-display);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { display: inline-block; padding: 6px 0; }

.footer-legal {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(254, 215, 170, 0.18);
  color: #D9C6B6;
  font-size: 0.875rem;
}
.footer-legal p { margin: 0 0 6px; }

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .footer-links { justify-content: flex-end; }
}

/* ---------- Walk score page ---------- */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--peach); }
.crumbs a { font-weight: 700; }

.page-hero { padding: 24px 0 24px; }
.page-hero .wrap { display: grid; gap: 32px; align-items: center; }
.page-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(2.2rem, 5.6vw, 3.8rem);
  letter-spacing: -0.02em;
}
.page-hero .hero__lede { max-width: 40ch; }

.bands-card {
  padding: 22px;
  border: 3px solid rgba(249, 115, 22, 0.14);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--clay);
}
.bands-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}
.bands {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.band {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--cream);
  font-weight: 700;
}
.band::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: var(--band);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}
.band span:last-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.band--excellent { --band: var(--score-excellent); }
.band--good { --band: var(--score-good); }
.band--moderate { --band: var(--score-moderate); }
.band--poor { --band: var(--score-poor); }
.band--dangerous { --band: var(--score-dangerous); }

@media (min-width: 900px) {
  .page-hero { padding: 36px 0 32px; }
  .page-hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

.inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.input-card {
  padding: 20px 20px 22px;
  border: 3px solid rgba(249, 115, 22, 0.12);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--clay-sm);
}
.input-card svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 14px;
  background: var(--cream-2);
  fill: none;
  stroke: var(--orange-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-shadow: inset 0 -3px 0 rgba(249, 115, 22, 0.18);
}
.input-card h3 {
  margin: 14px 0 6px;
  font-size: 1.25rem;
}
.input-card p { margin: 0; color: var(--muted); font-size: 0.975rem; }

.explain {
  display: grid;
  gap: 24px;
  padding: 28px 22px;
  border: 3px solid rgba(249, 115, 22, 0.14);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--clay);
}
.explain + .explain { margin-top: 24px; }
.explain h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}
.explain p { margin: 0 0 14px; max-width: 62ch; }
.explain p:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .explain { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 44px 52px; }
  .explain--flip > :last-child { order: -1; }
}

/* Two readings, one score: visual for feels-like */
.explain > *,
.feature > *,
.hero .wrap > *,
.page-hero .wrap > * { min-width: 0; }

.pair-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--cream);
  text-align: center;
}
@media (max-width: 560px) {
  .pair-visual { grid-template-columns: minmax(0, 1fr); padding: 16px; }
}
.reading {
  padding: 16px 10px;
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: var(--clay-sm);
  font-weight: 700;
}
.reading small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.reading strong {
  display: block;
  margin-top: 4px;
  color: var(--rust);
  font: 600 1.25rem/1.2 var(--font-display);
}
.pair-visual__op {
  color: var(--orange-ink);
  font: 600 1.5rem/1 var(--font-display);
}
.pair-visual__result {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--orange-ink);
  color: var(--white);
  font-weight: 700;
}

/* Heat ceiling staircase */
.ceiling {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--cream);
  list-style: none;
}
.ceiling-figure { margin: 0; }
.ceiling li { display: grid; gap: 6px; }
.ceiling .ceiling__label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.ceiling__label strong { color: var(--rust); font-family: var(--font-display); font-weight: 600; }
.ceiling__bar {
  height: 18px;
  border-radius: 9px;
  background: rgba(154, 52, 18, 0.08);
  overflow: hidden;
}
.ceiling__bar span {
  display: block;
  height: 100%;
  border-radius: 9px;
  background: var(--band);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.ceiling__bar--good span { width: 79%; --band: var(--score-good); }
.ceiling__bar--moderate span { width: 59%; --band: var(--score-moderate); }
.ceiling__bar--poor span { width: 39%; --band: var(--score-poor); }
.ceiling__bar--dangerous span { width: 19%; --band: var(--score-dangerous); }
.ceiling__caption {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.explain .shot { margin-inline: auto; }

/* ---------- 404 ---------- */

.lost {
  padding: 48px 0 24px;
  text-align: center;
}
.lost svg {
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
  fill: var(--orange);
  transform: rotate(-14deg);
}
.lost h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 6vw, 3.4rem); }
.lost p { margin: 0 auto; max-width: 40ch; }
.lost .cta-row { justify-content: center; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--clay-blue);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.button:hover { background: var(--blue-2); color: var(--white); transform: translateY(-1px); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .rise--2 { animation-delay: 0.08s; }
  .rise--3 { animation-delay: 0.16s; }
  .rise--4 { animation-delay: 0.24s; }

  .hero .shot { animation: phone-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
  .hero__blob { animation: blob-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .chip { animation: pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
  .inputs li:nth-child(1) .chip { animation-delay: 0.45s; }
  .inputs li:nth-child(2) .chip { animation-delay: 0.52s; }
  .inputs li:nth-child(3) .chip { animation-delay: 0.59s; }
  .inputs li:nth-child(4) .chip { animation-delay: 0.66s; }
  .inputs li:nth-child(5) .chip { animation-delay: 0.73s; }
  .inputs li:nth-child(6) .chip { animation-delay: 0.8s; }
  .inputs li:nth-child(7) .chip { animation-delay: 0.87s; }

  .feature .shot,
  .explain .shot { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .feature:hover .shot { transform: rotate(0deg) translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
/* No opacity fade: the hero image is the LCP element and must paint immediately. */
@keyframes phone-in {
  from { transform: translateY(28px) rotate(-6deg); }
  to { transform: rotate(-2deg); }
}
@keyframes blob-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}
