/* ==========================================================================
   Crochê da Tonha · landing page
   Paleta amostrada dos posts do @crochetdatonha
   ========================================================================== */

:root {
  /* cor */
  --blush-100: #FBE0D7;   /* rosa-blush (fundo dos posts) */
  --blush-200: #F7CFC5;
  --cream-50:  #FEFAEF;   /* cartões */
  --cream-100: #FEF3DD;   /* creme-manteiga */
  --cream-200: #FCE9C2;
  --ink:       #582711;   /* marrom dos títulos */
  --ink-soft:  #663827;   /* marrom do texto */
  --rasp:      #C9404F;   /* framboesa: itálicos grandes, botões */
  --rasp-deep: #A32D3C;   /* framboesa escura: textos pequenos, links */
  --sun:       #F6A625;   /* pétala de girassol */

  /* tipo */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-script: "Caveat", "Segoe Print", cursive;

  /* forma */
  --radius-card: 24px;
  --shadow-card: 0 1px 2px rgba(88, 39, 17, .05), 0 20px 40px -24px rgba(88, 39, 17, .32);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --scallop: 15px;

  /* textura de fibra/papel, quase invisível (marrom nos fundos claros, creme nos escuros) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .16 0 0 0 0 .07 0 0 0 .5 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .86 0 0 0 .3 -.13'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--ink); font-family: var(--font-display); font-weight: 600; }

em { font-style: italic; }

a { color: inherit; }

strong { color: var(--rasp-deep); font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--rasp-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--cream-100);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- botões e links ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:focus-visible { border-radius: 999px; }
.btn:active { transform: translateY(1px); }
.btn::after {                /* costura pontilhada que aparece no hover */
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px dashed currentColor;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.btn:hover::after, .btn:focus-visible::after { opacity: .55; }

.btn-primary {
  background: var(--rasp);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(201, 64, 79, .85);
}
.btn-primary:hover { background: var(--rasp-deep); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(88, 39, 17, .18);
  color: var(--ink);
}
.btn-ghost:hover { background: #fff; border-color: rgba(88, 39, 17, .34); }

.btn-small { padding: .5rem 1rem; font-size: .86rem; box-shadow: none; }
.btn-small::after { inset: 3px; }

.btn-icon { width: 1.15em; height: 1.15em; flex: none; }

.text-link {
  display: inline-flex;
  gap: .4rem;
  margin-top: 1.1rem;
  color: var(--rasp-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(3px); }

/* ---------- cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 224, 215, .86);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header[data-scrolled] {
  border-bottom-color: rgba(88, 39, 17, .08);
  box-shadow: 0 10px 30px -24px rgba(88, 39, 17, .5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand em { color: var(--rasp); font-weight: 500; }

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  transition: transform .7s cubic-bezier(.3, 1.4, .5, 1);
}
.brand:hover .brand-mark { transform: rotate(30deg); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}
.nav a:hover { color: var(--rasp-deep); }

/* ---------- borda de crochê (picô) entre seções ---------- */

.scallop { position: relative; }
.scallop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--scallop) + 1px);
  height: var(--scallop);
  z-index: 3;
  pointer-events: none;
  background: var(--scallop-color, var(--blush-200));
  -webkit-mask: radial-gradient(circle at 50% 0, #000 calc(var(--scallop) - .5px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2) var(--scallop) repeat-x;
          mask: radial-gradient(circle at 50% 0, #000 calc(var(--scallop) - .5px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2) var(--scallop) repeat-x;
}

/* ---------- seções ---------- */

.section {
  position: relative;
  padding-block: clamp(60px, 7vw, 100px);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(34px, 4.2vw, 54px);
}
.section-head-center { margin-inline: auto; text-align: center; }

.eyebrow {
  margin: 0 0 .5rem;
  color: var(--rasp-deep);
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.05rem);
  line-height: 1.04;
  letter-spacing: -.026em;
  text-wrap: balance;
}
.section-title em, .hero-title em, .moment-title em {
  color: var(--rasp);
  font-weight: 500;
  letter-spacing: -.012em;
  padding-right: .04em;
}

.section-lead {
  margin: .9rem 0 0;
  font-size: clamp(1rem, .95rem + .25vw, 1.1rem);
}

.deco { position: absolute; z-index: 0; pointer-events: none; user-select: none; }

/* ---------- hero ---------- */

.hero {
  --scallop-color: #F7CFC5;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 61px);     /* ocupa a primeira tela inteira, abaixo do cabeçalho */
  min-height: calc(100svh - 61px);
  overflow-x: clip;
  padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px);
  background: var(--grain), linear-gradient(180deg, #FBE0D7 0%, #F9D9CF 55%, #F7CFC5 100%);
}

.deco-story {
  top: 0;
  right: 0;
  width: clamp(100px, 13vw, 200px);
  transform-origin: 100% 0;
  animation: sway 7s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding: .38rem .95rem .38rem .75rem;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(201, 64, 79, .25);
  border-radius: 999px;
  color: var(--rasp-deep);
  font-size: .84rem;
  font-weight: 700;
}
.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rasp);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--rasp);
  opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}

.hero-title {
  margin: 1rem 0 1.15rem;
  font-size: clamp(2.4rem, 1.4rem + 3.3vw, 3.85rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 31rem;
  margin: 0;
  font-size: clamp(1rem, .95rem + .25vw, 1.1rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.7rem;
}

/* os bonequinhos, grandes, com as bordas esfumaçadas no fundo rosa */
.hero-art { position: relative; margin: 0 calc(-1 * var(--gutter)) 0 0; }
.hero-art::after {               /* mesma textura do fundo por cima da foto: some a emenda */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  pointer-events: none;
}
.hero-art img,
.hero-art::after {
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 7%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 7%, #000 92%, transparent 100%);
          mask-composite: intersect;
}
.hero-art img { width: 100%; }

/* sublinhado feito à mão nas palavras em destaque */
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble-line {
  position: absolute;
  left: -3%;
  bottom: -.14em;
  width: 106%;
  height: .3em;
  overflow: visible;
  fill: none;
  stroke: var(--rasp);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.1s cubic-bezier(.6, 0, .25, 1) .45s;
}
.js .scribble-line { stroke-dashoffset: 1; }
.js .scribble.is-visible .scribble-line { stroke-dashoffset: 0; }

/* entrada do hero */
.hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .18s; }
.hero-copy > :nth-child(4) { animation-delay: .28s; }
.hero-copy > :nth-child(5) { animation-delay: .36s; }

.hero-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1.15rem 0 0;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 700;
}
.hero-note svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: var(--rasp);
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.hero-art { animation: fade 1.4s .2s ease both; }

/* ---------- história + linha costurada ---------- */

.story {
  --scallop-color: #FDECC9;
  overflow-x: clip;
  background: var(--grain), linear-gradient(180deg, var(--cream-100) 0%, #FDECC9 100%);
}
.story .container { position: relative; z-index: 1; }

.timeline-wrap {
  --pad: 76px;
  --thread-x: 22px;
  --p: 0;
  position: relative;
  padding-left: var(--pad);
}

.thread {
  position: absolute;
  top: 10px;
  bottom: 0;
  left: var(--thread-x);
  width: 3px;
}
.thread-track, .thread-fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: repeating-linear-gradient(to bottom, currentColor 0 12px, transparent 12px 21px);
}
.thread-track { color: rgba(201, 64, 79, .2); }
.thread-fill {
  color: var(--rasp);
  clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0);
}
.thread-needle {
  position: absolute;
  left: 50%;
  top: calc(var(--p) * 100%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--rasp);
  box-shadow: 0 0 0 5px rgba(201, 64, 79, .16);
  transform: translate(-50%, -50%);
}

.timeline {
  display: grid;
  gap: clamp(46px, 5.2vw, 74px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.moment-text { position: relative; }
.moment-text::before {      /* o nó de cada momento */
  content: "";
  position: absolute;
  top: .3rem;
  left: calc(var(--thread-x) + 1.5px - var(--pad));
  width: 17px;
  height: 17px;
  border: 2.5px solid var(--rasp);
  border-radius: 50%;
  background: var(--cream-100);
  transform: translateX(-50%) scale(.85);
  transition: background-color .35s ease, transform .35s ease;
}
.moment.is-reached .moment-text::before { background: var(--rasp); transform: translateX(-50%) scale(1); }

.moment-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}
.moment-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }

.moment-text { max-width: 32rem; }
.moment-media .moment-text { padding-top: clamp(0px, 3vw, 40px); }
.moment-media .moment-text::before { top: calc(clamp(0px, 3vw, 40px) + .3rem); }
.moment-text p { margin: 0; font-size: 1rem; }

.moment-when {
  margin: 0 0 .4rem;
  color: var(--rasp-deep);
  font-family: var(--font-script);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
}
.moment-text .moment-when { font-size: 1.4rem; }

.moment-title {
  margin: 0 0 .75rem;
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.polaroid {
  position: relative;
  justify-self: center;
  width: min(100%, 280px);
  margin: 0;
  padding: 12px 12px 10px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(88, 39, 17, .06), 0 28px 50px -26px rgba(88, 39, 17, .5);
  transform: rotate(-2.5deg);
}
.polaroid-right { transform: rotate(2deg); }
.polaroid::before {          /* fita adesiva */
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 92px;
  height: 26px;
  background: rgba(252, 233, 194, .82);
  box-shadow: 0 1px 2px rgba(88, 39, 17, .12);
  transform: translateX(-50%) rotate(-4deg);
}
.polaroid img { width: 100%; border-radius: 2px; }
.polaroid figcaption {
  margin-top: .45rem;
  color: var(--ink-soft);
  font-family: var(--font-script);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

/* desenhos em traço: novelo com agulhas e a correntinha */
.sketch {
  justify-self: center;
  width: min(100%, 280px);
  margin: 0;
}
.sketch-chain { width: min(100%, 350px); align-self: center; }
.sketch svg { display: block; width: 100%; height: auto; overflow: visible; }
.sketch .ln {
  fill: none;
  stroke: var(--rasp);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s cubic-bezier(.5, 0, .2, 1) calc(var(--d, 0s) + .25s);
}
.sketch .hook .ln { stroke: var(--ink-soft); stroke-width: 2; fill: var(--cream-50); }
.sketch .ball { fill: var(--cream-50); }
.sketch .heart { fill: var(--rasp); fill-opacity: 1; transition: stroke-dashoffset 1s ease calc(var(--d, 0s) + .25s), fill-opacity .5s ease 1.9s; }
.js .sketch .ln { stroke-dashoffset: 1; }
.js .sketch .heart { fill-opacity: 0; }
.js .is-visible .sketch .ln { stroke-dashoffset: 0; }
.js .is-visible .sketch .heart { fill-opacity: 1; }

.photo-frame {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.photo-frame img { width: 100%; }

/* ---------- peças ---------- */

.pieces {
  --scallop-color: #F8D3C8;
  overflow-x: clip;
  background: var(--grain), linear-gradient(180deg, var(--blush-100) 0%, #F8D3C8 100%);
}
.pieces .container { position: relative; z-index: 1; }

.deco-pieces {
  left: 0;
  bottom: 0;
  width: clamp(90px, 10vw, 150px);
  transform-origin: 0 100%;
  animation: sway-left 8s ease-in-out infinite;
}

/* destaque (casaco) à esquerda, lista das outras peças à direita */
.pieces-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
  align-items: stretch;
}

.piece-feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream-50);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.piece-photo {
  position: relative;
  flex: 1 1 auto;
  min-height: 230px;
  overflow: hidden;
}
.piece-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.3);           /* aproxima nos quadradinhos: não repete a foto da história */
  transform-origin: 78% 62%;
}
.piece-body { padding: 16px 22px 20px; }
.piece-body .text-link { margin-top: .8rem; }

.pieces-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pieces-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0;
  padding: 4px 24px;
  list-style: none;
  background: var(--cream-50);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.piece-row {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 10px 0;
}
.piece-row + .piece-row { border-top: 1.5px dashed rgba(201, 64, 79, .28); }
.piece-row .piece-name { flex: 1 1 auto; }

.piece-order {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border: 1.5px solid rgba(201, 64, 79, .32);
  border-radius: 999px;
  color: var(--rasp-deep);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.piece-order:hover { background: var(--rasp); border-color: var(--rasp); color: #fff; }
.piece-order:focus-visible { border-radius: 999px; }

.piece-icon-wrap {               /* ícone dentro de um "sousplat" pontilhado */
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blush-100);
}
.piece-icon-wrap::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(201, 64, 79, .45);
  border-radius: 50%;
}
.piece-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--rasp);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.piece-name {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.1;
  letter-spacing: -.015em;
}
.piece-note { margin: .25rem 0 0; font-size: .95rem; }

.piece-idea {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 24px;
  background: rgba(254, 250, 239, .55);
  border: 2px dashed rgba(201, 64, 79, .4);
  border-radius: var(--radius-card);
}
.piece-idea .text-link { margin-top: 0; }
.piece-idea-text {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 500;
}

/* ---------- como encomendar ---------- */

.order {
  --scallop-color: var(--cream-200);
  background: var(--grain), linear-gradient(180deg, var(--cream-100) 0%, var(--cream-200) 100%);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {             /* a mesma linha costurada, agora na horizontal */
  content: "";
  position: absolute;
  top: 31px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: repeating-linear-gradient(to right, rgba(201, 64, 79, .45) 0 12px, transparent 12px 21px);
}

.step { position: relative; text-align: center; }
.step p { max-width: 19rem; margin: 0 auto; }

.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--cream-50);
  border: 2.5px solid var(--rasp);
  border-radius: 50%;
  color: var(--rasp);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}
.step-num::after {           /* anel de pontinhos, como um sousplat */
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px dashed rgba(201, 64, 79, .45);
  border-radius: 50%;
}

.step-title {
  margin: 0 0 .45rem;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.order-cta { margin-top: clamp(36px, 4vw, 48px); text-align: center; }

/* ---------- fechamento ---------- */

.closing {
  --scallop-color: #F7CFC5;
  overflow-x: clip;
  background: var(--grain), linear-gradient(180deg, var(--blush-100) 0%, #F7CFC5 100%);
}

.deco-closing {
  right: 0;
  bottom: 0;
  width: clamp(120px, 16vw, 240px);
  transform-origin: 100% 100%;
  animation: sway 9s ease-in-out infinite;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  text-align: center;
}
.closing-actions { justify-content: center; }

.signature {
  display: inline-block;
  margin: 1.8rem 0 0;
  color: var(--rasp-deep);
  font-family: var(--font-script);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  transform: rotate(-3deg);
}

/* ---------- rodapé ---------- */

.site-footer {
  padding: calc(36px + var(--scallop)) 0 32px;
  background: var(--grain), var(--cream-100);
  color: var(--ink-soft);
  font-size: .95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.footer-inner p { margin: 0; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}
.footer-brand .brand-mark { width: 28px; height: 28px; }

.footer-meta { display: inline-flex; gap: .6rem; }
.footer-meta a {
  color: var(--rasp-deep);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* ---------- mensagem pronta para o direct ---------- */

.dm-sheet {
  width: min(100% - 32px, 440px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--grain), var(--cream-50);
  color: var(--ink-soft);
  box-shadow: 0 30px 80px -30px rgba(88, 39, 17, .6);
}
.dm-sheet[open] { animation: rise .35s cubic-bezier(.2, .7, .2, 1) both; }
.dm-sheet::backdrop {
  background: rgba(88, 39, 17, .4);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.dm-inner { position: relative; padding: 28px 26px 22px; }

.dm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .2s ease;
}
.dm-close:hover { background: var(--blush-100); }
.dm-close:focus-visible { border-radius: 50%; }
.dm-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.dm-title {
  margin: 0 0 .6rem;
  padding-right: 36px;
  font-size: 1.7rem;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.dm-title em { color: var(--rasp); font-weight: 500; }

.dm-help { margin: 0 0 1.1rem; font-size: .98rem; }

.dm-label {
  display: block;
  margin-bottom: .35rem;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
}
.dm-label span { color: var(--ink-soft); font-weight: 500; }

.dm-text {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: .8rem .95rem;
  border: 1.5px dashed rgba(201, 64, 79, .45);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;                 /* 16px: evita o zoom automático do iPhone */
  line-height: 1.5;
  resize: vertical;
}
.dm-text:focus-visible { border-style: solid; border-color: var(--rasp); border-radius: 16px; outline-offset: 2px; }

.dm-go { width: 100%; margin-top: 1rem; }

.dm-status {
  min-height: 1.4em;
  margin: .7rem 0 0;
  color: var(--rasp-deep);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}
.dm-status:empty { min-height: 0; margin: 0; }
.dm-status.is-error { color: #8F1F2E; }
.dm-text[aria-invalid="true"] { border-style: solid; border-color: #8F1F2E; background: #FFF7F6; }

/* ---------- botão fixo de encomenda (celular) ---------- */

.fab-order {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  background: var(--rasp);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(163, 45, 60, .8), 0 0 0 3px rgba(254, 250, 239, .7);
  transform: translateY(calc(100% + 40px));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .2s ease;
}
.fab-order svg { width: 1.2em; height: 1.2em; flex: none; }
.fab-order:hover { background: var(--rasp-deep); }
.fab-order:focus-visible { border-radius: 999px; }
.fab-order.is-shown { transform: none; }
.has-cookie-bar .fab-order { transform: translateY(calc(100% + 40px)); }   /* não briga com o aviso de cookies */

@media (max-width: 760px) {
  .fab-order { display: inline-flex; }
}

/* ---------- aviso de cookies ---------- */

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 640px;
  margin-inline: auto;
  padding: 16px 18px;
  background: var(--cream-50);
  border-radius: 20px;
  box-shadow: 0 24px 60px -24px rgba(88, 39, 17, .55), 0 0 0 1px rgba(88, 39, 17, .07);
  animation: rise .5s cubic-bezier(.2, .7, .2, 1) both;
}
.cookie-bar p { flex: 1 1 260px; margin: 0; font-size: .92rem; line-height: 1.5; }
.cookie-bar a { color: var(--rasp-deep); font-weight: 700; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 8px; margin-left: auto; }

/* ---------- página 404 ---------- */

.notfound {
  --scallop-color: #F7CFC5;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 61px - 140px);
  min-height: calc(100svh - 61px - 140px);
  padding-block: clamp(56px, 8vw, 110px);
  background: var(--grain), linear-gradient(180deg, #FBE0D7 0%, #F7CFC5 100%);
  text-align: center;
}
.nf-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .06em;
  margin: 0 0 .9rem;
  color: var(--rasp);
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 9vw, 9rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}
.nf-code img { width: .92em; height: .92em; animation: spin-slow 16s linear infinite; }
.nf-title {
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.026em;
  text-wrap: balance;
}
.nf-title em { color: var(--rasp); font-weight: 500; }
.nf-lead { max-width: 30rem; margin: 0 auto; }
.nf-actions { justify-content: center; }

/* ---------- páginas de texto (privacidade, termos) ---------- */

.legal {
  padding-block: clamp(44px, 6vw, 84px) clamp(64px, 8vw, 110px);
  background: var(--grain), linear-gradient(180deg, var(--blush-100) 0, var(--cream-100) 360px);
}
.legal-inner { max-width: 46rem; }
.legal h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.026em;
}
.legal h1 em { color: var(--rasp); font-weight: 500; }
.legal-updated {
  margin: 0 0 2rem;
  color: var(--rasp-deep);
  font-family: var(--font-script);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}
.legal h2 {
  margin: 2.2rem 0 .55rem;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.legal-inner p, .legal-inner li { max-width: 42rem; }
.legal-inner ul { margin: 0; padding-left: 1.2rem; }
.legal-inner li + li { margin-top: .4rem; }
.legal-inner li::marker { color: var(--rasp); }
.legal-inner p a:not(.btn), .legal-inner li a { color: var(--rasp-deep); font-weight: 700; text-underline-offset: 3px; }
.legal-back { margin-top: 2.6rem; }

/* ---------- rodapé: links legais e contato ---------- */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(201, 64, 79, .25);
  font-size: .88rem;
}
.footer-legal p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(102, 56, 39, .35);
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-links a:hover, .footer-links button:hover { color: var(--rasp-deep); }
.footer-links [aria-current="page"] { color: var(--rasp-deep); text-decoration-color: currentColor; }
.footer-contact a { color: var(--rasp-deep); font-weight: 700; text-underline-offset: 3px; }

@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ---------- revelar ao rolar ---------- */

.js [data-reveal],
.js .moment-text,
.js .moment figure {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.js .moment figure { transition-delay: .12s; }
.js .polaroid { transform: translateY(20px) rotate(-2.5deg); }
.js .polaroid-right { transform: translateY(20px) rotate(2deg); }

.js [data-reveal].is-visible,
.js .is-visible .moment-text,
.js .is-visible figure { opacity: 1; transform: none; }
.js .is-visible .polaroid { transform: rotate(-2.5deg); }
.js .is-visible .polaroid-right { transform: rotate(2deg); }

/* ---------- animações ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-3deg); } }
@keyframes sway-left { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }
@keyframes pulse { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .moment-text, .js .moment figure { opacity: 1; transform: none; }
  .js .polaroid { transform: rotate(-2.5deg); }
  .js .polaroid-right { transform: rotate(2deg); }
}

/* ---------- responsivo ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 620px); margin-inline: auto; }
  .sketch, .sketch-chain { justify-self: start; width: min(100%, 300px); }

  .moment-media, .moment-feature { grid-template-columns: 1fr; gap: 36px; }
  .polaroid, .polaroid-right { justify-self: start; margin-left: 8px; }

  .pieces-layout { grid-template-columns: 1fr; }
  .piece-photo { flex: none; min-height: 0; aspect-ratio: 4 / 3; }

  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .timeline-wrap { --pad: 46px; --thread-x: 10px; }
  .polaroid { width: min(100% - 20px, 280px); }
  .deco-story { width: 100px; }
}

@media (max-width: 520px) {
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 26px; height: 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pieces-list { padding: 4px 18px; }
  .piece-row { gap: 14px; min-height: 76px; }
  .piece-icon-wrap { width: 52px; height: 52px; }
  .piece-icon { width: 28px; height: 28px; }
  .piece-name { font-size: 1.2rem; }
  .piece-order { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .piece-order-label { display: none; }
  .piece-body { padding: 16px 20px 18px; }
  .piece-idea { padding: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 0; }
}
