/* ============================================================
   Marketing site global styles for we are here.
   Eddie tokens + fonts are loaded via <link> tags in base.njk.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ed-theme-typography-body-default-font-family);
  font-size: var(--ed-theme-typography-body-default-font-size);
  line-height: var(--ed-theme-typography-body-default-line-height);
  color: var(--ed-theme-color-content-default);
  background: var(--ed-theme-color-background-default);
}

/* Skip-to-main for a11y */
#main:target {
  outline: 2px solid var(--ed-theme-focus-ring-color-border-default);
}

/* ============================================================
   LayoutContainer variants (mirrors the Vue wrapper's --narrow)
   ============================================================ */
.l-container--narrow {
  max-width: 40rem;
  margin: 0 auto;
}

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--ed-theme-color-border-default);
  padding: 1rem 0;
}

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

.site-header__wordmark {
  text-decoration: none;
  color: var(--ed-theme-color-content-brand);
  font-size: 1.15rem;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header__link {
  color: var(--ed-theme-color-content-default);
  text-decoration: none;
}

.site-header__link:hover,
.site-header__link:focus-visible {
  text-decoration: underline;
}

/* ============================================================
   Shared section / marketing page patterns
   (used across homepage, join, waitlist)
   ============================================================ */
.hero,
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section--subtle {
  background: var(--ed-theme-color-background-subtle);
}

.section--brand {
  background: var(--ed-theme-color-background-brand);
  color: var(--ed-theme-color-content-on-brand);
}

.section__heading {
  text-align: center;
  margin-block-end: 2rem;
}

.section--cta {
  text-align: center;
}

/* ============================================================
   Homepage
   ============================================================ */
.hero {
  text-align: center;
}

.hero__headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-block-end: 1.5rem;
  color: var(--ed-theme-color-content-brand);
}

.hero__sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  max-width: 36rem;
  margin-inline: auto;
  margin-block-end: 2rem;
  color: var(--ed-theme-color-content-subtle);
}

.deal__intro {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-block-end: 2rem;
  font-size: 1.15rem;
}

.verbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.verb-card__word {
  font-size: 1.5rem;
  color: var(--ed-theme-color-content-brand);
  margin-block-end: 0.25rem;
}

.cta__headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--ed-theme-color-content-brand);
  margin-block-end: 1rem;
}

/* ============================================================
   Join page
   ============================================================ */
.join__hero {
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
}

.join__headline {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  margin-block-end: 1rem;
  color: var(--ed-theme-color-content-brand);
}

.join__lede {
  font-size: clamp(1.05rem, 1.75vw, 1.3rem);
  line-height: 1.6;
  max-width: 36rem;
  margin-inline: auto;
  margin-block-end: 2rem;
  color: var(--ed-theme-color-content-subtle);
}

.join__what,
.join__why-paid,
.join__cta {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.join__section-heading,
.join__cta-heading {
  text-align: center;
  margin-block-end: 2rem;
}

.join__why-paid {
  background: var(--ed-theme-color-background-subtle);
}

.join__cta {
  text-align: center;
}

/* ============================================================
   Waitlist page
   ============================================================ */
.waitlist__hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem;
  text-align: center;
}

.waitlist__headline {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-block-end: 1rem;
  color: var(--ed-theme-color-content-brand);
}

.waitlist__lede {
  font-size: clamp(1.05rem, 1.75vw, 1.25rem);
  line-height: 1.6;
  max-width: 36rem;
  margin-inline: auto;
  color: var(--ed-theme-color-content-subtle);
}

.waitlist__form-section {
  padding: 1.5rem 0 clamp(2.5rem, 6vw, 4.5rem);
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 32rem;
  margin-inline: auto;
}

.waitlist__promises {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--ed-theme-color-background-subtle);
}

.waitlist__already {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  text-align: center;
}

/* ============================================================
   Text-layout pages (mission-values, privacy, ToS, etc.)
   Markdown pages get a comfortable reading measure by default.
   ============================================================ */
.text-layout {
  max-width: 42rem;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) 1rem;
}

.text-layout h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--ed-theme-color-content-brand);
  margin-block-end: 1rem;
}

.text-layout h2 {
  margin-block: 2.5rem 0.75rem;
}

.text-layout h3 {
  margin-block: 1.75rem 0.5rem;
}

.text-layout p,
.text-layout ul,
.text-layout ol,
.text-layout blockquote {
  margin-block: 0 1rem;
  line-height: 1.65;
}

.text-layout a {
  color: var(--ed-theme-color-content-brand);
}

.text-layout em,
.text-layout i {
  color: var(--ed-theme-color-content-subtle);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--ed-theme-color-border-default);
  color: var(--ed-theme-color-content-default);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer__inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media all and (min-width: 60rem) {
  .footer__inner {
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
  }
}

.footer__brand {
  max-width: 20rem;
}

.footer__wordmark {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--ed-theme-color-content-brand);
}

.footer__tagline {
  margin: 0;
  color: var(--ed-theme-color-content-subtle);
}

.footer-nav {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.footer-nav__heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
  color: var(--ed-theme-color-content-subtle);
}

.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav__link {
  color: var(--ed-theme-color-content-default);
  text-decoration: none;
}

.footer-nav__link:hover,
.footer-nav__link:focus-visible {
  text-decoration: underline;
}

.footer-nav__link--cta {
  color: var(--ed-theme-color-content-brand);
  font-weight: 600;
}

.footer__fineprint {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ed-theme-color-border-default);
  color: var(--ed-theme-color-content-subtle);
  font-size: 0.8rem;
}
