/* Rhara Assef Arquitetura — a prancha de materiais
   Feltro grafite, alfinetes champanhe, fotos impressas, etiquetas de linho. */

@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("../fonts/sofia-sans-extra-condensed-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilda Display";
  src: url("../fonts/gilda-display-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* feltro */
  --felt: #2a2826;
  --felt-deep: #201e1c;
  --felt-raise: #34312d;
  --felt-line: rgba(193, 180, 155, .22);
  /* latão / champanhe (cor do logo) */
  --champagne: #c1b49b;
  --champagne-hi: #ddd1b6;
  --champagne-lo: #8f8576;
  /* papel */
  --linen: #ebe3d4;
  --linen-deep: #ddd3c1;
  --print: #f4efe6;
  --field: #f7f3eb;
  --ink: #2a2826;
  --ink-soft: #5e564b;
  --rule-ink: #b9ad97;
  --focus-ink: #6e5f42;
  --alert-ink: #9a3417;
  /* texto sobre feltro */
  --text: #ebe3d4;
  --text-soft: #bfb5a5;
  /* cores tiradas das fotos dos projetos */
  --verde-serra: #545d2f;
  --telha-serra: #843e1d;
  --coral-serra: #bf6248;
  --laranja-sala: #a43f03;
  --rose-sala: #a35f68;

  --f-label: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --f-body: "Sofia Sans", "Segoe UI", system-ui, sans-serif;
  --f-voice: "Gilda Display", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* o balanço curto de algo pendurado num alfinete */
  --ease-swing: cubic-bezier(.3, 1.25, .6, 1);

  --shadow-print: 0 1px 1px rgba(0, 0, 0, .3), 0 10px 18px -4px rgba(0, 0, 0, .45), 0 28px 44px -16px rgba(0, 0, 0, .55);
  --shadow-lift: 0 2px 2px rgba(0, 0, 0, .25), 0 22px 32px -6px rgba(0, 0, 0, .5), 0 48px 64px -20px rgba(0, 0, 0, .6);
  --shadow-note: 0 1px 1px rgba(0, 0, 0, .25), 0 12px 22px -6px rgba(0, 0, 0, .42);

  --felt-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .89 0 0 0 0 .82 .16 0 0 0 -.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .24 .12 0 0 0 -.03'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");

  color-scheme: dark;
  scrollbar-color: #5c564d var(--felt-deep);
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 64px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100svh;
  background-color: var(--felt);
  background-image: var(--felt-grain);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--champagne);
}

::selection { background: var(--champagne); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
svg { flex: none; }

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

.sr-only {
  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 {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--linen); color: var(--ink);
  padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; }

/* ---------- tipografia ---------- */

.label {
  font-family: var(--f-label);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.3;
}

.display {
  font-family: var(--f-label);
  font-weight: 300;
  font-size: clamp(3rem, 1.6rem + 5vw, 6rem);
  letter-spacing: .05em;
  line-height: .92;
  text-transform: uppercase;
  color: var(--champagne);
  text-wrap: balance;
}

.voice {
  font-family: var(--f-voice);
  font-weight: 400;
  letter-spacing: -.005em;
  text-wrap: balance;
}

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

.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background-color: var(--felt-deep);
  background-image: var(--felt-grain);
  border-bottom: 1px solid var(--felt-line);
}
.site-header__inner {
  height: 100%;
  max-width: 1600px; margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--champagne);
}
.brand img { height: 42px; width: auto; }
.brand__name {
  display: flex; flex-direction: column;
  font-family: var(--f-label); font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  font-size: .9rem; line-height: 1.15;
}
.brand__name span:last-child { letter-spacing: .34em; font-size: .78rem; color: var(--text-soft); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.site-nav a {
  font-family: var(--f-label); font-weight: 500;
  font-size: .95rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--champagne); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.site-nav a:hover { color: var(--champagne-hi); border-bottom-color: var(--champagne); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--champagne); }
.site-nav a.nav-cta {
  padding: 9px 14px;
  border: 1.5px dashed var(--champagne);
  border-radius: 3px;
  color: var(--text);
}
.site-nav a.nav-cta:hover { background: var(--linen); color: var(--ink); border-style: solid; border-color: var(--linen); }
@media (max-width: 1240px) and (min-width: 861px) {
  .site-nav a.nav-cta { display: none; }
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.wa-icon {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center;
  color: var(--champagne); border: 1px solid var(--felt-line);
}
.wa-icon .icon { width: 22px; height: 22px; }

/* a etiqueta "minha prancha" no cabeçalho */
.prancha-count {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 26px;
  background: var(--linen); color: var(--ink);
  font-family: var(--f-label); font-weight: 600;
  font-size: .9rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  transform-origin: 6px 50%;
}
.prancha-count::before {
  content: ""; position: absolute; left: 10px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--felt-deep); box-shadow: inset 0 0 0 1.5px var(--champagne-lo);
}
.prancha-count b {
  font-variant-numeric: tabular-nums;
  min-width: 1.4em; height: 1.4em; padding: 0 .3em;
  display: inline-grid; place-items: center;
  background: var(--ink); color: var(--linen); border-radius: 2px;
  letter-spacing: 0; font-size: .85rem;
}
.prancha-count[data-empty="true"] b { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--rule-ink); }
.prancha-count:hover { background: var(--print); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--champagne);
}

@media (max-width: 1080px) {
  .site-nav a.nav-secondary { display: none; }
}
@media (max-width: 860px) {
  .brand__name { display: none; }
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .wa-icon, .menu-toggle { display: inline-flex; }
  .prancha-count .prancha-count__word { display: none; }
  .prancha-count { padding-right: 10px; }
  .site-nav.is-open {
    display: flex; position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background-color: var(--felt-deep); background-image: var(--felt-grain);
    border-bottom: 1px solid var(--felt-line);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .6);
  }
  .site-nav.is-open a, .site-nav.is-open a.nav-secondary {
    display: block; padding: 16px 0; font-size: 1.15rem;
    border-bottom: 1px solid var(--felt-line);
  }
}
@media (max-width: 760px) {
  .brand img { height: 36px; }
}

/* ---------- alfinete ---------- */

/* o alfinete é uma imagem de latão com a própria sombra; a cabeça fica no canto superior esquerdo */
.pin {
  position: absolute; z-index: 3;
  left: 50%; top: -6px;
  width: 22px; height: 22px; margin-left: -7.5px;
  background: url("../img/alfinete.png") 0 0 / 22px 22px no-repeat;
  pointer-events: none;
}

/* ---------- foto impressa ---------- */

.print {
  --tilt: 0deg;
  position: relative;
  background: var(--print);
  padding: 10px 10px 0;
  box-shadow: var(--shadow-print);
  rotate: var(--tilt);
  transform-origin: 50% 4px;
  transition: rotate .7s var(--ease-swing), translate .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.print__open {
  display: block; width: 100%;
  cursor: zoom-in;
  background: #d8d0c2;
  overflow: hidden;
}
.print__open img {
  width: 100%; height: auto;
  transition: scale .9s var(--ease-out), filter .6s var(--ease-out);
}
.print__cap {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 6px 2px 6px 4px;
  color: var(--ink-soft);
}
.print__cap .label { font-size: .82rem; letter-spacing: .14em; }
.print__cap .label em { font-style: normal; color: var(--ink); }

.print:hover, .print:focus-within {
  rotate: calc(var(--tilt) * .3);
  translate: 0 -4px;
  box-shadow: var(--shadow-lift);
  z-index: 5;
}
.print:hover .print__open img { scale: 1.025; }

/* botão "prender" */
.pin-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 10px;
  font-family: var(--f-label); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule-ink);
  border-radius: 2px;
  background: transparent;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
  white-space: nowrap;
}
.pin-toggle .icon { width: 16px; height: 16px; }
.pin-toggle:hover { border-color: var(--ink); }
.pin-toggle[aria-pressed="true"] { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.pin-toggle:focus-visible { outline-color: var(--focus-ink); }

/* ---------- nota de linho ---------- */

.note {
  position: relative;
  background-color: var(--linen);
  background-image: var(--paper-grain);
  color: var(--ink);
  box-shadow: var(--shadow-note);
}
.note a:focus-visible, .note button:focus-visible { outline-color: var(--focus-ink); }

/* ---------- ação principal: a etiqueta em branco ---------- */

.blank-tag {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 18px;
  padding: 20px 24px 20px 30px;
  color: var(--text);
  text-decoration: none;
  border: 1.5px dashed var(--champagne);
  border-radius: 3px;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), rotate .7s var(--ease-swing);
}
.blank-tag__hint { grid-column: 1; color: var(--champagne); }
.blank-tag__main { grid-column: 1; font-size: 1.35rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
.blank-tag .icon { grid-row: 1; grid-column: 2; width: 28px; height: 28px; transition: translate .5s var(--ease-out); }
.blank-tag::before {
  content: ""; position: absolute; left: 12px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--champagne);
}
.blank-tag:hover {
  background-color: var(--linen); background-image: var(--paper-grain);
  color: var(--ink); border-style: solid; border-color: var(--linen);
  rotate: -1deg;
}
.blank-tag:hover .blank-tag__hint { color: var(--ink-soft); }
.blank-tag:hover::before { box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.blank-tag:hover .icon { translate: 6px 0; }

.wa-line {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-soft);
  font-size: 1rem;
}
.wa-line a { color: var(--champagne); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(193, 180, 155, .5); }
.wa-line a:hover { text-decoration-color: var(--champagne); color: var(--champagne-hi); }
.wa-line .icon { color: var(--champagne); }

/* ---------- abertura ---------- */

.hero {
  max-width: 1600px; margin-inline: auto;
  padding: clamp(20px, 3.6vh, 40px) var(--gutter) clamp(40px, 6vh, 72px);
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  column-gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.hero__copy {
  padding-top: clamp(16px, 5vh, 64px);
  display: flex; flex-direction: column; gap: 28px;
  position: relative; z-index: 4;
}
.hero__note {
  padding: 36px 34px 26px;
  rotate: -1deg;
}
.hero__note .pin { left: 30px; margin-left: 0; }
.hero__note .pin + .pin { left: auto; right: 30px; }
.hero__note h1 {
  font-size: clamp(2.2rem, 1.3rem + 2.2vw, 3.3rem);
  line-height: 1.04;
}
.hero__note p { margin-top: 18px; font-size: 1.0625rem; color: var(--ink-soft); max-width: 34ch; }
.hero__note p strong { color: var(--ink); font-weight: 600; }
.stamp {
  display: block; margin-top: 22px; padding-top: 14px;
  border-top: 1px solid var(--rule-ink);
  font-family: var(--f-label); font-weight: 500; font-size: .85rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
}

.hero__board {
  position: relative;
  height: clamp(540px, calc(100svh - var(--header-h) - 76px), 780px);
  container-type: size;
}
.hero__board .print { position: absolute; }
.hero__board .print__open { aspect-ratio: 3 / 4; }
.hero__board .print__open img { width: 100%; height: 100%; object-fit: cover; }
.hb-a { left: 0; top: 2cqh; width: min(50cqw, 62cqh); --tilt: -1.5deg; z-index: 2; }
.hb-b { left: 55cqw; top: 0; width: min(27cqw, 34cqh); --tilt: 3deg; z-index: 1; }
.hb-c { left: 58.5cqw; top: 49cqh; width: min(25cqw, 32cqh); --tilt: -4deg; z-index: 3; }
.hb-d { left: 86cqw; top: 25cqh; width: min(13.5cqw, 18cqh); --tilt: 6deg; z-index: 2; padding: 7px 7px 0; }
.hb-d .print__cap { min-height: 26px; padding: 2px; }
.hero__board .print__cap .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero + .section { padding-top: clamp(24px, 4vw, 64px); }
.hb-d .print__cap .label { font-size: .7rem; }

/* amostras de cor presas juntas */
.swatches {
  position: absolute; z-index: 4;
  left: 40cqw; top: 71cqh;
  width: 168px;
}
.swatches__fan { position: relative; height: 92px; }
.swatches__chip {
  position: absolute; top: 0;
  width: 66px; height: 82px;
  padding: 4px 4px 0;
  background: var(--print);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 8px 14px -4px rgba(0, 0, 0, .5);
  transform-origin: 50% 8px;
}
.swatches__chip i { display: block; height: 58px; }
.swatches__chip:nth-child(1) { left: 0; rotate: -9deg; }
.swatches__chip:nth-child(2) { left: 46px; rotate: -1deg; }
.swatches__chip:nth-child(3) { left: 92px; rotate: 8deg; }
.swatches .pin { left: 79px; top: -4px; margin: 0; }
.swatches__label {
  display: inline-block; margin-top: 6px; padding: 5px 10px;
  background: var(--linen); color: var(--ink-soft);
  font-family: var(--f-label); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  rotate: 2deg;
  box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .5);
}

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
  .hb-d { display: none; }
  .hb-b { width: min(31cqw, 36cqh); left: 58cqw; }
  .hb-c { width: min(29cqw, 33cqh); left: 62cqw; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 18px;
  }
  .hero__board { order: -1; height: clamp(300px, 92vw, 430px); }
  .hb-a { left: 1cqw; top: 2cqh; width: min(60cqw, 82cqh); --tilt: -2deg; }
  .hb-b { left: 61cqw; top: 6cqh; width: min(36cqw, 46cqh); --tilt: 4deg; }
  .hb-b .print__cap .label { font-size: .72rem; }
  .hb-c { display: none; }
  .swatches { left: 63cqw; top: 59cqh; width: 130px; scale: .8; transform-origin: 0 0; }
  .swatches__label { display: none; }
  .hb-b .print__cap em { display: none; }
  .hero__copy { padding-top: 0; margin-top: -76px; gap: 20px; }
  .hero__note { rotate: .8deg; padding: 30px 24px 20px; margin-inline: 4px; }
}
@media (max-width: 420px) {
  .hero__note h1 { font-size: 2.05rem; }
  .blank-tag { padding: 16px 18px 16px 28px; }
  .blank-tag__main { font-size: 1.2rem; }
}

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

.section {
  max-width: 1600px; margin-inline: auto;
  padding: clamp(72px, 10vw, 136px) var(--gutter) 0;
}
.section__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: end; gap: 24px clamp(32px, 5vw, 80px);
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section__head .note {
  max-width: 560px; padding: 22px 26px;
  rotate: .8deg; justify-self: start;
}
.section__head .note p { font-size: 1.0625rem; }
@media (max-width: 860px) {
  .section__head { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- varal de ambientes ---------- */

.rooms-rail {
  position: sticky; top: var(--header-h); z-index: 20;
  margin: 0 calc(var(--gutter) * -1) clamp(32px, 4vw, 48px);
  padding: 0 var(--gutter);
  background: linear-gradient(var(--felt) 70%, rgba(42, 40, 38, 0));
}
.rooms-rail__track {
  position: relative;
  display: flex; gap: clamp(10px, 1.6vw, 22px);
  padding: 14px 4px 22px;
  overflow-x: auto; scrollbar-width: none;
}
.rooms-rail__track::-webkit-scrollbar { display: none; }
.rooms-rail__track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 14px;
  height: 1.5px; background: var(--champagne); opacity: .7;
  min-width: 100%;
}
.room-tag {
  flex: none; position: relative;
  margin-top: 10px;
  padding: 10px 14px 9px;
  background: var(--linen); color: var(--ink);
  font-family: var(--f-label); font-weight: 600;
  font-size: .9rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .55);
  transform-origin: 50% -10px;
  rotate: var(--tilt, 0deg);
  transition: rotate .7s var(--ease-swing), background .3s var(--ease-out), color .3s var(--ease-out);
}
.room-tag::before {
  content: ""; position: absolute; left: 50%; top: -10px;
  width: 1px; height: 10px; background: var(--champagne);
}
.room-tag:nth-child(odd) { --tilt: -2deg; }
.room-tag:nth-child(even) { --tilt: 1.5deg; }
.room-tag:hover { --tilt: 0deg; background: var(--print); }
.room-tag[aria-current="true"] { background: var(--ink); color: var(--linen); --tilt: 0deg; box-shadow: inset 0 0 0 1px var(--champagne), 0 6px 10px -4px rgba(0, 0, 0, .55); }
.room-tag:focus-visible { outline-offset: 4px; }

/* ---------- a prancha de projetos ---------- */

.room-group { scroll-margin-top: calc(var(--header-h) + 80px); }
.room-group + .room-group { margin-top: clamp(64px, 8vw, 112px); }

/* uma prancha composta por ambiente: faixas verticais de larguras próprias,
   a foto principal grande e as peças vizinhas presas por cima do canto dela. */
.collage {
  --board-gap: clamp(26px, 2.8vw, 42px);
  --tuck: clamp(28px, 3.4vw, 52px);
  display: grid;
  grid-template-columns: var(--lanes, repeat(3, minmax(0, 1fr)));
  column-gap: clamp(18px, 2.6vw, 40px);
  align-items: start;
}
.lane { display: flex; flex-direction: column; gap: var(--board-gap); min-width: 0; }
.collage .print { translate: var(--dx, 0px) var(--dy, 0px); }
.collage .print:hover, .collage .print:focus-within { translate: var(--dx, 0px) calc(var(--dy, 0px) - 4px); }
.collage .tuck-left { --dx: calc(var(--tuck) * -1); --dy: 34px; z-index: 3; }
.collage .tuck-right { --dx: var(--tuck); --dy: 34px; z-index: 3; }
.collage .room-label.tuck-left, .collage .room-label.tuck-right { translate: var(--dx) var(--dy); }
.collage .print.is-port .print__open { aspect-ratio: 3 / 4; }
.collage .print.c-lead.is-port .print__open { aspect-ratio: 4 / 5; }
.collage .print.is-port .print__open img { width: 100%; height: 100%; object-fit: cover; }
.collage .c-lead { padding: 14px 14px 0; }
.collage .c-lead .print__cap { min-height: 52px; }
.collage .c-lead .print__cap .label { font-size: .9rem; }

.room-label {
  padding: 26px 24px 22px;
  rotate: -1.2deg;
}
.room-label h3 { font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.05; }
.room-label p { margin-top: 10px; color: var(--ink-soft); font-family: var(--f-label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; }
.chips { display: flex; gap: 8px; margin-top: 16px; }
.chips i {
  display: block; width: 34px; height: 34px;
  border: 3px solid var(--print);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .25), 0 5px 8px -3px rgba(0, 0, 0, .4);
}
.chips i:nth-child(1) { rotate: -5deg; }
.chips i:nth-child(2) { rotate: 3deg; translate: 0 3px; }
.chips i:nth-child(3) { rotate: -2deg; }

@media (max-width: 1080px) {
  .collage { --tuck: 22px; }
  .room-label h3 { font-size: 1.6rem; }
}
/* no celular as faixas viram uma prancha de 6 colunas; a etiqueta vem primeiro
   e o JS mede cada peça para acomodar as linhas */
@media (max-width: 640px) {
  .collage { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row dense; column-gap: 14px; row-gap: 24px; --board-gap: 24px; }
  .js .collage { grid-auto-rows: 4px; row-gap: 0; }
  .js .collage .lane > * { margin-bottom: var(--board-gap); }
  .lane { display: contents; }
  .collage .c-lead { grid-column: span 6; order: -1; }
  .collage .c-item { grid-column: span 3; }
  .collage .room-label {
    grid-column: span 6; order: -2;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 16px;
    rotate: -.8deg;
  }
  .collage .room-label h3 { grid-column: 1; }
  .collage .room-label p { grid-column: 1; margin-top: 6px; }
  .collage .room-label .chips { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: center; }
  .collage .print.c-lead.is-port .print__open { aspect-ratio: 1 / 1; }
  .collage .tuck-left, .collage .tuck-right { --dx: 0px; --dy: 0px; }
  .collage .print { padding: 7px 7px 0; }
  .collage .c-lead { padding: 10px 10px 0; }
  .room-label { padding: 20px 18px 16px; }
  .chips i { width: 28px; height: 28px; }
  .collage .print__cap { min-height: 40px; padding: 4px 0 4px 2px; gap: 4px; }
  .collage .print__cap .label { font-size: .7rem; letter-spacing: .1em; }
  .collage .pin-toggle { min-height: 34px; width: 34px; padding: 0; justify-content: center; flex: none; }
  .collage .pin-toggle span { display: none; }
}

/* títulos de seção como etiquetas de linho */
.head-tag {
  position: relative;
  justify-self: start; align-self: end;
  width: fit-content;
  padding: .42em .72em .34em;
  background-color: var(--linen);
  background-image: var(--paper-grain);
  color: var(--ink);
  font-family: var(--f-label);
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem);
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
  rotate: -1.8deg;
  box-shadow: var(--shadow-note);
}
.head-tag .pin { top: -8px; }

/* espaço reservado: o que a Rhara ainda vai preencher */
.slot {
  margin-top: 28px; max-width: 58ch;
  padding: 18px 20px;
  border: 1.5px dashed var(--champagne-lo);
  border-radius: 3px;
  color: var(--text-soft);
}
.slot .label { color: var(--champagne); font-size: .82rem; margin-bottom: 6px; }

/* ---------- a Rhara ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__prints { position: relative; padding-bottom: 18%; }
.about__portrait { width: 78%; --tilt: -2deg; }
.about__portrait .print__open { cursor: default; }
.about__second {
  position: absolute; right: 0; bottom: 0;
  width: 46%; --tilt: 3.5deg; z-index: 2;
}
.about__text { padding-top: clamp(8px, 3vw, 48px); }
.about__text .head-tag { display: block; margin-bottom: clamp(32px, 4vw, 52px); }
.manifesto {
  padding: clamp(32px, 4vw, 52px) clamp(26px, 4vw, 52px) clamp(26px, 3vw, 36px);
  rotate: .6deg;
}
.manifesto blockquote p {
  font-family: var(--f-voice);
  font-size: clamp(1.55rem, 1.1rem + 1.2vw, 2.2rem);
  line-height: 1.28;
  text-wrap: pretty;
}
.manifesto figcaption {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule-ink);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.manifesto figcaption .label { color: var(--ink); }
.manifesto figcaption a { color: var(--ink-soft); font-family: var(--f-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }
.about__more { margin-top: 32px; max-width: 58ch; color: var(--text-soft); }
.about__more p + p { margin-top: 14px; }
.about__more a { color: var(--champagne); }

@media (max-width: 860px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__prints { max-width: 520px; }
}

/* ---------- como começa ---------- */

.steps {
  position: relative;
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  padding-top: 34px;
}
.steps::before {
  content: ""; position: absolute; left: -2vw; right: -2vw; top: 0;
  height: 1.5px; background: var(--champagne); opacity: .75;
}
.step {
  position: relative;
  padding: 30px 24px 26px;
  transform-origin: 50% -34px;
  rotate: var(--tilt, 0deg);
}
.step::before {
  content: ""; position: absolute; left: 50%; top: -34px;
  width: 1px; height: 34px; background: var(--champagne);
}
.step .pin { top: -41px; }
.step:nth-child(1) { --tilt: -1.6deg; }
.step:nth-child(2) { --tilt: 1.2deg; margin-top: 18px; }
.step:nth-child(3) { --tilt: -.8deg; margin-top: 6px; }
.step:nth-child(4) { --tilt: 2deg; margin-top: 24px; }
.step__n {
  font-family: var(--f-label); font-weight: 300; font-size: 3rem; line-height: 1;
  color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 12px; font-size: 1.6rem; line-height: 1.1; }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }
.step p a { color: var(--ink); font-weight: 600; }

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 72px; }
  .steps::before { display: none; }
  .step::before { height: 26px; top: -26px; }
  .step .pin { top: -33px; }
  .step { transform-origin: 50% -26px; margin-top: 0 !important; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 60px; padding-left: 0; }
}

/* ---------- fechamento: minha prancha ---------- */

.closing {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-bottom: clamp(80px, 10vw, 140px);
}
.closing h2 {
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem);
  line-height: 1.06;
  color: var(--text);
}
.closing__lead { margin-top: 20px; color: var(--text-soft); max-width: 46ch; }
.closing__actions { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.closing__actions .blank-tag { min-width: min(100%, 380px); }

.my-board {
  position: relative;
  min-height: 420px;
  padding: 28px clamp(20px, 3vw, 36px) 32px;
  background-color: var(--felt-raise);
  background-image: var(--felt-grain);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(193, 180, 155, .12);
  border-radius: 3px;
}
.my-board__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--champagne); }
.my-board__head .label { font-size: 1rem; }
.my-board__head span:last-child { font-variant-numeric: tabular-nums; }
.my-board__grid {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 30px 18px;
}
.mini-print {
  position: relative;
  background: var(--print); padding: 6px 6px 0;
  box-shadow: var(--shadow-print);
  rotate: var(--tilt, 0deg); transform-origin: 50% 4px;
  transition: rotate .7s var(--ease-swing);
}
.mini-print img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.mini-print > span:not(.pin) {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding: 5px 2px 6px; line-height: 1.3;
  font-family: var(--f-label); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.mini-print .pin { width: 17px; height: 17px; background-size: 17px 17px; margin-left: -5.8px; top: -5px; }
.mini-slot {
  display: grid; place-content: center; justify-items: center; gap: 10px;
  min-height: 160px; padding: 14px;
  border: 1.5px dashed var(--champagne-lo); border-radius: 3px;
  color: var(--champagne); text-decoration: none; text-align: center;
  font-family: var(--f-label); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.mini-slot .icon { width: 22px; height: 22px; }
.mini-slot:hover { border-color: var(--champagne); color: var(--champagne-hi); }
.mini-print button {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(32, 30, 28, .82); color: var(--linen);
}
.mini-print button .icon { width: 16px; height: 16px; }
.mini-print:nth-child(3n+1) { --tilt: -2.5deg; }
.mini-print:nth-child(3n+2) { --tilt: 1.8deg; }
.mini-print:nth-child(3n) { --tilt: -.6deg; }

.my-board__empty {
  margin: 34px auto 0; max-width: 420px;
  min-height: 260px;
  display: grid; place-content: center; text-align: center; gap: 14px;
  padding: 28px;
  border: 1.5px dashed var(--champagne-lo); border-radius: 3px;
  color: var(--text-soft);
}
.my-board__empty .icon { width: 30px; height: 30px; margin-inline: auto; color: var(--champagne); }
.my-board__empty a { color: var(--champagne); font-weight: 600; }

@media (max-width: 860px) {
  .closing { grid-template-columns: minmax(0, 1fr); }
  .my-board { min-height: 0; }
}

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

.site-footer {
  background-color: var(--felt-deep);
  background-image: var(--felt-grain);
  border-top: 1px solid var(--felt-line);
  color: var(--text-soft);
}
.site-footer__inner {
  max-width: 1600px; margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 64px);
}
.site-footer__logo img { width: 132px; }
.site-footer__logo p { margin-top: 18px; font-family: var(--f-label); letter-spacing: .3em; text-transform: uppercase; font-size: .82rem; color: var(--champagne); }
.site-footer h2 { color: var(--champagne); margin-bottom: 14px; font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--text); text-decoration-color: rgba(235, 227, 212, .35); }
.site-footer a:hover { color: var(--champagne-hi); text-decoration-color: var(--champagne); }
.site-footer li { display: flex; align-items: center; gap: 10px; }
.site-footer li .icon { color: var(--champagne); }
.site-footer__base {
  grid-column: 1 / -1;
  margin-top: 24px; padding-top: 22px;
  border-top: 1px solid var(--felt-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-size: .9rem;
}
@media (max-width: 980px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__logo { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- visor (foto ampliada) ---------- */

.viewer {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text);
  overflow: hidden;
}
.viewer::backdrop {
  background-color: rgba(26, 24, 22, .985);
  background-image: var(--felt-grain);
}
.viewer[open] { display: grid; }
.viewer__stage {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%; padding: 14px var(--gutter) 18px;
  gap: 14px;
}
.viewer__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.viewer__count { color: var(--champagne); font-variant-numeric: tabular-nums; }
.viewer__btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-grid; place-items: center;
  color: var(--linen);
  border: 1px solid var(--felt-line);
  background: rgba(32, 30, 28, .6);
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.viewer__btn:hover { background: var(--felt-raise); border-color: var(--champagne); }
.viewer__btn .icon { width: 22px; height: 22px; }
.viewer__frame {
  position: relative; min-height: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
}
.viewer__print {
  justify-self: center; align-self: center;
  max-height: 100%; min-height: 0;
  display: flex; flex-direction: column;
  background: var(--print); padding: 12px 12px 0;
  box-shadow: var(--shadow-lift);
  rotate: -.6deg; transform-origin: 50% 4px;
  touch-action: pan-y;
}
.viewer__print img {
  max-width: min(100%, 1100px);
  max-height: calc(100svh - 230px);
  width: auto; height: auto;
  object-fit: contain;
  background: #d8d0c2;
}
.viewer__cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 6px 2px; color: var(--ink); }
.viewer__cap .label { font-size: .95rem; }
.viewer__cap .label em { font-style: normal; color: var(--ink-soft); }
.viewer__print .pin { top: -6px; }
.viewer__print.is-entering { animation: print-in .55s var(--ease-out) both; }
@keyframes print-in {
  from { opacity: 0; translate: 0 18px; rotate: -3deg; }
  to { opacity: 1; translate: 0 0; rotate: -.6deg; }
}
@media (max-width: 760px) {
  .viewer__frame { grid-template-columns: minmax(0, 1fr); }
  .viewer__frame > .viewer__btn { display: none; }
  .viewer__print img { max-height: calc(100svh - 250px); }
  .viewer__nav-m { display: flex; justify-content: center; gap: 16px; }
}
@media (min-width: 761px) {
  .viewer__nav-m { display: none; }
}

/* ---------- movimento: a primeira fixação das fotos ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero__board .print, .js .swatches {
    animation: pin-drop 1.1s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 110ms + 120ms);
  }
  @keyframes pin-drop {
    0% { translate: 0 -14px; rotate: calc(var(--tilt, 0deg) + 7deg); }
    38% { translate: 0 0; rotate: calc(var(--tilt, 0deg) - 3deg); }
    66% { rotate: calc(var(--tilt, 0deg) + 1.2deg); }
    100% { translate: 0 0; rotate: var(--tilt, 0deg); }
  }
  .print.is-swinging, .room-tag.is-swinging, .prancha-count.is-swinging, .tag-chip.is-swinging, .mini-print.is-swinging {
    animation: swing .9s var(--ease-out);
  }
  @keyframes swing {
    0% { rotate: calc(var(--tilt, 0deg) + 6deg); }
    35% { rotate: calc(var(--tilt, 0deg) - 3.5deg); }
    65% { rotate: calc(var(--tilt, 0deg) + 1.4deg); }
    100% { rotate: var(--tilt, 0deg); }
  }
}

.flyer {
  position: fixed; z-index: 90; pointer-events: none;
  background: var(--print); padding: 4px;
  box-shadow: var(--shadow-lift);
  transform-origin: 0 0;
}
.flyer img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- utilidades ---------- */

.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 95;
  translate: -50% 0;
  padding: 12px 18px;
  background: var(--linen); color: var(--ink);
  font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow-note);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), translate .4s var(--ease-out);
}
.toast.is-on { opacity: 1; translate: -50% -6px; }

/* =========================================================
   Questionário: a ficha presa na prancha
   ========================================================= */

.q {
  max-width: 1400px; margin-inline: auto;
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(72px, 9vw, 120px);
}
.q__intro { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.q__intro h1 { font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); line-height: 1; color: var(--text); }
.q__intro p { margin-top: 18px; color: var(--text-soft); max-width: 62ch; }
.q__intro .q__aside { font-size: .95rem; color: var(--champagne); }

.q__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.q-sheet {
  padding: clamp(36px, 4vw, 56px) clamp(22px, 4vw, 56px) clamp(28px, 3vw, 40px);
  rotate: -.35deg;
  caret-color: var(--ink);
}
.q-sheet > .pin { left: 34px; margin-left: 0; }
.q-sheet > .pin + .pin { left: auto; right: 34px; }
.q-sheet ::selection { background: var(--ink); color: var(--linen); }
.q-sheet__tag {
  position: absolute; top: -14px; right: clamp(60px, 9vw, 120px);
  padding: 8px 12px 7px;
  background: var(--ink); color: var(--linen);
  font-variant-numeric: tabular-nums;
  rotate: 3deg; transform-origin: 50% 0;
  box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .5);
}

.q-step__title {
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: clamp(24px, 3vw, 36px);
  outline: none;
}
/* as etapas só se escondem depois que o script terminou de montar o questionário;
   se ele falhar, o formulário aparece inteiro e continua enviando */
.q-ready .q-step { display: none; }
.q-ready .q-step.is-current { display: block; }
.q-step + .q-step { margin-top: 56px; }
.q-ready .q-step + .q-step { margin-top: 0; }
.q-sheet:not(.q-ready) [data-next],
.q-sheet:not(.q-ready) [data-back],
.q-sheet:not(.q-ready) [data-step-tag] { display: none !important; }

.q-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
.field { grid-column: 1 / -1; min-width: 0; border: 0; padding: 0; }
.field--half { grid-column: span 1; }
@media (max-width: 640px) { .field--half { grid-column: 1 / -1; } }

.field__label {
  display: block;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
  padding: 0;
}
legend.field__label { float: left; width: 100%; }
legend.field__label + * { clear: both; }
.field__opt {
  font-family: var(--f-label); font-weight: 500; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  margin-left: 6px;
}
.field__hint { margin-top: 8px; font-size: .92rem; color: var(--ink-soft); }
.field__hint a { color: var(--ink); font-weight: 600; }
.field__err {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 8px; font-size: .95rem; font-weight: 600; color: var(--alert-ink);
}
.field__err[hidden] { display: none; }
.field__err::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; background: currentColor; rotate: 45deg; }

.input {
  display: block; width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--rule-ink);
  border-radius: 2px;
  font-size: 1.0625rem;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out);
}
textarea.input { resize: vertical; min-height: 0; line-height: 1.5; }
.input::placeholder { color: #6e6556; opacity: 1; }
.input:hover { border-color: var(--ink-soft); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(110, 95, 66, .35); background: #fbf8f2; }
.input[aria-invalid="true"] { border-color: var(--alert-ink); box-shadow: 0 0 0 1px var(--alert-ink); }
.input::-webkit-calendar-picker-indicator {
  width: 20px; height: 20px; opacity: 1; cursor: pointer; color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235e564b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='14' height='12' rx='1.5'/%3E%3Cpath d='M3 8.5h14M7 2.8v3.4M13 2.8v3.4'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.input-unit { position: relative; }
.input-unit .input { padding-right: 52px; font-variant-numeric: tabular-nums; }
.input-unit span { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--ink-soft); font-weight: 600; pointer-events: none; }

/* opções como etiquetas */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices--stack { flex-direction: column; align-items: stretch; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice > span {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 48px;
  padding: 11px 16px 11px 40px;
  background: var(--field);
  border: 1px solid var(--rule-ink);
  border-radius: 2px;
  color: var(--ink);
  line-height: 1.35;
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out), rotate .6s var(--ease-swing);
}
.choice > span small { display: block; margin-top: 2px; font-size: .86rem; color: var(--ink-soft); }
.choice > span::before {
  content: ""; position: absolute; left: 14px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink-soft);
  transition: box-shadow .25s var(--ease-out), background .25s var(--ease-out);
}
.choice--check > span::before { border-radius: 2px; }
.choice:hover > span { border-color: var(--ink-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--focus-ink); outline-offset: 2px; }
.choice input:checked + span {
  background: var(--ink); border-color: var(--ink); color: var(--linen);
  rotate: -.6deg;
}
.choice input:checked + span small { color: var(--champagne); }
.choice input:checked + span::before {
  left: 11px; width: 21px; height: 21px; margin-top: -9px; border-radius: 0;
  background: url("../img/alfinete.png") 0 0 / 21px 21px no-repeat;
  box-shadow: none;
}
.choice--check input:checked + span::before {
  background: var(--champagne) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232a2826' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: none;
}
.field[aria-invalid="true"] .choice > span { border-color: var(--alert-ink); }
.field__other { margin-top: 10px; }

.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-weight: 600; color: var(--ink); line-height: 1.45; }
.check input {
  appearance: none; flex: none;
  width: 24px; height: 24px; margin-top: 1px;
  border: 1.5px solid var(--ink-soft); border-radius: 2px; background: var(--field);
  cursor: pointer;
}
.check input:checked {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ebe3d4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--ink);
}
.check input:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 3px; }
.field[aria-invalid="true"] .check input { border-color: var(--alert-ink); }

.privacy { margin-top: 14px; color: var(--ink-soft); font-size: .95rem; }
.privacy summary {
  display: inline-flex; align-items: center; gap: 10px;
  list-style: none; cursor: pointer;
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--rule-ink);
}
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::before {
  content: ""; flex: none; width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%232a2826' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2l4 4-4 4'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: rotate .35s var(--ease-out);
}
.privacy[open] summary::before { rotate: 90deg; }
.privacy summary:focus-visible { outline-color: var(--focus-ink); }
.privacy p { margin-top: 10px; max-width: 62ch; }
.privacy a { color: var(--ink); }

.q-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* navegação da ficha */
.q-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(32px, 4vw, 48px); padding-top: 24px;
  border-top: 1px solid var(--rule-ink);
}
.q-nav [data-next], .q-nav [data-submit] { margin-left: auto; }
.q-nav [hidden] { display: none; }

.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 4px;
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--rule-ink);
}
.link-btn:hover { text-decoration-color: var(--ink); }
.link-btn:focus-visible { outline-color: var(--focus-ink); }
.link-btn .icon { width: 18px; height: 18px; }

/* botão em forma de etiqueta, na ficha */
.ink-tag {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 22px 0 38px;
  background: var(--ink); color: var(--linen);
  font-weight: 600; font-size: 1.05rem; text-decoration: none;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
  transition: background .3s var(--ease-out), rotate .7s var(--ease-swing);
}
.ink-tag::before {
  content: ""; position: absolute; left: 14px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--linen); box-shadow: inset 0 0 0 2px var(--champagne-lo);
}
.ink-tag .icon { width: 20px; height: 20px; transition: translate .4s var(--ease-out); }
.ink-tag:hover { background: #3b3834; rotate: -1deg; }
.ink-tag:hover .icon { translate: 4px 0; }
.ink-tag:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 4px; }
.ink-tag[aria-busy="true"] { cursor: progress; background: #4a463f; }
.ink-tag[aria-busy="true"] .icon { animation: busy 1s linear infinite; }
@keyframes busy { to { rotate: 360deg; } }
.ink-tag--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); clip-path: none; border-radius: 2px; padding-left: 20px; }
.ink-tag--ghost::before { display: none; }
.ink-tag--ghost:hover { background: var(--linen-deep); }

/* retomada do rascunho */
.q-resume {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px;
  margin: -6px 0 28px; padding: 12px 16px;
  background: var(--linen-deep);
  color: var(--ink);
}
.q-resume[hidden] { display: none; }

/* resumo */
.q-summary { display: grid; gap: 22px; }
.q-summary section { padding-bottom: 20px; border-bottom: 1px solid var(--rule-ink); }
.q-summary header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.q-summary h3 { font-family: var(--f-label); font-weight: 600; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.q-summary dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 18px; font-size: .97rem; }
.q-summary dt { color: var(--ink-soft); }
.q-summary dd { color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .q-summary dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .q-summary dd { margin-bottom: 10px; }
}

.q-important {
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--print);
  box-shadow: inset 0 0 0 1px var(--rule-ink);
  color: var(--ink);
}
.q-important .label { color: var(--ink-soft); margin-bottom: 6px; }
.q-important a { color: var(--ink); font-weight: 600; }

.q-send-error {
  margin-top: 22px; padding: 16px 18px;
  background: #f3e1d6; color: var(--alert-ink);
  box-shadow: inset 0 0 0 1px rgba(154, 52, 23, .45);
  font-weight: 600;
}
.q-send-error[hidden] { display: none; }
.q-send-error a { color: inherit; }

/* favoritos dentro da ficha */
.q-favs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 22px 14px; margin-top: 6px; }
.q-favs:empty { display: none; }
.q-favs .mini-print { box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 8px 14px -6px rgba(0, 0, 0, .35); }

/* confirmação */
.q-done[hidden] { display: none; }
.q-done h2 { font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.04; }
.q-done__lead { margin-top: 14px; font-size: 1.15rem; color: var(--ink-soft); }
.q-done__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.q-done__back { margin-top: 28px; }
.q-done__back a { font-weight: 600; color: var(--ink); }
.q-done:focus { outline: none; }

/* a prancha da visita */
.q-board { position: sticky; top: calc(var(--header-h) + 24px); min-height: 0; }
.q-progress { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 4px; }
.q-progress li {
  display: flex; align-items: center; gap: 12px;
  min-height: 34px; color: var(--text-soft); font-size: .98rem;
}
.q-mark {
  position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--champagne-lo);
}
.q-progress li.is-done { color: var(--text); }
.q-progress li.is-done .q-mark {
  box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23c1b49b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 9.5l3.5 3.5 7.5-8.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.q-progress li.is-current { color: var(--linen); font-weight: 600; }
.q-progress li.is-current .q-mark {
  width: 25px; height: 25px; margin: 0 -7px -7px 0; border-radius: 0;
  box-shadow: none;
  background: url("../img/alfinete.png") 0 0 / 25px 25px no-repeat;
}
.q-progress li.is-stopped::after {
  content: "você parou aqui";
  margin-left: auto; padding: 3px 8px;
  background: var(--linen); color: var(--ink);
  font-family: var(--f-label); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  rotate: -2deg;
}

.q-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 10px; }
.q-tags:empty { display: none; }
.tag-chip {
  position: relative;
  padding: 8px 12px 7px 24px;
  background: var(--linen); color: var(--ink);
  font-family: var(--f-label); font-weight: 600; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  rotate: var(--tilt, 0deg); transform-origin: 6px 50%;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tag-chip::before {
  content: ""; position: absolute; left: 9px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--felt-raise); box-shadow: inset 0 0 0 1.5px var(--champagne-lo);
}
.tag-chip:nth-child(3n+1) { --tilt: -2deg; }
.tag-chip:nth-child(3n+2) { --tilt: 1.5deg; }
.tag-chip:nth-child(3n) { --tilt: -.5deg; }
.q-board__favs { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 18px 12px; }
.q-board__favs:empty { display: none; }
.q-board__favs .mini-print > span:not(.pin) { display: none; }
.q-board__favs .mini-print { padding-bottom: 6px; }
.q-board__hint { margin-top: 24px; color: var(--text-soft); font-size: .95rem; max-width: 40ch; }
.q-board__hint[hidden] { display: none; }

@media (max-width: 980px) {
  .q__layout { grid-template-columns: minmax(0, 1fr); }
  .q-board { position: static; }
  .q-progress { display: none; }
}
@media (max-width: 560px) {
  .q-sheet { rotate: 0deg; padding-inline: 18px; margin-inline: -4px; }
  .q-sheet__tag { right: 64px; }
  .q-nav { flex-wrap: wrap; }
  .q-nav .ink-tag { width: 100%; justify-content: center; }
  .q-nav [data-back] { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
