/* Tulip Crew: one stylesheet for every page. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbf9f3;
  --ink: #1d3527;
  --ink-soft: #4c6152;
  --stem: #3e6b4b;
  --tulip: #e8732c;
  --tulip-deep: #b5470e;
  --leaf-wash: #e7eedd;
  --petal-wash: #fbe6d3;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --ground: 3px;
}

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

html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ol { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--tulip-deep); }

:focus-visible {
  outline: 3px solid var(--stem);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px;
}
.skip:focus { top: 0; color: var(--paper); }

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.masthead { padding-block: 1.25rem 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 2.4rem; height: auto; }

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

.hero { border-bottom: var(--ground) solid var(--stem); }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(2.5rem, 8vw, 5.5rem);
}

.hero-copy { max-width: 44rem; }

.hero h1 {
  font-size: clamp(2.5rem, 9.5vw, 4.75rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero h1 .pitch-rest {
  display: block;
  margin-top: 1.1rem;
  font-size: clamp(1.3rem, 4.6vw, 1.85rem);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--stem);
  text-wrap: pretty;
}

.hero--landing h1 { font-size: clamp(2.3rem, 8.4vw, 4.25rem); }

.lede {
  margin-top: 1.5rem;
  max-width: var(--measure);
  font-size: 1.125rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-art {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.hero-art svg {
  display: block;
  width: min(62vw, 15rem);
  height: auto;
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: end;
    gap: 3rem;
  }
  .hero-copy { padding-bottom: clamp(3rem, 6vw, 5rem); }
  .hero-art svg { width: min(100%, 24rem); }
}

/* ---------- Signup ---------- */

.signup { margin-top: 2rem; max-width: var(--measure); }

.signup label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.signup-row { display: grid; gap: 0.6rem; }

.signup input[type="email"] {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
}
.signup input[type="email"]::placeholder { color: #7d8c82; }

.signup button {
  min-height: 3.25rem;
  padding: 0 1.4rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--tulip-deep);
  border: 2px solid var(--tulip-deep);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
}
.signup button:hover { background: #983a09; border-color: #983a09; }
.signup button:active { transform: translateY(1px); }
.signup button[disabled] { opacity: 0.65; cursor: progress; }

@media (min-width: 30rem) {
  .signup-row { grid-template-columns: 1fr auto; }
}

.signup-note,
.price-line {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.price-line { color: var(--ink); font-weight: 600; }

.signup-status { margin-top: 0.75rem; font-weight: 600; }
.signup-status:empty { margin-top: 0; }
.signup-status[data-state="ok"] {
  padding: 0.9rem 1rem;
  background: var(--leaf-wash);
  border-radius: 14px;
}
.signup-status[data-state="error"] { color: var(--tulip-deep); }

/* The trap field is for bots only. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Sections under the hero ---------- */

.below { padding-block: clamp(3rem, 9vw, 6rem); }

.below h2.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section-intro { margin-top: 0.6rem; color: var(--ink-soft); max-width: var(--measure); }

.steps {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  display: grid;
  gap: 2.25rem;
  counter-reset: step;
}
.steps li { counter-increment: step; max-width: 24rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--tulip);
  margin-bottom: 0.6rem;
}
.steps h3,
.blocks h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 700;
}
.steps p,
.blocks p { color: var(--ink-soft); }

.blocks { display: grid; gap: 2.25rem; }
.blocks > div { max-width: 24rem; }
.blocks > div { padding-top: 1.1rem; border-top: var(--ground) solid var(--tulip); }
.blocks > div:last-child { border-top-color: var(--stem); }

@media (min-width: 48rem) {
  .steps,
  .blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}

.more-pages { margin-top: 3rem; }

/* ---------- Goes in, comes out ---------- */

.outcome { padding-bottom: 0; }

.flow {
  margin-top: 2.25rem;
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.flow-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--stem);
  margin-bottom: 0.7rem;
}
.tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 26rem;
}
.tags li {
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.98rem;
  background: #fff;
  border: 2px solid var(--stem);
  border-radius: 999px;
  color: var(--ink);
}
.flow-arrow {
  color: var(--tulip);
  width: 2.25rem;
  transform: rotate(90deg);
  margin: 0 auto;
}
.flow-arrow svg { display: block; width: 100%; height: auto; }

.brief {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 1.1rem 1.2rem 1rem;
  max-width: 30rem;
  box-shadow: 6px 6px 0 var(--petal-wash);
}
.brief-title {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.012em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--leaf-wash);
}
.brief-title span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tulip-deep);
  padding: 0.15rem 0.55rem;
  border: 1.5px solid var(--tulip);
  border-radius: 999px;
}
.brief ul { list-style: none; padding: 0; margin: 0; }
.brief li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1.5px solid var(--leaf-wash);
}
.brief li p { grid-column: 1; font-size: 1rem; line-height: 1.4; }
.brief-source {
  grid-column: 1;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--stem);
}
.brief-who {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tulip-deep);
  background: var(--petal-wash);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}
.brief-foot {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.ask {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--leaf-wash);
}
.ask-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--stem);
  margin-bottom: 0.5rem;
}
.ask-q,
.ask-a {
  font-size: 0.98rem;
  line-height: 1.4;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  max-width: 88%;
}
.ask-q {
  margin-left: auto;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 4px;
  width: fit-content;
}
.ask-a {
  margin-top: 0.5rem;
  background: var(--leaf-wash);
  border-bottom-left-radius: 4px;
}

@media (min-width: 52rem) {
  .flow {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr);
    gap: 2rem;
    align-items: center;
  }
  .flow-arrow { transform: none; width: 2.75rem; }
  .flow-in,
  .flow-out { align-self: start; }
}

/* ---------- Four promises ---------- */

.promises {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 9vw, 5.5rem);
}
.promises .section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.promises .section-intro { color: #c9d6c6; }
.promise-list {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}
.promise-list li { max-width: 22rem; }
.promise-list svg {
  width: 2.75rem;
  height: 2.75rem;
  fill: none;
  stroke: var(--tulip);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.75rem;
}
.promise-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 700;
}
.promise-list p { color: #dfe7db; }

@media (min-width: 48rem) {
  .promise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
}
@media (min-width: 72rem) {
  .promise-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Plain text pages ---------- */

.prose { padding-block: clamp(2.5rem, 7vw, 4.5rem); max-width: 40rem; }
.prose h1 {
  font-size: clamp(2.2rem, 7vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.prose h2 { margin-top: 2.5rem; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.012em; }
.prose p,
.prose ul { margin-top: 0.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.3rem; }
.prose code { font-size: 0.92em; background: var(--leaf-wash); padding: 0.1em 0.35em; border-radius: 6px; }

.plain-button {
  margin-top: 1rem;
  min-height: 2.9rem;
  padding: 0 1.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 12px;
  cursor: pointer;
}
.plain-button:hover { background: var(--leaf-wash); }

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

.foot {
  background: var(--leaf-wash);
  padding-block: 2rem 2.5rem;
  font-size: 0.95rem;
}
.foot p { max-width: 46rem; }
.foot p + p { margin-top: 0.6rem; color: var(--ink-soft); }

/* ---------- Tracking choice bar ---------- */

.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  background: var(--paper);
  border-top: var(--ground) solid var(--ink);
  padding: 0.75rem var(--gutter) 0.85rem;
}
.consent[hidden] { display: none; }
.consent-inner {
  max-width: 72rem;
  margin-inline: auto;
  display: grid;
  gap: 0.6rem;
}
.consent p { font-size: 0.9rem; line-height: 1.4; max-width: 44rem; }
.consent-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.consent-actions button {
  flex: 1 1 8rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  cursor: pointer;
}
.consent-actions button:hover { background: var(--leaf-wash); }
@media (min-width: 52rem) {
  .consent-inner { grid-template-columns: 1fr auto; align-items: center; }
  .consent-actions button { flex: 0 0 auto; }
}

/* ---------- The mark ---------- */

.mark .stem { fill: none; stroke: var(--stem); stroke-width: 7; stroke-linecap: round; }
.mark .leaf { fill: var(--stem); }
.mark .ground { fill: none; stroke: var(--stem); stroke-width: 5; stroke-linecap: round; }
.mark .petal { fill: var(--tulip); stroke: var(--paper); stroke-width: 2.6; stroke-linejoin: round; }
.mark .petal-back { fill: var(--tulip-deep); }

/* One moment of motion: the tulips grow once when the page opens. */
@media (prefers-reduced-motion: no-preference) {
  .mark--grow .stem {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 700ms cubic-bezier(0.3, 0.7, 0.2, 1) forwards;
  }
  .mark--grow .leaf,
  .mark--grow .bloom {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    transform: scale(0);
    animation: open 520ms cubic-bezier(0.2, 1.3, 0.4, 1) forwards;
  }
  .mark--grow .leaf { animation-delay: 250ms; }
  .mark--grow .t1 .stem { animation-delay: 60ms; }
  .mark--grow .t1 .bloom { animation-delay: 560ms; }
  .mark--grow .t2 .stem { animation-delay: 180ms; }
  .mark--grow .t2 .bloom { animation-delay: 700ms; }
  .mark--grow .t3 .stem { animation-delay: 300ms; }
  .mark--grow .t3 .bloom { animation-delay: 840ms; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes open { to { transform: scale(1); } }
