/* ============================================================
   Foundersbeat — design tokens
   A bolder, builder-coded system: hard offset shadows, rotated
   cards, and a vivid dual accent that mirrors the founder
   rollercoaster itself:
     --accent-heat  urgency, hustle, the fire-fighting weeks
     --accent-calm  clarity, resilience, the weeks that land
   Type: Bricolage Grotesque (display, chunky, characterful) for
         headings, Inter for body copy, IBM Plex Mono for small
         functional labels (tags, numbers, meta).
   ============================================================ */

:root {
  --ink: #0b0b10;
  --ink-raised: #17161d;
  --ink-line: rgba(251, 248, 242, 0.16);
  --paper: #fbf7ee;
  --paper-raised: #f1e9d6;
  --paper-line: rgba(11, 11, 16, 0.15);

  --accent-heat: #ff4d2e;
  --accent-heat-dim: #d6371f;
  --accent-calm: #00e3a0;
  --accent-calm-dim: #00a878;
  --accent-pop: #ffd93d;

  --text-on-paper: #0b0b10;
  --text-on-paper-muted: #57534a;
  --text-on-ink: #fbf7ee;
  --text-on-ink-muted: #b3aea2;

  --font-display: "Bricolage Grotesque", "Arial Black", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --radius: 12px;
  --shadow-brutal: 7px 7px 0 var(--ink);
  --shadow-brutal-sm: 4px 4px 0 var(--ink);
}

/* ============================================================
   Reset / base
   ============================================================ */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: inherit;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-heat);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 18px;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--accent-heat);
  outline-offset: 3px;
}

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

/* ============================================================
   Buttons — tactile, neobrutalist press effect
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9em 1.7em;
  border-radius: 10px;
  border: 2.5px solid var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-brutal-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.btn--primary {
  background: var(--accent-heat);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--accent-pop);
}

.btn--ghost {
  background: var(--paper);
  color: var(--text-on-paper);
}

.btn--small {
  padding: 0.6em 1.2em;
  font-size: 0.92rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--small:hover {
  box-shadow: 5px 5px 0 var(--ink);
}

.btn--full {
  width: 100%;
  padding: 1em 1.6em;
  font-size: 1.05rem;
}

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  padding: 24px 0;
  background: transparent;
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  color: var(--accent-heat);
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 50%;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.main-nav {
  display: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-on-paper-muted);
  border-bottom: 3px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  color: var(--ink);
  border-color: var(--accent-calm);
}

@media (min-width: 900px) {
  .main-nav {
    display: block;
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ink) 0%, var(--accent-heat-dim) 55%, var(--accent-calm-dim) 100%);
  color: var(--text-on-ink);
  border-bottom: 3px solid var(--ink);
}

.hero__row {
  display: block;
  position: relative;
}

.hero__copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero__copy h1 {
  color: var(--text-on-ink);
  font-size: clamp(2.8rem, 8vw, 5.8rem);
}

.hero__copy p.hero__sub {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--text-on-ink-muted);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 34px 0 22px;
}

.hero__micro {
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--text-on-ink-muted);
  margin-bottom: 0;
}

/* ============================================================
   Beat line — reused on the success page
   ============================================================ */

.beat-line {
  width: 100%;
  height: auto;
}

.beat-line polyline {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-beat 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards 0.15s;
}

@keyframes draw-beat {
  to {
    stroke-dashoffset: 0;
  }
}

/* ============================================================
   Generic section rhythm — alternating paper / ink surfaces
   ============================================================ */

.section {
  padding: 76px 0;
  border-top: 2px solid var(--paper-line);
}

.section__intro {
  max-width: 640px;
  margin-bottom: 44px;
}

.section__intro p {
  color: var(--text-on-paper-muted);
}

/* Dark surfaces for problem + beta */
.problem,
.beta {
  border-top: none;
}

.problem {
  background: var(--ink);
  color: var(--text-on-ink);
  background-image: radial-gradient(rgba(251, 248, 242, 0.1) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}

.problem p {
  color: var(--text-on-ink-muted);
}

.problem h2,
.problem h3 {
  color: var(--text-on-ink);
}

/* ============================================================
   Problem
   ============================================================ */

.problem__grid {
  display: grid;
  gap: 24px;
}

.problem__item {
  background: var(--ink-raised);
  border: 2.5px solid var(--accent-heat);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 5px 5px 0 rgba(255, 77, 46, 0.35);
  transform: rotate(-0.6deg);
}

.problem__item:nth-child(2) {
  border-color: var(--accent-calm);
  box-shadow: 5px 5px 0 rgba(0, 227, 160, 0.32);
  transform: rotate(0.5deg);
}

.problem__item:nth-child(3) {
  border-color: var(--accent-pop);
  box-shadow: 5px 5px 0 rgba(255, 217, 61, 0.3);
  transform: rotate(-0.4deg);
}

.problem__item p {
  margin-bottom: 0;
}

.problem__conclusion {
  margin-top: 44px;
  display: block;
  width: 100%;
  background: var(--accent-heat);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  max-width: none;
  padding: 22px 28px;
  border-radius: var(--radius);
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--text-on-ink-muted);
  transform: none;
}

@media (min-width: 700px) {
  .problem__grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 28px;
  }
}

/* ============================================================
   How it works
   ============================================================ */

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

.steps__item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-top: 2px solid var(--paper-line);
}

.steps__item:last-child {
  border-bottom: 2px solid var(--paper-line);
}

.steps__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent-heat);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
}

.steps__item:nth-child(2) .steps__number {
  color: var(--accent-calm);
}

.steps__item:nth-child(3) .steps__number {
  color: var(--accent-pop);
}

.steps__item h3 {
  margin-bottom: 0.35em;
  font-size: 1.3rem;
}

.steps__item p {
  margin-bottom: 0;
  color: var(--text-on-paper-muted);
  font-size: 1.05rem;
}

/* ============================================================
   Inner circle (bonus feature, visually distinct from the steps)
   ============================================================ */

.inner-circle {
  padding: 0 0 76px;
  border-top: none;
}

.inner-circle__card {
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 44px clamp(24px, 5vw, 52px);
  background: var(--accent-calm);
  box-shadow: var(--shadow-brutal);
  transform: rotate(0.6deg);
}

.inner-circle__card h2,
.inner-circle__card p {
  color: var(--ink);
}

.inner-circle__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.inner-circle__note {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0;
}

/* ============================================================
   Example / match
   ============================================================ */

.example__grid {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 36px;
}

.example__card {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 32px;
  border-radius: var(--radius);
  border: 3px solid var(--accent-heat);
  box-shadow: 6px 6px 0 rgba(255, 77, 46, 0.3);
  transform: rotate(-1deg);
}

.example__card:nth-of-type(2) {
  border-color: var(--accent-calm);
  box-shadow: 6px 6px 0 rgba(0, 227, 160, 0.3);
  transform: rotate(1deg);
}

.example__label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-on-ink-muted);
  margin-bottom: 16px;
}

.example__card blockquote {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text-on-ink);
}

.example__meta {
  margin-bottom: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-on-ink);
}

.example__connector {
  justify-self: center;
  color: var(--accent-heat);
}

.example__result {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
}

@media (min-width: 780px) {
  .example__grid {
    grid-template-columns: 1fr auto 1fr;
  }

  .example__connector svg {
    transform: none;
  }
}

@media (max-width: 779px) {
  .example__connector svg {
    transform: rotate(90deg);
  }
}

/* ============================================================
   Audience — three cards
   ============================================================ */

.audience__intro {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-on-paper-muted);
}

.audience__grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.audience__card {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 2.5px solid var(--ink);
  border-top: 7px solid var(--accent-heat);
  box-shadow: var(--shadow-brutal-sm);
  transform: rotate(-1deg);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.audience__card--calm {
  border-top-color: var(--accent-calm);
}

.audience__card:nth-child(2) {
  transform: rotate(0.8deg);
}

.audience__card:nth-child(3) {
  border-top-color: var(--accent-pop);
  transform: rotate(-0.5deg);
}

.audience__card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 7px 9px 0 var(--ink);
}

.audience__number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-heat);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.audience__card--calm .audience__number {
  background: var(--accent-calm);
}

.audience__card:nth-child(3) .audience__number {
  background: var(--accent-pop);
}

.audience__card h3 {
  color: var(--text-on-ink);
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

.audience__card p {
  color: var(--text-on-ink-muted);
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .audience__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   Beta / cohort — the one big color splash
   ============================================================ */

.beta {
  background: var(--accent-heat);
  color: var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.beta h2,
.beta p {
  color: var(--ink);
}

.beta__row {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.beta__note {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 0;
}

.beta .btn--primary {
  background: var(--ink);
  color: var(--accent-heat);
  border-color: var(--ink);
}

.beta .btn--primary:hover {
  background: var(--paper);
  color: var(--ink);
}

@media (min-width: 760px) {
  .beta__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .beta__row > div {
    max-width: 640px;
  }
}

/* ============================================================
   FAQ
   ============================================================ */

.faq__list {
  max-width: 720px;
}

.faq__item {
  border-top: 2px solid var(--paper-line);
  padding: 20px 0;
}

.faq__item:last-child {
  border-bottom: 2px solid var(--paper-line);
}

.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--ink);
  background: var(--accent-heat);
}

.faq__item[open] summary::after {
  content: "\2212";
  background: var(--accent-calm);
}

.faq__item p {
  margin: 16px 0 0;
  color: var(--text-on-paper-muted);
  font-size: 1.02rem;
}

/* ============================================================
   Final CTA
   ============================================================ */

.final-cta__row {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.final-cta h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

/* ============================================================
   Signup form
   ============================================================ */

.signup__row {
  display: grid;
  gap: 40px;
}

.signup__intro {
  max-width: 640px;
}

.signup__disclaimer {
  font-size: 0.9rem;
  color: var(--text-on-paper-muted);
  border-left: 4px solid var(--accent-heat);
  padding-left: 14px;
}

.form {
  max-width: 640px;
  display: grid;
  gap: 8px;
}

.form__alert {
  background: var(--accent-heat);
  color: var(--ink);
  font-weight: 700;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 2.5px solid var(--ink);
}

.form__section {
  border: none;
  padding: 0 0 30px;
  margin: 0 0 30px;
  border-bottom: 2px solid var(--paper-line);
}

.form__section legend {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0;
  margin-bottom: 18px;
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  gap: 18px;
}

@media (min-width: 620px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label,
.field__label-text {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 7px;
}

.field__optional {
  font-weight: 400;
  color: var(--text-on-paper-muted);
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8em 0.95em;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  background: #fffdf9;
  color: var(--text-on-paper);
  transition: box-shadow 0.12s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow: 3px 3px 0 var(--accent-heat);
}

.field textarea {
  resize: vertical;
}

.field__hint {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-on-paper-muted);
  margin: 6px 0 0;
}

.field__hint--center {
  margin-top: 14px;
}

.field__error {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-heat-dim);
  margin: 6px 0 0;
}

.checkbox-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 620px) {
  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.checkbox,
.radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox input,
.radio input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent-heat);
  width: 18px;
  height: 18px;
}

.radio-row {
  display: flex;
  gap: 24px;
}

.field--consent {
  margin: 8px 0 22px;
}

/* ============================================================
   Success page
   ============================================================ */

.success__row {
  max-width: 560px;
  text-align: left;
}

.success__row .beat-line--small {
  width: 200px;
  margin-bottom: 26px;
  color: var(--accent-calm);
}

.success .beat-line polyline {
  stroke-width: 4.5;
}

.success__note {
  color: var(--text-on-paper-muted);
}

/* ============================================================
   Legal pages
   ============================================================ */

.legal__row {
  max-width: 680px;
}

.legal__updated {
  color: var(--text-on-paper-muted);
  font-size: 0.92rem;
  border-left: 4px solid var(--accent-heat);
  padding-left: 14px;
}

.legal__row h2 {
  margin-top: 1.5em;
  font-size: 1.5rem;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  padding: 44px 0;
  border-top: 2px solid var(--paper-line);
}

.site-footer__row {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__brand .brand__mark {
  color: var(--accent-heat);
}

.site-footer__brand p {
  color: var(--text-on-paper-muted);
  font-size: 0.88rem;
  margin: 0;
}

.site-footer__links {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-footer__links a {
  text-decoration: none;
  color: var(--text-on-paper-muted);
}

.site-footer__links a:hover {
  color: var(--ink);
}

.site-footer__copy {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-on-paper-muted);
  margin: 0;
}

@media (min-width: 760px) {
  .site-footer__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
