/* HippityPip — hippitypip.com
   Hand-written, no frameworks. Palette sampled from the app's original art. */

:root {
  --sky:        #d6f7ff;
  --sky-soft:   #ecfaff;
  --hill:       #028b4b;
  --teal-deep:  #0b5d61;   /* matches bg1's foreground plants */
  --teal-ink:   #163038;
  --orange:     #f5a623;
  --pink:       #e85d9e;
  --paper:      #ffffff;
  --muted:      #5b7078;
  --radius:     20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--teal-ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { margin: 0 0 1em; }

a { color: var(--teal-deep); }

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: max(24px, env(safe-area-inset-left)) ;
  padding-inline-end: max(24px, env(safe-area-inset-right));
}
.wrap.narrow { max-width: 720px; }

/* ---------- header ---------- */
.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--teal-ink);
  font-weight: 800;
  font-size: 1.05rem;
}
.head-cta {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--teal-ink);
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--teal-ink);
  border-radius: 999px;
  padding: 7px 16px;
  transition: background 0.15s ease;
}
.head-cta:hover { background: var(--orange); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(var(--sky) 0%, var(--sky-soft) 55%, #f2fbf5 100%);
  padding-top: clamp(84px, 12vw, 130px);
  overflow: hidden;
}
.hero-copy {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  padding-inline: max(24px, env(safe-area-inset-left));
  position: relative;
  z-index: 10;          /* above every stage layer */
}
.eyebrow {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-deep);
  margin-bottom: 0.75em;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 600px;
  margin-inline: auto;
  color: var(--teal-ink);
}
.cta-row { margin: 1.5em 0 0; }
.badge-link img { display: inline-block; height: 60px; width: auto; }
.badge-link:hover img { transform: scale(1.03); }
.badge-link img { transition: transform 0.15s ease; }

/* ---------- the stage scene ---------- */
.stage {
  position: relative;
  width: 100%;                /* full-bleed at every size */
  margin: clamp(-20px, -2vw, -40px) auto 0;
  aspect-ratio: 2436 / 1125;
}
.stage .layer,
.stage .char { position: absolute; }
.stage .layer { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* layer order matches the app: bg4 meadow, bg3 trees+flowers, bg2 hills,
   bg1 front plants, then characters on top of everything */
.stage .layer.meadow { z-index: 1; }
.stage .layer.trees  { z-index: 2; }
.stage .layer.hills  { z-index: 3; }
.stage .layer.front  { z-index: 4; }

/* positions traced from the app's band screen: uni left-of-center,
   axol & backups front center, yeti big on top of the ridge,
   capy right-of-center in the valley */
.stage .char.uni  { width: 18%; left: 16%;  bottom: 26%; z-index: 5; }
.stage .char.axol { width: 21%; left: 35%;  bottom: 6%;  z-index: 6; }
.stage .char.yeti { width: 24%; left: 42%;  bottom: 41%; z-index: 5; }
.stage .char.capy { width: 17%; left: 65%;  bottom: 21%; z-index: 5; }

/* ---------- safety (value prop, teal band under the stage) ---------- */
.safety {
  background: var(--teal-deep);
  color: #eafcfd;
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 72px);
  margin-top: -2px;            /* seals the seam under the stage art */
}
.safety h2 { color: #fff; }
.safety p { max-width: 560px; margin-inline: auto; font-size: 1.05rem; }

/* ---------- trust / privacy ---------- */
.trust {
  background: linear-gradient(#e9f6f2, #f4fbf8);
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
}
.trust h2 { color: var(--teal-deep); }
.trust p { max-width: 600px; margin-inline: auto; }
.privacy-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 1.5em 0;
}
.privacy-points li {
  border: 1.5px solid var(--teal-deep);
  color: var(--teal-deep);
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 700;
  font-size: 0.9rem;
}
.privacy-more { font-size: 0.95rem; }

/* ---------- how it works ---------- */
.how { padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.steps {
  list-style: none;
  padding: 0;
  margin: 2em 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  text-align: center;
}
.steps li {
  background: var(--sky-soft);
  border-radius: var(--radius);
  padding: 32px 24px 24px;
}
.steps li:nth-child(2) { background: #fef4e0; }
.steps li:nth-child(3) { background: #f0fbf2; }
.step-badge {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--teal-deep);
  margin-bottom: 14px;
}
.step-num { height: 52px; width: auto; display: block; }
.steps p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- video ---------- */
.demo { padding: 0 0 clamp(56px, 8vw, 96px); text-align: center; }
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px -18px rgba(11, 93, 97, 0.45);
  background: #000;
}
.video-card video { display: block; width: 100%; height: auto; }

/* ---------- band ---------- */
.band {
  background: linear-gradient(#f2fbf5, var(--sky-soft));
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
}
.band-intro { color: var(--muted); max-width: 520px; margin: 0 auto 2em; }
.band-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 4 across, 2 across, or 1 — never 3 */
  gap: 24px;
}
@media (max-width: 960px) {
  .band-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .band-grid { grid-template-columns: 1fr; }
}
.band-grid li {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: 0 10px 30px -14px rgba(22, 48, 56, 0.25);
}
.band-grid img {
  width: 100%;
  max-width: 190px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 8px;
}
.band-grid h3 { margin-bottom: 0.2em; }
.band-grid p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- quotes ---------- */
.quotes { padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.quote-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 2em;
  text-align: left;
}
.quote-row blockquote {
  margin: 0;
  background: var(--sky-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.quote-row p {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}
.quote-row footer { color: var(--muted); font-size: 0.88rem; }

/* ---------- closer ---------- */
.closer {
  background: linear-gradient(var(--sky-soft), var(--sky));
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 0;
}
.closer h2 { max-width: 620px; margin-inline: auto; margin-bottom: 0.4em; }
.closer-sub { color: var(--muted); max-width: 480px; margin: 0 auto 1.6em; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--teal-ink);
  color: #cfe3e8;
  text-align: center;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
  font-size: 0.9rem;
}
.site-foot img { opacity: 0.85; margin-bottom: 8px; filter: invert(1); }
.site-foot a { color: #a9e8ec; }
.site-foot p { margin: 0; }

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .stage {                    /* widen so characters stay big on phones */
    width: 150%;
    left: 50%;
    transform: translateX(-50%);
  }
  .head-cta { display: none; }
  .privacy-points li { font-size: 0.82rem; padding: 5px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge-link img { transition: none; }
}
