/* Scoop Scouts — styles
   Palette: pine (ink), lawn (green), ball (tennis-ball yellow), mist (page), white */
:root {
  --pine: #17342B;
  --pine-2: #22473B;
  --lawn: #3E9A5C;
  --lawn-dark: #2B7447; /* darker green for text and fills that need 4.5:1 contrast */
  --lawn-soft: #DDEFE2;
  --ball: #DCEB4B;
  --ball-deep: #C8D932;
  --mist: #F2F6F1;
  --white: #FFFFFF;
  --text: #17342B;
  --muted: #4E6A60;
  --line: #CFDDD3;
  --field-line: #6E8C7F; /* form borders, 3:1 against white */

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 28px;
  --r-md: 16px;
  --r-pill: 999px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--mist);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }
.nav :focus-visible, .hero :focus-visible, .quote__intro :focus-visible, .footer :focus-visible, .plan--featured :focus-visible { outline-color: var(--ball); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ball); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.skip:focus-visible { outline-color: var(--white); outline-offset: 2px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap--narrow { max-width: 760px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section__lede { color: var(--muted); margin-top: 12px; font-size: 1.125rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-pill); border: 2px solid transparent;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--ball { background: var(--ball); color: var(--pine); }
.btn--ball:hover { background: var(--ball-deep); }
.btn--pine { background: var(--pine); color: var(--white); }
.btn--pine:hover { background: var(--pine-2); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--line { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn--line:hover { background: var(--pine); color: var(--white); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn--block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--pine); color: var(--white); }
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--display); letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; opacity: .85; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero { position: relative; background: var(--pine); color: var(--white); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 32px; padding: clamp(48px, 8vw, 96px) 0 clamp(88px, 11vw, 132px); }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: .95; }
.hero__lede { margin-top: 24px; max-width: 38ch; font-size: clamp(1.125rem, 1.8vw, 1.3rem); color: #D7E5DC; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: #BFD3C7; font-weight: 500; font-size: .98rem; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ball); }

.hero__art { position: relative; height: 380px; }
.ball {
  position: absolute; right: 0; bottom: 6px; width: 190px; height: 190px; clip-path: circle(49%);
  animation: roll 1.1s cubic-bezier(.2,.8,.3,1) both .15s;
}
.paws { position: absolute; left: 0; top: 0; width: 200px; height: 300px; color: var(--lawn); opacity: .55; }
@keyframes roll { from { transform: translateX(160px) rotate(220deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ball { animation: none; } }

.grass { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px; fill: var(--ball); }

/* Founding */
.founding { background: var(--ball); }
.founding__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 40px 0 64px; }
.founding h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.founding__text p { margin: 14px 0 24px; max-width: 46ch; font-size: 1.125rem; }
.tags { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; max-width: 380px; }
.tag {
  aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--pine);
  display: grid; place-items: center; font: 800 1.1rem/1 var(--display); color: var(--pine); background: rgba(255,255,255,.35);
}
.tag--taken { background: var(--pine); color: var(--ball); }
.tag--taken::after { content: ""; }
.tags__count { margin-top: 14px; font-weight: 700; }

/* Steps */
.steps__list { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps__list li { counter-increment: step; }
.steps__list li::before {
  content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  border-radius: 50%; background: var(--lawn-dark); color: var(--white); font: 800 1.5rem/1 var(--display);
}
.steps__list p { color: var(--muted); margin-top: 8px; max-width: 32ch; }

/* Pricing */
.pricing { background: var(--white); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--mist); }
.plan--featured { background: var(--pine); color: var(--white); border-color: var(--pine); }
.plan__badge { position: absolute; top: -14px; left: 28px; background: var(--ball); color: var(--pine); font-weight: 700; font-size: .85rem; padding: 5px 12px; border-radius: var(--r-pill); }
.plan__price { margin-top: 14px; font-weight: 600; color: var(--muted); }
.plan--featured .plan__price, .plan--featured .plan__note { color: #C9DBD0; }
.plan__price span { font: 800 3.4rem/1 var(--display); letter-spacing: -0.03em; color: var(--text); margin-right: 4px; }
.plan--featured .plan__price span { color: var(--ball); }
.plan__note { margin: 12px 0 28px; color: var(--muted); flex: 1; }
.extras { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); }
.extras strong { color: var(--text); }

/* Areas */
.areas__more { margin-top: 24px; color: var(--muted); }
.areas__more a { color: var(--lawn-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.faq { background: var(--white); }
.faq h2 { margin-bottom: 24px; }
details { border-bottom: 2px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 700 1.2rem/1.3 var(--display);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--lawn-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317342B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* Quote */
.quote { background: var(--pine); color: var(--white); padding: clamp(64px, 9vw, 112px) 0; }
.quote__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.quote__intro p { margin-top: 12px; color: #C9DBD0; font-size: 1.125rem; }
.contact { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; font-weight: 600; }
.contact a { text-decoration-color: var(--ball); text-underline-offset: 4px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 32px; background: var(--white); color: var(--text); border-radius: var(--r-lg); }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field--full, .form .btn, .form__error, .form__done, .form__note { grid-column: 1 / -1; }
.form__note { color: var(--muted); font-size: .95rem; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px; border: 2px solid var(--field-line); border-radius: 12px;
  font: 500 1rem var(--body); color: var(--text); background: var(--white);
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; border-color: var(--pine); }
.field [aria-invalid="true"] { border-color: #C2412D; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: grid; place-items: center; min-height: 50px; border: 2px solid var(--field-line); border-radius: 12px; font-weight: 700; cursor: pointer; }
.seg input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--ball); }
.seg input:focus-visible + span { outline: 3px solid var(--pine); outline-offset: 2px; }
.form__error { color: #B23A26; font-weight: 600; }
.form__done { background: var(--lawn-soft); padding: 14px 16px; border-radius: 12px; font-weight: 600; }

/* Footer */
.footer { background: var(--pine); color: #A9C2B4; border-top: 1px solid var(--pine-2); padding: 28px 0 32px; font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.logo--small { font-size: 1.05rem; color: var(--white); gap: 8px; }
.footer__inner p:last-child { margin-left: auto; }

/* Mobile CTA */
.mobile-cta { display: none; }
.mobile-cta:focus-visible { outline-color: var(--pine); box-shadow: 0 0 0 3px var(--white), 0 8px 24px rgba(23,52,43,.35); }

@media (prefers-reduced-motion: reduce) {
  .btn, summary::after, .mobile-cta { transition: none; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .founding__inner, .quote__inner { grid-template-columns: 1fr; gap: 28px; }
  .steps__list, .plans { grid-template-columns: 1fr; }
  .steps__list { gap: 28px; }
  .plans { gap: 28px; }
  .plan--featured { order: -1; }
}
@media (max-width: 560px) {
  .nav .btn { display: none; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .tags { gap: 8px; }
  .footer__inner p:last-child { margin-left: 0; }
  body { padding-bottom: 84px; }
  .mobile-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
    border-color: var(--pine); box-shadow: 0 8px 24px rgba(23,52,43,.35);
    transition: transform .25s ease, opacity .25s ease;
  }
  .mobile-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
