/* Avocado Legal community interest — production CSS.
   Layout inspired by Stitch screen projects/1085177697076409930/screens/4d63d5c7a65741e4ac58b8cd28ac8373.
   Colour SoT: brand-tokens.css (synced from brand/06-exports/tokens.css). */

:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink, #172118);
  background: var(--cream, #fbfbf3);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--leaf-700, #315f32);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--leaf-900, #17351f);
}

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--leaf-700);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid var(--line, rgba(49, 95, 50, 0.16));
  background: rgba(251, 251, 243, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--leaf-900);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  transition: transform var(--ease);
}

.brand-lockup:hover .brand-mark {
  transform: scale(1.03);
}

.brand-wordmark {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem 1.1rem;
}

.header-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--leaf-700);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--leaf-900);
}

.header-cta {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--leaf-700);
  text-decoration: none;
  position: relative;
  padding-block: 0.25rem;
}

.header-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--leaf-700);
  transition: width var(--ease);
}

.header-cta:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(214, 233, 111, 0.34), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(122, 171, 92, 0.16), transparent 28rem),
    radial-gradient(rgba(49, 95, 50, 0.045) 1px, transparent 0),
    linear-gradient(165deg, var(--page-bg-top, #f7f8ef) 0%, var(--page-bg-mid, #eef4e5) 48%, var(--page-bg-end, #f8f5ea) 100%);
  background-size: auto, auto, 24px 24px, auto;
  animation: atmosphere-drift 18s ease-in-out infinite alternate;
}

@keyframes atmosphere-drift {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.03) translateY(-1.5%); }
}

.hero-content {
  width: min(720px, 100%);
  text-align: center;
  padding-block: clamp(3rem, 8vh, 5.5rem);
}

.hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--leaf-800, #214728);
}

.hero-headline {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-support {
  margin: 0 auto 1.75rem;
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--muted, #657264);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 0.4rem;
  border: 1px solid rgba(49, 95, 50, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(39, 67, 37, 0.08);
  transition: box-shadow var(--ease), border-color var(--ease);
}

.hero-cta:focus-within {
  border-color: rgba(49, 95, 50, 0.45);
  box-shadow: 0 0 0 3px rgba(49, 95, 50, 0.12), 0 10px 30px rgba(39, 67, 37, 0.08);
}

.hero-cta input {
  flex: 1 1 14rem;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.9rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.hero-cta input:focus {
  outline: none;
}

.hero-cta input::placeholder {
  color: rgba(101, 114, 100, 0.75);
}

.hero-fine {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.cascade {
  opacity: 0;
  transform: translateY(12px);
  animation: cascade-in 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cascade-1 { animation-delay: 40ms; }
.cascade-2 { animation-delay: 120ms; }
.cascade-3 { animation-delay: 200ms; }
.cascade-4 { animation-delay: 280ms; }
.cascade-5 { animation-delay: 360ms; }

@keyframes cascade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere,
  .cascade {
    animation: none !important;
  }
  .cascade {
    opacity: 1;
    transform: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), opacity var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.btn-primary {
  background: var(--leaf-700, #315f32);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--leaf-800, #214728);
}

.btn-block {
  width: 100%;
}

/* Shared section intros */
.section-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.explain,
.how,
.who {
  border-top: 1px solid var(--line);
  padding: clamp(3.25rem, 7vw, 4.75rem) 0;
}

.explain {
  background: #fff;
}

.how {
  background: rgba(255, 255, 255, 0.55);
}

.who {
  background: rgba(236, 245, 223, 0.28);
}

.explain-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
}

.explain-points li {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(49, 95, 50, 0.18);
}

.explain-points h3,
.how-steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.explain-points p,
.how-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.how-steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.how-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.how-index {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--leaf-100, #ecf5df);
  color: var(--leaf-800);
  font-size: 0.85rem;
  font-weight: 750;
}

.example {
  border: 1px solid rgba(49, 95, 50, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: 0 12px 36px rgba(39, 67, 37, 0.06);
}

.example-ask-label {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf-600);
}

.example-ask,
.example-answer {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--leaf-500, #5a9149);
  background: rgba(236, 245, 223, 0.45);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.example-source-title {
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.example-source-title .source-doc-link {
  color: var(--leaf-800, #214728);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.example-source-title .source-doc-link:hover {
  color: var(--leaf-900, #17351f);
}

.example-source-actions {
  margin: 1rem 0 0.65rem;
}

.btn-secondary {
  background: rgba(236, 245, 223, 0.95);
  color: var(--leaf-900, #17351f);
  border: 1px solid rgba(49, 95, 50, 0.28);
  text-decoration: none;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--leaf-100, #ecf5df);
  color: var(--leaf-900, #17351f);
}

.source-open-btn {
  width: auto;
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.88rem;
}

.who-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--ink);
  font-weight: 550;
}

.who-list li {
  margin: 0.35rem 0;
}

.who-note {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Why */
.why {
  border-top: 1px solid var(--line);
  background: rgba(236, 245, 223, 0.45);
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.why-intro {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf-600, #47783e);
}

.why-intro h2,
.interest-intro h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 750;
  color: var(--ink);
}

.why-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.why-points li {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(49, 95, 50, 0.22);
}

.why-index {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--leaf-700);
}

.why-points h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.why-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Interest / waitlist */
.explain,
.how,
.who,
.interest {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.interest {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.interest-inner {
  width: min(640px, calc(100% - 2.5rem));
}

.interest-intro {
  text-align: center;
  margin-bottom: 1.75rem;
}

.interest-copy {
  margin: 0.85rem auto 0;
  max-width: 34rem;
  color: var(--muted);
}

.interest-panel {
  border: 1px solid rgba(49, 95, 50, 0.16);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow, 0 22px 60px rgba(39, 67, 37, 0.12));
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(49, 95, 50, 0.22);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--leaf-700);
  box-shadow: 0 0 0 3px rgba(49, 95, 50, 0.12);
}

.form-status {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 550;
}

.form-status.is-ok {
  background: var(--ok-bg, rgba(236, 245, 223, 0.9));
  color: var(--ok, #1f5c2e);
  border: 1px solid rgba(49, 95, 50, 0.18);
}

.form-status.is-error {
  background: var(--warn-bg, rgba(255, 244, 224, 0.85));
  color: var(--warn, #7a3d18);
  border: 1px solid rgba(122, 61, 24, 0.2);
}

.form-note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(236, 245, 223, 0.35);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--leaf-900);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .header-nav a:not(.header-cta) {
    display: none;
  }

  .explain-points,
  .why-points {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-points li {
    border-top: 0;
    border-left: 1px solid rgba(49, 95, 50, 0.22);
    padding: 0 0 0 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .shell,
  .interest-inner {
    width: calc(100% - 1.5rem);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}
