/* Layout: revista de papelaria — seções empilhadas num container de 1200px, títulos enormes e justos, uma só cor de ação (mostarda), blocos escuros em café. */
:root {
  --paper: #faf9f7;      /* fundo da página */
  --white: #ffffff;
  --linen: #edecea;      /* nav, hovers */
  --parchment: #e0ddd7;  /* seções secundárias */
  --felt: #d3d3d3;       /* filetes */
  --slate: #6f7070;      /* texto secundário */
  --ink: #242424;        /* texto principal */
  --mustard: #f1ba35;    /* única cor de ação */
  --espresso: #30250b;   /* blocos escuros */
  --on-dark: #f6f1e4;
  --terracotta: #d26c46; --sage: #458e71; --cobalt: #3b59a3; --rust: #6c3c3c; /* só decorativas */
  --warn-bg: #fdf0cf; --warn: #6b4a00;
  /* prévia 3D */
  --male: #cfd3cb; --male-top: #458e71; --female: #e6e1d6; --female-floor: #b88f2a; --rule: #d3d3d3; --stage: #edecea;
  --f-sans: "Geist", "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 4px; --r: 8px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #17150f; --white: #211e16; --linen: #262219; --parchment: #2d281d; --felt: #3a3427; --slate: #a9a293; --ink: #f1ede4;
  --espresso: #0f0d08; --on-dark: #f6f1e4; --warn-bg: #3b2f12; --warn: #f4d58a;
  --male: #8f968a; --male-top: #5fae8e; --female: #b9b2a2; --female-floor: #d9a63a; --rule: #3a3427; --stage: #201d15; color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #17150f; --white: #211e16; --linen: #262219; --parchment: #2d281d; --felt: #3a3427; --slate: #a9a293; --ink: #f1ede4;
  --espresso: #0f0d08; --on-dark: #f6f1e4; --warn-bg: #3b2f12; --warn: #f4d58a;
  --male: #8f968a; --male-top: #5fae8e; --female: #b9b2a2; --female-floor: #d9a63a; --rule: #3a3427; --stage: #201d15; color-scheme: dark; }

[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.4; font-weight: 400; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); box-sizing: border-box; }
.eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
h1, h2, h3 { font-weight: 500; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(40px, 6vw, 71px); line-height: 1; letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0; }
.lead { font-size: 19px; line-height: 1.35; max-width: 56ch; }
.muted { color: var(--slate); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* botões */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--f-sans); text-decoration: none; border-radius: var(--r); padding: 12px 16px; border: 1px solid var(--ink); cursor: pointer; letter-spacing: .01em; }
.btn-primary { background: var(--mustard); color: #242424; border-color: #242424; }
.btn-primary:hover { background: #e7ab1f; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--linen); }
.btn:disabled { opacity: .45; cursor: progress; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--felt); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-weight: 500; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 22px; height: 22px; border-radius: 5px; background: var(--parchment); box-shadow: inset 1px 1px 0 var(--white), inset -1px -1px 0 color-mix(in srgb, var(--ink) 25%, transparent); display: grid; place-items: center; font-size: 12px; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.nav ul { display: flex; gap: 20px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 14px; font-weight: 500; }
.nav ul a { text-decoration: none; }
.nav ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .nav ul { display: none; } .nav .btn { margin-left: auto; } }

section { padding-block: 64px; }
.section-head { display: grid; gap: 16px; margin-bottom: 40px; }

/* hero */
.hero { padding-block: 48px 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: stretch; }
.hero h1 { font-size: clamp(56px, 9.4vw, 128px); line-height: .93; letter-spacing: -0.045em; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; justify-content: space-between; min-width: 0; }
.hero-copy .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.spec-line { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--slate); border-top: 1px solid var(--felt); padding-top: 16px; }
.art { background: var(--espresso); border-radius: var(--r); padding: 28px; display: grid; place-items: center; position: relative; min-height: 420px; overflow: hidden; }
.sheet { background: #f4f1ea; width: min(78%, 360px); aspect-ratio: 3 / 4; border-radius: 3px; transform: rotate(-4deg); box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); display: grid; place-items: center; position: relative; }
.sheet::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.015) 0 2px, transparent 2px 5px); border-radius: inherit; }
.blind { font-weight: 500; font-size: clamp(40px, 6vw, 64px); line-height: .9; letter-spacing: -0.04em; text-align: center; color: #f4f1ea; text-shadow: -1px -1px 1px rgba(0,0,0,.22), 1px 1px 1px rgba(255,255,255,.95), 2px 3px 4px rgba(0,0,0,.10); }
.art .tag { position: absolute; left: 20px; bottom: 18px; color: color-mix(in srgb, var(--on-dark) 70%, transparent); font-size: 12px; }
.art .badge { position: absolute; top: 18px; left: 20px; background: var(--mustard); color: #242424; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-sm); font-weight: 500; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .art { min-height: 340px; } }

/* oficina */
.workshop { background: var(--linen); border-block: 1px solid var(--felt); }
.tool { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 12px; height: 680px; }
.panel { background: var(--white); border: 1px solid var(--felt); border-radius: var(--r); overflow: auto; display: flex; flex-direction: column; min-width: 0; }
.group { padding: 16px; border-bottom: 1px solid var(--felt); display: grid; gap: 12px; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); font-weight: 500; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--linen); border-radius: var(--r); padding: 3px; gap: 3px; }
.tabs button { font: 500 14px var(--f-sans); border: 0; background: transparent; color: var(--slate); padding: 8px; border-radius: 6px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--felt); }
textarea, select { font: 15px var(--f-sans); width: 100%; box-sizing: border-box; background: var(--paper); color: var(--ink); border: 1px solid var(--felt); border-radius: var(--r); padding: 9px 11px; }
textarea { min-height: 72px; resize: vertical; }
.drop { border: 1px dashed var(--slate); border-radius: var(--r); padding: 18px 12px; text-align: center; color: var(--slate); cursor: pointer; font-size: 14px; }
.drop.over { border-color: var(--ink); background: var(--linen); color: var(--ink); }
.drop strong { color: var(--ink); font-weight: 500; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
.row label { font-size: 14px; }
.row output { font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.row input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--ink); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.check input { accent-color: var(--ink); }
.hint { font-size: 13px; color: var(--slate); }
.panel .actions { margin-top: auto; position: sticky; bottom: 0; background: var(--white); padding: 16px; display: grid; gap: 8px; border-top: 1px solid var(--felt); }
.panel .actions .btn { justify-content: center; padding: 14px; }
.stage { position: relative; background: var(--stage); border: 1px solid var(--felt); border-radius: var(--r); overflow: hidden; min-width: 0; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 8px; pointer-events: none; }
.fold { pointer-events: auto; background: color-mix(in srgb, var(--white) 94%, transparent); border: 1px solid var(--felt); border-radius: var(--r); padding: 10px 12px; max-width: 400px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--f-mono); font-size: 12px; background: color-mix(in srgb, var(--white) 94%, transparent); border: 1px solid var(--felt); border-radius: var(--r-sm); padding: 3px 8px; font-variant-numeric: tabular-nums; }
.status { position: absolute; top: 12px; left: 12px; right: 12px; display: grid; gap: 6px; }
.msg { background: var(--warn-bg); color: var(--warn); border-radius: var(--r); padding: 8px 12px; font-size: 13px; }
.busy { position: absolute; top: 14px; right: 14px; font-size: 12px; color: var(--slate); font-family: var(--f-mono); }
details.howto summary { cursor: pointer; font-size: 14px; font-weight: 500; }
details.howto ul { margin: 8px 0 0; padding-left: 18px; color: var(--slate); font-size: 13px; display: grid; gap: 4px; }
.workshop .note { margin-top: 12px; font-size: 13px; color: var(--slate); }
@media (max-width: 860px) {
  .tool { grid-template-columns: 1fr; height: auto; }
  .stage { height: 62vh; min-height: 380px; order: -1; }
  .panel { overflow: visible; }
  .panel .actions { position: static; }
  .specs { display: none; }
}

/* carimbo pronto */
.made { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.made-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.made-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 16px; }
.made-list li::before { content: "↳"; color: var(--slate); }
.product { background: var(--white); border: 1px solid var(--felt); border-radius: var(--r); padding: 12px; display: grid; gap: 12px; }
.product-img { aspect-ratio: 4 / 3; border-radius: 6px; background: var(--parchment); display: grid; place-items: center; position: relative; overflow: hidden; }
.plates { display: flex; gap: 6px; transform: rotate(-8deg); }
.plate { width: 110px; height: 150px; border-radius: 10px; display: grid; place-items: center; font-weight: 500; font-size: 22px; letter-spacing: -0.03em; line-height: .9; text-align: center; }
.plate.m { background: #cfd3cb; color: #cfd3cb; text-shadow: 1px 1px 0 rgba(255,255,255,.7), -1px -1px 0 rgba(0,0,0,.25), 2px 2px 2px rgba(0,0,0,.18); }
.plate.f { background: #e6e1d6; color: #e6e1d6; text-shadow: -1px -1px 0 rgba(255,255,255,.7), 1px 1px 0 rgba(0,0,0,.22); transform: scaleX(-1); }
.hinge { width: 10px; align-self: center; height: 120px; border-radius: 5px; background: repeating-linear-gradient(180deg, #bfc4bb 0 18px, #d9d3c5 18px 22px); }
.product .sale { position: absolute; top: 10px; left: 10px; background: var(--mustard); color: #242424; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: var(--r-sm); font-weight: 500; }
.product-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price { font-size: 14px; }
.price s { color: var(--slate); margin-left: 6px; }
@media (max-width: 860px) { .made { grid-template-columns: 1fr; } }

/* passos e recursos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { border-top: 1px solid var(--ink); padding-top: 16px; display: grid; gap: 10px; align-content: start; }
.step .n { font-family: var(--f-mono); font-size: 13px; color: var(--slate); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.feature { background: var(--white); border: 1px solid var(--felt); border-radius: var(--r); padding: 16px; display: grid; gap: 8px; align-content: start; }
.feature .k { font-family: var(--f-mono); font-size: 13px; color: var(--slate); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps, .features { grid-template-columns: 1fr; } }

/* para quem */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.use { border-radius: var(--r); padding: 20px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; color: #f6f1e4; }
.use b { font-weight: 500; font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.04em; line-height: .95; }
.use span { font-size: 14px; opacity: .9; max-width: 28ch; }
.use.t { background: var(--terracotta); } .use.s { background: var(--sage); } .use.c { background: var(--cobalt); } .use.r { background: var(--rust); }
@media (max-width: 960px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .uses { grid-template-columns: 1fr; } }

/* preços */
.pricing { background: var(--parchment); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan { background: var(--white); border: 1px solid var(--felt); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan.rec { border-color: var(--ink); }
.plan .badge { position: absolute; top: -10px; left: 16px; background: var(--mustard); color: #242424; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: var(--r-sm); font-weight: 500; border: 1px solid #242424; }
.plan .amount { font-size: 40px; letter-spacing: -0.04em; line-height: 1; }
.plan .amount small { font-size: 14px; letter-spacing: 0; color: var(--slate); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.plan li::before { content: "✓"; color: var(--sage); }
.plan .btn { margin-top: auto; justify-content: center; }
.pricing .note { margin-top: 20px; font-size: 14px; color: var(--slate); max-width: 70ch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }

/* vetor */
.vector { background: var(--espresso); color: var(--on-dark); border-radius: var(--r); padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; }
.vector h2 { color: var(--on-dark); }
.vector p { color: color-mix(in srgb, var(--on-dark) 78%, transparent); }
.vector .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vector .btn-ghost { color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 50%, transparent); }
.vector .btn-ghost:hover { background: rgba(255,255,255,.08); }
@media (max-width: 860px) { .vector { grid-template-columns: 1fr; } }

/* perguntas */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.faq details { border-top: 1px solid var(--felt); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--felt); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 19px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--slate); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--slate); max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* rodapé */
footer { border-top: 1px solid var(--felt); padding-block: 40px 32px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot .big { font-size: clamp(56px, 12vw, 140px); letter-spacing: -0.05em; line-height: .9; font-weight: 500; grid-column: 1 / -1; margin-top: 24px; color: var(--parchment); text-shadow: 1px 1px 0 var(--white), -1px -1px 0 color-mix(in srgb, var(--ink) 18%, transparent); }
.foot h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.foot details summary { cursor: pointer; }
.foot details p { margin-top: 8px; font-size: 13px; color: var(--slate); max-width: 60ch; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* checkout (protótipo) */
dialog.checkout { border: 1px solid var(--felt); border-radius: var(--r); padding: 0; width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: var(--paper); color: var(--ink); overflow: auto; }
dialog.checkout::backdrop { background: rgba(20, 16, 6, .55); }
.co-head { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--felt); position: sticky; top: 0; background: var(--paper); z-index: 1; }
.co-head h2 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.co-head .x { margin-left: auto; font: 500 20px var(--f-sans); background: none; border: 0; color: var(--ink); cursor: pointer; padding: 4px 8px; border-radius: var(--r-sm); }
.co-head .x:hover { background: var(--linen); }
.co-proto { background: var(--mustard); color: #242424; font-size: 12px; padding: 6px 20px; letter-spacing: .02em; }
.co-steps { list-style: none; margin: 0; padding: 14px 20px 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--slate); }
.co-steps li { display: flex; gap: 6px; align-items: center; }
.co-steps li span { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--felt); display: grid; place-items: center; font-size: 11px; }
.co-steps li.cur { color: var(--ink); font-weight: 500; }
.co-steps li.cur span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.co-steps li.done span { background: var(--sage); color: #fff; border-color: var(--sage); }
.co-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; padding: 20px; }
#co-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
#co-main h3 { font-size: 25px; letter-spacing: -0.02em; }
.co-sum { background: var(--white); border: 1px solid var(--felt); border-radius: var(--r); padding: 12px; display: grid; gap: 12px; position: sticky; top: 80px; }
.co-sum img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--stage); }
.co-sum-body { display: grid; gap: 8px; }
.co-sum strong { font-weight: 500; font-size: 17px; overflow-wrap: anywhere; }
.co-sum dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 14px; }
.co-sum dt { color: var(--slate); } .co-sum dd { margin: 0; text-align: right; }
.co-total { display: flex; justify-content: space-between; border-top: 1px solid var(--felt); padding-top: 10px; font-size: 17px; font-weight: 500; }
.co-options { display: grid; gap: 8px; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; font: 15px var(--f-sans); color: var(--ink); background: var(--white); border: 1px solid var(--felt); border-radius: var(--r); padding: 12px 14px; cursor: pointer; }
.opt strong { font-weight: 500; }
.opt[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--slate); }
.field input { font: 15px var(--f-sans); color: var(--ink); background: var(--white); border: 1px solid var(--felt); border-radius: var(--r); padding: 10px 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.qty { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.qty .btn { padding: 6px 12px; }
.co-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.pix { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: var(--white); border: 1px solid var(--felt); border-radius: var(--r); padding: 14px; }
.qr-img { width: 180px; height: 180px; background: #fff; border-radius: 4px; image-rendering: pixelated; }
.qr { display: grid; grid-template-columns: repeat(21, 6px); grid-auto-rows: 6px; padding: 8px; background: #fff; border-radius: 4px; }
.qr i { display: block; } .qr i.on { background: #242424; }
.pix-body { display: grid; gap: 8px; min-width: 0; }
.pix-body strong { font-weight: 500; }
.pix-code { font-size: 12px; background: var(--linen); padding: 6px 8px; border-radius: var(--r-sm); overflow-wrap: anywhere; }
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.track li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: center; color: var(--slate); }
.track li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--felt); }
.track li.done { color: var(--ink); } .track li.done::before { background: var(--sage); border-color: var(--sage); }
@media (max-width: 760px) { .co-body { grid-template-columns: 1fr; } .co-sum { position: static; order: -1; } .co-sum img { aspect-ratio: 16 / 9; } .grid2 { grid-template-columns: 1fr; } .pix { grid-template-columns: 1fr; justify-items: start; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
