/* Craftfair — site estático. Tokens = docs/DESIGN_SYSTEM.md do app (scripts/design-tokens.json). Sem fontes nem recursos externos. */
:root {
  color-scheme: light dark;
  --bg: #F8F4EC; --surface: #FFFFFF; --elevated: #FFFDF9; --surface-2: #EEE8DE;
  --brand: #2F6B57; --brand-pressed: #245344; --on-brand: #FFFFFF;
  --accent: #C96845; --gold: #D0A24C;
  --text: #202722; --text-2: #626A64; --border: #D8D0C4;
  --hero-bg: #214F40; --hero-fg: #F8F4EC; --hero-muted: #D7E2DC; --hero-gold: #F0C66F;
  --fin-materials: #4F806D; --fin-labor: #C96845; --fin-overhead: #D0A24C; --fin-fees: #6B8FB7; --fin-profit: #2F6859; --fin-packaging: #626A64;
  --radius: 14px; --radius-lg: 24px; --max: 1040px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111714; --surface: #19211D; --elevated: #202923; --surface-2: #232D28;
    --brand: #78C9AA; --brand-pressed: #5BAF91; --on-brand: #111714;
    --accent: #E58C66; --gold: #F0C66F;
    --text: #F5F2EA; --text-2: #B6BEB8; --border: #36453D;
    --fin-materials: #80B99F; --fin-labor: #EE9A75; --fin-overhead: #F0C66F; --fin-fees: #90B9E1; --fin-profit: #70C99C; --fin-packaging: #B6BEB8;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-pressed); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--on-brand); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

/* cabeçalho e rodapé */
header.site { background: var(--elevated); border-bottom: 1px solid var(--border); z-index: 5; }
@media (min-width: 721px) { header.site { position: sticky; top: 0; } }
.topbar { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 22.4%; display: block; }
header.site nav { display: flex; gap: .25rem; margin-left: auto; flex-wrap: wrap; }
header.site nav a { padding: .6rem .8rem; border-radius: 10px; color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
header.site nav a:hover { background: var(--surface-2); }
header.site nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.lang { display: inline-flex; gap: 2px; background: var(--surface-2); padding: 3px; border-radius: 12px; }
.lang button { font: inherit; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--text-2); background: transparent; border: 0; border-radius: 9px; min-width: 44px; min-height: 40px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
footer.site { border-top: 1px solid var(--border); margin-top: 4rem; padding: 2rem 0 3rem; color: var(--text-2); font-size: .9375rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot p { margin: 0; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.25rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 1.5px solid transparent; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-pressed); color: var(--on-brand); }
.btn-light { background: var(--hero-fg); color: var(--hero-bg); }
.btn-light:hover { background: #fff; color: var(--hero-bg); }
.pill { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid rgba(248, 244, 236, .45); color: var(--hero-fg); font-weight: 600; }
.pill::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--hero-gold); }

/* topo (verde do ícone) */
.hero { background: var(--hero-bg); color: var(--hero-fg); padding: clamp(2.5rem, 7vw, 5rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--hero-fg); }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hero-gold); margin-bottom: 1rem; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--hero-muted); }
.lead { font-size: 1.15rem; max-width: 60ch; }
.hero .lead { color: var(--hero-fg); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.hero-art img { display: block; border-radius: 22.4%; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform: rotate(-3deg); }
@media (max-width: 720px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art img { width: 132px; height: 132px; } }

/* seções */
.block { padding: clamp(2rem, 6vw, 4rem) 0; }
.band { background: var(--surface-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; }
.card p { color: var(--text-2); margin: 0 0 .5em; }
[data-c="materials"] { --c: var(--fin-materials); } [data-c="labor"] { --c: var(--fin-labor); } [data-c="overhead"] { --c: var(--fin-overhead); }
[data-c="packaging"] { --c: var(--fin-packaging); } [data-c="fees"] { --c: var(--fin-fees); } [data-c="profit"] { --c: var(--fin-profit); }
.card[data-c] { border-top-color: var(--c); }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; padding: 0; margin: 1.5rem 0 2rem; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: .75rem; }
.steps p { color: var(--text-2); margin: 0; }
.comp { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.comp .compbar { display: flex; gap: 2px; height: 28px; border-radius: 8px; overflow: hidden; background: var(--surface-2); margin: .5rem 0 1rem; }
.comp .compbar span { background: var(--c); }
.comp .compbar .f3 { flex: 3; } .comp .compbar .f4 { flex: 4; } .comp .compbar .f12 { flex: 12; } .comp .compbar .f25 { flex: 25; } .comp .compbar .f53 { flex: 53; }
.comp .compbar [data-c="labor"] { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 2px, transparent 2px 8px); }
.comp .compbar [data-c="overhead"] { background-image: radial-gradient(rgba(255,255,255,.7) 1.2px, transparent 1.4px); background-size: 6px 6px; }
.comp .compbar [data-c="packaging"] { background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 6px 6px; }
.comp .compbar [data-c="fees"] { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.55) 0 2px, transparent 2px 8px); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 0; margin: 0 0 .75rem; }
.legend li { display: inline-flex; align-items: center; gap: .5rem; }
.legend li::before { content: ""; width: .75rem; height: .75rem; border-radius: 3px; background: var(--c); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.plan.pro { border: 2px solid var(--brand); }
.plan ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.plan li { margin-bottom: .4rem; }
.tag { display: inline-block; margin-left: .4rem; font-size: .8125rem; font-weight: 700; color: var(--brand); border: 1.5px solid var(--brand); border-radius: 999px; padding: .1rem .6rem; vertical-align: middle; }
.trust { text-align: center; }
.trust-line { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 1.25rem; }
.notes { padding-top: 0; }

/* páginas de texto (suporte e privacidade) */
.prose { max-width: 760px; padding-block: 2.5rem 0; }
.page-head { margin-bottom: 1.5rem; }
.prose h2 { margin-top: 2rem; }
.prose .lead { font-size: 1.15rem; }
.prose .strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .55rem; }
.policy { counter-reset: p; list-style: none; padding: 0; }
.policy li { counter-increment: p; position: relative; padding-left: 2.5rem; margin-bottom: 1rem; }
.policy li::before { content: counter(p); position: absolute; left: 0; top: .1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--surface-2); color: var(--brand); font-weight: 800; font-size: .875rem; display: grid; place-items: center; }
.notice { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: .9rem 1rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 700; min-height: 48px; list-style-position: inside; }
.faq details[open] summary { color: var(--brand); border-bottom: 1px solid var(--border); }
.faq details p { padding: .9rem 1.1rem 0; margin: 0 0 1rem; color: var(--text-2); }
