/* Palette sampled from Felipe's reference image (imagens de referencia/). */
:root {
	color-scheme: light;
	--bg: #f6f6f0;
	--bg-deep: #f0f0ea;
	--surface: #fefefb;
	--ink: #0b2e1d;
	--ink-2: #484b47;
	--muted: #858a83;
	--line: #e7e6e0;
	--track: #e7e6e2;
	--g900: #0e4a26;
	--g700: #186c36;
	--g600: #1f7a3e;
	--g500: #288946;
	--g400: #56a647;
	--g300: #84b454;
	--tint: #e4f0d8;
	--tint-2: #deeacc;
	--tint-line: #bad2a8;
	--expect: #f0f0e4;
	--notice: #f0eae4;
	--notice-ink: #a27a2c;
	--amber: #fcba5a;
	--lilac: #c6b0e0;
	--sky: #8ab4de;
	--wave: #c6d8ae;
	--logo: #2fd74a; /* official logo green */
	--wa: #25d366;
	--wa-dark: #128c4b;
	--ribbon: #c62828;
	--ribbon-dark: #8e1616;
	--radius: 22px;
	--radius-sm: 14px;
	--shadow: 0 1px 2px rgba(11, 46, 29, 0.04), 0 10px 30px rgba(11, 46, 29, 0.06);
	--shadow-lift: 0 2px 4px rgba(11, 46, 29, 0.06), 0 16px 40px rgba(11, 46, 29, 0.1);
	--font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background:
		radial-gradient(900px 420px at -10% -5%, #e6efd6 0%, transparent 62%),
		radial-gradient(700px 380px at 110% 20%, #edf2e2 0%, transparent 60%),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
	background-attachment: fixed;
	min-height: 100vh;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--g700); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--g400); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.i {
	width: 1.15em; height: 1.15em; flex: none;
	fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- top bar */
.topbar { padding: 14px 0 4px; }
@media (min-width: 720px) { .topbar { padding: 20px 0 6px; } }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; line-height: 0; border-radius: 8px; }
/* The official horizontal logo (../logos/Croopi Logo 1.png), resized by scripts/build-assets.py. */
.logo { display: block; height: 34px; width: auto; }
@media (min-width: 720px) { .logo { height: 40px; } }

.pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 0.86rem;
	background: var(--tint); color: var(--g900); white-space: nowrap;
}
.pill-top { background: var(--tint-2); }
@media (max-width: 359px) { .pill-top span { display: none; } .pill-top { padding: 8px; } }

/* ---------- hero */
.hero { display: grid; gap: 22px; padding: 14px 0 20px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.08fr 0.92fr; gap: 40px; padding: 30px 0 36px; } }
.hero h1 {
	font-size: clamp(2rem, 7.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.04em;
	font-weight: 800; color: var(--ink); margin: 14px 0 12px; text-wrap: balance;
}
.lead { font-size: clamp(1rem, 2.6vw, 1.12rem); color: var(--ink-2); max-width: 32em; text-wrap: pretty; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.facts li {
	display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; color: var(--ink-2);
}
.facts li .i { color: var(--g600); }
/* Phones: the header already says pre-launch, and the form should start on the first screen. */
@media (max-width: 560px) {
	.hero > div > .pill { display: none; }
	.hero h1 { margin-top: 4px; }
	.lead { font-size: 0.97rem; }
	.facts { margin-top: 14px; gap: 6px; }
	.facts li { padding: 6px 10px; font-size: 0.8rem; gap: 6px; }
}
.facts li.live { color: var(--g900); border-color: var(--tint-line); background: var(--tint); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--g400); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(86,166,71,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(86,166,71,0); } }

/* Landscape with hills and wind turbines, echoing the banner of the reference result card. */
.scene {
	position: relative; border-radius: var(--radius); overflow: hidden; min-height: 200px;
	background: linear-gradient(180deg, #f8e6c2 0%, #f3efdc 46%, #e4eed3 100%);
	isolation: isolate;
}
.scene svg.land { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.scene .blade { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene-chip {
	position: absolute; background: rgba(254, 254, 251, 0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	border-radius: 14px; padding: 9px 13px; box-shadow: var(--shadow); font-size: 0.82rem; color: var(--ink-2); line-height: 1.25;
}
.scene-chip b { display: block; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.scene-chip.a { left: 14px; bottom: 14px; }
.scene-chip.b { right: 14px; top: 14px; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--g700); }
.hero .scene { display: none; box-shadow: var(--shadow); }
@media (min-width: 960px) { .hero .scene { display: block; min-height: 330px; } }

/* ---------- cards */
.card {
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
	border: 1px solid rgba(231, 230, 224, 0.8);
}
.pad { padding: 20px; }
@media (min-width: 720px) { .pad { padding: 28px; } }
.card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.num {
	flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tint-2);
	color: var(--g900); font-weight: 800; display: grid; place-items: center; font-size: 1.05rem;
}
.card-head h2 { font-size: clamp(1.2rem, 3.6vw, 1.4rem); letter-spacing: -0.025em; font-weight: 800; line-height: 1.2; }
.card-head p { color: var(--ink-2); font-size: 0.94rem; margin-top: 3px; }

/* ---------- quiz */
.quiz { max-width: 800px; margin: 0 auto 28px; }
.progress { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; margin-bottom: 10px; }
.progress span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--g400), var(--g500)); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.step-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.step-meta b { color: var(--g700); font-weight: 700; }

.fields { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field > span.q-title { display: flex; margin-bottom: 14px; }
.input {
	width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
	background: #fff; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #a5aaa2; }
.input:focus { border-color: var(--g400); box-shadow: 0 0 0 4px rgba(86,166,71,.16); }
.input.bad { border-color: #d24b3a; }
textarea.input { resize: vertical; min-height: 104px; }
.counter { text-align: right; font-size: 0.8rem; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.check {
	display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius-sm);
	background: var(--tint); cursor: pointer; font-size: 0.9rem; color: var(--ink-2); margin: 2px 0 14px; line-height: 1.4;
}
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--g700); flex: none; }
.ts:empty { display: none; }
.ts { margin: 0 0 12px; min-height: 0; }
.err { color: #b43a2b; font-size: 0.9rem; font-weight: 600; margin: 0 0 12px; }
.err:empty { display: none; }
.err .link { margin-left: 4px; }
.fine { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--muted); margin-top: 12px; text-align: center; }

.q-title { display: flex; gap: 12px; align-items: baseline; margin-bottom: 16px; padding: 0; }
.q-tag {
	flex: none; background: var(--tint-2); color: var(--g900); font-weight: 800; font-size: 0.82rem;
	padding: 3px 9px; border-radius: 8px;
}
.q-title h3 { font-size: clamp(1.08rem, 3.4vw, 1.24rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Options: a thumb-friendly list on phones, the reference's tiles from 600px up. */
.opts { display: grid; gap: 10px; grid-template-columns: 1fr; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
	position: relative; display: flex; align-items: center; gap: 12px; height: 100%; min-height: 58px;
	padding: 12px 16px 12px 46px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff;
	cursor: pointer; font-size: 0.95rem; font-weight: 600; line-height: 1.3; color: var(--ink-2);
	transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
	-webkit-tap-highlight-color: transparent;
}
.opt-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tint); color: var(--g600); flex: none; transition: background .15s; }
.opt-ico .i { width: 20px; height: 20px; }
.opt label::before {
	content: ''; position: absolute; top: 50%; left: 15px; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
	border: 1.5px solid #b8c2b4; background: #fff; transition: all .15s;
}
@media (hover: hover) { .opt label:hover { border-color: var(--tint-line); transform: translateY(-1px); } }
.opt input:checked + label {
	border-color: var(--g500); background: var(--tint); color: var(--g900);
	box-shadow: 0 0 0 3px rgba(86,166,71,.14); animation: pop .25s ease;
}
.opt input:checked + label .opt-ico { background: #fff; }
.opt input:checked + label::before { border-color: var(--g700); box-shadow: inset 0 0 0 3.5px #fff; background: var(--g700); }
.opt input:focus-visible + label { outline: 3px solid var(--g400); outline-offset: 2px; }
@keyframes pop { 50% { transform: scale(1.02); } }
@media (min-width: 600px) {
	.opts { grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); }
	/* More than five options: four per row, so seven read as 4 + 3 instead of 5 + 2. */
	.opts-many { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.opt label { flex-direction: column; justify-content: flex-start; text-align: center; gap: 10px; padding: 32px 10px 14px; font-size: 0.88rem; }
	.opt label::before { top: 11px; left: 11px; margin-top: 0; width: 16px; height: 16px; }
	.opt-ico { width: auto; height: auto; background: none; }
	.opt-ico .i { width: 26px; height: 26px; }
	.opt input:checked + label .opt-ico { background: none; }
}

.actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
	border: 0; cursor: pointer; border-radius: var(--radius-sm); padding: 13px 22px; font-weight: 700; font-size: 1rem;
	transition: transform .12s, box-shadow .2s, background .2s, opacity .2s; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
	background: linear-gradient(180deg, var(--g600), var(--g700)); color: #fff;
	box-shadow: 0 8px 20px rgba(24, 108, 54, 0.26);
}
@media (hover: hover) { .btn-primary:hover { background: linear-gradient(180deg, var(--g500), var(--g600)); } }
.btn-primary[disabled] { opacity: .42; cursor: not-allowed; box-shadow: none; }
.btn-wide { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 12px 8px; }
@media (hover: hover) { .btn-ghost:hover { color: var(--g700); } }
.btn-soft { background: var(--tint); color: var(--g900); }
@media (hover: hover) { .btn-soft:hover { background: var(--tint-2); } }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
@media (hover: hover) { .btn-wa:hover { background: #1fbd5a; } }
.link { background: none; border: 0; padding: 0; color: var(--g700); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 0.9rem; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 479px) {
	.quiz .actions .btn-primary { flex: 1; }
}

/* Reading the answers: a short beat before the reveal. */
.loading { display: grid; place-items: center; gap: 18px; padding: 40px 0 34px; text-align: center; color: var(--ink-2); font-weight: 600; }
.loading-bars { display: flex; gap: 6px; align-items: flex-end; height: 34px; }
.loading-bars span { width: 9px; border-radius: 5px; background: linear-gradient(180deg, var(--g400), var(--g700)); animation: grow .9s ease-in-out infinite; }
.loading-bars span:nth-child(2) { animation-delay: .15s; }
.loading-bars span:nth-child(3) { animation-delay: .3s; }
@keyframes grow { 0%, 100% { height: 10px; } 50% { height: 34px; } }

.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.reveal { animation: reveal .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- tabs */
.tabs {
	display: flex; gap: 6px; padding: 5px; background: #e9eadf; border-radius: 16px; margin: 14px 0 16px;
	width: fit-content; max-width: 100%;
}
.tab {
	border: 0; background: transparent; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 0.92rem;
	color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; min-height: 44px;
}
.tab[aria-selected='true'] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.tab .short { display: none; }
@media (max-width: 560px) {
	.tabs { width: 100%; }
	.tab { flex: 1; justify-content: center; padding: 10px 8px; }
	.tab .long { display: none; }
	.tab .short { display: inline; }
}

/* ---------- result */
.result { display: grid; gap: 16px; margin-bottom: 18px; }
@media (min-width: 960px) { .result { grid-template-columns: 1.15fr 0.85fr; align-items: start; gap: 18px; } }
.profile-card .scene { min-height: 150px; }
@media (min-width: 720px) { .profile-card .scene { min-height: 176px; } }
.profile-body { position: relative; margin-top: -46px; padding: 0 4px; }
.avatar {
	width: 92px; height: 92px; border-radius: 50%; border: 5px solid var(--surface); display: grid; place-items: center;
	background: linear-gradient(145deg, var(--g400), var(--g900)); color: #fff; font-weight: 800; font-size: 1.9rem;
	box-shadow: var(--shadow);
}
.badge-prof {
	display: inline-block; background: var(--tint); color: var(--g900); font-weight: 700; font-size: 0.76rem;
	padding: 4px 10px; border-radius: 8px; margin: 12px 0 6px;
}
.profile-name { font-size: clamp(1.55rem, 5vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.12; }
.profile-desc { color: var(--ink-2); margin: 10px 0 18px; text-wrap: pretty; }
.bars { display: grid; gap: 14px; padding: 18px; background: var(--expect); border-radius: 16px; }
.bar-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px 10px; align-items: center; font-weight: 600; font-size: 0.95rem; }
.bar-row .i { color: var(--g700); }
.bar-row .track { grid-column: 1 / -1; }
.bar-row .pct { grid-column: 3; grid-row: 1; }
@media (min-width: 560px) {
	.bar-row { grid-template-columns: 22px 128px 1fr 44px; }
	.bar-row .track { grid-column: 3; grid-row: 1; }
	.bar-row .pct { grid-column: 4; }
}
.track { height: 12px; border-radius: 12px; background: var(--track); overflow: hidden; }
.fill { height: 100%; border-radius: 12px; background: linear-gradient(90deg, var(--g400), var(--g500)); width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.pct { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

.side, .main-col { display: grid; gap: 16px; min-width: 0; }
.side h3 { display: flex; gap: 10px; align-items: center; font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.side h3 .i { color: var(--g500); width: 24px; height: 24px; }
.expect ul { list-style: none; padding: 4px 16px; margin: 0; background: var(--expect); border-radius: 16px; }
.expect li { display: flex; gap: 12px; align-items: center; padding: 11px 0; color: var(--ink-2); }
.expect li + li { border-top: 1px solid var(--line); }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--tint-2); color: var(--g700); display: grid; place-items: center; }
.tick .i { width: 14px; height: 14px; stroke-width: 2.6; }

/* Progress toward the inauguration: a share, never a head count. */
.mini-progress { background: var(--expect); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.mini-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mini-top b { font-size: clamp(1.7rem, 6vw, 2.1rem); letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.mini-top span { font-size: 0.86rem; color: var(--ink-2); }
.mini-progress p { font-size: 0.84rem; color: var(--ink-2); margin: 0; }
.mine .actions { margin-top: 14px; }
.mine .actions .btn { flex: 1 1 auto; }

.wa-card { background: linear-gradient(135deg, #eaf7ee 0%, #f4faf2 100%); border-color: #cfe9d6; }
.wa-card p { color: var(--ink-2); margin: -6px 0 14px; }
.wa-card h3 .i-wa { width: 24px; height: 24px; color: var(--wa-dark); }

/* ---------- panorama */
.pano { display: grid; gap: 16px; margin-bottom: 16px; }
.goal { position: relative; overflow: hidden; }
.goal-top { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.big { display: flex; align-items: center; gap: 14px; }
.big .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--tint); display: grid; place-items: center; color: var(--g700); flex: none; }
.big .ico .i { width: 28px; height: 28px; }
.big small { display: block; color: var(--ink-2); font-weight: 600; font-size: 0.9rem; }
.big strong { display: block; font-size: clamp(2.3rem, 9vw, 3.2rem); font-weight: 800; letter-spacing: -0.045em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.goal-meta { color: var(--ink-2); font-size: 0.9rem; line-height: 1.45; }
.goal-meta b { color: var(--ink); font-size: 1.1rem; }
@media (min-width: 560px) { .goal-meta { text-align: right; } }
.goal-bar { position: relative; padding-right: 30px; }
.goal-track { height: 22px; border-radius: 22px; background: var(--track); overflow: hidden; position: relative; }
.goal-fill {
	height: 100%; width: 0; border-radius: 22px; transition: width 1.6s cubic-bezier(.2,.8,.2,1);
	background: linear-gradient(90deg, var(--g400), var(--g500)); position: relative; min-width: 22px;
}
.goal-fill::after {
	content: ''; position: absolute; inset: 0;
	background: repeating-linear-gradient(115deg, rgba(255,255,255,.16) 0 12px, transparent 12px 24px);
	background-size: 48px 100%; animation: slide 1.8s linear infinite;
}
@keyframes slide { to { background-position: 48px 0; } }
.goal-bow { position: absolute; right: -6px; top: 50%; width: 52px; transform: translateY(-58%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.18)); }
.goal-scale { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-top: 8px; padding-right: 30px; font-variant-numeric: tabular-nums; }
.goal-scale b { color: var(--ink); }
.sim { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: #8a5a00; background: #fdf0d2; padding: 4px 10px; border-radius: 8px; margin-top: 12px; }

.grid4 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .grid4 { grid-template-columns: 1.1fr 1.1fr 1fr; } .span2 { grid-column: span 2; } }
.panel { padding: 20px; }
.panel h3 { font-size: 1rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.01em; }
.donut-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.donut { width: 128px; height: 128px; flex: none; }
.donut text { font-family: var(--font); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 0.84rem; flex: 1; min-width: 190px; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; color: var(--ink-2); }
.legend li.me { color: var(--ink); font-weight: 700; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.legend b { font-variant-numeric: tabular-nums; color: var(--ink); }
/* Label and share on one line, the bar under them: long labels never squeeze the bar. */
.hbars { display: grid; gap: 12px; font-size: 0.86rem; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: center; color: var(--ink-2); }
.hbar .track { height: 9px; grid-column: 1 / -1; grid-row: 2; }
.hbar b { grid-column: 2; grid-row: 1; }
.hbar .fill { background: linear-gradient(90deg, var(--g300), var(--g500)); }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.hbar.me { color: var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--tint); color: var(--g900); font-weight: 600; font-size: 0.86rem; padding: 7px 12px; border-radius: 999px; }
.chip small { opacity: .65; margin-left: 4px; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }
.notice {
	display: flex; gap: 12px; align-items: center; padding: 15px 18px; border-radius: 16px;
	background: var(--notice); color: var(--ink-2); font-size: 0.92rem; margin-bottom: 24px;
}
.notice .i { color: var(--notice-ink); width: 22px; height: 22px; }
.notice b { color: var(--ink); }

/* ---------- ribbon cutting at 10k */
.ceremony { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 3; }
.ribbon { position: absolute; left: 0; right: 0; top: 50%; height: 34px; transform: translateY(-50%); }
.ribbon .half {
	position: absolute; top: 0; height: 100%; width: 50%;
	background: linear-gradient(180deg, #e0413a 0%, var(--ribbon) 45%, var(--ribbon-dark) 100%);
	box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.ribbon .half.l { left: 0; clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%); transform-origin: 0 50%; }
.ribbon .half.r { right: 0; clip-path: polygon(3% 50%, 0 0, 100% 0, 100% 100%, 0 100%); transform-origin: 100% 50%; }
.ribbon .bow { position: absolute; left: 50%; top: 50%; width: 92px; transform: translate(-50%, -54%); filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.scissors { position: absolute; top: 50%; left: -80px; width: 70px; height: 70px; transform: translateY(-50%); color: #3a4148; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.scissors .blade { transform-origin: 12px 12px; transform-box: view-box; }
.ceremony.play .scissors { animation: sc-move 1.2s cubic-bezier(.5,0,.3,1) forwards; }
.ceremony.play .scissors .b1 { animation: snip1 .3s ease-in-out 1.1s 2 alternate; }
.ceremony.play .scissors .b2 { animation: snip2 .3s ease-in-out 1.1s 2 alternate; }
.ceremony.play .ribbon .half.l { animation: fall-l 1.3s cubic-bezier(.4,0,.8,.6) 1.7s forwards; }
.ceremony.play .ribbon .half.r { animation: fall-r 1.3s cubic-bezier(.4,0,.8,.6) 1.7s forwards; }
.ceremony.play .ribbon .bow { animation: bow-drop 1.1s ease-in 1.7s forwards; }
.ceremony.play .scissors-out { animation: fade-out .4s ease 1.8s forwards; }
@keyframes sc-move { to { left: calc(50% - 64px); } }
@keyframes snip1 { to { transform: rotate(-16deg); } }
@keyframes snip2 { to { transform: rotate(16deg); } }
@keyframes fall-l { to { transform: rotate(28deg) translateY(160px); opacity: 0; } }
@keyframes fall-r { to { transform: rotate(-28deg) translateY(160px); opacity: 0; } }
@keyframes bow-drop { 30% { transform: translate(-50%, -64%) rotate(-6deg); } to { transform: translate(-50%, 220%) rotate(24deg); opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.confetti { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.confetti span {
	position: absolute; width: 9px; height: 14px; border-radius: 2px; background: var(--c); opacity: 0;
	animation: burst 1.9s cubic-bezier(.15,.7,.3,1) calc(1.75s + var(--d)) forwards;
}
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
.opening { text-align: center; position: relative; z-index: 2; display: none; }
.opening .ttl { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.opening p { color: var(--ink-2); margin-top: 6px; }
.goal.done .goal-content { animation: fadeIn .6s ease 2.6s both; }
.goal.done.static .goal-content { animation: none; }
.goal.done .goal-fill { background: linear-gradient(90deg, var(--amber), var(--g400), var(--g500)); }
.goal.done .opening { display: block; margin-bottom: 18px; }

/* ---------- WhatsApp button and popup */
.wa-fab {
	position: fixed; z-index: 40; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
	width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
	box-shadow: 0 10px 24px rgba(18, 140, 75, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12); text-decoration: none;
	transition: transform .18s, box-shadow .18s; -webkit-tap-highlight-color: transparent;
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::before {
	content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
	animation: ring 2.4s ease-out 2s 3; opacity: 0;
}
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@media (hover: hover) { .wa-fab:hover { transform: translateY(-2px) scale(1.04); } }
.wa-tip {
	position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px);
	background: var(--ink); color: #fff; font-size: 0.82rem; font-weight: 700; padding: 7px 11px; border-radius: 10px;
	white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
@media (hover: hover) and (min-width: 720px) {
	.wa-fab:hover .wa-tip, .wa-fab:focus-visible .wa-tip { opacity: 1; transform: translateY(-50%); }
}
@media (min-width: 720px) { .wa-fab { width: 62px; height: 62px; right: 24px; bottom: 24px; } }

.wa-dialog {
	border: 0; padding: 0; border-radius: 24px; width: min(420px, calc(100vw - 32px)); background: var(--surface);
	color: var(--ink); box-shadow: 0 30px 80px rgba(11, 46, 29, 0.3);
}
.wa-dialog::backdrop { background: rgba(11, 46, 29, 0.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.wa-dialog[open] { animation: rise .28s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.wa-dialog form { padding: 28px 24px 22px; text-align: center; }
.wa-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 10px 24px rgba(18,140,75,.3); }
.wa-badge svg { width: 34px; height: 34px; }
.wa-dialog h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.025em; }
.wa-dialog p { color: var(--ink-2); margin: 8px 0 22px; }
.wa-actions { display: flex; gap: 10px; flex-direction: column-reverse; }
.wa-actions .btn { width: 100%; }
@media (min-width: 420px) { .wa-actions { flex-direction: row; } .wa-actions .btn { flex: 1; } }
@media (max-width: 479px) {
	.wa-dialog { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
	.wa-dialog[open] { animation: sheet .3s cubic-bezier(.2,.8,.2,1); }
	@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
	.ceremony { display: none; }
}

.foot { font-size: 0.8rem; color: var(--muted); padding-top: 4px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); text-align: center; }
.foot p { max-width: 46em; margin: 0 auto; }

/* "E agora?": three steps on a vertical line, closing the result page. */
/* One column (under 960px): the card closes the page, after the side cards. */
@media (max-width: 959.98px) {
	.main-col { display: contents; }
	.result .side { order: 2; }
	.result .next-card { order: 3; }
}
.next-card h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--ink); }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.next-steps::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--tint-2); }
.next-steps li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.step-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--g700); display: grid; place-items: center; position: relative; }
.step-ico .i { width: 18px; height: 18px; }
.next-steps p { margin: 0; padding-top: 7px; color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }
.next-steps b { color: var(--ink); }
.next-steps a { color: var(--g700); font-weight: 700; text-underline-offset: 3px; }
