/* ==========================================================================
   WILLOWBROOK | landing page
   Brand tokens inherited from the Willowbrook breeder app.
   Type   : Bricolage Grotesque (display) / Plus Jakarta Sans (body) /
            JetBrains Mono (data). Self-hosted.
   Colour : violet accent + violet-tinted neutrals. One accent, locked.
   Radius : cards 16px / small 12px / buttons full pill.
   ========================================================================== */

:root {
  --white: #ffffff;
  --shell: #f6f4ff;
  --sunk: #f1edfb;

  --ink-900: #1e1b33;
  --ink-700: #3a3557;
  --ink-500: #5c5780;
  --ink-400: #6b6590;

  --violet: #6337c4;
  --violet-deep: #4f2ba0;
  --violet-t: #efe8ff;

  --line: rgba(30, 27, 51, 0.09);
  --line-2: rgba(30, 27, 51, 0.16);

  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --r: 16px;
  --r-sm: 12px;
  --r-xs: 9px;

  --shadow: 0 1px 2px rgba(30, 27, 51, 0.05), 0 8px 24px -12px rgba(30, 27, 51, 0.16);
  --shadow-lg: 0 2px 6px rgba(30, 27, 51, 0.07), 0 20px 48px -20px rgba(30, 27, 51, 0.28);

  --maxw: 1160px;
}

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

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--violet-t); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink-900); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 600; transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.section__sub {
  font-size: 1.0625rem;
  color: var(--ink-500);
  max-width: 60ch;
  margin-top: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 1rem; }

.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-deep); box-shadow: var(--shadow); }

.btn--ghost { background: var(--white); color: var(--ink-700); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink-400); background: #fff; }

.btn--text { color: var(--ink-700); padding-inline: 6px; }
.btn--text:hover { color: var(--ink-900); text-decoration: underline; text-underline-offset: 4px; }

.btn--light { background: #fff; color: var(--ink-900); }
.btn--light:hover { background: var(--violet-t); }

.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { justify-content: center; width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -18px rgba(30, 27, 51, 0.4); }
.nav__inner {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink-900); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 17px;
}
.brand__name { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }

.nav__links { display: flex; gap: 26px; margin-inline: auto; }
.nav__links a { font-size: 0.9375rem; font-weight: 500; color: var(--ink-700); transition: color 0.15s ease; }
.nav__links a:hover { color: var(--ink-900); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle { display: none; background: none; border: 0; color: var(--ink-900); font-size: 1.5rem; padding: 6px; }
.nav__mobile { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav__mobile[hidden] { display: none; }
  .nav__mobile:not([hidden]) {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 24px 20px;
    background: var(--white);
    border-top: 1px solid var(--line);
  }
  .nav__mobile a { padding: 12px 4px; font-weight: 500; color: var(--ink-700); }
  .nav__mobile .btn { margin-top: 8px; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vh, 88px) 0 clamp(48px, 8vh, 96px); }
.hero__grid {
  display: grid; grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.hero__sub {
  font-size: 1.125rem; color: var(--ink-500);
  max-width: 46ch; margin-top: 20px;
}
.hero__ctas { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero__media { position: relative; }
.hero__media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  background: var(--violet-t); border-radius: 28px; z-index: 0;
}
.hero__media img {
  position: relative; z-index: 1;
  width: 100%; border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

/* ---------- stats ---------- */
.stats { padding: clamp(40px, 6vw, 72px) 0; }
.stats__lead { text-align: center; color: var(--ink-500); font-size: 1.0625rem; margin-bottom: 40px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--ink-900); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: block; line-height: 1.1;
}
.stat__plus { color: var(--violet); font-size: 0.7em; }
.stat__label { display: block; margin-top: 8px; color: var(--ink-500); font-size: 0.9375rem; }

/* ---------- problem ---------- */
.problem { padding: clamp(56px, 9vw, 104px) 0; }
.problem__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.problem__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1; letter-spacing: -0.02em;
}
.problem__sub { color: var(--ink-500); font-size: 1.125rem; margin-top: 20px; }
.pain-list {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  list-style: none; margin-top: 28px;
}
.pain-list li {
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink-700); font-size: 0.875rem; font-weight: 500;
  padding: 9px 16px; border-radius: 999px;
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--tinted { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 660px; margin-bottom: 44px; }
.section--tinted .section__head { margin-bottom: 40px; }

/* ---------- bento ---------- */
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.bento__cell {
  grid-column: span 2;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.bento__cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.bento__cell--wide { grid-column: span 3; }
.bento__icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--violet-t); color: var(--violet);
  display: grid; place-items: center; font-size: 1.35rem;
  margin-bottom: 6px;
}
.bento__title { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.bento__desc { color: var(--ink-500); font-size: 0.9375rem; max-width: 34ch; }

.bento__cell--img { padding: 0; overflow: hidden; gap: 0; }
.bento__cell--img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.bento__cell--img figcaption { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 6px; }

.bento__cell--accent {
  background: linear-gradient(150deg, var(--violet) 0%, var(--violet-deep) 100%);
  border-color: transparent; color: #fff;
}
.bento__cell--accent .bento__icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.bento__cell--accent .bento__desc { color: rgba(255, 255, 255, 0.86); }
.bento__note { margin-top: auto; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin-top: 8px; }
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--line-2); }
.step__num {
  font-family: var(--mono); font-weight: 600; font-size: 0.875rem;
  color: var(--violet); display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--violet-t);
  margin-bottom: 18px;
}
.step__title { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.step__desc { color: var(--ink-500); margin-top: 10px; max-width: 32ch; }

/* ---------- split ---------- */
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.split__media img { width: 100%; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.split__copy .section__title { max-width: 20ch; }
.check-list { list-style: none; margin: 26px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-700); font-weight: 500; }
.check-list i { color: var(--violet); font-size: 1.2rem; flex: none; margin-top: 2px; }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  background: var(--shell); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px;
  display: flex; flex-direction: column; gap: 16px; margin: 0;
}
.quote__stars { color: #f2b53a; display: flex; gap: 3px; font-size: 1rem; }
.quote__text { color: var(--ink-700); font-size: 1.0625rem; line-height: 1.55; }
.quote__meta { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: center; margin-top: auto; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; grid-row: span 2; object-fit: cover; }
.quote__name { font-weight: 600; font-size: 0.9375rem; }
.quote__role { color: var(--ink-400); font-size: 0.875rem; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.plan--featured { border-color: var(--violet); box-shadow: var(--shadow-lg); }
.plan__badge {
  position: absolute; top: -13px; left: 24px;
  background: var(--violet); color: #fff;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px;
}
.plan__name { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-family: var(--display); font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; }
.plan__period { color: var(--ink-400); font-size: 0.9375rem; }
.plan__blurb { color: var(--ink-500); font-size: 0.9375rem; }
.plan__features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 6px 0 10px; }
.plan__features li { display: flex; align-items: center; gap: 10px; color: var(--ink-700); font-size: 0.9375rem; }
.plan__features i { color: var(--violet); flex: none; }
.plan .btn { margin-top: auto; }

/* ---------- faq ---------- */
.faq__wrap { max-width: 800px; }
.faq { margin-top: 8px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-family: var(--sans); font-size: 1.0625rem; font-weight: 600;
  color: var(--ink-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { color: var(--ink-400); transition: transform 0.2s ease; flex: none; }
.faq__item[open] summary i { transform: rotate(180deg); }
.faq__item p { color: var(--ink-500); padding: 0 40px 22px 4px; max-width: 62ch; }

/* ---------- cta band ---------- */
.cta-band { padding: clamp(64px, 10vw, 120px) 0; }
.cta-band__inner {
  background: linear-gradient(150deg, var(--violet) 0%, var(--violet-deep) 100%);
  border-radius: 28px; color: #fff;
  text-align: center; padding: clamp(48px, 8vw, 88px) clamp(24px, 6vw, 96px);
}
.cta-band__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; margin-inline: auto; }
.cta-band__sub { color: rgba(255, 255, 255, 0.85); font-size: 1.125rem; margin: 18px auto 30px; max-width: 48ch; }

/* ---------- footer ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 56px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__tagline { color: var(--ink-500); max-width: 30ch; }
.footer__head { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--ink-700); font-size: 0.9375rem; }
.footer__col a:hover { color: var(--ink-900); }
.footer__bottom { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.footer__bottom p { color: var(--ink-400); font-size: 0.875rem; }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes hero-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero__copy > * { animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell, .bento__cell--wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .split__grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat + .stat { border-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .pain-list { flex-direction: column; align-items: stretch; }
  .pain-list li { text-align: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
