/* The Little Wilds — v4 marketing + support site. Framework-free, responsive, cozy. */

:root {
  --sky-1: #6fc7f2;
  --sky-2: #bfe9ff;
  --cream: #fbf7ee;
  --cream-2: #fffdf8;
  --ink: #2c3a30;
  --ink-soft: #5d6f62;
  --green: #2f8a4a;
  --green-deep: #1f6b3c;
  --green-leaf: #6cbf59;
  --pink: #f59ab8;
  --gold: #ffd24a;
  --line: #e4ece2;
  --shadow: 0 14px 40px rgba(38, 70, 48, 0.16);
  --radius: 18px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", var(--font);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;            /* belt-and-braces: never allow sideways scroll on phones */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 22px;
  background: rgba(251, 247, 238, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 9px; font-family: var(--rounded); font-weight: 800; font-size: 1.18rem; color: var(--green-deep); }
.nav__brand:hover { text-decoration: none; }
.leaf { width: 22px; height: 22px; border-radius: 0 60% 60% 60%; background: linear-gradient(135deg, var(--green-leaf), var(--green)); transform: rotate(45deg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.nav__links { display: flex; align-items: center; gap: 22px; font-weight: 600; }
.nav__links a { color: var(--ink-soft); }
.nav__links a:hover { color: var(--green-deep); text-decoration: none; }
.nav__cta { background: var(--green); color: #fff !important; padding: 8px 16px; border-radius: 999px; }
.nav__cta:hover { background: var(--green-deep); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--rounded); font-weight: 800; font-size: 1.04rem; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(47,138,74,.34); }
.btn--primary:hover { background: var(--green-deep); }
.btn--ghost { background: #fff; color: var(--green-deep); border: 2px solid var(--line); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 62%, var(--cream)); padding: 64px 0 40px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.hero__eyebrow { font-family: var(--rounded); font-weight: 800; letter-spacing: .02em; color: var(--green-deep); margin: 0 0 6px; text-transform: uppercase; font-size: .82rem; opacity: .9; }
.hero__title { font-family: var(--rounded); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; margin: 0 0 10px; color: #fff; text-shadow: 0 2px 0 rgba(31,107,60,.35), 0 10px 30px rgba(0,0,0,.12); }
.hero__tagline { font-family: var(--rounded); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: #1f5733; margin: 0 0 16px; }
.hero__pitch { font-size: 1.1rem; color: #2c4a38; max-width: 34ch; margin: 0 0 22px; }
.hero__cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__note { margin: 14px 0 0; font-size: .92rem; color: #2c4a38cc; }
.hero__shot { position: relative; }
.device { background: #1f2a22; border-radius: 26px; padding: 12px; box-shadow: var(--shadow); transform: rotate(1.4deg); }
.device img { border-radius: 14px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { font-family: var(--rounded); font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--green-deep); text-align: center; margin: 0 0 10px; }
.section__lede { text-align: center; color: var(--ink-soft); max-width: 60ch; margin: 0 auto 36px; font-size: 1.08rem; }

/* ---------- Screenshot gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot { background: #1f2a22; border-radius: 16px; padding: 8px; box-shadow: var(--shadow); }
.shot img { border-radius: 10px; }
.shot figcaption { color: #cfe7d6; text-align: center; font-size: .86rem; padding: 8px 4px 2px; font-weight: 600; }

/* ---------- Steps (how it grows) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 18px rgba(38,70,48,.06); }
.step__n { font-family: var(--rounded); font-weight: 900; font-size: 1.1rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: var(--sky-2); color: var(--green-deep); margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-family: var(--rounded); }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature__icon { font-size: 1.9rem; margin-bottom: 8px; }
.feature h3 { margin: 0 0 6px; font-family: var(--rounded); font-size: 1.14rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Safety strip ---------- */
.safe { background: linear-gradient(180deg, var(--cream), #eef8ef); }
.safe__grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 820px; margin: 0 auto; }
.safe__chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 700; color: var(--green-deep); box-shadow: 0 4px 12px rgba(38,70,48,.06); }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 70px 22px; background: linear-gradient(180deg, var(--sky-2), var(--sky-1)); }
.cta h2 { font-family: var(--rounded); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; text-shadow: 0 2px 0 rgba(31,107,60,.3); margin: 0 0 8px; }
.cta p { color: #1f5733; font-size: 1.1rem; margin: 0 0 22px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #122; color: #fff; padding: 12px 22px; border-radius: 14px; font-family: var(--rounded); font-weight: 800; }
.badge small { display: block; font-size: .66rem; opacity: .8; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: #1f2a22; color: #cfe0d4; padding: 40px 22px; }
.footer__inner { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 9px; font-family: var(--rounded); font-weight: 800; color: #fff; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { color: #bcd6c4; font-weight: 600; }
.footer__fine { max-width: var(--wrap); margin: 18px auto 0; color: #8fae98; font-size: .85rem; }

/* ---------- Legal / prose pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 48px 22px 80px; }
.page h1 { font-family: var(--rounded); font-weight: 900; color: var(--green-deep); font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 4px; }
.page .updated { color: var(--ink-soft); margin: 0 0 26px; }
.page h2 { font-family: var(--rounded); color: var(--green-deep); margin: 30px 0 6px; font-size: 1.25rem; }
.page p, .page li { font-size: 1.04rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 22px 0; box-shadow: 0 6px 18px rgba(38,70,48,.05); }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 22px; margin: 22px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-family: var(--rounded); font-weight: 800; cursor: pointer; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋"; color: var(--green); font-weight: 900; margin-right: 10px; }
.faq details[open] summary::before { content: "－"; }
.faq p { margin: 10px 0 2px; color: var(--ink-soft); }

/* Grid/flex items (especially ones holding the wide screenshot) must be allowed to shrink below their
   content's intrinsic width, or they blow out the row and cause sideways scroll on phones. */
.hero__grid > *, .gallery > *, .steps > *, .features > *, .hero__cta-row > * { min-width: 0; }
.device, .device img, .shot, .shot img { max-width: 100%; }

/* ---------- Responsive ---------- */

/* Small laptops / large tablets landscape — tighten the nav so all links still fit */
@media (max-width: 980px) {
  .nav__links { gap: 15px; font-size: .96rem; }
}

/* Tablet portrait (iPad) — stack the hero, two-up the grids, but KEEP the full nav */
@media (max-width: 900px) {
  .hero { padding: 52px 0 36px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__shot { order: -1; max-width: 560px; margin: 0 auto; }
  .hero__pitch { max-width: none; }
  .gallery, .steps, .features { grid-template-columns: 1fr 1fr; }
}

/* Phones — single column, simplified nav, snug spacing */
@media (max-width: 620px) {
  .nav { padding: 10px 16px; }
  .nav__links { gap: 10px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__cta { padding: 8px 14px; }
  .wrap { padding: 0 18px; }
  .section { padding: 46px 0; }
  .gallery, .steps, .features { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 26px; }
  .hero__cta-row { width: 100%; }
  .hero__cta-row .btn { flex: 1 1 auto; text-align: center; }
  .safe__grid { gap: 9px; }
  .cta { padding: 56px 18px; }
}
