/* Site do Bonsai — mesmos tokens do app (oliva #4D694E + creme #FFF3D5). Fontes servidas pelo próprio site. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/fraunces-latin-opsz-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/fraunces-latin-opsz-italic.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/jost-latin-wght-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #F4EBD4; --surface: #FFFBF1; --surface-2: #FFF3D5; --surface-3: #F5E8C6; --line: rgba(59, 82, 60, .12);
  --text: #22301F; --text-2: #56634F; --muted: #7D8471;
  --brand: #4D694E; --brand-strong: #3B523C; --brand-wash: rgba(77, 105, 78, .1); --cream: #FFF3D5;
  --bad: #B42F2F;
  --shadow: 0 1px 2px rgba(60, 70, 35, .05), 0 10px 30px rgba(60, 70, 35, .07);
  --shadow-lg: 0 30px 70px -20px rgba(40, 50, 25, .35);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #111611; --surface: #1A211A; --surface-2: #222B22; --surface-3: #2A342A; --line: rgba(255, 243, 213, .08);
    --text: #F3EAD2; --text-2: #C7C0A8; --muted: #8E937F; --brand: #8DB08E; --brand-strong: #A9C6A9; --brand-wash: rgba(141, 176, 142, .14);
    --bad: #F08080; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25); --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .7); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 "Jost", system-ui, sans-serif; overflow-x: hidden; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 6vw, 60px); font-style: italic; font-weight: 700; margin: 0 0 18px; }
main > h1:first-child, .prose > h1:first-child { margin-top: 32px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 650; margin: 56px 0 14px; }
h3 { font-size: 21px; font-weight: 650; margin: 0 0 6px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 24px; margin: 36px 0 8px; }
.prose li { margin: 4px 0; }

header.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: italic 700 24px "Fraunces", serif; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
nav.links { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 15px; }
nav.links a.nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--brand); color: var(--cream); font-weight: 500; }
nav.links a.nav-cta:hover { color: var(--cream); filter: brightness(1.06); }
@media (prefers-color-scheme: dark) { nav.links a.nav-cta, nav.links a.nav-cta:hover { color: #111611; } }
nav.links a { color: var(--text-2); text-decoration: none; }
nav.links a:hover, nav.links a[aria-current] { color: var(--brand); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 500; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--cream); }
@media (prefers-color-scheme: dark) { .btn.primary { color: #111611; } }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(24px, 5vh, 64px) 0 clamp(24px, 4vh, 48px); min-height: min(760px, calc(100vh - 90px)); }
.hero h1 { font-size: clamp(38px, 5.2vw, 76px); }
.hero p.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--text-2); margin: 0 0 26px; max-width: 36ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.preview { position: relative; display: grid; gap: 14px; width: 100%; max-width: 500px; justify-self: end; padding: 22px; border-radius: 34px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.preview svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pv-quick { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.pv-quick svg { color: var(--brand); width: 18px; height: 18px; }
.pv-ccard { position: relative; overflow: hidden; aspect-ratio: 1.75; border-radius: 22px; padding: 18px 20px; color: #FFF6E0; background: linear-gradient(135deg, #5C7D5D, #2F4430); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 14px 30px rgba(30, 35, 20, .25); }
.pv-ccard::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.pv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.pv-row b { font-weight: 600; }
.pv-brand { display: inline-flex; } .pv-brand i { width: 22px; height: 22px; border-radius: 50%; background: #EB5A3C; } .pv-brand i + i { background: #F5A623; margin-left: -9px; opacity: .9; }
.pv-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #E9CF8A, #B8964B); }
.pv-digits { letter-spacing: .14em; font-size: 15px; opacity: .9; }
.pv-bottom { align-items: flex-end; }
.pv-bottom small, .pv-due small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.pv-bottom strong { font-size: clamp(22px, 2.2vw, 26px); font-weight: 600; letter-spacing: -.02em; }
.pv-due { text-align: right; font-size: 15px; }
.pv-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.pv-stat { display: grid; gap: 8px; }
.pv-stat-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.pv-ic { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.pv-value { font-size: clamp(20px, 2vw, 25px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.pv-foot { font-size: 13px; color: var(--muted); }
.pv-bad { color: var(--bad); font-weight: 500; }
.pv-list { padding-block: 8px; }
.pv-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.pv-item:first-child { border-top: 0; }
.pv-main { flex: 1; min-width: 0; display: grid; }
.pv-main b { font-weight: 500; font-size: 15px; }
.pv-main small { font-size: 13px; color: var(--muted); }
.pv-amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-wash); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.card .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px auto 0; max-width: 960px; }
.plans ~ p, .plans ~ .prose, .prose:has(+ .plans) { max-width: 960px; margin-inline: auto; }
.plan .price { font: 700 34px "Fraunces", serif; margin: 6px 0 2px; }
.plan .price small { font: 400 15px "Jost", sans-serif; color: var(--muted); }
.plan ul { padding-left: 20px; margin: 14px 0 0; color: var(--text-2); }
.plan.featured { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.tag { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--brand-wash); color: var(--brand-strong); padding: 3px 10px; border-radius: 999px; }

.callout { background: var(--brand-wash); border-radius: var(--radius); padding: 18px 22px; margin: 22px 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 500; }
details p { margin: 10px 0 0; color: var(--text-2); }

footer.bottom { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 20px; }
footer.bottom a { color: var(--muted); }
.updated { color: var(--muted); font-size: 14px; }

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 16px; }
  .preview { justify-self: center; max-width: 440px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  header.top { flex-wrap: wrap; gap: 10px; position: static; }
  nav.links { gap: 6px 14px; font-size: 14px; }
  nav.links a.nav-cta { padding: 6px 12px; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
  .preview { padding: 14px; border-radius: 26px; gap: 12px; }
  .pv-stats { gap: 10px; }
  .pv-card { padding: 14px; border-radius: 20px; }
  .pv-stat-top { font-size: 13px; gap: 8px; }
  .pv-ic { width: 32px; height: 32px; border-radius: 10px; }
  .pv-ic svg { width: 17px; height: 17px; }
  footer.bottom { margin-top: 48px; }
}
@media (max-width: 360px) {
  .pv-stats { grid-template-columns: minmax(0, 1fr); }
}
