/* ==========================================================================
   pcnunes.com.br — Vinho oxblood
   Paleta final. Escuro no :root; claro com data-theme="light".
   Definição: docs/IDENTIDADE.md
   Proporção 60 / 30 / 10:
     60% azul-noite (--bg) — fundo, superfície, véu que só escurece
     30% ouro (--accent2; grafite no claro) — itálico, kicker, número, fio
     10% oxblood (--accent) — botão, selo, fio do total, traço da assinatura
   ========================================================================== */
:root {
  --bg: #101A28;
  --surface: #1A2534;
  --surface2: #333941;
  --text: #D4D2C7;
  --muted: #959596;
  --line: rgba(212, 210, 199, 0.14);
  --accent: #63271E;
  --accent-ink: #F8F8F4;
  --accent2: #C7A078;
  --grad: linear-gradient(160deg, #C7A078 0%, #63271E 100%);
  --glow: rgba(99, 39, 30, 0.28);
  --tint: 0;
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  --r-sm: 12px;
  --wrap: 1180px;
}
[data-theme="light"] {
  --bg: #EDECE6;
  --surface: #F8F8F4;
  --surface2: #D4D2C7;
  --text: #131F2E;
  --muted: #5B5F66;
  --line: rgba(19, 31, 46, 0.12);
  --accent: #63271E;
  --accent-ink: #F8F8F4;
  --accent2: #333941;
  --grad: linear-gradient(160deg, #333941 0%, #63271E 100%);
  --glow: rgba(99, 39, 30, 0.22);
  --shadow: 0 40px 80px -30px rgba(19, 31, 46, 0.22);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--glow), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, color-mix(in srgb, var(--surface2) 60%, transparent), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), 92vw); margin: 0 auto; position: relative; z-index: 1; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.02; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.55rem; }
em { font-style: italic; color: var(--accent2); }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--accent2); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent2); }
.note { font-size: .85rem; color: var(--muted); margin-top: 1.2rem; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; font-family: var(--sans);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.btn-ghost:hover { border-color: var(--accent2); }
.btn-sm { padding: .75rem 1.2rem; font-size: .85rem; }
.trigger { font-size: .8rem; color: var(--muted); margin-top: .7rem; }

/* ---------- layout ---------- */
section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; z-index: 1; }
.card { background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; backdrop-filter: blur(8px); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent2); font-style: italic; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.wordmark { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .02em; }
.wordmark b { font-family: var(--sans); font-weight: 800; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: block; margin-top: -2px; }
.nav ul { display: flex; gap: 2rem; list-style: none; font-size: .88rem; font-weight: 600; color: var(--muted); }
.nav ul a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: .6rem; }
.theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; }
.theme:hover { border-color: var(--accent2); }
@media (max-width: 900px) { .nav ul { display: none; } }
@media (max-width: 640px) {
  .nav .wrap { height: 64px; }
  .wordmark { font-size: 1.05rem; white-space: nowrap; }
  .wordmark b { font-size: .55rem; }
  .btn-sm { padding: .6rem .9rem; font-size: .78rem; white-space: nowrap; }
  .theme { width: 34px; height: 34px; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); min-height: min(calc(100vh - 72px), 860px); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { margin: 1.2rem 0 1.4rem; }
.hero .lead { font-size: 1.2rem; max-width: 36rem; color: var(--muted); }
.hero .cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; align-items: center; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pillars div { font-size: .9rem; color: var(--muted); }
.pillars strong { display: block; color: var(--text); font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin-bottom: .2rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { min-height: 0; } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

.photo { position: relative; aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 18%; transform: scale(1.14); transform-origin: 12% 30%; }
.photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--bg) 72%, transparent) 100%); }
.photo .tag { position: absolute; left: 1.3rem; bottom: 1.3rem; z-index: 2; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent-ink); }
.photo .tag span { display: block; font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0; text-transform: none; font-weight: 400; margin-top: .2rem; }

/* ---------- pain ---------- */
.pain h2 { max-width: 22ch; margin-top: 1rem; }
.pain .grid3 { margin-top: 2.6rem; }
.pain .card h3 { margin-top: 1rem; }
.pain .card p { color: var(--muted); margin-top: .6rem; font-size: .97rem; }

/* ---------- how ---------- */
.how { background: color-mix(in srgb, var(--surface) 60%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how h2 { margin-top: 1rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.step { padding: 2rem; border-radius: var(--r); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); position: relative; overflow: hidden; }
.step::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); }
.step small { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--accent2); }
.step h3 { margin: .6rem 0; }
.step p { color: var(--muted); font-size: .96rem; }
.pull { margin-top: 2.6rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 40ch; line-height: 1.25; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5rem; align-items: center; }
.about .photo { aspect-ratio: 3/4; }
.about .photo img { object-position: 25% 20%; }
.about p { font-size: 1.08rem; color: var(--muted); margin-top: 1.1rem; max-width: 56ch; }
.about p.serif { color: var(--text); font-size: 1.5rem; line-height: 1.25; margin-top: 1.6rem; }
.sig { margin-top: 2rem; font-family: var(--serif); font-size: 2rem; font-style: italic; color: var(--accent2); }
.roles { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.roles span { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 900px) { .about .wrap { grid-template-columns: 1fr; } }

/* ---------- fit ---------- */
.fit h2 { margin-top: 1rem; }
.fit .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.6rem; }
.fit ul { list-style: none; margin-top: 1.2rem; display: grid; gap: .8rem; }
.fit li { display: flex; gap: .8rem; color: var(--muted); font-size: .98rem; }
.fit li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent2); margin-top: .5rem; }
.fit .no li::before { background: transparent; border: 1px solid var(--muted); }
@media (max-width: 800px) { .fit .cols { grid-template-columns: 1fr; } }

/* ---------- proof ---------- */
.proof h2 { margin-top: 1rem; }
.proof .grid3 { margin-top: 2.6rem; }
.slot { border: 1px dashed color-mix(in srgb, var(--accent2) 55%, transparent); border-radius: var(--r); padding: 2rem; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); }
.slot small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--accent2); }
.slot .num { color: var(--text); }
.slot p { font-size: .9rem; }

/* ---------- content ---------- */
.content h2 { margin-top: 1rem; }
.content .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.6rem; }
.content .card h3 { margin-top: .8rem; }
.content .card p { color: var(--muted); margin-top: .8rem; }
.content .card .btn { margin-top: 1.4rem; }
.content .posts { margin-top: 2.4rem; }
.content a.post { transition: border-color .2s, transform .2s; }
.content a.post:hover { border-color: var(--accent2); transform: translateY(-2px); }
.content .evidence { margin-top: 1.4rem; }
.content .evidence .cta { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 800px) { .content .cols { grid-template-columns: 1fr; } }

/* ---------- identity templates ---------- */
.tpl { border-top: 1px solid var(--line); }
.tpl-h { margin-top: 3rem; font-size: 1.15rem; color: var(--muted); font-family: var(--sans); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tpl-row { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.4rem; align-items: flex-start; }
.tpl-item { display: flex; flex-direction: column; gap: .7rem; }
.tpl-item small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.board { position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; color: var(--text); font-family: var(--sans); }
.b916 { width: 270px; height: 480px; }
.b45 { width: 270px; height: 337.5px; }
.bli-banner { width: min(540px, 92vw); height: 135px; }
.bli-post { width: min(360px, 92vw); height: 188px; }
.bli-sq { width: 270px; height: 270px; }
.board img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 15%; }
.board .fade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, transparent 28%, transparent 48%, color-mix(in srgb, var(--bg) 94%, transparent) 100%); }
.board .top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 7.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--accent2); z-index: 2; }
.board .bot { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; }
.board .h { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.board .h em { font-style: italic; }
.board .sub { font-size: 9.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.board .mark { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
.board .mark::before { content: ""; width: 14px; height: 1px; background: var(--accent); }
.board .pill { display: inline-block; font-size: 7.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.board .side { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.board.solid { background: var(--surface); }
.board .big { font-family: var(--serif); font-size: 64px; line-height: .9; color: var(--accent2); font-style: italic; }
.board .quote { font-family: var(--serif); font-size: 22px; line-height: 1.15; padding: 0 18px; }
.board .center { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px; z-index: 2; }
.board .caption { font-size: 9px; color: var(--muted); line-height: 1.45; }
.board .av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid var(--accent2); position: relative; flex: none; }
.board .av img { position: static; object-position: 40% 15%; }
.board .progress { position: absolute; top: 8px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.board .progress i { flex: 1; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--text) 35%, transparent); }
.board .progress i.on { background: var(--text); }
.board .poll { display: grid; gap: 6px; margin-top: 6px; }
.board .poll div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 9px; font-weight: 700; }
.board .poll .on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.li-banner-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 18px 28px; gap: 1rem; }

/* Peças reais na paleta final (Vinho oxblood). */
.vinho-stage {
  scroll-margin-top: 88px;
  margin-top: 3.2rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 28px;
  background:
    radial-gradient(520px 220px at 100% 0%, var(--glow), transparent 70%),
    var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
}
.vinho-stage .tpl-h { color: var(--accent2); }
.vinho-stage .note { color: var(--muted); }
.ref-row { display: flex; gap: .8rem; overflow-x: auto; margin-top: 1rem; padding-bottom: .4rem; }
.ref-row figure { margin: 0; flex: none; }
.ref-row img { height: 168px; width: auto; border-radius: 12px; display: block; border: 1px solid var(--line); }
.ref-row figcaption { margin-top: .35rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.vinho-stage .board .h em { color: var(--accent2); font-style: italic; }
.vinho-stage .board .fade.short {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg) 35%, transparent) 0%,
    transparent 16%,
    transparent 55%,
    color-mix(in srgb, var(--bg) 94%, transparent) 100%);
}
.board .sheet { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; padding: 42px 16px 16px; }
.board .kicker { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--accent2); }
.splits { list-style: none; margin-top: auto; display: grid; gap: 5px; }
.splits li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  font-size: 8px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800;
}
.split-name { display: inline-flex; align-items: center; gap: 6px; }
.sport { width: 14px; height: 14px; flex: none; color: color-mix(in srgb, var(--accent) 70%, var(--accent2)); }
.splits b { font-family: var(--serif); font-style: italic; font-size: 18px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--accent2); }
.splits .total { border-bottom: 0; border-top: 2px solid var(--accent); padding-top: 7px; margin-top: 2px; }
.splits .total b { color: var(--text); font-size: 26px; }
.vinho-stage .bli-post .h { font-size: 22px; }

/* ---------- kit + wallet ---------- */
.kit { border-top: 1px solid var(--line); }
.kit .card .btn { margin-top: 1.2rem; }
.wallet { border-top: 1px solid var(--line); }
.wallet-grid { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; margin-top: 2.4rem; align-items: center; }
.pass {
  width: min(320px, 88vw); border-radius: 18px; padding: 1.3rem 1.3rem 1.1rem;
  background: linear-gradient(165deg, color-mix(in srgb, var(--surface2) 70%, var(--bg)), var(--bg));
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative;
}
.pass-top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.pass-badge { background: var(--accent); color: var(--accent-ink); padding: .25rem .55rem; border-radius: 999px; font-size: .65rem; }
.pass-name { font-family: var(--serif); font-size: 1.7rem; margin-top: 1.1rem; line-height: 1.05; }
.pass-role { color: var(--muted); font-size: .9rem; margin-top: .35rem; }
.pass-rows { margin-top: 1.3rem; display: grid; gap: .55rem; }
.pass-rows small { display: block; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); font-weight: 700; }
.pass-rows span { font-size: .92rem; }
.pass-qr { position: absolute; right: 1.1rem; bottom: 1.1rem; background: #fff; padding: 4px; border-radius: 8px; line-height: 0; }
.pass-qr img { display: block; border-radius: 4px; }
@media (max-width: 800px) { .wallet-grid { grid-template-columns: 1fr; } }

/* ---------- final ---------- */
.final { text-align: center; }
.final .box {
  padding: clamp(3rem, 7vw, 5.5rem) 2rem; border-radius: 32px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.final .box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.final .box h2 { color: inherit; max-width: 18ch; margin: 0 auto; }
.final .box p { max-width: 44ch; margin: 1.2rem auto 2rem; color: var(--muted); font-weight: 500; }
.final .trigger { color: var(--muted); }

/* ---------- footer ---------- */
footer { padding: 3rem 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); position: relative; z-index: 1; }
footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-end; }
footer .human { font-family: var(--serif); font-size: 1.25rem; color: var(--text); line-height: 1.3; max-width: 34ch; margin-top: 1rem; }
footer .human i { color: var(--accent2); }
footer .right { text-align: right; }
footer .right p + p { margin-top: .4rem; }
@media (max-width: 640px) { footer .right { text-align: left; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
