/* =========================================================================
   Enclosed styles
   Editorial + postal. Warm cream paper, ink text, one vermilion accent.
   Mobile-first; two-column blocks stack under ~720px.
   ========================================================================= */

:root {
  --bg: #faf6ef;          /* warm cream paper */
  --ink: #1a1a1a;         /* near-black text */
  --accent: #d9482b;      /* postal vermilion */
  --accent-ink: #b23a22;  /* darker hover */
  --muted: #6b6257;       /* secondary text */
  --paper: #fffaf1;       /* soft cream tint for the creators block */
  --line: #e4dccc;        /* hairline / borders on cream */
  --accent-tint: #f7e6df; /* very soft accent wash for the waitlist block */

  --maxw: 1080px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 8px 30px rgba(26, 26, 26, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* clear the sticky nav on anchor jumps */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* the [hidden] attribute must win over author `display` (e.g. the form's
   display:grid), so JS can swap the form out for the success message */
[hidden] {
  display: none !important;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

/* --- accessibility helpers ---------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

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

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.85rem 1.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}
.btn:active {
  transform: translateY(1px);
}
.btn--sm {
  padding: 0.6rem 1rem;
  font-size: 0.9375rem;
}
.btn--lg {
  padding: 1rem 1.8rem;
  font-size: 1.0625rem;
}
.btn--block {
  width: 100%;
  text-align: center;
}
.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* --- wordmark ----------------------------------------------------------- */
.wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

/* =========================================================================
   5.1 NAV
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
}
.nav__links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__links a:not(.btn):hover {
  color: var(--accent);
}

/* Collapse the text links on mobile; keep the button (brief §5.1) */
@media (max-width: 640px) {
  .nav__links a:not(.btn) {
    display: none;
  }
}

/* --- shared section rhythm ---------------------------------------------- */
section {
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}
.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  max-width: 22ch;
}

/* --- perforated / tear-off divider -------------------------------------- */
.perforated {
  border: 0;
  height: 0;
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  position: relative;
}
/* little notches at each end, like a stamp's edge */
.perforated::before,
.perforated::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent);
}
.perforated::before {
  left: -8px;
}
.perforated::after {
  right: -8px;
}

/* =========================================================================
   5.2 HERO
   ========================================================================= */
.hero {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.stamp {
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1.5rem;
  transform: rotate(-4deg);
}
.hero__headline {
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero__subhead {
  font-size: clamp(1.1rem, 2.4vw, 1.375rem);
  color: var(--muted);
  max-width: 40ch;
  margin: 1.5rem auto 2.25rem;
  line-height: 1.5;
}
.hero__secondary {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================================
   5.3 THE INSIGHT
   ========================================================================= */
.insight__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.insight__big {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.insight__body {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 56ch;
  margin: 0 auto;
}

/* =========================================================================
   5.4 / 5.5 AUDIENCE BLOCKS
   ========================================================================= */
.audience--creators {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.audience__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 720px) {
  .audience__inner {
    grid-template-columns: 1fr 1fr;
  }
  /* brands: benefit list on the left, copy on the right (mirrored) */
  .audience__inner--mirror .audience__intro {
    order: 2;
  }
  .audience__inner--mirror .benefits {
    order: 1;
  }
}
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.audience__heading {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: 1.25rem;
}
.audience__body {
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 46ch;
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.benefits li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  color: var(--muted);
}
.benefits li strong {
  color: var(--ink);
  font-weight: 600;
}
/* brands: distinct accent treatment so audiences feel different */
.benefits--accent li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}

/* =========================================================================
   5.6 HOW IT WORKS
   ========================================================================= */
.how__inner,
.why__inner,
.faq__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.step__title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.step p {
  color: var(--muted);
}

/* =========================================================================
   5.7 WHY IT WORKS
   ========================================================================= */
.why__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 720px) {
  .why__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}
.why__block {
  border-top: 3px solid var(--accent);
  padding-top: 1.1rem;
}
.why__title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.why__block p {
  color: var(--muted);
}

/* =========================================================================
   5.8 FAQ
   ========================================================================= */
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  padding: 1.4rem 2.5rem 1.4rem 0;
  position: relative;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after {
  content: "–";
}
.faq__item p {
  color: var(--muted);
  padding: 0 2.5rem 1.5rem 0;
  max-width: 68ch;
  margin: 0;
}

/* =========================================================================
   5.9 EMAIL CAPTURE
   ========================================================================= */
.waitlist {
  background: var(--accent-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.waitlist__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.waitlist__heading {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.waitlist__subhead {
  color: var(--muted);
  margin-bottom: 2.25rem;
  font-size: 1.1rem;
}
.waitlist__form {
  display: grid;
  gap: 1.1rem;
  text-align: left;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-weight: 600;
  font-size: 0.9rem;
}
.field__opt {
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field select {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field input[aria-invalid="true"] {
  border-color: var(--accent);
  background: #fff5f2;
}
.field__error {
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}
#submit-btn {
  margin-top: 0.4rem;
}
.waitlist__micro {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.1rem;
}
.waitlist__success {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
}

/* =========================================================================
   5.10 FOOTER
   ========================================================================= */
.footer {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  text-align: center;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}
.wordmark--footer {
  font-size: 1.6rem;
}
.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1.15rem;
}
.footer__contact a {
  color: var(--accent);
}
.footer__copy {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* =========================================================================
   MOTION: gentle reveal on scroll (JS adds .is-visible)
   ========================================================================= */
/* Only hide-then-reveal when JS is present to un-hide (the inline head script
   sets .js). No JS / JS fails to load -> content stays visible, never blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
