/* BlunderBlaster marketing site — "The Club Basement":
   park-bench chess, church basements, diner coffee, a coach who
   scribbles on your scoresheet. Warm, analog, human, a little rumpled. */

:root {
  --paper: #f2e7d1;
  --paper-deep: #e7d9b9;
  --card: #f8f0dd;

  --ink: #2b2015;
  --ink-soft: #5c4d3a;

  --felt: #1f3d31;
  --felt-deep: #142a22;
  --felt-line: rgba(242, 231, 209, 0.16);

  --tomato: #c1432b;
  --tomato-deep: #9c331f;

  --line: rgba(43, 32, 21, 0.16);
  --line-strong: rgba(43, 32, 21, 0.3);

  --font-display: "Zilla Slab", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.1;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--tomato-deep);
}

em {
  font-style: normal;
  font-weight: 700;
  color: var(--tomato);
}

/* ---------- hand-drawn coach's marks ---------- */
/* Used sparingly (4 places total): a circled word, an underline, an
   arrow toward the CTA, a circled step number — as if Marv marked up
   the page himself. */

.mark-circle {
  position: relative;
  display: inline-block;
  padding: 0 0.2em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 122% 155%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E%3Cpath d='M20,52 C17,24 54,7 101,6 C147,5 183,21 180,50 C178,81 137,96 97,95 C53,94 22,80 20,52 Z' fill='none' stroke='%23c1432b' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mark-underline {
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 40px 16px;
  padding-bottom: 0.12em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cpath d='M2,8 C6,2 10,14 14,8 C18,2 22,14 26,8 C30,2 34,14 38,8' fill='none' stroke='%23c1432b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mark-arrow {
  display: none;
  position: absolute;
  width: 76px;
  height: auto;
  top: -50px;
  right: -66px;
  pointer-events: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.75em 1.5em;
  border: 2px solid var(--ink);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

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

.btn--primary {
  background: var(--tomato);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--tomato-deep);
}

.btn--ghost {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--felt-line);
  padding: 0.5em 1.1em;
  font-size: 0.9rem;
}

.btn--ghost:hover {
  background: var(--paper);
  color: var(--felt);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--felt);
  background-image: var(--board-texture);
  padding: 16px 0;
  border-bottom: 3px solid var(--felt-deep);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--paper);
  text-decoration: none;
}

.wordmark .stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--paper);
  font-size: 0.95rem;
  transform: rotate(-8deg);
}

.wordmark span {
  color: var(--tomato);
}

.header-cta {
  display: none;
}

/* ---------- Board texture (used only on felt sections) ---------- */

:root {
  --board-texture: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 20px,
      transparent 20px,
      transparent 40px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.05) 0,
      rgba(0, 0, 0, 0.05) 20px,
      transparent 20px,
      transparent 40px
    );
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 60px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(45deg, var(--felt) 25%, transparent 25%),
    linear-gradient(-45deg, var(--felt) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--felt) 75%),
    linear-gradient(-45deg, transparent 75%, var(--felt) 75%);
  background-size: 44px 44px;
  background-position: 0 0, 0 22px, 22px -22px, -22px 0px;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2rem;
  max-width: 15ch;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.cta-wrap {
  position: relative;
  display: inline-block;
  max-width: 460px;
  width: 100%;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-form input {
  flex: 1;
  min-width: 0;
}

.hero-form .form-status {
  width: 100%;
  margin: 0;
}

.reassure {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

/* ---------- Section label ---------- */

.section-label {
  font-size: 1.4rem;
}

.section-label .stamp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-right: 8px;
  transform: rotate(-8deg) translateY(-2px);
  vertical-align: middle;
}

/* ---------- How it works ---------- */

.how {
  padding: 44px 0 48px;
  background: var(--felt);
  background-image: var(--board-texture);
  color: var(--paper);
}

.how .section-label {
  color: var(--paper);
}

.how__steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.how__step {
  padding: 22px 0;
  border-top: 1px dashed var(--felt-line);
  position: relative;
}

.how__step:first-child {
  border-top: 1px dashed var(--felt-line);
}

.how__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--tomato);
  line-height: 1;
  margin-bottom: 6px;
}

.how__num.mark-circle {
  width: 1.5em;
  background-size: 150% 175%;
}

.how__step h3 {
  font-size: 1.2rem;
  color: var(--paper);
  margin-bottom: 0.35em;
}

.how__step p {
  color: rgba(242, 231, 209, 0.85);
  margin: 0;
}

/* ---------- Marv quote ---------- */

.marv {
  padding: 56px 0 52px;
}

.marv__bubble {
  margin: 0;
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  padding: 30px 26px 24px;
  position: relative;
  transform: rotate(-0.6deg);
  box-shadow: 6px 6px 0 var(--felt);
}

.marv__bubble::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 34px;
  width: 74px;
  height: 26px;
  background: rgba(193, 67, 43, 0.55);
  transform: rotate(-3deg);
}

.marv__bubble p {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 4px 0 18px;
}

.marv__bubble footer {
  font-family: var(--font-mono);
}

.marv__caption {
  display: block;
  font-weight: 700;
  color: var(--tomato-deep);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.marv__bio {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.marv-cta {
  margin: 28px 0 0;
}

/* ---------- Signup success state (replaces either form) ---------- */

.signup-done {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 24px;
  max-width: 480px;
  box-shadow: 6px 6px 0 var(--ink);
}

.signup-done__msg {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--felt);
  margin: 0 0 18px;
}

.followup {
  border-top: 1px dashed var(--line-strong);
  padding-top: 18px;
  margin-bottom: 18px;
}

.followup__lead {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.followup label {
  margin-bottom: 14px;
}

.followup select {
  margin-top: 6px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.followup .btn {
  font-size: 0.95rem;
  padding: 0.6em 1.3em;
}

.followup__done {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--felt);
  margin: 0;
}

.referral {
  border-top: 1px dashed var(--line-strong);
  padding-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.referral p {
  margin: 0 0 8px;
}

.referral__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.referral__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  word-break: break-all;
}

.btn--copy {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  padding: 0.35em 0.8em;
  cursor: pointer;
}

.btn--copy:hover {
  border-color: var(--ink);
}

/* ---------- Who it's for ---------- */

.who {
  padding: 8px 0 52px;
}

.who__inner p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- Waitlist form ---------- */

.waitlist {
  padding: 52px 0 68px;
  background: var(--paper-deep);
  border-top: 1px dashed var(--line-strong);
}

.waitlist__intro {
  color: var(--ink-soft);
}

.waitlist-form {
  margin-top: 20px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 26px;
  max-width: 480px;
  box-shadow: 6px 6px 0 var(--ink);
}

.field {
  margin-bottom: 16px;
}

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

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--felt);
  margin-bottom: 6px;
}

input, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.8em;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

input:focus, select:focus {
  outline: 2px solid var(--tomato);
  outline-offset: 1px;
}

.waitlist-form__submit {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 1.2em;
}

.form-status[data-state="success"] {
  color: var(--felt);
}

.form-status[data-state="error"] {
  color: var(--tomato-deep);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--felt);
  background-image: var(--board-texture);
  color: rgba(242, 231, 209, 0.85);
  padding: 32px 0 44px;
  font-size: 0.9rem;
}

.site-footer__inner p {
  margin: 0 0 0.6em;
}

.site-footer a {
  color: var(--paper);
}

/* ---------- Responsive ---------- */

@media (min-width: 480px) {
  .mark-arrow {
    display: block;
  }
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-block;
  }

  .hero {
    padding: 76px 0 84px;
  }

  .hero-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .hero-form .btn {
    white-space: nowrap;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .how__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 28px;
  }

  .how__step {
    border-top: none;
    border-left: 1px dashed var(--felt-line);
    padding: 0 0 0 22px;
  }

  .how__step:first-child {
    border-left: none;
    padding-left: 0;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .section-label {
    font-size: 1.6rem;
  }
}

@media (min-width: 960px) {
  .hero h1 {
    font-size: 3.3rem;
  }
}
