/* Planny landing page. Tokens mirror src/theme.css and docs/marca-planny/tokens.json. */
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/landing/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("/landing/fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/landing/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("/landing/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("/landing/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --page: #f6f5fb;
  --surface: #ffffff;
  --surface-soft: #efedfa;
  --text: #24223f;
  --muted: #5b5878;
  --line: #dcd9ee;
  --primary: #4b3fd3;
  --primary-hover: #3e33bb;
  --on-primary: #ffffff;
  --on-primary-muted: #dedaff;
  --primary-overlay: #ffffff24;
  --accent: #4236c2;
  --accent-soft: #eeebff;
  --focus: #4b3fd3;
  --sun: #f4b63f;
  --on-sun: #24223f;
  --income: #08785c;
  --expense: #b53345;
  --shadow: #1d1a4015;
  --shot-shadow: 0 1px 2px #1d1a4012, 0 18px 40px -18px #1d1a4040;
  --display: Manrope, system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #131226;
    --surface: #1c1a35;
    --surface-soft: #272546;
    --text: #ecebfa;
    --muted: #b8b5d6;
    --line: #45426c;
    --primary: #5a4fe0;
    --primary-hover: #4c42cc;
    --on-primary-muted: #e4e1ff;
    --accent: #b9b2ff;
    --accent-soft: #2e2a5c;
    --focus: #c3bdff;
    --sun: #f6c35a;
    --income: #78dfb7;
    --expense: #ff9ea8;
    --shadow: #00000044;
    --shot-shadow: 0 1px 2px #0006, 0 18px 40px -18px #000a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }

/* Logo swaps file per theme (images cannot inherit color). */
.logo { display: inline-flex; text-decoration: none; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: 700 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 17px; border-radius: 12px; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px -6px #4b3fd380; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-sun { background: var(--sun); color: var(--on-sun); }
.btn-sun:hover { filter: brightness(1.05); }
.btn-on-primary { background: transparent; color: var(--on-primary); border-color: #ffffff80; }
.btn-on-primary:hover { background: #ffffff1a; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.header-nav { display: flex; gap: 26px; margin-left: 12px; }
.header-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.header-nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 10px; margin-left: auto; }

/* Hero */
.market-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero { padding: 56px 0 24px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.hero-visual { position: relative; padding: 0 0 64px 0; }
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shot-shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 2px 10px; }
.phone { margin: 0; width: 100%; max-width: 230px; border-radius: 34px; padding: 8px; background: #0e0d1d; box-shadow: var(--shot-shadow), inset 0 0 0 1px #ffffff1f; }
.phone img { border-radius: 27px; }
.hero-phone { position: absolute; right: -8px; bottom: 0; width: 34%; max-width: 210px; }
.sample-note { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* Live forecast chip (same animation language as the app's hero card). */
.forecast-chip {
  position: absolute; left: -28px; bottom: 18px; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  width: min(380px, 70%); padding: 16px 16px 16px 20px;
  border-radius: 16px; background: var(--primary); color: var(--on-primary);
  box-shadow: 0 20px 40px -18px #2a1f9a99;
}
.forecast-copy { display: grid; gap: 2px; min-width: 0; }
.forecast-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-primary-muted); }
.forecast-label { font-size: 13px; color: var(--on-primary-muted); }
.forecast-value { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.forecast-art { width: 116px; flex-shrink: 0; margin-left: auto; color: var(--on-primary); }

/* Month art (port of src/ui/MonthArt.tsx) */
.month-art { display: block; width: 100%; height: auto; overflow: visible; }
.month-art .day { fill: currentColor; fill-opacity: 0.22; transform-box: fill-box; transform-origin: center; animation: ma-day 0.26s ease-out backwards; animation-delay: calc(var(--i) * 18ms + var(--start, 0s)); }
.month-art .day.ahead { fill-opacity: 0; stroke: currentColor; stroke-opacity: 0.45; stroke-width: 1.5; }
.month-art .day.accent { animation: ma-day 0.26s ease-out backwards, ma-brighten 0.6s ease-in-out backwards; animation-delay: calc(var(--i) * 18ms + var(--start, 0s)), calc(1.15s + var(--j) * 45ms + var(--start, 0s)); }
.month-art .trend { animation: ma-reveal 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.45s + var(--start, 0s)) backwards; }
.month-art .line, .month-art .head { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.month-art .line.projected { stroke-dasharray: 0.5 7; }
.month-art .head { transform-box: fill-box; transform-origin: right center; animation: ma-head 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) calc(1.1s + var(--start, 0s)) backwards; }
.month-art .sun { fill: var(--sun); transform-box: fill-box; transform-origin: center; animation: ma-today 2.4s ease-in-out calc(1.3s + var(--start, 0s)) 2; }
.month-art .ring { fill: none; stroke: var(--sun); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ma-ring 2.4s ease-out calc(1.3s + var(--start, 0s)) 2; }
.month-art.waiting * { animation-play-state: paused; }
@keyframes ma-day { from { opacity: 0; transform: scale(0.6); } }
@keyframes ma-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ma-brighten { 50% { fill-opacity: 0.6; } }
@keyframes ma-head { from { opacity: 0; transform: translateX(-8px) scale(0.5); } }
@keyframes ma-today { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.3); } }
@keyframes ma-ring { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }

/* Promise strip */
.promise { padding: 40px 0 24px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.promise-grid > div { padding: 28px 28px 30px; }
.promise-grid > div + div { border-left: 1px solid var(--line); }
.promise h2 { font-size: 20px; margin-bottom: 8px; }
.promise p { color: var(--muted); font-size: 16px; }

/* Sections */
.section-head { max-width: 760px; margin: 0 auto 8px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.features { padding: 88px 0 24px; }
.feature { padding: 56px 0; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.feature.reverse .feature-copy { order: 2; }
.feature h3 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; margin-bottom: 14px; }
.feature-copy > p { color: var(--muted); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234b3fd3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23b9b2ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.shot { margin: 0; position: relative; }
.shot img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shot-shadow); background: #fff; }
.shot.stack { display: grid; gap: 16px; }
.shot.pair { display: grid; grid-template-columns: 0.85fr 1fr; gap: 16px; align-items: start; }
/* Calendar tiles behind each shot: the brand motif, quiet. */
.shot::before {
  content: ""; position: absolute; z-index: -1; inset: -22px -22px auto auto; width: 168px; height: 112px;
  background: var(--surface-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect x='2' y='2' width='20' height='20' rx='6'/%3E%3C/svg%3E") 0 0 / 28px 28px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect x='2' y='2' width='20' height='20' rx='6'/%3E%3C/svg%3E") 0 0 / 28px 28px;
}
.feature.reverse .shot::before { inset: auto auto -22px -22px; }

/* Family */
.family { padding: 88px 0; background: var(--surface); border-block: 1px solid var(--line); }
.family-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.family h2, .mobile h2, .trust h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; margin-bottom: 16px; }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.roles li { display: grid; gap: 2px; padding: 18px 20px; border-radius: 14px; background: var(--page); border: 1px solid var(--line); }
.roles strong { font-family: var(--display); font-size: 17px; }
.roles span { color: var(--muted); font-size: 16px; }

/* Mobile */
.mobile { padding: 96px 0; }
.mobile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.phones { display: flex; justify-content: center; gap: 24px; }
.phones .phone { max-width: 250px; }
.phones .phone:last-child { transform: translateY(48px); }

/* Steps */
.steps { padding: 72px 0 96px; }
.step-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step-list li { padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.step-list span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font: 800 18px var(--display); margin-bottom: 16px; }
.step-list h3 { font-size: 21px; margin-bottom: 8px; }
.step-list p { color: var(--muted); font-size: 16px; }

/* Trust */
.trust { padding: 0 0 88px; }
.trust-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; padding: 40px; border-radius: 20px; background: var(--accent-soft); }
.trust h2 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 10px; }
.trust p { color: var(--muted); max-width: 46em; }
.trust-links { display: flex; flex-direction: column; gap: 8px; white-space: nowrap; }
.trust-links a { color: var(--accent); font-weight: 700; }

/* FAQ */
.faq { padding: 0 0 96px; }
.faq-list { max-width: 820px; margin: 32px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 700 18px/1.4 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 26px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 44em; }

/* Final CTA */
.final-cta { padding: 0 0 96px; }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; padding: 56px; border-radius: 24px; background: var(--primary); color: var(--on-primary); overflow: hidden; }
.final-cta h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; margin-bottom: 10px; }
.final-cta p { color: var(--on-primary-muted); font-size: 19px; }
.final-art { color: var(--on-primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-row p { color: var(--muted); font-size: 15px; }
.footer-row nav { display: flex; gap: 20px; margin-left: auto; }
.footer-row nav a { color: var(--muted); font-size: 15px; text-decoration: none; }
.footer-row nav a:hover { color: var(--text); text-decoration: underline; }
.footer-row small { color: var(--muted); width: 100%; font-size: 13px; }

/* Responsive */
@media (max-width: 1080px) {
  .header-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 760px; }
  .forecast-chip { left: 12px; }
  .feature-grid, .family-grid, .mobile-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-copy { order: 0; }
  .feature-copy { max-width: 680px; }
  .mobile-grid .phones { order: 2; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding-top: 28px; }
  .lead { font-size: 17px; }
  .header-row { min-height: 60px; gap: 12px; }
  .header-actions .btn { min-height: 40px; padding: 8px 12px; font-size: 14px; }
  .logo img { width: 104px; height: auto; }
  .hero-visual { padding-bottom: 92px; }
  .hero-phone { width: 36%; right: 0; }
  .forecast-chip { left: 0; bottom: 0; width: 70%; padding: 12px 12px 12px 14px; gap: 10px; }
  .forecast-value { font-size: 22px; }
  .forecast-label { font-size: 12px; }
  .forecast-art { width: 76px; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .promise-grid > div { padding: 22px; }
  .features { padding-top: 64px; }
  .feature { padding: 36px 0; }
  .feature-copy > p { font-size: 17px; }
  .shot.pair { grid-template-columns: 1fr; }
  .shot::before { display: none; }
  .family, .mobile { padding: 64px 0; }
  .phones { gap: 14px; }
  .phones .phone:last-child { transform: translateY(28px); }
  .step-list { grid-template-columns: 1fr; }
  .steps { padding: 56px 0 64px; }
  .trust-grid { grid-template-columns: 1fr; padding: 28px 22px; }
  .final-grid { grid-template-columns: 1fr; padding: 36px 22px; }
  .final-art { max-width: 240px; }
  .footer-row nav { margin-left: 0; width: 100%; }
}
@media (max-width: 400px) {
  .header-actions .btn-ghost { display: none; }
  .forecast-chip { width: 76%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Premium: benefícios e preços */
.premium { padding: 88px 0; }
.premium-lead { color: var(--muted); font-size: 18px; margin-top: 14px; }
.premium-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.premium-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.premium-card h3 { font-family: var(--display); font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.premium-card p { color: var(--muted); }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 18px; margin-top: 36px; }
.price-card { position: relative; display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px 24px; text-align: center; }
.price-card.is-best { border: 2px solid var(--primary); background: var(--accent-soft); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--sun); color: var(--on-sun); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.price-name { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.price-value strong { font-family: var(--display); font-size: 38px; font-weight: 800; }
.price-note { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.premium-fine { max-width: 680px; margin: 26px auto 0; text-align: center; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .premium { padding: 64px 0; }
  .premium-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
}
