@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 650; font-stretch: 85% 100%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Architects Daughter"; src: url("/assets/fonts/architects-daughter.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/*
 * A drafting table on linen: drawings taped down, pencil linework, and one
 * accent, plum, as ink for dimensions, cables, notes and the action.
 * The palette is analogous and warm: plum is a red-leaning purple, a cousin of
 * the linen and cream, so it glows against them instead of fighting them.
 * Roughly 60% linen ground, 30% sections and paper, 10% plum.
 * Text stays crisp; only the drawings and a few notes look hand-made.
 */
:root {
  color-scheme: light;
  --ground: #f6f1e8;
  --section: #ede4d6;
  --board: #e9dfcf;
  --paper: #fffdf8;
  --ink: #2a211c;
  --ink-2: #5e5249;
  --pencil: #3b2f29;
  --shade: 42 33 28;
  --hair: rgb(var(--shade) / 0.12);
  --grid: rgb(107 58 122 / 0.06);
  --accent: #6b3a7a;
  --accent-deep: #552c62;
  --tape: rgb(222 201 160 / 0.6);
  --sans: "Instrument Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Architects Daughter", "Bradley Hand", cursive;
  --width: min(1200px, 100% - 48px);
  --section-space: clamp(80px, 10vw, 136px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .13 0 0 0 0 .10 0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground) var(--grain); background-blend-mode: multiply; color: var(--ink); font: 17px/1.55 var(--sans); font-synthesis: none; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 10px; z-index: 10; padding: 8px 14px; border-radius: 6px; background: var(--paper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: var(--width); margin: 0 auto; }

/* ── Type ──────────────────────────────────────────────── */
h1, h2 { margin: 0; font-weight: 600; font-stretch: 88%; text-wrap: balance; }
h3, b, strong { font-weight: 600; }
p { text-wrap: pretty; }
h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.9vw, 48px); line-height: 1.05; letter-spacing: -0.015em; }
.lead { max-width: 32em; margin: 20px 0 0; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); }
.micro { margin: 14px 0 0; font: 12px/1.5 var(--mono); color: var(--ink-2); }
.ink { color: var(--accent); }
/* One hand-drawn underline, drawn in once. */
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -3%; bottom: -0.16em; width: 106%; height: 0.34em; overflow: visible; }
.scribble path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ── Nav ───────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.nav-inner { width: var(--width); height: 58px; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; font-stretch: 88%; letter-spacing: -0.005em; text-decoration: none; }
/* The floor plan: the square is the room, the rectangle the desk against the back wall. */
.brand-mark { width: 26px; height: 26px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.nav nav a { text-decoration: none; transition: color 0.2s; }
.nav nav a:hover { color: var(--accent); }

/* ── Actions ───────────────────────────────────────────── */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 22px -12px rgb(85 44 98 / 0.55); transition: background-color 0.2s, transform 0.2s; }
.button:hover { background: var(--accent-deep); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.6; cursor: default; }
.pill { min-height: 36px; padding: 0 14px; font-size: 14px; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.link:hover { color: var(--accent); }
/* Line icons in plum ink, the first shape tinted. */
.icon { fill: rgb(107 58 122 / 0.14); stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon path + path { fill: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }

/* ── Sections ──────────────────────────────────────────── */
/* --surface is the section's own background, for anything that must mask a line on it. */
section { --surface: var(--ground); padding: var(--section-space) 0; border-top: 1px solid var(--hair); }
.raised { --surface: var(--section); background-color: var(--surface); }
.split { display: grid; gap: 40px; }
/* A question on the left, its answer on the right. */
.split > .lead { margin: 0; }
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); border-top: 0; }
.hero .split { align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .hero .split > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .split > :last-child { animation-delay: 0.15s; }
  .scribble svg { animation: draw 0.9s cubic-bezier(0.3, 0.6, 0.2, 1) 0.7s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes fade { from { opacity: 0; } }

/* ── Sheets taped to the board ─────────────────────────── */
.sheet { position: relative; margin: 0; border-radius: 2px; background: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px;
  box-shadow: 0 1px 2px rgb(var(--shade) / 0.12), 0 18px 40px -22px rgb(var(--shade) / 0.45); }
.sheet::before, .sheet::after { content: ""; position: absolute; top: -12px; width: 92px; height: 26px; background: var(--tape); box-shadow: 0 1px 2px rgb(var(--shade) / 0.12); }
.sheet::before { left: 28px; transform: rotate(-4deg); }
.sheet::after { right: 28px; transform: rotate(3deg); }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; margin: 0; padding: 12px 18px 14px; list-style: none; border-top: 1px solid var(--hair); font: 12px var(--mono); color: var(--ink-2); }
.legend b { margin-right: 6px; font-weight: 500; color: var(--accent); }
.stamp { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--hair); font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.stamp span:first-child { color: var(--accent); }
.drawing .obj { fill: none; stroke: var(--pencil); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: url(#pencil); }
.drawing .solid { fill: var(--paper); }
.drawing .screen { fill: rgb(107 58 122 / 0.07); }
.drawing .thin { stroke-width: 0.9; }
.drawing .floor { stroke-width: 1.8; }
.drawing .hid { fill: none; stroke: var(--ink-2); stroke-width: 0.9; stroke-dasharray: 4 3; }
.drawing .cable { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-dasharray: 5 3; stroke-linecap: round; stroke-linejoin: round; }
.drawing .eye { stroke: var(--ink-2); stroke-width: 0.8; stroke-dasharray: 8 4 2 4; }
.drawing .led { stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 1 4; stroke-linecap: round; }
.drawing .hatch { stroke: var(--ink-2); stroke-width: 0.6; }
.drawing .dim { fill: none; stroke: var(--accent); stroke-width: 0.9; }
.drawing .ext { stroke: var(--ink-2); stroke-width: 0.6; }
.drawing .leader { stroke: var(--pencil); stroke-width: 0.7; }
.drawing text { font: 11px var(--mono); fill: var(--ink-2); }
.drawing .dim-text { font-size: 12px; font-weight: 500; fill: var(--accent); text-anchor: middle; }
.drawing .num circle { fill: var(--paper); stroke: var(--pencil); stroke-width: 1; }
.drawing .num text { font-size: 10px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.drawing .note path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.drawing .note text { font: 16px var(--hand); fill: var(--accent); }

/* ── Antes e depois: two photos, the "before" clipped left of the line ── */
.photo { padding: 12px 12px 0; }
/* The photos sit on a clipboard: an oak board, the sheet held by a steel clip. */
.board { position: relative; padding: 42px 16px 20px; border-radius: 12px; background: repeating-linear-gradient(91deg, rgb(255 236 205 / 0.07) 0 2px, transparent 2px 9px), repeating-linear-gradient(89deg, rgb(110 68 41 / 0.09) 0 1px, transparent 1px 13px), linear-gradient(170deg, #d3a46c, #bd8850 60%, #b07c47); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), inset 0 -2px 0 rgb(80 50 25 / 0.25), 0 1px 2px rgb(var(--shade) / 0.2), 0 26px 50px -24px rgb(var(--shade) / 0.65); }
/* The paper hangs from the clip a little askew, as a real sheet does. */
.board .sheet { transform: rotate(-1.3deg); transform-origin: 50% 0; box-shadow: 0 1px 2px rgb(var(--shade) / 0.22), 0 8px 18px -8px rgb(var(--shade) / 0.45); }
.board .sheet::before, .board .sheet::after { content: none; }
/* The gallery on a tablet: a dark bezel, a camera on the top edge, a faint glare. */
.tablet { --bezel: 16px; margin: 0; }
.tablet-body { position: relative; padding: var(--bezel); border-radius: calc(var(--bezel) * 2); background: linear-gradient(145deg, #3d3936, #1c1917 55%, #2a2623); box-shadow: inset 0 0 0 1.5px #5d5752, inset 0 0 0 3px #121010, 0 2px 4px rgb(var(--shade) / 0.25), 0 30px 60px -28px rgb(var(--shade) / 0.7); }
.tablet-body::before { content: ""; position: absolute; top: calc(var(--bezel) / 2 - 3px); left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #4b5a70, #0b0d12 70%); }
.tablet .compare { border-radius: calc(var(--bezel) * 0.75); }
.tablet .compare::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgb(255 255 255 / 0.12), transparent 38%); pointer-events: none; }
.tablet .stamp { padding: 16px 4px 0; border-top: 0; }
.clip { position: absolute; z-index: 2; top: -8px; left: 50%; width: clamp(118px, 24%, 168px); height: auto; transform: translateX(-50%); filter: drop-shadow(0 3px 2px rgb(40 25 15 / 0.35)); }
.compare { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--board); --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.tag { position: absolute; top: 14px; padding: 5px 10px; border-radius: 3px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; }
.tag-before, .look .tag { left: 14px; background: rgb(255 253 248 / 0.92); color: var(--ink); }
.tag-after { right: 14px; background: var(--accent); color: #fff; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.compare .handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); color: var(--accent); font: 500 15px/1 var(--mono); transform: translate(-50%, -50%); box-shadow: 0 6px 18px -6px rgb(var(--shade) / 0.5); }
/* Without JavaScript the photos stay half and half, so nothing invites a drag. */
.compare input[hidden] ~ .handle::after { display: none; }
.compare input:focus-visible ~ .handle::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 30px; padding: 4px; border-radius: 8px; background: rgb(var(--shade) / 0.08); }
.segmented label { padding: 9px 16px; border-radius: 6px; font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: color 0.2s, background-color 0.2s; }
.segmented label:hover { color: var(--ink); }
.projects:has(#projeto-1:checked) [for="projeto-1"], .projects:has(#projeto-2:checked) [for="projeto-2"], .projects:has(#projeto-3:checked) [for="projeto-3"] { background: var(--accent); color: #fff; }
.projects:has(#projeto-1:focus-visible) [for="projeto-1"], .projects:has(#projeto-2:focus-visible) [for="projeto-2"], .projects:has(#projeto-3:focus-visible) [for="projeto-3"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.project { display: none; }
.projects:has(#projeto-1:checked) .projeto-1, .projects:has(#projeto-2:checked) .projeto-2, .projects:has(#projeto-3:checked) .projeto-3 { display: block; animation: fade 0.4s ease both; }
.project p { margin: 18px 0 0; color: var(--ink-2); }

/* ── Por que sob medida: ready-made against made to measure ── */
.versus { width: 100%; margin: 32px 0 0; border-collapse: collapse; font-size: 16px; line-height: 1.35; }
.versus th, .versus td { padding: 14px 12px 14px 0; border-top: 1px solid var(--hair); text-align: left; vertical-align: baseline; font-weight: 500; }
.versus thead > tr > * { padding-top: 0; border-top: 0; }
.versus tbody tr:last-child > * { border-bottom: 1px solid var(--hair); }
.versus thead th, .versus tbody th { font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.versus thead th:last-child { color: var(--accent); }
.versus tbody th { width: 24%; }
.versus td:nth-child(2) { color: var(--ink-2); }
.versus td:last-child { font-weight: 600; }
.versus td::before { margin-right: 6px; font-family: var(--hand); }
.versus td:nth-child(2)::before { content: "✗" / ""; }
.versus td:last-child::before { content: "✓" / ""; color: var(--accent); }
.verdict { max-width: 26em; margin: 28px 0 0; font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }

/* ── Qual é o seu estilo: one room in five styles, the photo beside a sand board ── */
.estilos { display: grid; overflow: hidden; border-radius: 8px; box-shadow: 0 1px 2px rgb(var(--shade) / 0.14), 0 24px 50px -30px rgb(var(--shade) / 0.6); }
.estilo-fotos { position: relative; isolation: isolate; aspect-ratio: 3 / 2; margin: 0; background: var(--board); }
.estilo-fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.estilo-fotos figcaption { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 5px 10px; border-radius: 3px; background: rgb(255 253 248 / 0.92); font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
/* The board: sand, grain, and four material samples drawn in pencil in the corner beside the button. */
.estilo-painel { padding: clamp(28px, 3.4vw, 44px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.05' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2'/%3E%3C/filter%3E%3Cg fill='none' stroke='%233b2f29' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' opacity='.16' filter='url(%23p)'%3E%3Cg transform='rotate(-5 54 62)'%3E%3Crect x='16' y='24' width='76' height='76' rx='2'/%3E%3Cpath d='M20 38c16-5 32 4 68-3M20 52c14-3 26 5 40 1s20-6 28-2M20 66c18 4 30-6 46-2s14 3 22 0M20 82c12-3 30 4 68-2M20 94c20 2 44-4 68 0'/%3E%3Cellipse cx='58' cy='61' rx='7' ry='3.5'/%3E%3C/g%3E%3Cg transform='rotate(4 150 50)'%3E%3Crect x='112' y='12' width='76' height='76' rx='2'/%3E%3Cpath d='M112 27h76M112 42h76M112 57h76M112 72h76M131 12v15M169 12v15M150 27v15M131 42v15M169 42v15M150 57v15M131 72v16M169 72v16'/%3E%3C/g%3E%3Cg transform='rotate(3 64 158)'%3E%3Crect x='26' y='120' width='76' height='76' rx='2'/%3E%3Cpath d='M35.5 120v76M26 129.5h76'/%3E%3Cpath d='M45.0 120v76M26 139.0h76'/%3E%3Cpath d='M54.5 120v76M26 148.5h76'/%3E%3Cpath d='M64.0 120v76M26 158.0h76'/%3E%3Cpath d='M73.5 120v76M26 167.5h76'/%3E%3Cpath d='M83.0 120v76M26 177.0h76'/%3E%3Cpath d='M92.5 120v76M26 186.5h76'/%3E%3C/g%3E%3Cg transform='rotate(-7 160 146)'%3E%3Crect x='122' y='108' width='76' height='76' rx='2'/%3E%3Cpath d='M134 122l5 2-2 4-4-1zM160 118l6 1v5l-6-1zM183 130l4 3-3 4-4-3zM142 148l6-1 1 5-5 1zM170 150l3-4 4 3-3 4zM131 170l5 1-1 5-5-2zM156 172l4-3 3 4-4 3zM184 166l5 2-3 4-3-3zM150 134l2 2-2 2-2-2zM176 116l2 2-2 2-2-2zM138 160l2 2-2 2-2-2zM190 150l2 2-2 2-2-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") right -16px bottom -30px / 112px no-repeat, var(--grain) var(--board); background-blend-mode: multiply; }
.estilo-painel .lead { margin-top: 14px; }
.estilo-lista { margin-top: 28px; border-top: 1px solid var(--hair); }
.estilo-lista label { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 2px; border-bottom: 1px solid var(--hair); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink-2); cursor: pointer; transition: color 0.2s; }
/* A radio's ring, filled with plum when picked, so the pick never rests on weight alone. */
.estilo-lista label::after { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px rgb(var(--shade) / 0.3); transition: box-shadow 0.2s; }
.estilo-lista label:hover { color: var(--ink); }
.estilo-lista label:hover::after { box-shadow: inset 0 0 0 1.5px var(--accent); }
.estilo-lista input:checked + label { font-weight: 600; color: var(--ink); }
.estilo-lista input:checked + label::after { box-shadow: inset 0 0 0 6px var(--accent); }
.estilo-lista input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* The five lines share one place, bottom-aligned, so the button never moves. */
.estilo-textos { display: grid; margin-top: 24px; }
.estilo-textos > div { grid-area: 1 / 1; align-self: end; }
.estilo-textos p { margin: 0 0 14px; color: var(--ink-2); }
/* Only the picked style's photo and line show, with no delay; the others wait, hidden, in the same place. */
.estilo-fotos img, .estilo-textos > div { visibility: hidden; opacity: 0; }
.estilos:has(#estilo-ver-nogueira:checked) .estilo-nogueira,
.estilos:has(#estilo-ver-escandinavo:checked) .estilo-escandinavo,
.estilos:has(#estilo-ver-industrial:checked) .estilo-industrial,
.estilos:has(#estilo-ver-minimalista:checked) .estilo-minimalista,
.estilos:has(#estilo-ver-japandi:checked) .estilo-japandi { z-index: 1; visibility: visible; opacity: 1; transition-delay: 0s; }
@media (prefers-reduced-motion: no-preference) {
  /* The new photo fades in over the old one, which leaves once covered; the new line fades in. */
  .estilo-fotos img { transition: opacity 0.5s 0.5s, visibility 0s 1s; }
  .estilo-textos > div { transition: opacity 0.4s; }
}
@media (min-width: 1069px) {
  .estilos { grid-template-columns: 3fr 2fr; }
  .estilo-fotos { aspect-ratio: auto; }
  .estilo-painel { background-position: right -20px bottom -50px, 0 0; background-size: 150px, auto; }
  .estilo-lista label { min-height: 50px; }
}

/* ── Como funciona · O que você recebe ─────────────────── */
.phase { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.phase small { font-size: inherit; color: var(--ink-2); }
/* ── Como funciona: a card per step, the cut between the two packages ── */
.how-head { display: grid; gap: 16px 64px; align-items: end; margin-bottom: 44px; }
.how-head .lead { margin: 0; }
.guarantee { color: var(--ink); font-weight: 600; }
.step-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 18px; margin: 0; padding: 0; list-style: none; }
.step-card h4 { margin: 12px 0 4px; font-size: 16px; line-height: 1.25; }
.step-card p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pic { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 6px; background: var(--paper); box-shadow: 0 1px 2px rgb(var(--shade) / 0.16), 0 12px 24px -16px rgb(var(--shade) / 0.5); }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pic:hover img { transform: scale(1.04); }
.num { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font: 500 12px var(--mono); }
/* The button covers the picture; its label sits in a corner. */
.pic .example { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pic .example:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
.chip-note { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 3px; background: rgb(255 253 248 / 0.92); font: 500 10.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.step-end { display: grid; align-content: center; justify-items: start; gap: 14px; padding: 20px; border: 1.5px dashed rgb(107 58 122 / 0.5); border-radius: 6px; }
.step-end p { margin: 0; font: 20px/1.25 var(--hand); color: var(--accent); }
.open-note { display: flex; gap: 16px; align-items: center; margin: 40px 0 0; padding: 18px 22px; border-radius: 8px; background: var(--paper); box-shadow: 0 1px 2px rgb(var(--shade) / 0.14); color: var(--ink-2); }
.open-note .icon { flex: none; width: 40px; height: 40px; }
.open-note b { color: var(--ink); }

/* ── Quanto custa: the steps on one rail, under what each price covers ── */
.trilha { margin-top: 36px; }
.rail-scroll { overflow-x: auto; padding: 4px 4px 8px; }
.rail-brackets, .rail-nodes { min-width: 820px; }
.rail-brackets { display: grid; grid-template-columns: 5fr 4.2fr; gap: 28px; margin-bottom: 14px; font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.rail-brackets span { padding-bottom: 8px; border-bottom: 2px solid var(--accent); color: var(--accent); }
.rail-brackets span + span { border-color: rgb(var(--shade) / 0.35); color: var(--ink-2); }
.rail-nodes { position: relative; display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.rail-nodes::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 2px; background: rgb(var(--shade) / 0.18); }
/* The picked step sets these on its label (below); everything else reads them. */
.rail-nodes label { position: relative; display: grid; justify-items: center; gap: 10px; width: 92px; text-align: center; color: var(--node-ink, var(--ink)); cursor: pointer; }
.rail-nodes b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--node-fill, var(--paper)); box-shadow: var(--node-ring, 0 0 0 2px rgb(var(--shade) / 0.2)); font: 500 13px var(--mono); color: var(--node-text, var(--ink-2)); transition: box-shadow 0.2s, color 0.2s; }
.rail-nodes span { font-size: 14px; font-weight: 600; line-height: 1.2; }
.rail-nodes label:hover { --node-ring: 0 0 0 2px var(--accent); }
.rail-cut svg { width: 22px; margin-top: 9px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; background: var(--surface); }
.trilha:has(#trilha-1:checked) [for="trilha-1"], .trilha:has(#trilha-2:checked) [for="trilha-2"], .trilha:has(#trilha-3:checked) [for="trilha-3"], .trilha:has(#trilha-4:checked) [for="trilha-4"], .trilha:has(#trilha-5:checked) [for="trilha-5"], .trilha:has(#trilha-6:checked) [for="trilha-6"], .trilha:has(#trilha-7:checked) [for="trilha-7"], .trilha:has(#trilha-8:checked) [for="trilha-8"], .trilha:has(#trilha-9:checked) [for="trilha-9"] { --node-ink: var(--accent); --node-fill: var(--accent); --node-text: #fff; --node-ring: 0 0 0 4px rgb(107 58 122 / 0.2); }
.trilha input:focus-visible + .rail-panel { outline: 2px solid var(--accent); outline-offset: 4px; }
.rail-panel { display: none; }
.trilha input:checked + .rail-panel { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; margin-top: 26px; padding: 16px; border-radius: 8px; background: var(--paper); box-shadow: 0 1px 2px rgb(var(--shade) / 0.14), 0 20px 40px -26px rgb(var(--shade) / 0.5); animation: fade 0.3s ease both; }
.rail-tag { margin: 0; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.rail-panel .rail-name { margin: 6px 0 0; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.rail-panel p:not(.rail-tag) { margin: 6px 0 16px; color: var(--ink-2); }

/* ── Quer ver antes: every example in a frosted showcase, picked from its list ── */
.browser { display: grid; gap: 40px; }
.showcase .lead { margin: 14px 0 26px; }
.vitrine { position: relative; padding: 12px 12px 0; background: var(--paper); box-shadow: 0 1px 2px rgb(var(--shade) / 0.16), 0 22px 44px -26px rgb(var(--shade) / 0.6); transform: rotate(-1deg); }
.vitrine-shot { display: none; margin: 0; }
.vitrine input:checked + .vitrine-shot { display: block; }
.vitrine figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.vitrine .example-gate { top: 12px; left: 12px; right: 12px; padding: 12px; }
.vitrine-cta { display: none; align-items: center; gap: 16px; margin-top: 26px; }
.vitrine-cta p { margin: 0; font: 20px var(--hand); color: var(--accent); }
.examples-unlocked .vitrine-cta { display: flex; }
.browser-list { margin: 0; padding: 0; list-style: none; }
.browser-list label { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: baseline; padding: 14px; border-radius: 6px; background: var(--row-fill, transparent); box-shadow: var(--row-lift, none); cursor: pointer; transition: background-color 0.2s; }
.browser-list label:hover { --row-fill: rgb(255 253 248 / 0.6); }
.browser-list b { font: 600 30px/1 var(--sans); letter-spacing: -0.02em; color: var(--row-num, rgb(var(--shade) / 0.28)); }
.browser-list strong { display: block; font-size: 18px; color: var(--ink); }
.browser-list span { color: var(--ink-2); }
.browser:has(#vitrine-1:checked) [for="vitrine-1"], .browser:has(#vitrine-2:checked) [for="vitrine-2"], .browser:has(#vitrine-3:checked) [for="vitrine-3"], .browser:has(#vitrine-4:checked) [for="vitrine-4"], .browser:has(#vitrine-5:checked) [for="vitrine-5"], .browser:has(#vitrine-6:checked) [for="vitrine-6"], .browser:has(#vitrine-7:checked) [for="vitrine-7"], .browser:has(#vitrine-8:checked) [for="vitrine-8"], .browser:has(#vitrine-9:checked) [for="vitrine-9"] { --row-fill: var(--paper); --row-lift: 0 1px 2px rgb(var(--shade) / 0.14); --row-num: var(--accent); }
.list-cut .cut { margin: 8px 14px; }

/* Where "só o projeto" ends: a cut line, by hand. */
.cut { display: flex; align-items: center; gap: 12px; margin: 30px 0 36px; font: 20px/1.2 var(--hand); color: var(--accent); }
.cut::before { content: ""; order: 1; flex: 1; border-top: 1.5px dashed; }
.cut span { order: 2; }
.cut svg { flex: none; width: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
/* ── Exemplos: a frosted dialog, unlocked with an e-mail ─── */
.example-dialog { width: min(940px, 100% - 24px); max-height: calc(100% - 24px); margin: auto; padding: 0; border: 1px solid rgb(255 255 255 / 0.65); border-radius: 16px; background: rgb(250 246 239 / 0.72); color: var(--ink); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); box-shadow: 0 40px 100px -30px rgb(var(--shade) / 0.75); overflow: auto; }
.example-dialog::backdrop { background: rgb(42 33 28 / 0.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body:has(.example-dialog[open]) { overflow: hidden; }
.example-panel { position: relative; padding: 22px; }
.example-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgb(255 253 248 / 0.85); color: var(--ink); font: 400 24px/1 var(--sans); cursor: pointer; box-shadow: 0 2px 8px -2px rgb(var(--shade) / 0.35); }
.example-stage { position: relative; }
.example-figure { margin: 0; }
.example-image { overflow: hidden; aspect-ratio: 3 / 2; border-radius: 10px; background: var(--board); }
.example-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter 0.6s, transform 0.6s; }
:root:not(.examples-unlocked) .example-image img { filter: blur(18px) saturate(1.1); transform: scale(1.08); }
.example-figure figcaption { margin-top: 14px; color: var(--ink-2); }
.example-figure figcaption b { color: var(--ink); }
.example-figure figcaption small { margin-left: 4px; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.example-gate { position: absolute; top: 0; left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 430px); place-content: center; aspect-ratio: 3 / 2; padding: 20px; }
.examples-unlocked .example-gate { display: none; }
.gate-card { padding: 26px 26px 22px; border: 1px solid rgb(255 255 255 / 0.75); border-radius: 14px; background: rgb(255 253 248 / 0.66); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 60px -28px rgb(var(--shade) / 0.7); }
.gate-title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.gate-text { margin: 6px 0 16px; color: var(--ink-2); }
.gate-row { display: flex; gap: 8px; }
.gate-row input { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--paper); color: var(--ink); font: 17px var(--sans); box-shadow: inset 0 0 0 1px var(--hair); }
.gate-row input:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.gate-notice { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.gate-status { margin: 10px 0 0; font-weight: 600; }
.gate-status:empty { display: none; }
.gate-status[data-state="error"] { color: #8a1c0c; }
.example-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; font: 500 13px var(--mono); letter-spacing: 0.08em; color: var(--ink-2); }
.example-nav button { width: 42px; height: 42px; border: 1px solid var(--hair); border-radius: 50%; background: rgb(255 253 248 / 0.75); color: var(--ink); font: 400 22px/1 var(--sans); cursor: pointer; }
.example-nav button:hover { border-color: var(--accent); color: var(--accent); }

/* ── Quanto custa: two offers, the same eight lines in each ── */
.offers { display: grid; gap: 28px; margin-top: 48px; }
.offer { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 6px; background: var(--paper); box-shadow: 0 1px 2px rgb(var(--shade) / 0.12), 0 18px 40px -26px rgb(var(--shade) / 0.45); }
.offer.featured { box-shadow: 0 0 0 2px var(--accent), 0 24px 48px -24px rgb(85 44 98 / 0.45); }
.offer .badge { position: absolute; top: -12px; left: 24px; margin: 0; padding: 4px 10px; border-radius: 3px; background: var(--accent); color: #fff; font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.offer h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.offer .for { margin: 6px 0 0; color: var(--ink-2); }
.steps-bar { display: flex; gap: 4px; margin: 22px 0 0; }
.steps-bar i { flex: 1; height: 6px; border-radius: 3px; background: rgb(var(--shade) / 0.12); }
.steps-bar .on { background: var(--accent); }
.steps-label { margin: 8px 0 0; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.offer .cost { display: grid; gap: 2px; margin: 22px 0 18px; padding-top: 20px; border-top: 1px solid var(--hair); color: var(--ink-2); }
.offer .cost, .versus td { font-variant-numeric: tabular-nums; }
.offer .cost b { font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
/* Payment for the full package: one bar, the three parts in time order. */
.pay { --plum-light: #b493c0; --plum-dark: #3b1a46; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hair); }
.pay-title { margin: 0 0 12px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.pay-bar { display: grid; grid-template-columns: 25fr 65fr minmax(44px, 10fr); gap: 3px; border-radius: 6px; overflow: hidden; }
.pay-bar span { display: grid; place-items: center; height: 30px; background: var(--tone); color: #fff; font: 500 12px var(--mono); }
.pay-bar span:first-child { color: var(--plum-dark); }
/* Light to dark, first payment to last; the legend's dots carry the same tones. */
.pay-bar span:nth-child(1), .pay-when li:nth-child(1) { --tone: var(--plum-light); }
.pay-bar span:nth-child(2), .pay-when li:nth-child(2) { --tone: var(--accent); }
.pay-bar span:nth-child(3), .pay-when li:nth-child(3) { --tone: var(--plum-dark); }
.pay-when { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.pay-when li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pay-when li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); }
@media (max-width: 734px) { .pay-when { flex-direction: column; gap: 6px; } }
.button.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.button.ghost:hover { background: rgb(107 58 122 / 0.08); }
.includes { margin: 22px 0 0; padding: 0; list-style: none; }
.includes li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--hair); font-weight: 500; }
.includes li::before { content: "✓" / ""; width: 12px; font: 19px var(--hand); color: var(--accent); }
.includes .no { font-weight: 400; color: var(--ink-2); }
.includes .no::before { content: "–" / ""; color: var(--ink-2); }
.undecided { margin: 30px 0 0; color: var(--ink-2); }

/* ── Periféricos: the finished room, each piece pinned to a paper card ── */
.paper-tag { position: relative; display: inline-block; margin: 0; padding: 9px 15px 9px 30px; border-radius: 3px 12px 12px 3px; background: var(--paper); font-size: 15px; font-weight: 600; line-height: 1.3; box-shadow: 0 1px 2px rgb(var(--shade) / 0.15); }
.paper-tag::before { content: ""; position: absolute; top: 50%; left: 11px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 1px 1px rgb(var(--shade) / 0.35); }
.paper-tag.soon { margin-top: 24px; background: var(--accent); color: #fff; transform: rotate(-1.2deg); }
.look { position: relative; container-type: inline-size; margin-top: 48px; }
.look-note { margin: 16px 0 0; color: var(--ink-2); }
.look > img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 1px 2px rgb(var(--shade) / 0.15), 0 24px 46px -24px rgb(var(--shade) / 0.6); }
.look-list { margin: 0; padding: 0; list-style: none; }
/*
 * Each piece: where it sits (x, y, in % of the photo's width and height), where
 * its card's edge meets the thread (a, in % of the height) and where the thread
 * meets the card (lead, a fraction of the card's width). The photo is 3:2, so 1%
 * of its height is 2/3 cqw, even when the list sits below it.
 */
.look-speaker { --x: 34.5; --y: 42.7; --a: 68.8; --lead: 0.95; }
.look-organizer { --x: 46.4; --y: 58.6; --a: 19; --lead: 0.6; }
.look-keyboard { --x: 62.4; --y: 56.4; --a: 82.5; --lead: 0.06; }
.look-arm { --x: 74.9; --y: 47.4; --a: 65.2; --lead: 0.3; }
.look-lamp { --x: 75.5; --y: 24.6; --a: 19; --lead: 0.35; }
.look-dot { position: absolute; z-index: 1; left: calc(var(--x) * 1cqw); top: calc(var(--y) * 2cqw / 3); translate: -50% -50%; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff, 0 2px 8px rgb(var(--shade) / 0.5); }
.look-card { display: flex; align-items: flex-start; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 5px; background: var(--paper); box-shadow: 0 1px 2px rgb(var(--shade) / 0.18), 0 12px 26px -14px rgb(var(--shade) / 0.6); }
.look-card img { flex: none; width: 46px; height: 46px; border-radius: 3px; }
.look-card p { flex: 1; margin: 0; line-height: 1.25; }
.look-card p > * { display: block; }
.look-card b { font-size: 14px; }
.look-card p > span { font-size: 12.5px; color: var(--ink-2); }
/* A row per product, the whole row a link: the model, then the shop. */
.look-card p > a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 24px; border-top: 1px solid var(--hair); font-size: 13px; font-weight: 600; text-decoration: none; }
.look-card p > span + a { margin-top: 5px; }
.look-card a:hover { color: var(--accent); }
.look-card small { font: 500 9.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .look-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; animation: look-pulse 2.6s ease-out infinite; }
  .look-card small { transition: translate 0.2s; }
  .look-card a:hover small { translate: 2px -2px; }
}
@keyframes look-pulse { from { opacity: 0.8; } to { opacity: 0; scale: 2.2; } }
/* Up to 919 px: numbered pins on the photo, the cards listed below it, in two columns when they fit. */
@media (max-width: 919px) {
  /* No thread to clear the monitor here, so this pin moves onto the open mat. */
  .look-organizer { --x: 50.5; }
  .look-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-top: 22px; }
  /* The pin and its card carry the same number. */
  .look-dot, .look-card::before { display: grid; place-items: center; width: 20px; height: 20px; color: #fff; font: 500 10.5px/1 var(--mono); }
  .look-dot::before, .look-card::before { content: counter(list-item); }
  .look-card { position: relative; height: 100%; }
  .look-card::before { position: absolute; top: -7px; left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--paper); }
  .look-card img { width: 56px; height: 56px; }
  .look-card b { font-size: 16px; }
  .look-card p > span { font-size: 14px; }
  .look-card p > a { min-height: 44px; font-size: 14.5px; }
  .look-card small { font-size: 10.5px; }
}
/* From 920 px, where the two-product cards fit: every card on the photo, a thread from it to a dot on its piece. */
@media (min-width: 920px) {
  .look-dot { width: 12px; height: 12px; }
  .look-card { position: absolute; left: calc(var(--x) * 1cqw); top: calc(var(--a) * 2cqw / 3); translate: calc(var(--lead) * -100%) 0; white-space: nowrap; }
  .look-card::after { content: ""; position: absolute; bottom: 100%; left: calc(var(--lead) * 100%); width: 2px; height: calc((var(--a) - var(--y)) * 2cqw / 3); margin-left: -1px; background: #fff; box-shadow: 0 0 2px rgb(var(--shade) / 0.5); }
  .look-up .look-card { translate: calc(var(--lead) * -100%) -100%; }
  .look-up .look-card::after { top: 100%; bottom: auto; height: calc((var(--y) - var(--a)) * 2cqw / 3); }
}

/* ── Quem faz: a polaroid taped to the board ───────────── */
.polaroid { position: relative; justify-self: center; width: min(360px, 100%); margin: 12px 0 0; padding: 14px 14px 16px; background: var(--paper); transform: rotate(-2.2deg); box-shadow: 0 1px 2px rgb(var(--shade) / 0.15), 0 24px 46px -24px rgb(var(--shade) / 0.6); }
.polaroid::before { content: ""; position: absolute; top: -13px; left: 50%; width: 110px; height: 28px; margin-left: -55px; background: var(--tape); transform: rotate(3deg); box-shadow: 0 1px 2px rgb(var(--shade) / 0.12); }
.polaroid img { display: block; width: 100%; height: auto; }
.polaroid figcaption { margin-top: 10px; font: 23px/1.2 var(--hand); text-align: center; }
.founder p { max-width: 34em; margin: 20px 0 0; font-size: 19px; color: var(--ink-2); }
.founder .signature { margin-top: 26px; font: 34px/1 var(--hand); color: var(--accent); }
.founder .signature small { display: block; margin-top: 8px; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.with-avatar { display: flex; align-items: center; gap: 10px; }
.with-avatar img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper); }

/* ── E se eu não gostar: three promises ───────────────── */
.promises { display: grid; gap: 34px; margin: 0; padding: 0; list-style: none; }
.promises li { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; }
.promises .icon { width: 64px; height: 64px; }
.promises h3 { margin: 6px 0 0; font-size: 24px; letter-spacing: -0.02em; }
.promises p { max-width: 22em; margin: 0; color: var(--ink-2); text-wrap: balance; }
@media (min-width: 735px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1069px) { .promises { grid-template-columns: repeat(4, 1fr); } }

/* ── Dúvidas ───────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-child { border-top: 1px solid var(--hair); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 19px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 40em; margin: 0 0 20px; color: var(--ink-2); }

/* ── Formulário: um cartão de papelão ──────────────────── */
/* Como começo: the page's one plum band, so the form is where the eye lands. */
#conversa { border-top: 0; background: var(--accent) var(--grain); background-blend-mode: multiply; }
#conversa h2 { color: var(--paper); }
#conversa .lead { color: rgb(246 241 232 / 0.85); }
#conversa .form { box-shadow: 0 1px 2px rgb(20 8 24 / 0.3), 0 34px 70px -30px rgb(20 8 24 / 0.75); }
.form { display: grid; gap: 28px; padding: clamp(20px, 3.5vw, 36px); border-radius: 4px; background: var(--board) var(--grain); background-blend-mode: multiply; box-shadow: 0 1px 2px rgb(var(--shade) / 0.15), 0 24px 50px -28px rgb(var(--shade) / 0.6); }
.question { min-width: 0; margin: 0; padding: 0; border: 0; }
.question legend { margin-bottom: 12px; padding: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.question legend small, .field small { margin-left: 6px; font: 400 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); opacity: 0.75; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip > span { display: inline-flex; flex-direction: column; padding: 11px 15px; border-radius: 4px; background: var(--paper); font-size: 15px; font-weight: 500; line-height: 1.25; box-shadow: 0 1px 1px rgb(var(--shade) / 0.12); transition: background-color 0.2s, color 0.2s, transform 0.2s; }
.chip > span small { margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-2); }
.chip:hover > span { transform: translateY(-1px); }
.chip input:checked + span { background: var(--accent); color: #fff; }
.chip input:checked + span small { color: rgba(255, 255, 255, 0.82); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.chip input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.fields { display: grid; gap: 14px; }
/* "Outros" opens a field to say which. */
.other { display: none; margin-top: 10px; }
.question:has(input[value="outros"]:checked) .other { display: block; }
.other input { width: 100%; }
.field { display: grid; gap: 8px; align-content: start; font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
/* The line under a field: the address found, a suggestion, or what to fix. */
.field[hidden] { display: none; }
.field .field-note { margin: 0; font: 400 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); opacity: 1; }
.field-note:empty { display: none; }
.field-note[data-kind="ok"]::before { content: "✓ " / ""; font-weight: 600; color: var(--accent); }
.field-note:is([data-kind="error"], [data-kind="warn"]) { font-weight: 600; color: #8a1c0c; }
.field-note button { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.field input[aria-invalid="true"] { box-shadow: 0 0 0 2px #8a1c0c; }
.field input, .other input { min-height: 50px; padding: 0 16px; border: 0; border-radius: 4px; background: var(--paper); color: var(--ink); font: 17px var(--sans); letter-spacing: 0; text-transform: none; box-shadow: 0 1px 1px rgb(var(--shade) / 0.12); }
.field input:focus, .other input:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }
/* Photos: a drop zone on the card, then the chosen photos as small prints. */
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 18px; border: 1.5px dashed rgb(107 58 122 / 0.55); border-radius: 6px; background: var(--paper); text-align: center; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.dropzone svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dz-title { font-weight: 600; }
.dz-note { font-size: 13px; color: var(--ink-2); }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: rgb(107 58 122 / 0.06); }
.dropzone.is-over { border-style: solid; }
.dropzone:focus-within { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.dropzone.is-full { cursor: default; opacity: 0.6; }
/* With JavaScript the whole zone is the picker; without it, the browser's own input lists the files. */
.photos.is-enhanced .dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photos.is-enhanced .dropzone.is-full input { cursor: default; }
.photos:not(.is-enhanced) .dropzone input { max-width: 100%; margin-top: 6px; font: 14px var(--sans); }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.thumbs li { position: relative; display: grid; place-items: center; width: 76px; height: 76px; padding: 4px; background: var(--paper); font-size: 10px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; box-shadow: 0 1px 2px rgb(var(--shade) / 0.2); transform: rotate(-1.5deg); }
.thumbs li:nth-child(even) { transform: rotate(1.5deg); }
.thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font: 600 15px/1 var(--sans); cursor: pointer; }
.thumbs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.photos-error { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #8a1c0c; }
.photos-error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.form .button { justify-self: start; }
.notice { margin: -10px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink); opacity: 0.8; }
.status { margin: 0; font-size: 17px; }
.status:empty { display: none; }
.status[data-state="error"] { color: #8a1c0c; font-weight: 600; }
.status[data-state="done"] { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.form.is-done > :not(.status, .agenda) { display: none; }
/* After sending: Cal.com's calendar, which reports its own height. */
.agenda { position: relative; display: grid; gap: 14px; }
.agenda iframe { display: block; width: 100%; height: 620px; border: 0; }
.agenda:not(.is-ready)::before { content: "Carregando a agenda…"; position: absolute; top: 8px; left: 0; font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.agenda p { margin: 0; font-size: 14px; color: var(--ink-2); }
.agenda-page { display: block; width: 100%; height: min(900px, 85vh); margin: 28px 0; border: 0; border-radius: 4px; }

/* The options' looks: package cards with the step bar, pictograms, and scales. */
.chips:is(.packages, .people, .scale) { display: grid; gap: 10px; }
.chips.packages { grid-template-columns: repeat(3, 1fr); }
.chips.people { grid-template-columns: repeat(4, 1fr); }
.chips.scale { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.chips:is(.packages, .people, .scale) .chip { display: flex; }
.chips:is(.packages, .people, .scale) .chip > span { flex: 1; }
.chips:is(.packages, .people) .chip > span { padding: 16px; border-radius: 8px; font-size: 16px; font-weight: 600; }
.chips:is(.packages, .people) .chip > span { position: relative; }
/* A picked card gets a check, so the choice never rests on colour alone. */
.chips:is(.packages, .people) input:checked + span::after { content: "✓" / ""; position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); color: var(--accent); font: 600 13px/1 var(--sans); }
.chips.people .chip > span { align-items: center; gap: 8px; text-align: center; }
.chips.people svg { width: 54px; height: 40px; fill: none; stroke: var(--pencil); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chips.people input:checked + span svg { stroke: #fff; }
.chip .steps-bar { gap: 3px; margin: 12px 0 8px; }
.chip .steps-bar i { height: 5px; }
.chip input:checked + span .steps-bar i { background: rgb(255 255 255 / 0.3); }
.chip input:checked + span .steps-bar .on { background: #fff; }
.chips.scale .chip > span { align-items: center; justify-content: center; padding: 14px 6px; text-align: center; font-weight: 600; }

/* One question at a time, once app.js takes over. */
.step.final { display: grid; gap: 28px; }
.form.is-stepped .step:not(.is-current) { display: none; }
.form.is-stepped .step > legend { margin-bottom: 20px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.form.is-stepped .step > legend:focus { outline: none; }
.progress { display: grid; gap: 10px; }
.progress-bar { display: flex; gap: 4px; }
.progress-bar i { flex: 1; height: 6px; border-radius: 3px; background: rgb(var(--shade) / 0.14); transform-origin: left; }
.progress-bar .on { background: var(--accent); }
.progress-label { margin: 0; font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.step-nav { display: flex; align-items: center; gap: 16px; }
.step-nav .back { padding: 8px 0; border: 0; background: none; color: var(--ink-2); font: 500 13px var(--mono); cursor: pointer; }
.step-nav .back:hover { color: var(--accent); }
.step-nav .next { margin-left: auto; }
.progress[hidden], .step-nav[hidden], .step-nav [hidden] { display: none; }

/* "Sua ficha": the answers, handwritten, beside the form. */
.ficha { max-width: 420px; margin-top: 34px; padding: 24px 28px 16px; }
.ficha-title { margin: 0 0 10px; font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.ficha dl { margin: 0; }
.ficha dl div { display: grid; grid-template-columns: 116px 1fr; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--hair); }
.ficha dt { font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.ficha .now dt { color: var(--accent); }
.ficha dd { min-height: 24px; margin: 0; font: 20px/1.2 var(--hand); color: var(--accent); }
.ficha dd:empty { border-bottom: 1.5px dotted rgb(var(--shade) / 0.25); }

/* ── Rodapé: o carimbo da prancha ──────────────────────── */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--hair); font: 12px/1.6 var(--mono); color: var(--ink-2); }
.stamp-block { display: grid; border-radius: 4px; background: var(--paper); box-shadow: 0 1px 2px rgb(var(--shade) / 0.12); }
.stamp-block > div { padding: 14px 16px; }
.affiliate { margin: 14px 0 0; }
.stamp-block > div + div { border-top: 1px solid var(--hair); }
.stamp-block b { display: block; margin-bottom: 4px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* ── Páginas simples ───────────────────────────────────── */
.doc { width: min(720px, 100% - 48px); margin: 0 auto; padding: 72px 0 96px; }
.doc h1 { font-size: clamp(38px, 5vw, 52px); }
.doc h2 { margin: 40px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink-2); }

@media (min-width: 735px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .offers { grid-template-columns: 1fr 1fr; }
  .how-head { grid-template-columns: 5fr 7fr; }
  .stamp-block { grid-template-columns: 1.2fr 2fr 1fr 1fr; }
  .stamp-block > div + div { border-top: 0; border-left: 1px solid var(--hair); }
}
@media (max-width: 1068px) {
  .ficha { display: none; }
}
@media (min-width: 1069px) {
  .step-cards { grid-template-columns: repeat(5, 1fr); }
  .browser { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .showcase { position: sticky; top: 90px; }
  .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .hero .split { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  /* Nine steps are long; their heading stays in view. */
}
@media (max-width: 734px) {
  /* Each row of cards becomes a swipe. */
  .step-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .step-cards > li { scroll-snap-align: start; }
  .trilha input:checked + .rail-panel { grid-template-columns: 1fr; }
  /* The rail scrolls sideways; its right edge fades to say so, over empty space at the end. */
  .rail-scroll { padding-right: 48px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .vitrine { transform: none; }
  .tablet { --bezel: 10px; }
  .chips.packages { grid-template-columns: 1fr; }
  .chips.people { grid-template-columns: 1fr 1fr; }
  .example-panel { padding: 14px; }
  /* On a phone the form sits under the frosted image instead of over it. */
  .example-gate { position: static; aspect-ratio: auto; padding: 14px 0 0; }
  .nav nav { display: none; }
  .nav .pill { margin-left: auto; }
  .legend { grid-template-columns: 1fr 1fr; }
  .stamp { flex-direction: column; gap: 2px; }
  .drawing .note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
