/* ============================================
   TOKENS
============================================ */
:root {
  /* brand palette (fixed) */
  --ink-950: #3a1712;
  --ink-800: #6b2e22;
  --ink-700: #7d5146;
  --parchment: #fff1dd;
  --parchment-dim: #f5d9b8;
  --rose-500: #e15b3d;
  --rose-600: #c9472f;
  --rose-700: #a83224;
  --gold-400: #e5a629;
  --gold-300: #f4c95d;
  --paper: #fffaf3;

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  /* fluid scale */
  --step-eyebrow: clamp(0.72rem, 0.66rem + 0.3vw, 0.82rem);
  --step-h1: clamp(2.4rem, 1.7rem + 3.4vw, 4.6rem);
  --step-h2: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --step-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  --step-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --step-body: clamp(1rem, 0.96rem + 0.15vw, 1.08rem);
  --step-small: clamp(0.85rem, 0.82rem + 0.1vw, 0.92rem);

  /* rhythm */
  --section-pad-y: clamp(3.5rem, 3rem + 3vw, 7.5rem);
  --container-w: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  /* paper grain, generated once, no external asset */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* ============================================
   RESET
============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
html, body {
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  word-break: break-word;
}
img, svg { max-width: 100%; }
img { display: block; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }

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

/* ============================================
   LAYOUT HELPERS
============================================ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--step-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-600);
}
.eyebrow::before {
  content: "";
  width: 1.5em;
  height: 2px;
  background: var(--gold-400);
  display: inline-block;
}
.section-head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2rem, 1.6rem + 1.5vw, 3.5rem);
}
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 500;
  color: var(--ink-950);
  line-height: 1.15;
}
.section-head p {
  margin-top: 0.9rem;
  font-size: var(--step-lead);
  color: var(--ink-700);
}

/* torn-page divider motif used between sections */
.divider {
  height: clamp(14px, 1.6vw, 20px);
  background-image: radial-gradient(circle, var(--paper) 46%, transparent 47%);
  background-size: 22px 22px;
  background-position: center;
}

.divider--on-parchment { background-image: radial-gradient(circle, var(--parchment) 46%, transparent 47%); }

/* ============================================
   NOISE COPY BLOCK HEADING (was inlined, now a class)
============================================ */
.noise__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-h2);
  color: var(--ink-950);
  line-height: 1.15;
  margin-top: 0.8rem;
}

/* ============================================
   BUTTON
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1rem 2rem;
  border-radius: 999px;
  background: var(--rose-600);
  color: var(--paper);
  font-weight: 600;
  font-size: var(--step-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(168, 50, 36, 0.55);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { background: var(--rose-700); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(168, 50, 36, 0.6); }
.btn:active { transform: translateY(0); }

/* ============================================
   SITE HEADER
============================================ */
/* position: sticky + z-index NÃO criam containing block pra
   descendentes position:fixed (o painel .site-nav do menu mobile
   é fixed), então são seguros aqui. O que quebraria o menu seria
   colocar transform/filter/backdrop-filter direto neste elemento
   (ele é ancestral do #container-button, que é ancestral do
   .site-nav) — por isso o blur vai no ::before abaixo, não aqui. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: clamp(1.25rem, 1rem + 1vw, 2.25rem);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  color: var(--ink-800);
}
.brand__mark {
  width: 1.6em;
  height: 1.6em;
  color: var(--gold-400);
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.4;
  mix-blend-mode: multiply;
  z-index: -1;
  pointer-events: none;
}
.hero__inner {
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3.5rem);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.5rem;
}
.hero__art { width: min(220px, 42vw); margin-inline: auto; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-h1);
  line-height: 1.02;
  color: var(--ink-950);
  max-width: 18ch;
  letter-spacing: -0.01em;
}
.hero__title em {
  font-style: italic;
  color: var(--rose-600);
}
.hero__lead {
  max-width: 40rem;
  font-size: var(--step-lead);
  color: var(--ink-700);
}
.hero__actions { display: grid; justify-items: center; gap: 0.7rem; margin-top: 0.5rem; }
.hero__note { font-size: var(--step-small); color: var(--ink-700); opacity: 0.85; }

.animate-in {
  animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both;
}
.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.22s; }
.animate-in--delay-3 { animation-delay: 0.34s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   NOISE / INNER MONOLOGUE SECTION
============================================ */
.noise {
  background: var(--parchment);
  padding-block: var(--section-pad-y);
}
.noise__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.noise__copy p { margin-top: 1.1rem; font-size: var(--step-body); }
.noise__copy p:first-child { margin-top: 0; }
.noise__copy strong { color: var(--ink-950); font-weight: 600; }
.noise__prose { margin-top: 1.25rem; }
.noise__thoughts h3 {
  margin: 0 0 1rem;
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: var(--step-h3);
  font-weight: 500;
  line-height: 1.3;
}

.chip-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.chip {
  background: var(--paper);
  border: 1px solid var(--parchment-dim);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: var(--step-small);
  color: var(--ink-800);
  box-shadow: 0 1px 0 var(--parchment-dim);
}
.chip::before {
  content: none;
}
.chip q {
  color: var(--gold-400);
  quotes: "“" "”";
}

/* ============================================
   INVITATION (transition strip)
============================================ */
.invitation {
  padding-block: var(--section-pad-y);
  text-align: center;
}
.invitation__inner { max-width: 42rem; margin-inline: auto; }
.invitation h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-h2);
  color: var(--ink-950);
  line-height: 1.2;
}
.invitation p { margin-top: 1.1rem; font-size: var(--step-lead); }
.invitation p:first-child { margin-top: 0; }
.invitation__question {
  margin: 1.5rem auto;
  padding: 0.9rem 1.25rem;
  border-block: 1px solid var(--parchment-dim);
  color: var(--rose-700);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem);
  font-style: italic;
  line-height: 1.2;
}
.invitation__question p { margin: 0; font-size: inherit; }

/* the craving lines are now standalone <p> tags (no wrapping
   <span> element), so they get their own italic treatment
   directly, with the last one calling out in weight/color */
.invitation__craving {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rose-700);
}
.invitation__craving-line--final {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-950);
}

.invitation__closing { color: var(--ink-950); font-weight: 500; }
.invitation__spark {
  display: block;
  margin: 1.6rem auto 0;
  color: var(--gold-400);
  width: 2rem;
  height: 2rem;
}

/* ============================================
   PATH — signature element (7-day ordered timeline)
============================================ */
.path {
  background: var(--ink-950);
  background-image:
    radial-gradient(60rem 30rem at 50% -10%, rgba(229, 166, 41, 0.14), transparent 60%);
  padding-block: var(--section-pad-y);
  color: var(--parchment);
}
.path .section-head h2 { color: var(--paper); }
.path .section-head p { color: var(--parchment-dim); }
.path .eyebrow { color: var(--gold-300); }
.path .eyebrow::before { background: var(--gold-300); }

.path-list {
  list-style: none;
  counter-reset: day;
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
  display: grid;
  gap: 0;
}
.path-list::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--gold-400) 0 6px,
    transparent 6px 14px
  );
}
.path-item {
  counter-increment: day;
  position: relative;
  padding: 1.1rem 0 1.1rem 4.2rem;
}
.path-item::before {
  content: counter(day);
  position: relative;
  z-index: 1;
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--rose-600);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--ink-950);
}
.path-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}
.path-item__title {
  font-family: var(--font-display);
  font-size: var(--step-h3);
  font-weight: 600;
  color: var(--paper);
}
.path-item__mood {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--gold-300);
}
.path-item__desc {
  margin-top: 0.35rem;
  font-size: var(--step-small);
  color: var(--parchment-dim);
  max-width: 34rem;
}

/* ============================================
   INCLUDED / CHECKLIST
============================================ */
.included {
  background: var(--paper);
  padding-block: var(--section-pad-y);
}
.included__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 46rem;
  margin-inline: auto;
}
.included__item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  background: var(--parchment);
  border: 1px solid var(--parchment-dim);
  border-radius: var(--radius-sm);
}
.included__check {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--gold-400);
  color: var(--ink-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}
.included__text { color: var(--ink-800); font-weight: 500; min-width: 0; }
.included__foot {
  text-align: center;
  margin-top: 2rem;
  color: var(--ink-700);
  font-size: var(--step-small);
}

/* ============================================
   SIGNUP
============================================ */
.signup {
  position: relative;
  padding-block: var(--section-pad-y);
  background: var(--rose-600);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.signup::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: overlay;
  z-index: -1;
}
.signup__inner {
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}
.signup h2 {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 500;
  line-height: 1.15;
}
.signup p.lead {
  margin-top: 0.9rem;
  font-size: var(--step-lead);
  color: var(--parchment);
}

.signup-form {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  text-align: left;
}
.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  min-width: 0;
}
.field label {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--paper);
}
.field input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--paper);
  color: var(--ink-950);
  font-family: var(--font-body);
  font-size: 1rem;
}
.field input::placeholder { color: var(--ink-700); opacity: 0.6; }
.field input.is-invalid { border-color: var(--ink-950); box-shadow: 0 0 0 3px rgba(58, 23, 18, 0.2); }
.field input.is-valid { border-color: var(--gold-400); }
.field__message {
  min-height: 1.35em;
  margin: 0;
  font-size: var(--step-small);
  font-weight: 500;
  color: var(--paper);
}
.signup-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.signup-form .btn {
  background: var(--ink-950);
  margin-top: 0.3rem;
  width: 100%;
}
.signup-form .btn:hover { background: var(--ink-800); }
.form-status {
  min-height: 1.6em;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--step-small);
  font-weight: 600;
  text-align: left;
}
.form-status:empty { display: none; }
.form-status--error { background: var(--paper); color: var(--ink-950); }
.form-status--success { background: #f6e6bf; color: var(--ink-950); }
.signup__privacy {
  margin-top: 1rem;
  font-size: var(--step-small);
  color: var(--parchment);
  opacity: 0.9;
  text-align: center;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--ink-950);
  color: var(--parchment-dim);
  padding-block: 2.5rem;
  text-align: center;
  font-size: var(--step-small);
}
.site-footer p + p { margin-top: 0.4rem; }
.site-footer a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 3px; }

#container-button{
  display: flex;
  justify-content: end;
}

/* ============================================
   RESPONSIVE — mobile medium
============================================ */
@media (min-width: 400px) {
  .chip-grid { gap: 0.9rem; }
}

/* mobile large / phablet */
@media (min-width: 600px) {
  .hero__actions { flex-direction: row; }
  .signup-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-form .field--email { grid-column: 1 / -1; }
  .signup-form .btn { grid-column: 1 / -1; }
}

/* tablet portrait+ */
@media (min-width: 768px) {
  .hero__inner { padding-block: clamp(3.5rem, 3rem + 2vw, 6rem) clamp(3rem, 2.5rem + 2vw, 4.5rem); }
  .noise__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3.5rem; }
  .included__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-list::before { left: 50%; transform: translateX(-1px); }
  .path-item { padding: 1.4rem 0; padding-left: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 2rem; align-items: start; }
  .path-item::before { position: static; grid-column: 2; justify-self: center; box-shadow: 0 0 0 8px var(--ink-950); }
  .path-item__body { grid-column: 1; text-align: right; }
  .path-item:nth-child(even) .path-item__body { grid-column: 3; text-align: left; }
  .path-item__head { justify-content: flex-end; }
  .path-item:nth-child(even) .path-item__head { justify-content: flex-start; }
  .path-item__desc { margin-left: auto; }
  .path-item:nth-child(even) .path-item__desc { margin-left: 0; margin-right: auto; }
}

/* small desktop */
@media (min-width: 1024px) {
  .hero__title { max-width: 22ch; }
  .chip-grid { grid-template-columns: repeat(2, 1fr); }
  .signup__inner { max-width: 40rem; }
}

/* large desktop */
@media (min-width: 1280px) {
  :root { --gutter: clamp(2rem, 1vw + 1.5rem, 4rem); }
  .noise__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4.5rem; }
}

/* very large screens */
@media (min-width: 1600px) {
  .container { max-width: 1320px; }
  .path-list { max-width: 52rem; }
}