/* ==========================================================================
   GembaSnap — landing page (/)

   Audience here is the operator, not the homeowner: a one-person pressure
   washing / detailing / landscaping / painting business. The proof page at
   /demo does the persuading, so most of this page's job is to get them there.

   index.html inlines a critical subset (tokens, @font-face, nav, hero); this
   sheet is a superset of it and loads without blocking render. Same pattern as
   demo.css — the token/font duplication between them is deliberate, since a
   shared file would cost a round trip on both pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  --navy: #1b4a5e;
  --navy-deep: #143a4a;
  --navy-ink: #26313a;
  --orange: #e8833a;
  --orange-pressed: #dd7527;

  --page: #eae7e1;
  --card: #f7f5f1;
  --surface: #ffffff;
  --border: #e4e0d8;

  --text: #4a463e;
  --text-muted: #6e6a60;
  --text-soft: #8a8478;
  --text-faint: #9a948a;

  --ink: #23211c;
  --on-navy: #f0ede6;
  --on-navy-muted: #a3b8c2;

  --max: 1080px;
  --radius: 12px;

  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Barlow", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --------------------------------------------------------------------------
   Fonts — self-hosted latin subsets, shared with /demo (so the second page
   view costs nothing).
   -------------------------------------------------------------------------- */

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

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

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
}

.section-lede {
  margin: 0 0 32px;
  max-width: 52ch;
  font-size: 17px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 26px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 131, 58, 0.38);
}

.btn--primary:hover {
  background: var(--orange-pressed);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--on-navy);
  border: 1px solid rgba(240, 237, 230, 0.35);
}

.btn--ghost:hover {
  border-color: var(--on-navy);
  background: rgba(240, 237, 230, 0.08);
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  background: var(--navy-deep);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--navy);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-navy);
}

.nav__link {
  font-weight: 600;
  font-size: 15px;
  color: var(--on-navy-muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--orange);
}

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

.hero {
  background: var(--navy);
  color: var(--on-navy);
  padding: 44px 0 52px;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}

.hero__copy {
  width: 100%;
}

.hero__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  /* Scales from a 390px phone to desktop without a breakpoint. */
  font-size: clamp(38px, 10vw, 60px);
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
}

.hero__title span:last-child {
  color: var(--orange);
}

.hero__lede {
  margin: 0 0 28px;
  max-width: 46ch;
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--on-navy-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__note {
  margin: 20px 0 0;
  font-size: 14px;
  color: rgba(163, 184, 194, 0.8);
}

/* A plain device bezel — enough to read as "a phone", nothing skeuomorphic. */
.hero__device {
  flex-shrink: 0;
  width: min(260px, 72vw);
  border: 8px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

.hero__device img {
  width: 100%;
  height: auto;
  border-radius: 22px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 56px 0;
}

.section--tint {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

/* Steps */

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step__num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.step__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-ink);
}

.step__body {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* Benefit cards */

.card {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-ink);
}

.card__body {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* Fit / positioning */

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

.fit__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16.5px;
}

.fit__item svg {
  flex-shrink: 0;
  margin-top: 4px;
}

/* Pricing */

.price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.price__figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 58px;
  line-height: 1;
  color: var(--navy);
}

.price__figure sup {
  font-size: 26px;
  top: -0.6em;
}

.price__unit {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.price__detail {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* Waitlist */

.waitlist {
  background: var(--navy);
  color: var(--on-navy);
  padding: 56px 0;
}

.waitlist .section-title {
  color: var(--on-navy);
}

.waitlist .section-lede {
  color: var(--on-navy-muted);
}

.waitlist__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 520px;
}

.waitlist__field {
  flex: 1 1 240px;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(240, 237, 230, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-navy);
  font-size: 17px;
}

.waitlist__field::placeholder {
  color: rgba(163, 184, 194, 0.75);
}

.waitlist__field:focus {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.1);
}

.waitlist__status {
  margin: 14px 0 0;
  min-height: 1.5em;
  font-size: 15.5px;
  font-weight: 500;
}

.waitlist__status[data-state="ok"] {
  color: #8fd3a8;
}

.waitlist__status[data-state="error"] {
  color: #ffb4a2;
}

/* Footer */

.site-footer {
  padding: 32px 0 40px;
  background: var(--ink);
  color: var(--text-faint);
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a {
  color: var(--on-navy-muted);
}

/* --------------------------------------------------------------------------
   Wider screens — the only breakpoint the page needs.
   -------------------------------------------------------------------------- */

@media (min-width: 860px) {
  .hero {
    padding: 72px 0 80px;
  }

  .hero__grid {
    flex-direction: row;
    justify-content: space-between;
    gap: 56px;
  }

  .hero__device {
    width: 290px;
  }

  .section {
    padding: 76px 0;
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px;
    align-items: center;
  }

  .price {
    max-width: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
