/* =========================================================
   Crochê Nozinho — estilos
   Mobile-first · sem dependências
   ========================================================= */

:root {
  /* Cores */
  --cream: #F7F1E8;
  --cream-2: #EFE5D6;
  --paper: #FCF8F2;
  --brown: #8B6A45;
  --brown-600: #765836;   /* texto pequeno em marrom (AA sobre creme) */
  --brown-800: #4E3A25;   /* títulos */
  --ink: #3F3125;         /* texto corrido */
  --muted: #6A5848;
  --terra: #C9805F;
  --terra-700: #924F35;
  --terra-soft: #F2DDD0;
  --sage: #9DB08C;
  --sage-700: #5C6F4D;
  --sage-soft: #E2E9D8;
  --line: rgba(139, 106, 69, .22);

  /* Tipografia */
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  /* Espaços e formas */
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(78, 58, 37, .06), 0 4px 14px rgba(78, 58, 37, .06);
  --shadow: 0 2px 6px rgba(78, 58, 37, .06), 0 18px 40px -12px rgba(78, 58, 37, .18);
  --header-h: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Reset leve ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, picture { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--brown-800); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
a { color: var(--brown-600); text-underline-offset: .18em; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

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

::selection { background: var(--terra-soft); color: var(--brown-800); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: .6rem 1rem;
  background: var(--brown-800); color: var(--paper);
  border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 2.5rem);
}

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: .75rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terra-700);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; flex: none;
  background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px);
}

.section-title {
  font-size: clamp(1.85rem, 1.3rem + 2.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.script {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.22em;
  letter-spacing: 0;
  color: var(--brown);
  white-space: nowrap;
  position: relative;
}
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-lead { color: var(--muted); font-size: 1.05rem; }

.section { padding-block: clamp(4rem, 10vw, 7rem); position: relative; }
.section--tint {
  background:
    radial-gradient(1200px 400px at 10% 0%, rgba(201, 128, 95, .08), transparent 60%),
    radial-gradient(900px 400px at 100% 100%, rgba(157, 176, 140, .14), transparent 60%),
    var(--cream-2);
}

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--brown);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn--primary { box-shadow: 0 6px 18px -6px rgba(139, 106, 69, .55); }
.btn--primary::after {
  /* costurinha tracejada interna */
  content: ""; position: absolute; inset: 4px;
  border: 1.5px dashed rgba(255, 255, 255, .45);
  border-radius: inherit; pointer-events: none;
}
.btn--primary:hover { --btn-bg: var(--brown-600); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(139, 106, 69, .65); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brown-800); border-color: var(--brown); }
.btn--ghost:hover { --btn-bg: var(--paper); transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: .55rem 1.15rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn__icon { width: 1.15em; height: 1.15em; flex: none; transition: transform .25s var(--ease); }
.btn:hover .btn__icon:not(.btn__icon--lead) { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 800; text-decoration: none; color: var(--brown-600);
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(3px); }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  vertical-align: middle;
}
.tag--sample { background: var(--terra-soft); color: var(--terra-700); }
.tag--sample::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

/* ---------- Cabeçalho / navegação ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 232, .86);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(78, 58, 37, .5); }

.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand { display: block; flex: none; border-radius: 8px; }
.nav__brand img { width: 118px; height: auto; }

.nav__toggle {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; margin-right: -8px;
  border: 0; border-radius: 14px; background: transparent;
  color: var(--brown-800);
}
.nav__toggle:hover { background: rgba(139, 106, 69, .08); }
.nav__toggle-bars { position: relative; width: 24px; height: 16px; }
.nav__toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.nav__toggle-bars span:nth-child(1) { top: 0; }
.nav__toggle-bars span:nth-child(2) { top: 6.75px; width: 70%; }
.nav__toggle-bars span:nth-child(3) { top: 13.5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(1) { top: 6.75px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(3) { top: 6.75px; transform: rotate(-45deg); }

/* Menu móvel */
.nav__menu {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: .75rem clamp(1.15rem, 5vw, 2.5rem) 1.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(78, 58, 37, .35);
  display: flex; flex-direction: column; gap: 1rem;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.nav__menu.is-open {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav__list a {
  display: block; padding: .8rem .25rem;
  font-weight: 700; font-size: 1.1rem; color: var(--brown-800); text-decoration: none;
  border-bottom: 1.5px dashed var(--line);
}
.nav__list a:hover { color: var(--terra-700); }
.nav__cta { align-self: stretch; }

@media (min-width: 880px) {
  :root { --header-h: 76px; }
  .nav__brand img { width: 136px; }
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; padding: 0; background: none; border: 0; box-shadow: none;
    flex-direction: row; align-items: center; gap: 1.75rem;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav__list { display: flex; gap: 1.6rem; }
  .nav__list a {
    padding: .35rem 0; border: 0; font-size: .98rem; position: relative;
  }
  .nav__list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: repeating-linear-gradient(90deg, var(--terra) 0 5px, transparent 5px 9px);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
  .nav__list a[aria-current="true"] { color: var(--terra-700); }
  .nav__cta { align-self: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 8vw, 5.5rem) clamp(3.5rem, 9vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__thread {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 70%;
}
.hero__thread path {
  fill: none; stroke: var(--terra); stroke-width: 2.5; stroke-dasharray: 10 9; stroke-linecap: round;
  opacity: .45; vector-effect: non-scaling-stroke;
}
.hero__yarn { position: absolute; color: var(--sage); opacity: .5; }
.hero__yarn--a { width: 96px; height: 96px; right: -34px; top: -18px; transform: rotate(18deg); }
.hero__yarn--b { width: 70px; height: 70px; left: -18px; bottom: 10%; color: var(--terra); opacity: .35; transform: rotate(-24deg); }

.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero__text { text-align: center; }
.hero__title { margin: .25rem auto 0; max-width: min(460px, 82vw); }
.hero__logo { width: 100%; height: auto; }
.hero__tagline {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2.6vw, 2.8rem);
  line-height: 1.15;
  color: var(--terra-700);
  margin: 1.1rem 0 .9rem;
  text-wrap: balance;
}
.hero__lead { max-width: 34rem; margin-inline: auto; color: var(--muted); font-size: 1.1rem; }
.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem;
  margin-top: 1.75rem;
}
.hero__actions .btn { flex: 1 1 200px; max-width: 320px; }

.hero__media { margin: 0; position: relative; }
.stitch-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.stitch-frame::before {
  content: ""; position: absolute; inset: 5px;
  border: 2px dashed rgba(139, 106, 69, .35);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none; z-index: 1;
}
.hero__video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: calc(var(--radius-lg) - 10px);
  background: #EDE7DD;
}
.hero__replay {
  position: absolute; right: 20px; bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: .45rem .9rem;
  border: 0; border-radius: 999px;
  background: rgba(252, 248, 242, .92); color: var(--brown-800);
  font-size: .85rem; font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), background-color .2s;
}
.hero__replay svg { width: 18px; height: 18px; }
.hero__replay:hover { background: #fff; transform: translateY(-1px); }

.hero__caption {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  margin-top: 1rem;
  font-family: var(--font-script); font-size: 1.45rem; color: var(--brown-600);
}
.hero__caption svg { width: 18px; height: 18px; color: var(--terra); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1fr 1.08fr; }
  .hero__text { text-align: left; }
  .hero__title { margin-inline: 0 auto; }
  .hero__lead { margin-inline: 0; }
  .hero__actions { justify-content: flex-start; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__media { transform: rotate(1.2deg); }
  .hero__yarn--a { width: 150px; height: 150px; right: 2%; top: 4%; }
}

/* ---------- Divisor costurado ---------- */
.stitch-divider { color: var(--brown); opacity: .4; height: 28px; overflow: hidden; }
.stitch-divider svg { width: 100%; height: 100%; }
.stitch-divider path {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 8 8; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* ---------- Sobre ---------- */
.about__grid { display: grid; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.about__art { position: relative; width: min(280px, 72%); margin-inline: auto; aspect-ratio: 1; }
.about__blob {
  position: absolute; inset: 4%;
  background: var(--sage-soft);
  border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%;
}
.about__blob::after {
  content: ""; position: absolute; inset: -12px;
  border: 2px dashed rgba(92, 111, 77, .4);
  border-radius: inherit;
}
.about__yarn { position: relative; width: 100%; height: 100%; }
.about__text p { max-width: 36rem; }

.values { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.values li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .95rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper);
  font-weight: 700; font-size: .95rem; color: var(--brown-800);
}
.values__dot { width: 10px; height: 10px; border-radius: 50%; }
.values__dot--terra { background: var(--terra); }
.values__dot--sage { background: var(--sage); }
.values__dot--brown { background: var(--brown); }

@media (min-width: 860px) {
  .about__grid { grid-template-columns: .85fr 1.15fr; }
  .about__art { width: 100%; max-width: 380px; }
}

/* ---------- Prévias ---------- */
.section-lead .tag { margin-right: .35rem; }

.preview-grid { display: grid; gap: 1.5rem; }
.preview-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.preview-card__media { position: relative; background: #EDE7DD; overflow: hidden; }
.preview-card__media--wide { aspect-ratio: 16 / 9; }
.preview-card__media--tall { aspect-ratio: 4 / 5; }
.preview-card__media video { width: 100%; height: 100%; object-fit: cover; }
.preview-card__media--tall video { object-fit: contain; background: linear-gradient(#EFE9DF, #E6DFD3); }

.preview-card__tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: rgba(252, 248, 242, .94);
  box-shadow: var(--shadow-sm);
}

.preview-card__play {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  border: 0; background: transparent;
  transition: opacity .3s var(--ease);
}
.preview-card__play svg {
  width: 64px; height: 64px; padding: 18px 16px 18px 20px;
  border-radius: 50%;
  background: rgba(139, 106, 69, .92); color: #fff;
  box-shadow: 0 10px 26px -8px rgba(78, 58, 37, .6), 0 0 0 6px rgba(252, 248, 242, .6);
  transition: transform .3s var(--ease);
}
.preview-card__play:hover svg { transform: scale(1.08); }
.preview-card__play:focus-visible { outline-offset: -6px; border-radius: 0; }
.preview-card.is-playing .preview-card__play { opacity: 0; }
.preview-card.has-controls .preview-card__play { display: none; }

.preview-card__body { padding: 1.25rem 1.35rem 1.5rem; }
.preview-card__body h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.preview-card__body p { color: var(--muted); font-size: .98rem; margin-bottom: .75rem; }
.preview-card__body p:last-child { margin-bottom: 0; }

.preview-card--soon { background: transparent; box-shadow: none; border: 2px dashed rgba(139, 106, 69, .35); }
.preview-card--soon:hover { transform: none; box-shadow: none; }
.preview-card__placeholder {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(139, 106, 69, .05) 14px 15px),
    var(--terra-soft);
}
.soon-yarn { width: 84px; height: 84px; color: var(--terra); opacity: .8; }

@media (min-width: 680px) {
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-card--soon { grid-column: 1 / -1; }
  .preview-card--soon .preview-card__media { aspect-ratio: 21 / 6; }
}
@media (min-width: 1000px) {
  .preview-grid { grid-template-columns: 1.35fr .9fr 1fr; align-items: start; }
  .preview-card--soon { grid-column: auto; }
  .preview-card--soon .preview-card__media { aspect-ratio: 16 / 9; }
  .preview-card__media--tall { aspect-ratio: 9 / 13; }
}

/* ---------- Peças (galeria) ---------- */
.gallery-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.photo-slot {
  --slot-bg: var(--cream-2);
  --slot-fg: var(--brown);
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 1px 1px, rgba(78, 58, 37, .07) 1px, transparent 1.5px) 0 0 / 14px 14px,
    var(--slot-bg);
  color: var(--slot-fg);
  overflow: hidden;
}
.photo-slot::before {
  content: ""; position: absolute; inset: 8px;
  border: 2px dashed currentColor; opacity: .3;
  border-radius: calc(var(--radius) - 6px);
}
.photo-slot--terra { --slot-bg: var(--terra-soft); --slot-fg: var(--terra); }
.photo-slot--sage { --slot-bg: var(--sage-soft); --slot-fg: var(--sage-700); }
.photo-slot--cream { --slot-bg: #EFE4D3; --slot-fg: var(--brown); }

.photo-slot__art {
  width: 52%; height: auto; aspect-ratio: 1;
  transition: transform .6s var(--ease);
}
.photo-slot:hover .photo-slot__art { transform: rotate(-6deg) scale(1.05); }
.photo-slot__label {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  white-space: nowrap;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: rgba(252, 248, 242, .94);
  color: var(--brown-800);
  font-size: .8rem; font-weight: 800; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .photo-slot:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
  .photo-slot:nth-child(6) { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
  .photo-slot:nth-child(6) .photo-slot__art { width: auto; height: 62%; }
}

/* ---------- Curso ---------- */
.course { background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%); }
.course__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.course__intro > p { max-width: 34rem; color: var(--muted); }

.course__cta-card {
  position: relative;
  margin-top: 2rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--brown);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}
.course__cta-card::before {
  content: ""; position: absolute; inset: 8px; z-index: -1;
  border: 1.5px dashed rgba(255, 255, 255, .35);
  border-radius: calc(var(--radius-lg) - 6px);
}
.course__cta-yarn {
  position: absolute; right: -16px; top: -16px; z-index: -1;
  width: 110px; height: 110px; color: var(--terra); opacity: .55;
}
.course__cta-title { font-family: var(--font-script); font-size: 2.1rem; font-weight: 700; line-height: 1.1; margin-bottom: .35rem; }
.course__cta-text { color: rgba(255, 255, 255, .92); margin-bottom: 1.25rem; }
.course__cta-card .btn {
  --btn-bg: var(--paper); --btn-fg: var(--brown-800);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45);
}
.course__cta-card .btn::after { border-color: rgba(139, 106, 69, .35); }
.course__cta-card .btn:hover { --btn-bg: #fff; }

.course__learn-title {
  font-size: 1.35rem; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.course__learn-title::after {
  content: ""; flex: 1; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px);
}
.learn-list { display: grid; gap: .85rem; }
.learn-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  transition: border-color .25s, transform .3s var(--ease);
}
.learn-item:hover { border-color: rgba(139, 106, 69, .45); transform: translateX(3px); }
.learn-item__icon {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage-700);
  border: 2px dashed rgba(92, 111, 77, .45);
}
.learn-item:nth-child(3n+2) .learn-item__icon { background: var(--terra-soft); color: var(--terra-700); border-color: rgba(164, 90, 59, .4); }
.learn-item:nth-child(3n) .learn-item__icon { background: var(--cream-2); color: var(--brown-600); border-color: rgba(139, 106, 69, .4); }
.learn-item__icon svg { width: 20px; height: 20px; }
.learn-item h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.learn-item p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.5; }

@media (min-width: 640px) {
  .learn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .course__grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .course__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Instagram ---------- */
.instagram { padding-top: clamp(3rem, 8vw, 5rem); }
.insta-card {
  position: relative;
  max-width: 760px; margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 4rem) clamp(1.25rem, 6vw, 4rem);
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(201, 128, 95, .18), transparent 70%),
    radial-gradient(500px 240px at 100% 100%, rgba(157, 176, 140, .28), transparent 70%),
    var(--paper);
  box-shadow: var(--shadow);
}
.insta-card__stitch {
  position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
  pointer-events: none;
}
.insta-card__stitch rect { fill: none; stroke: rgba(139, 106, 69, .35); stroke-width: 2; stroke-dasharray: 8 7; }
.insta-card__icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 1.1rem;
  border-radius: 20px;
  background: linear-gradient(140deg, var(--terra) 0%, var(--brown) 100%);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(164, 90, 59, .6);
  transform: rotate(-6deg);
}
.insta-card__icon svg { width: 32px; height: 32px; }
.insta-card p { color: var(--muted); max-width: 30rem; margin: 0 auto 1.75rem; }
.insta-card .section-title { margin-bottom: .75rem; }
.btn__icon--lead { width: 1.25em; height: 1.25em; }

/* ---------- Rodapé ---------- */
.site-footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  background: var(--cream-2);
  padding-bottom: 1.5rem;
}
.stitch-line {
  height: 14px;
  background:
    radial-gradient(circle at 7px 7px, var(--brown) 2.2px, transparent 2.8px) 0 0 / 18px 14px;
  opacity: .25;
}
.footer__grid {
  display: grid; gap: 2rem;
  padding-block: 2.75rem 2rem;
}
.footer__brand img { width: 150px; height: auto; }
.footer__tagline { margin: .6rem 0 0; font-family: var(--font-script); font-size: 1.55rem; color: var(--brown-600); line-height: 1.2; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.footer__nav a {
  display: inline-block; padding: .45rem 0;
  font-weight: 700; color: var(--brown-800); text-decoration: none;
}
.footer__nav a:hover { color: var(--terra-700); text-decoration: underline; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem;
  padding-top: 1.25rem;
  border-top: 1.5px dashed var(--line);
  font-size: .9rem; color: var(--muted);
}
.footer__bottom p { margin: 0; }
.footer__top { font-weight: 700; text-decoration: none; padding: .35rem 0; }
.footer__top:hover { text-decoration: underline; }

@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Animações de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (min-width: 960px) {
  .js .hero__media.reveal { transform: translateY(18px) rotate(1.2deg); }
  .js .hero__media.reveal.is-visible { transform: rotate(1.2deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__yarn--a { animation: bob 7s ease-in-out infinite; }
  .hero__yarn--b { animation: bob 9s ease-in-out infinite reverse; }
  .about__tail { animation: sway 5s ease-in-out infinite; transform-origin: 170px 72px; }
  .js .hero__thread path { animation: draw 2.6s var(--ease) .3s both; }
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes sway {
  0%, 100% { rotate: 0deg; }
  50% { rotate: 6deg; }
}
@keyframes draw {
  from { stroke-dashoffset: 400; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal, .js .hero__media.reveal { opacity: 1; transform: none; }
  @media (min-width: 960px) { .js .hero__media.reveal { transform: rotate(1.2deg); } }
}

/* ---------- Peças: fotos ---------- */
.photo-tile { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow-sm); }
.photo-tile__link, .photo-tile picture { display: block; width: 100%; height: 100%; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.photo-tile__link:hover img, .photo-tile__link:focus-visible img { transform: scale(1.04); }
.photo-tile__link:focus-visible { outline: 3px solid var(--terra); outline-offset: -3px; }
.photo-tile__caption {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: .35rem .75rem; border-radius: 999px; text-align: center;
  background: rgba(252, 248, 242, .94); color: var(--brown-800);
  font-size: .78rem; font-weight: 800; line-height: 1.25; box-shadow: var(--shadow-sm);
}
.gallery-note { text-align: center; margin-top: 1.5rem; font-weight: 700; }
.gallery-note a { color: var(--terra); }
@media (min-width: 720px) {
  .photo-tile:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
  .photo-tile:nth-child(6) { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
  .photo-tile__caption { left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; font-size: .82rem; }
}
/* ---------- Em breve ---------- */
.soon-badge { display: inline-block; margin-left: .45rem; padding: .12rem .5rem; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--terra); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.btn.is-disabled { cursor: default; opacity: .85; pointer-events: none; filter: saturate(.8); }

/* ---------- Peças: polaroids artesanais ---------- */
.gallery-grid { gap: 1.6rem 1rem; padding: .5rem .25rem 1rem; }
.photo-tile, .photo-tile:nth-child(n) {
  grid-row: auto; grid-column: auto; aspect-ratio: auto; overflow: visible;
  background: #FFFDF8; border-radius: 4px; padding: 8px 8px 0;
  box-shadow: 0 1px 2px rgba(78,58,37,.12), 0 10px 24px -10px rgba(78,58,37,.35);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.photo-tile:nth-child(6n+1) { --tilt: -2deg; }
.photo-tile:nth-child(6n+2) { --tilt: 1.5deg; }
.photo-tile:nth-child(6n+3) { --tilt: -1deg; }
.photo-tile:nth-child(6n+4) { --tilt: 2deg; }
.photo-tile:nth-child(6n+5) { --tilt: -1.5deg; }
.photo-tile:nth-child(6n+6) { --tilt: 1deg; }
.photo-tile:hover, .photo-tile:focus-within {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
  box-shadow: 0 2px 4px rgba(78,58,37,.12), 0 22px 40px -14px rgba(78,58,37,.45); z-index: 2;
}
/* washi tape */
.photo-tile::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 74px; height: 22px; z-index: 3;
  transform: translateX(-50%) rotate(calc(var(--tilt, 0deg) * -2));
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px), var(--sage-soft);
  opacity: .9; box-shadow: 0 1px 2px rgba(0,0,0,.08);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 97% 100%, 2% 96%, 0 50%);
}
.photo-tile:nth-child(even)::before { background: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px), var(--terra-soft); }
.photo-tile__link { color: inherit; text-decoration: none; }
.photo-tile picture { aspect-ratio: 4 / 5; height: auto; overflow: hidden; border-radius: 2px; position: relative; }
.photo-tile picture::after { /* stitch border */
  content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(252,248,242,.7); border-radius: 2px; pointer-events: none;
}
.photo-tile__caption, .photo-tile:nth-child(n) .photo-tile__caption {
  position: static; transform: none; display: block; white-space: normal;
  background: none; box-shadow: none; border-radius: 0;
  padding: .6rem .25rem .75rem; text-align: center;
  font-family: var(--font-script, cursive); font-weight: 700; font-size: 1.05rem; line-height: 1.2; color: var(--brown-800);
}
@media (min-width: 720px) {
  .gallery-grid { gap: 2.4rem 2rem; padding-inline: 1rem; }
  .photo-tile { padding: 12px 12px 0; }
  .photo-tile__caption, .photo-tile:nth-child(n) .photo-tile__caption { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .photo-tile, .photo-tile:hover { transition: none; transform: none; } }

/* Featured lesson */
.preview-card--featured .preview-card__media video { object-fit: contain; background: #000; }
.chapters { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .15rem; }
@media (min-width: 640px) { .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; } }
.chapters button { width: 100%; text-align: left; background: none; border: 0; padding: .35rem .5rem; border-radius: 8px; font: inherit; font-size: .92rem; color: inherit; cursor: pointer; }
.chapters button:hover, .chapters button:focus-visible { background: rgba(139, 106, 69, .12); }
.chapters__time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); margin-right: .35rem; }
@media (min-width: 640px) { .preview-grid { grid-template-columns: 1fr; } }
@media (min-width: 1024px) { .preview-grid { grid-template-columns: 2fr 1fr; } .preview-card--soon { grid-column: auto; } }
