/* Wag & Waste — Marketing website styles
   Builds on colors_and_type.css. All values reference design tokens. */

@import url('/colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body { background: var(--bg-page); }
img { max-width: 100%; display: block; }

/* ===================== ACCESSIBILITY ===================== */
/* Universal focus-visible ring — overrides UA defaults for keyboard users,
   leaves :hover untouched. Inputs that already have a custom :focus ring
   (.ww-zip__input, .ww-input) keep their own treatment; this fires only when
   :focus-visible matches (keyboard focus, not mouse click). */
:focus-visible {
  outline: 3px solid var(--ww-forest);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Skip-to-content link — only visible when focused. */
.ww-skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--ww-forest);
  color: var(--ww-paper);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.ww-skip:focus { top: 12px; }
/* Screen-reader-only utility (used by hidden labels). */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===================== BUTTONS ===================== */
.btn {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 0;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--ww-forest); color: var(--ww-paper); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--ww-forest-deep); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-1); }
.btn-secondary { background: transparent; color: var(--ww-ink); border: 2px solid var(--ww-ink); }
.btn-secondary:hover { background: var(--ww-ink); color: var(--ww-paper); }
.btn-tag { background: var(--ww-tag); color: var(--ww-ink); box-shadow: var(--shadow-1); }
.btn-tag:hover { background: var(--ww-tag-deep); transform: translateY(-1px); }
.btn-sm { font-size: 13px; padding: 9px 16px; border-radius: 10px; }
.btn-lg { font-size: 17px; padding: 16px 28px; border-radius: 16px; }
.btn-block { width: 100%; }

.badge { font-weight: 800; font-size: 11px; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.04em; }
.badge.b-warning { background: var(--ww-warning-bg); color: #7A5510; }
.badge.b-success { background: var(--ww-success-bg); color: #1F4128; }

/* ===================== NAV ===================== */
.ww-nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), backdrop-filter var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.ww-nav--scrolled {
  background: rgba(244, 236, 216, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--ww-line);
}
.ww-nav__inner { max-width: 1200px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; gap: 32px; }
.ww-nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ww-ink); }
.ww-nav__word { font-family: var(--font-brand); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.ww-amp { color: var(--ww-moss); }
.ww-nav__links { display: flex; gap: 28px; margin-left: 16px; }
.ww-nav__links a { color: var(--ww-ink-soft); text-decoration: none; font-weight: 700; font-size: 14px; }
.ww-nav__links a:hover { color: var(--ww-forest); }
.ww-nav__cta { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.ww-link-muted { color: var(--ww-ink-soft); font-weight: 700; font-size: 14px; text-decoration: none; }
.ww-link-muted:hover { color: var(--ww-forest); }
.ww-link-inline { background: transparent; border: 0; padding: 0; color: var(--ww-forest); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.ww-link-inline:hover { color: var(--ww-forest-deep); }

/* ===================== HERO ===================== */
.ww-hero { position: relative; padding: 48px 32px 32px; overflow: hidden; }
.ww-hero__pattern {
  position: absolute; inset: 0;
  background-image: url('/assets/paw-pattern.svg');
  background-size: 200px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}
.ww-hero__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; position: relative; }
.ww-hero__copy h1 { font-family: var(--font-brand); font-size: 72px; font-weight: 700; line-height: 1.0; letter-spacing: -0.02em; margin: 16px 0 24px; }
.ww-underline { background-image: linear-gradient(to top, var(--ww-tag) 0, var(--ww-tag) 14px, transparent 14px); background-repeat: no-repeat; padding: 0 4px; }
.ww-hero__copy .ww-lead { font-size: 19px; line-height: 1.55; color: var(--ww-ink-soft); max-width: 540px; margin-bottom: 36px; }

.ww-zip { background: #FFFEF8; border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-3); max-width: 520px; border: 1.5px solid var(--ww-line-soft); }
.ww-zip__label { font-weight: 800; font-size: 16px; color: var(--ww-ink); display: block; margin-bottom: 12px; }
.ww-zip__row { display: flex; gap: 10px; }
.ww-zip__input { flex: 1; font-family: var(--font-sans); font-size: 20px; font-weight: 700; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--ww-line); background: #FFFEF8; color: var(--ww-ink); outline: none; letter-spacing: 0.06em; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.ww-zip__input:focus { border-color: var(--ww-forest); box-shadow: 0 0 0 3px rgba(92,139,77,.25); }
.ww-zip__input.is-error { border-color: var(--ww-danger); }
.ww-zip__row .btn { padding: 14px 24px; font-size: 16px; }
.ww-zip__msg { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; animation: fadeIn var(--dur-slow) var(--ease-spring); }
.ww-zip__msg--ok { background: var(--ww-success-bg); color: #1F4128; }
.ww-zip__msg--soon { background: var(--ww-warning-bg); color: #7A5510; }
.ww-zip__msg--err { color: var(--ww-danger); font-size: 13px; padding: 4px 0; }
.ww-waitlist { display: flex; gap: 10px; margin-top: 10px; animation: fadeIn var(--dur-slow) var(--ease-spring); }
.ww-waitlist .ww-zip__input { font-size: 16px; letter-spacing: 0; }
.ww-waitlist .btn { padding: 14px 20px; font-size: 15px; white-space: nowrap; }
.ww-dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.ww-hero__trust { margin-top: 36px; display: flex; gap: 24px; align-items: center; }
.ww-trust__item { display: flex; flex-direction: column; }
.ww-trust__item strong { font-family: var(--font-brand); font-size: 24px; font-weight: 700; color: var(--ww-ink); letter-spacing: -0.01em; }
.ww-trust__item span { font-size: 13px; color: var(--ww-ink-mute); }
.ww-trust__sep { width: 1px; height: 36px; background: var(--ww-line); }

.ww-hero__art { display: flex; justify-content: center; }
.ww-hero__photo { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; transform: rotate(-2deg); filter: drop-shadow(0 18px 40px rgba(31,42,30,0.18)); }
.ww-hero__photo img { width: 100%; height: auto; border-radius: 50%; }
.ww-hero__caption {
  position: absolute; bottom: -14px; right: -14px;
  background: var(--ww-tag);
  font-family: var(--font-script);
  font-size: 22px; font-weight: 700;
  color: var(--ww-ink);
  padding: 10px 18px;
  border-radius: 999px;
  transform: rotate(4deg);
  box-shadow: var(--shadow-2);
  line-height: 1.1;
}
.ww-hero__caption span { font-size: 16px; color: var(--ww-bark); }

/* ===================== SECTIONS ===================== */
.ww-section { padding: var(--space-9) var(--space-6); }
.ww-section--kraft { background: var(--ww-kraft); }
.ww-section__inner { max-width: 1200px; margin: 0 auto; }
.ww-section__inner--narrow { max-width: 760px; }
.ww-section h2 { font-size: var(--fs-h2); margin: 12px 0 16px; }
.ww-h2--center { text-align: center; }
.ww-lead--center { text-align: center; max-width: 640px; margin: 0 auto var(--space-7); }

.ww-eyebrow { font-family: var(--font-sans); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ww-bark); }

/* ===================== HOW IT WORKS ===================== */
.ww-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: var(--space-7); }
.ww-step { background: var(--ww-kraft); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-inset); border: 1.5px solid var(--ww-line-soft); }
.ww-step__num { font-family: var(--font-brand); font-weight: 700; font-size: 32px; color: var(--ww-forest); letter-spacing: -0.02em; line-height: 1; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.ww-step__title { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.ww-step__body { font-size: 15px; line-height: 1.55; color: var(--ww-ink-soft); margin: 0; }

/* ===================== FEE SCHEDULE ===================== */
.ww-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: var(--space-7); }
.ww-plan { background: #FFFEF8; border-radius: var(--radius-xl); padding: 32px 28px; position: relative; box-shadow: var(--shadow-2); border: 1.5px solid var(--ww-line-soft); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.ww-plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.ww-plan--featured { background: var(--ww-paper); border: 2px solid var(--ww-forest); box-shadow: var(--shadow-3); transform: translateY(-4px); }
.ww-plan__tag { font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ww-bark); display: inline-block; }
.ww-plan__tag.is-featured { background: var(--ww-tag); color: var(--ww-ink); padding: 4px 12px; border-radius: 999px; }
.ww-plan__name { font-weight: 800; font-size: 24px; color: var(--ww-ink); margin-top: 8px; letter-spacing: -0.02em; }
.ww-plan__schedule { font-size: 14px; color: var(--ww-ink-mute); margin-top: 4px; }
.ww-plan__price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.ww-plan__amt { font-family: var(--font-brand); font-size: 56px; font-weight: 700; color: var(--ww-forest); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ww-plan__unit { font-size: 16px; font-weight: 700; color: var(--ww-ink-mute); }
.ww-plan__feat { list-style: none; padding: 0; margin: 20px 0; }
.ww-plan__feat li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ww-ink-soft); padding: 6px 0; }
.ww-plan__addon { font-size: 13px; color: var(--ww-bark); font-weight: 700; padding: 10px 12px; background: var(--ww-kraft); border-radius: 8px; margin-bottom: 16px; }
.ww-plan__visit { font-size: 14px; color: var(--ww-ink-mute); font-weight: 600; margin-bottom: 4px; }

/* About Us — two-column: copy left, Lilly portrait right. */
.ww-about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.ww-about__copy h2 { margin: 8px 0 20px; }
.ww-about__copy p { font-size: 17px; line-height: 1.6; color: var(--ww-ink-soft); margin: 0 0 16px; max-width: 580px; }
.ww-about__art { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ww-about__art img { width: 100%; max-width: 280px; border-radius: 50%; }
.ww-about__caption { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.ww-about__caption .ww-script { font-size: 24px; color: var(--ww-bark); }
.ww-about__title { font-size: 13px; font-weight: 700; color: var(--ww-ink-mute); letter-spacing: 0.08em; text-transform: uppercase; }

/* Dog-count toggle that sits above the plan grid. */
.ww-dog-toggle { display: flex; align-items: center; gap: 16px; justify-content: center; border: 0; padding: 0; margin: 0 0 var(--space-7); }
.ww-dog-toggle--left { justify-content: flex-start; }
.ww-dog-toggle__label { font-size: 14px; font-weight: 700; color: var(--ww-ink); }
.ww-dog-toggle__buttons { display: inline-flex; background: var(--ww-paper); border: 1.5px solid var(--ww-line); border-radius: 999px; padding: 4px; gap: 2px; }
.ww-dog-toggle__btn { font-family: var(--font-brand); font-weight: 700; font-size: 16px; min-width: 48px; padding: 8px 14px; background: transparent; border: 0; border-radius: 999px; color: var(--ww-ink-soft); cursor: pointer; transition: all var(--dur-fast) var(--ease-out); }
.ww-dog-toggle__btn:hover { color: var(--ww-ink); }
.ww-dog-toggle__btn.is-active { background: var(--ww-forest); color: var(--ww-paper); box-shadow: var(--shadow-1); }

/* Solo Scoop grid uses 2 columns; the "911" variant gets the collar-tag accent. */
.ww-plans--solo { grid-template-columns: repeat(2, 1fr); }
.ww-plan--urgent { background: linear-gradient(180deg, #FFFBEF 0%, #FFFEF8 100%); border-color: var(--ww-tag); }
.ww-plan__tag.is-urgent { background: var(--ww-tag); color: var(--ww-ink); padding: 4px 12px; border-radius: 999px; }

.ww-onetime { background: var(--ww-forest); color: var(--ww-paper); border-radius: var(--radius-xl); padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ww-onetime h3 { color: var(--ww-paper); font-size: 24px; }
.ww-onetime .ww-eyebrow { color: var(--ww-tag); }
.ww-onetime p { color: var(--ww-sage); max-width: 540px; }
.ww-onetime__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ww-onetime .ww-plan__amt { color: var(--ww-tag); font-size: 44px; }
.ww-onetime .ww-plan__unit { color: var(--ww-sage); }
.ww-onetime .ww-meta { color: var(--ww-sage); font-size: 12px; }
.ww-onetime .btn-secondary { color: var(--ww-paper); border-color: var(--ww-paper); }
.ww-onetime .btn-secondary:hover { background: var(--ww-paper); color: var(--ww-forest); }

/* ===================== SERVICE AREA ===================== */
.ww-area { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ww-area__map { position: relative; }
.ww-area__legend { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--ww-ink-mute); font-weight: 600; }
.ww-area__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ww-legend-dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.ww-area h2 { margin-top: 12px; }
.ww-area__zips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.ww-area__zip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ww-kraft); border-radius: 12px; border: 1.5px solid var(--ww-line-soft); }
.ww-area__zip-num { font-weight: 800; color: var(--ww-forest); font-variant-numeric: tabular-nums; font-size: 14px; }
.ww-area__zip-name { font-size: 14px; color: var(--ww-ink-soft); flex: 1; }
.ww-area__zip.is-soon { opacity: 0.85; }

/* ===================== TESTIMONIALS ===================== */
.ww-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: var(--space-7); }
.ww-quote { background: #FFFEF8; border-radius: var(--radius-lg); padding: 28px; margin: 0; position: relative; box-shadow: var(--shadow-2); border: 1.5px solid var(--ww-line-soft); }
.ww-quote__mark { position: absolute; top: 8px; left: 16px; font-family: Georgia, serif; font-size: 80px; line-height: 1; color: var(--ww-sage); font-weight: 700; }
.ww-quote blockquote { margin: 0; padding-top: 24px; font-size: 16px; line-height: 1.55; color: var(--ww-ink); font-weight: 500; }
.ww-quote figcaption { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.ww-quote .ww-script { font-family: var(--font-script); font-size: 22px; font-weight: 700; color: var(--ww-bark); }
.ww-quote__where { font-size: 12px; color: var(--ww-ink-mute); font-weight: 600; }

/* ===================== FAQ ===================== */
.ww-faq { margin-top: var(--space-6); border-top: 1.5px solid var(--ww-line); }
.ww-faq details { border-bottom: 1.5px solid var(--ww-line); cursor: pointer; }
.ww-faq summary { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 17px; color: var(--ww-ink); list-style: none; }
.ww-faq summary::-webkit-details-marker { display: none; }
.ww-faq__chev { font-size: 24px; color: var(--ww-forest); font-weight: 400; line-height: 1; }
.ww-faq__a { padding: 0 0 20px 0; font-size: 15px; color: var(--ww-ink-soft); line-height: 1.6; max-width: 600px; }

/* ===================== FOOTER ===================== */
.ww-footer { background: var(--ww-forest); color: var(--ww-paper); padding: 64px 32px 0; margin-top: 96px; position: relative; overflow: hidden; }
.ww-footer__pattern { position: absolute; inset: 0; background-image: url('/assets/paw-pattern.svg'); background-size: 200px; opacity: 0.4; filter: brightness(0) invert(1); pointer-events: none; }
.ww-footer__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; align-items: center; position: relative; padding-bottom: 56px; }
.ww-footer__brand { display: flex; gap: 20px; align-items: center; }
.ww-footer__word { font-family: var(--font-brand); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--ww-paper); }
.ww-footer__tag { font-family: var(--font-brand); font-size: 26px; font-weight: 600; color: var(--ww-paper); line-height: 1.2; max-width: 280px; }
.ww-footer__cols { display: contents; }
/* Push Service column toward the right within its grid cell so brand + Service aren't visually crowded. */
.ww-footer__cols > div:first-child { justify-self: center; }
.ww-footer__cols h4 { color: var(--ww-tag); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; }
.ww-footer__cols a { display: block; color: var(--ww-sage); text-decoration: none; font-size: 14px; font-weight: 500; padding: 4px 0; }
.ww-footer__cols a:hover { color: var(--ww-paper); }
.ww-footer__hours { display: block; color: var(--ww-sage); font-size: 13px; padding-top: 8px; }
.ww-footer__mascot { position: absolute; right: 0; bottom: 0; width: 140px; border-radius: 50%; opacity: 0.95; transform: rotate(8deg); box-shadow: var(--shadow-3); }
.ww-footer__bottom { max-width: 1200px; margin: 0 auto; padding: 20px 0; border-top: 1px solid rgba(250,245,233,.15); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ww-sage); position: relative; padding-right: 160px; gap: 16px; }
.ww-footer__bottom a { color: var(--ww-sage); text-decoration: none; }
.ww-footer__bottom a:hover { color: var(--ww-paper); }
.ww-footer__credit { font-size: 16px; font-weight: 600; color: var(--ww-paper); flex-shrink: 0; }
.ww-footer__credit-link { color: var(--ww-tag) !important; font-weight: 700; text-decoration: none; }
.ww-footer__credit-link:hover { color: var(--ww-tag-deep) !important; text-decoration: underline; }
/* Footer "Privacy" / "Terms" are buttons (open modals) — style as inline links. */
.ww-link-bottom { background: transparent; border: 0; padding: 0; color: var(--ww-sage); font: inherit; cursor: pointer; }
.ww-link-bottom:hover { color: var(--ww-paper); text-decoration: underline; }

/* ===================== MODAL ===================== */
.ww-modal__backdrop { position: fixed; inset: 0; background: rgba(31, 42, 30, 0.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 24px; animation: fadeIn var(--dur-base) var(--ease-out); }
.ww-modal { background: var(--ww-paper); border-radius: var(--radius-xl); width: 100%; max-width: 480px; padding: 32px; box-shadow: var(--shadow-4); position: relative; max-height: 90vh; overflow-y: auto; animation: modalIn var(--dur-slow) var(--ease-spring); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.ww-modal__close { position: absolute; top: 16px; right: 16px; background: transparent; border: 0; font-size: 28px; color: var(--ww-ink-mute); cursor: pointer; line-height: 1; padding: 4px 8px; z-index: 1; }
.ww-modal__close:hover { color: var(--ww-ink); }

/* Long-form legal modal — wider, denser, scrolls inside. */
.ww-modal--legal { max-width: 720px; max-height: 86vh; }
.ww-modal--legal .ww-modal__head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1.5px solid var(--ww-line); }
.ww-modal__title { font-family: var(--font-brand); font-size: 28px; font-weight: 700; color: var(--ww-ink); margin: 0; }
.ww-legal__body { font-size: 15px; line-height: 1.65; color: var(--ww-ink-soft); }
.ww-legal__body h3 { font-family: var(--font-brand); font-size: 18px; color: var(--ww-ink); margin: 24px 0 8px; }
.ww-legal__body h3:first-child { margin-top: 0; }
.ww-legal__body p { margin: 0 0 12px; }
.ww-legal__body ul { padding-left: 24px; margin: 0 0 12px; }
.ww-legal__body li { margin-bottom: 8px; }
.ww-legal__body a { color: var(--ww-forest); }
.ww-legal__body a:hover { color: var(--ww-forest-deep); }
.ww-modal__head h3 { margin: 6px 0 16px; }
.ww-modal__steps { display: flex; gap: 6px; margin-bottom: 24px; }
.ww-modal__dot { width: 32px; height: 4px; border-radius: 999px; background: var(--ww-line); transition: background var(--dur-base); }
.ww-modal__dot.is-active { background: var(--ww-forest); }
.ww-modal__body { display: flex; flex-direction: column; gap: 16px; }
.ww-field { display: flex; flex-direction: column; gap: 6px; }
.ww-field label { font-size: 13px; font-weight: 700; color: var(--ww-ink); }
.ww-field__hint { font-size: 13px; color: var(--ww-ink-soft); margin-top: 4px; padding: 8px 10px; background: var(--ww-kraft); border-radius: 8px; }
.ww-field__hint strong { color: var(--ww-forest); }
.ww-input { font-family: var(--font-sans); font-size: 15px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--ww-line); background: #FFFEF8; color: var(--ww-ink); outline: none; }
.ww-input:focus { border-color: var(--ww-forest); box-shadow: 0 0 0 3px rgba(92,139,77,.25); }
.ww-radio { display: flex; flex-direction: column; gap: 6px; }
.ww-radio label { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; padding: 8px 0; }
.ww-radio input { accent-color: var(--ww-forest); width: 18px; height: 18px; }
/* Fieldset wrapper for grouped form controls (e.g., yard-size radios). Strip
   the browser-default border + padding so it matches the surrounding .ww-field. */
.ww-fieldset { border: 0; padding: 0; margin: 0; }
.ww-fieldset legend { font-size: 13px; font-weight: 700; color: var(--ww-ink); padding: 0; margin-bottom: 6px; }
/* Multi-line variant of .ww-input for the Comments field. */
.ww-textarea { font-family: var(--font-sans); resize: vertical; min-height: 88px; line-height: 1.45; }
.ww-modal__row { display: flex; gap: 12px; }
.ww-modal__row .btn { flex: 1; }
.ww-modal__done { text-align: center; align-items: center; padding-top: 12px; }
.ww-done__circle { width: 72px; height: 72px; border-radius: 50%; background: var(--ww-success-bg); color: var(--ww-success); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.ww-done__sign { font-size: 20px; margin: 12px 0 24px; }

/* ─────────────── Tablet & narrow desktop (≤ 900px) ─────────────── */
@media (max-width: 900px) {
  /* Hero */
  .ww-hero { padding: 32px 20px; }
  .ww-hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .ww-hero__copy h1 { font-size: 48px; }
  .ww-hero__copy .ww-lead { font-size: 17px; margin-bottom: 28px; }
  .ww-hero__photo { max-width: 320px; }

  /* Sections */
  .ww-section { padding: 64px 20px; }
  .ww-section h2 { font-size: 36px; }

  /* Plan grid + Solo grid both collapse to single column */
  .ww-steps, .ww-plans, .ww-plans--solo, .ww-quotes { grid-template-columns: 1fr; }
  .ww-plan--featured { transform: none; }

  /* Service area */
  .ww-area { grid-template-columns: 1fr; }

  /* About us — stack: copy first, Lilly portrait below at smaller size */
  .ww-about { grid-template-columns: 1fr; gap: 32px; }
  .ww-about__art img { max-width: 200px; }

  /* Footer — single column, brand on top */
  .ww-footer { padding: 48px 20px 0; margin-top: 64px; }
  .ww-footer__inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .ww-footer__brand { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ww-footer__brand img { width: 140px !important; height: 140px !important; }
  .ww-footer__tag { font-size: 22px; }
  .ww-footer__cols > div:first-child { justify-self: start; }
  .ww-footer__bottom { flex-direction: column; gap: 8px; padding-right: 0; }

  /* Nav — hide section links; brand + CTA stay */
  .ww-nav__inner { padding: 12px 20px; gap: 16px; }
  .ww-nav__links { display: none; }
  .ww-nav__word { font-size: 18px; }

  /* Modals */
  .ww-modal { padding: 24px; max-width: calc(100% - 16px); }
  .ww-modal__backdrop { padding: 12px; }
  .ww-modal--legal { max-height: 90vh; }
}

/* ─────────────── Phones (≤ 600px) ─────────────── */
@media (max-width: 600px) {
  /* Type scale */
  .ww-hero__copy h1 { font-size: 38px; line-height: 1.05; }
  .ww-hero__copy .ww-lead { font-size: 16px; }
  .ww-section h2 { font-size: 28px; line-height: 1.15; }
  .ww-eyebrow { font-size: 11px; }

  /* Tighter horizontal padding on phones */
  .ww-hero { padding: 24px 16px; }
  .ww-section { padding: 48px 16px; }

  /* ZIP form — stack input + button so the CTA isn't squeezed */
  .ww-zip { padding: 20px; }
  .ww-zip__row { flex-direction: column; align-items: stretch; gap: 10px; }
  .ww-zip__input { font-size: 18px; }
  .ww-waitlist { flex-direction: column; align-items: stretch; gap: 10px; }
  .ww-waitlist .btn { width: 100%; }

  /* Plan cards — denser padding, smaller numerals */
  .ww-plan { padding: 24px 22px; }
  .ww-plan__amt { font-size: 44px; }
  .ww-plan__name { font-size: 22px; }

  /* Dog-count toggle — label above the buttons */
  .ww-dog-toggle, .ww-dog-toggle--left { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ww-dog-toggle__buttons { width: 100%; justify-content: space-between; }
  .ww-dog-toggle__btn { min-width: 0; flex: 1; padding: 10px 8px; }

  /* About us — slightly smaller image */
  .ww-about__art img { max-width: 160px; }

  /* Hero caption — on phones the "Hi, I'm Lilly" pill overlaps the circular
     badge artwork. Anchor the pill's TOP to the photo container's bottom
     edge (not its bottom to -20px, which only nudges and still overlaps the
     circle by the pill's own height) and leave room below for it. */
  .ww-hero__art { padding-bottom: 56px; }
  .ww-hero__caption {
    top: 100%;
    bottom: auto;
    right: auto;
    left: 50%;
    margin-top: 8px;
    transform: translateX(-50%) rotate(4deg);
    font-size: 18px;
    padding: 8px 14px;
    white-space: nowrap;
  }
  .ww-hero__caption span { font-size: 14px; }

  /* Footer */
  .ww-footer { padding: 36px 16px 0; }
  .ww-footer__brand img { width: 120px !important; height: 120px !important; }
  .ww-footer__tag { font-size: 20px; }

  /* Modal — full-bleed padding on phones */
  .ww-modal { padding: 20px; border-radius: var(--radius-lg); }
  .ww-modal__backdrop { padding: 0; align-items: flex-end; }
  .ww-modal { max-height: 95vh; max-width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .ww-modal__row { flex-direction: column-reverse; }
  .ww-modal__row .btn { width: 100%; }
  .ww-modal__title { font-size: 22px; }
  .ww-modal__head h3 { font-size: 18px; }

  /* Bigger touch targets — WCAG 2.5.5 aims for 44×44px */
  .ww-modal__close { padding: 12px 16px; font-size: 32px; top: 4px; right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===================== LILLY ACCENTS + ORGANIC SECTION DIVIDERS =====================
   Visual differentiation pass — pushes the site further from the generic
   "service landing page" look by leaning on Lilly + a paper-tear kraft motif.
   Everything in this block is decoration only; safe to remove the whole
   block to revert. See `git tag pre-lilly-accents` for the prior snapshot. */

/* Scalloped top + bottom on every kraft section. Each pseudo-element paints
   the cream page background over the kraft via a tiling SVG wave, so the
   transition between cream and kraft sections looks like torn paper instead
   of a hard horizontal line. The wave height is fixed (14px) so it reads
   the same on every viewport. */
.ww-section--kraft { position: relative; }
.ww-section--kraft::before,
.ww-section--kraft::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L60,0 L60,8 Q45,14 30,8 T0,8 Z' fill='%23FAF5E9'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 60px 14px;
  pointer-events: none;
  z-index: 1;
}
.ww-section--kraft::before { top: 0; }
.ww-section--kraft::after  { bottom: 0; transform: scaleY(-1); }

/* Lilly spot peeking over the top-right corner of the featured plan card.
   Pseudo-element rather than an <img> so it stays purely decorative and a
   screen reader skips it. Hidden on phones (≤600px) where the card is
   narrower and the spot would crowd the price. */
.ww-plan--featured::before {
  content: '';
  position: absolute;
  top: -36px;
  right: -18px;
  width: 96px;
  height: 96px;
  background-image: url('/assets/lilly-portrait.png');
  /* Portrait has a transparent background so we can show full-body Lilly
     inside the cream circle instead of zooming to her face. */
  background-size: 78% auto;
  background-position: center 60%;
  background-repeat: no-repeat;
  background-color: var(--ww-paper);
  border-radius: 50%;
  border: 3px solid var(--ww-paper);
  box-shadow: 0 6px 14px rgba(31,42,30,0.18);
  transform: rotate(6deg);
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 600px) {
  .ww-plan--featured::before { display: none; }
}

/* "A note from Lilly" callout above the FAQ list. Kraft sticky-note look
   (dashed bark border on kraft, with Lilly's portrait in the gutter and a
   script-styled label). Falls back to vertical stack on phones so the
   portrait doesn't squeeze the body copy. */
.ww-faq__lilly-tip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--ww-kraft);
  border: 1.5px dashed var(--ww-bark);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 0 0 28px;
}
.ww-faq__lilly-tip img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--ww-paper);
  padding: 4px;
}
.ww-faq__lilly-tip > div { min-width: 0; }
.ww-faq__lilly-label {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 24px;
  font-weight: 700;
  color: var(--ww-forest);
  line-height: 1;
  margin-bottom: 4px;
}
.ww-faq__lilly-tip p {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--ww-ink-soft);
  line-height: 1.45;
}
@media (max-width: 600px) {
  .ww-faq__lilly-tip { flex-direction: column; gap: 10px; padding: 14px 16px; }
  .ww-faq__lilly-tip img { width: 56px; height: 56px; }
  .ww-faq__lilly-label { font-size: 22px; }
}

/* "25% off your first month" promo line on subscription plan cards and the
   signup modal. Tag-yellow pill on a forest tint so it reads as a callout
   without competing with the headline price. Hidden + flipped off by setting
   LAUNCH_PROMO_ACTIVE = false in FeeSchedule.jsx and SignUpModal.jsx when
   the launch promo ends (and by unsetting LAUNCH_PROMO_COUPON_ID on the
   backend so the discount isn't actually applied). */
.ww-plan__promo {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ww-forest-deep);
  background: var(--ww-tag);
  border-radius: 999px;
  line-height: 1.3;
}
