/* ============================================================
   STREET TREES — Canonical stylesheet
   Semantic classes, driven entirely by tokens.css.
   No build step, no framework. Edit freely.
   Warm, playful, illustrative — a cozy afternoon in the city.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600;700&family=Fredoka:wght@400;500;600;700&display=swap");
@import url("./tokens.css");

/* ---------------- Reset / base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--st-cream);
  color: var(--ink-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
::selection { background: rgba(232,144,64,.25); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--st-orange); outline-offset: 3px; border-radius: 4px; }

/* ---------------- Layout primitives ---------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: 6rem; position: relative; }
.section--alt { background: var(--st-cream-deep); }
.section__head { text-align: center; max-width: 40rem; margin: 0 auto 4rem; }
.eyebrow { color: var(--ink-400); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-900); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.lead { color: var(--ink-600); font-size: 1.08rem; }
.text-prism {
  background: var(--warm-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------------- Decorative helpers ---------------- */
.deco-pattern { background-image: var(--confetti-pattern); background-size: 72px 72px; }
.deco-line { height: 2px; background: var(--deco-line); border-radius: var(--radius-pill); }
/* soft floating shapes for the collage feel */
.blob {
  position: absolute; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  pointer-events: none; z-index: 0;
}
.dot { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: .85rem 1.7rem; border: 2px solid transparent; border-radius: var(--radius-pill);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease-soft), background var(--dur), color var(--dur), border-color var(--dur);
  position: relative;
}
.btn--sm { padding: .55rem 1.15rem; font-size: .82rem; }
.btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--st-orange); color: #fff; box-shadow: var(--shadow-pop-orange); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(192,96,64,.28); background: #ec9948; }
.btn--primary:active { transform: translateY(0); box-shadow: 0 2px 0 rgba(192,96,64,.28); }

.btn--outline { border-color: var(--st-line-strong); color: var(--ink-800); background: var(--st-paper); }
.btn--outline:hover { border-color: var(--st-olive); color: var(--st-olive); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn--ghost { color: var(--ink-600); }
.btn--ghost:hover { color: var(--st-sienna); background: var(--st-sienna-soft); }

/* ---------------- Badge / pill ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .9rem;
  font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  border-radius: var(--radius-pill); color: var(--ink-600);
  background: var(--st-paper); border: 2px solid var(--st-line);
}
.badge--accent { color: var(--st-sienna); background: var(--st-pink-soft); border-color: transparent; }
.badge--gold { color: #9a6b12; background: var(--st-yellow-soft); border-color: transparent; }

/* ---------------- Navbar ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(240,240,232,.85); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 2px solid var(--st-line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark {
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--warm-gradient); box-shadow: var(--shadow-sm);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 30% 30% auto auto; width: .4rem; height: .4rem;
  border-radius: 50%; background: rgba(255,255,255,.65);
}
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink-900); letter-spacing: -.01em; }
.nav__links { display: none; align-items: center; gap: 1.9rem; }
.nav__link { font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--ink-600); transition: color var(--dur); }
.nav__link:hover { color: var(--st-orange); }
.nav__cta { display: none; }
.nav__toggle { display: inline-flex; color: var(--ink-800); padding: .25rem; border-radius: var(--radius-sm); }
.nav__mobile { display: none; border-top: 2px solid var(--st-line); background: var(--st-cream); }
.nav__mobile.open { display: block; }
.nav__mobile ul { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 0; }
.nav__mobile a { display: block; padding: .6rem 0; font-family: var(--font-display); font-size: 1rem; color: var(--ink-600); }
.nav__mobile a:hover { color: var(--st-orange); }
.nav__mobile .btn { margin-top: .75rem; }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 9rem 0 6rem; overflow: hidden; text-align: center;
  background: var(--st-cream);
}
.hero__glow { position: absolute; inset: 0; background: var(--sky-wash); pointer-events: none; }
/* a friendly cut-paper skyline of shapes behind the copy */
.hero__scene { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero__sun { position: absolute; top: 12%; right: 12%; width: 8rem; height: 8rem; border-radius: 50%; background: var(--st-yellow); box-shadow: 0 0 0 12px rgba(248,192,64,.18); }
.hero__tree { position: absolute; bottom: -1rem; width: 9rem; height: 9rem; color: var(--st-olive); opacity: .9; }
.hero__tree--l { left: 4%; }
.hero__tree--r { right: 6%; width: 7rem; height: 7rem; bottom: 2rem; }
.hero__building { position: absolute; bottom: 0; border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow-pop); }
.hero__building--1 { left: 16%; width: 6rem; height: 11rem; background: var(--st-orange); }
.hero__building--2 { left: 27%; width: 5rem; height: 8rem; background: var(--st-pink); }
.hero__building--3 { right: 20%; width: 5.5rem; height: 9.5rem; background: var(--st-sienna); }
.hero__inner { position: relative; z-index: 10; max-width: 52rem; margin-inline: auto; }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 4.4rem); margin: 1.25rem 0; color: var(--ink-900); }
.hero__desc { max-width: 34rem; margin: 0 auto 2.25rem; color: var(--ink-600); font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------------- Features ---------------- */
.features__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.feature {
  padding: 2rem 1.85rem; background: var(--st-paper); border: 2px solid var(--st-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease-soft), border-color var(--dur);
}
.feature:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); border-color: var(--st-orange-soft); }
.feature__icon {
  width: 3.25rem; height: 3.25rem; display: grid; place-items: center; margin-bottom: 1.15rem;
  border-radius: 42% 58% 60% 40% / 55% 42% 58% 45%; color: #fff; background: var(--st-orange);
}
.feature__icon svg { width: 1.6rem; height: 1.6rem; }
/* rotate the crayon-box colors across the grid */
.feature:nth-child(6n+2) .feature__icon { background: var(--st-pink); }
.feature:nth-child(6n+3) .feature__icon { background: var(--st-olive); }
.feature:nth-child(6n+4) .feature__icon { background: var(--st-yellow); color: var(--ink-900); }
.feature:nth-child(6n+5) .feature__icon { background: var(--st-sienna); }
.feature:nth-child(6n+6) .feature__icon { background: var(--st-orange); }
.feature__title { font-size: 1.25rem; margin-bottom: .5rem; color: var(--ink-900); }
.feature__desc { font-size: .95rem; color: var(--ink-600); }
@media (min-width: 768px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Pricing ---------------- */
.pricing__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
.tier {
  position: relative; padding: 2.4rem; background: var(--st-paper);
  border: 2px solid var(--st-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease-soft);
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tier--featured { border-color: var(--st-orange); box-shadow: var(--shadow-pop-orange); background: var(--st-paper-warm); }
.tier--featured:hover { box-shadow: 0 10px 0 rgba(192,96,64,.28), var(--shadow-lg); }
.tier__flag { position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%); box-shadow: var(--shadow-sm); }
.tier__name { text-align: center; font-size: 1.3rem; margin-bottom: .5rem; }
.tier__price { text-align: center; display: flex; align-items: baseline; justify-content: center; gap: .25rem; }
.tier__amount { font-family: var(--font-display); font-size: 3rem; font-weight: 700; }
.tier__amount.text-prism { line-height: 1.1; }
.tier__period { color: var(--ink-400); }
.tier__desc { text-align: center; font-size: .9rem; color: var(--ink-600); margin: .5rem 0 2rem; }
.tier__features { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 2rem; }
.tier__features li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; color: var(--ink-800); }
.tier__features svg { width: 1.15rem; height: 1.15rem; color: var(--st-olive); flex-shrink: 0; }
@media (min-width: 768px) { .pricing__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Testimonials ---------------- */
.tst__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.tst {
  padding: 2rem 1.85rem; background: var(--st-paper); border: 2px solid var(--st-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.tst:nth-child(2) { background: var(--st-yellow-soft); border-color: transparent; }
.tst__quote { color: var(--ink-800); font-size: 1rem; line-height: 1.7; }
.tst__quote::before { content: "\201C"; font-family: var(--font-display); color: var(--st-orange); font-size: 2.4rem; line-height: 0; vertical-align: -.4em; margin-right: .1em; }
.tst__who { display: flex; align-items: center; gap: .85rem; }
.tst__avatar {
  width: 2.8rem; height: 2.8rem; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; color: #fff; background: var(--st-pink);
  border-radius: 50%;
}
.tst:nth-child(2) .tst__avatar { background: var(--st-orange); }
.tst:nth-child(3) .tst__avatar { background: var(--st-olive); }
.tst__name { font-size: .98rem; color: var(--ink-900); font-weight: 600; font-family: var(--font-display); }
.tst__role { font-size: .82rem; color: var(--ink-400); }
@media (min-width: 768px) { .tst__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- FAQ ---------------- */
.faq { max-width: 44rem; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.faq__item { background: var(--st-paper); border: 2px solid var(--st-line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--dur); }
.faq__item.open { border-color: var(--st-orange-soft); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.4rem; text-align: left; font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; color: var(--ink-900);
}
.faq__q svg { width: 1.2rem; height: 1.2rem; color: var(--st-orange); flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.faq__item.open .faq__q svg { transform: rotate(180deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height var(--dur) var(--ease-soft); }
.faq__a p { padding: 0 1.4rem 1.3rem; color: var(--ink-600); font-size: .98rem; }

/* ---------------- CTA ---------------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta__inner {
  position: relative; z-index: 10; max-width: 44rem; margin-inline: auto;
  background: var(--warm-gradient); border-radius: var(--radius-xl);
  padding: 3.5rem 2rem; box-shadow: var(--shadow-lg); overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; top: -3rem; right: -2rem; width: 12rem; height: 12rem;
  border-radius: 50%; background: rgba(255,255,255,.16);
}
.cta__inner h2 { color: #fff; position: relative; z-index: 1; }
.cta__inner .lead { color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; position: relative; z-index: 1; }
.cta .btn--primary { background: #fff; color: var(--st-sienna); box-shadow: var(--shadow-pop); }
.cta .btn--primary:hover { background: #fff; color: var(--st-orange); box-shadow: 0 8px 0 rgba(47,42,32,.14); }
.cta .btn--outline { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.cta .btn--outline:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

/* ---------------- Footer ---------------- */
.footer { background: var(--ink-900); color: rgba(255,255,255,.72); }
.footer__inner { padding-block: 4rem; }
.footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 3rem; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { font-size: .95rem; color: rgba(255,255,255,.6); max-width: 22rem; margin-top: 1rem; }
.footer__col h4 { font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--st-yellow); margin-bottom: 1rem; }
.footer__col li { margin-bottom: .6rem; }
.footer__col a { font-size: .95rem; color: rgba(255,255,255,.65); transition: color var(--dur); }
.footer__col a:hover { color: #fff; }
.footer__bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.footer__copy { font-size: .82rem; color: rgba(255,255,255,.5); text-align: center; }
.footer__made { display: flex; align-items: center; gap: 1.25rem; }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .feature:hover { transform: none; }
}
