/* Landing — usa os tokens de app.css */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--primary); margin-bottom: var(--s3); }
.head { max-width: 720px; margin-bottom: var(--s6); }
.head.center { margin-inline: auto; }
.head h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -.03em; line-height: 1.1; }
.hint.center { margin-top: var(--s5); }
.head .serif, .final .serif { font-size: 1.12em; color: var(--primary); }
.sub { color: var(--muted); font-size: 1.0625rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.6) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: var(--s5); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; font-size: 1.125rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.links { display: flex; gap: var(--s1); margin-inline: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.links a:hover { color: var(--text); background: var(--primary-soft); }
.actions { display: flex; align-items: center; gap: var(--s2); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 55% at 15% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%),
              radial-gradient(45% 45% at 95% 30%, color-mix(in srgb, var(--ok-solid) 14%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 50% 20%, #000, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: var(--s2); padding: 5px 14px 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .8125rem; font-weight: 500; color: var(--muted); text-decoration: none; box-shadow: var(--shadow-sm); margin-bottom: var(--s5); }
.pill:hover { border-color: var(--primary); color: var(--text); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-solid); box-shadow: 0 0 0 4px var(--ok-bg); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.75rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; margin-bottom: var(--s4); text-wrap: balance; }
.hero .hl { color: var(--primary); font-size: 1.1em; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; margin-bottom: var(--s5); }
.cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s5); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding: 0; margin: 0; color: var(--muted); font-size: .8125rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .i { color: var(--ok-solid); }

.hero-visual { position: relative; }
.frame { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.frame img { display: block; width: 100%; height: auto; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.frame-bar span { margin-left: var(--s3); font-size: .75rem; color: var(--faint); }
.hero-visual .frame { transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; }
.float { position: absolute; display: flex; align-items: center; gap: var(--s3); padding: 10px 16px 10px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-md); animation: bob 6s ease-in-out infinite; }
.float strong { display: block; font-size: .8125rem; line-height: 1.2; }
.float small { color: var(--muted); font-size: .75rem; }
.float .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.float .ico.ok { background: var(--ok-bg); color: var(--ok); } .float .ico.warn { background: var(--warn-bg); color: var(--warn); }
.f1 { left: -28px; bottom: 14%; } .f2 { right: -12px; top: 10%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); padding-block: var(--s5) 0; }
.stats div { padding: var(--s4) var(--s5); border-left: 2px solid var(--border-strong); }
.stats strong { display: block; font: italic 400 2.75rem/1 var(--serif); color: var(--primary); }
.stats span { color: var(--muted); font-size: .875rem; }

/* Versus */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); max-width: 900px; margin-inline: auto; }
.versus h3 { font-size: 1.0625rem; }
.versus ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.versus li { display: flex; gap: var(--s3); align-items: flex-start; }
.versus .before .i { color: var(--err-solid); margin-top: 3px; }
.versus .after { border-color: var(--ok-solid); background: linear-gradient(180deg, var(--ok-bg), var(--surface) 60%); }
.versus .after .i { color: var(--ok-solid); margin-top: 3px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.bento .card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); transition: transform .2s, box-shadow .2s, border-color .2s; }
.bento .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.bento h3 { font-size: 1.125rem; margin: var(--s2) 0 0; }
.bento p { color: var(--muted); margin: 0; }
.b-wide-2 { grid-column: span 2; }
.b-wide { grid-column: span 2; display: grid !important; grid-template-columns: 1fr 1.1fr; gap: var(--s5) !important; align-items: center; }
.b-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.b-ico .i { width: 20px; height: 20px; }
.mock-list { list-style: none; padding: var(--s3); margin: 0; display: grid; gap: var(--s2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); font-size: .8125rem; }
.mock-list li { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.mini-cal { display: flex; gap: var(--s2); margin-top: auto; padding-top: var(--s3); }
.mini-cal span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: var(--s2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); font-size: .6875rem; color: var(--muted); }
.mini-cal b { font-size: 1.25rem; color: var(--text); line-height: 1.1; }
.mock-meter { margin-top: auto; padding-top: var(--s3); }
.mock-meter .row { display: flex; justify-content: space-between; font-size: .8125rem; margin-bottom: 6px; }
.w86 { --v: 86; }
.mock-chat { display: grid; gap: var(--s2); font-size: .8125rem; }
.mock-chat .me { justify-self: end; background: var(--primary); color: var(--primary-contrast); padding: 8px 14px; border-radius: 14px 14px 4px 14px; }
.mock-chat .bot { background: var(--surface-2); border: 1px solid var(--border); padding: 10px 14px; border-radius: 14px 14px 14px 4px; line-height: 1.9; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); padding: 0; margin: 0; counter-reset: s; }
.steps .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--primary-contrast); font-weight: 700; margin-bottom: var(--s3); }
.steps p { color: var(--muted); margin: 0; }

/* Showcase */
.band { background: var(--surface); border-block: 1px solid var(--border); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1); padding: 4px; width: fit-content; max-width: 100%; margin: 0 auto var(--s5); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.tabs button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .875rem; color: var(--muted); cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--primary); color: var(--primary-contrast); box-shadow: var(--shadow-sm); }
.panels { max-width: 1000px; margin-inline: auto; }
.panels [hidden] { display: none; }
.phone { width: min(300px, 100%); margin-inline: auto; padding: 10px; border-radius: 36px; background: #0b1220; box-shadow: var(--shadow-lg); }
.phone img { display: block; width: 100%; height: auto; border-radius: 28px; }

/* Plans */
.toggle { display: flex; width: fit-content; margin: 0 auto var(--s6); padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; }
.seg { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .875rem; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: var(--s2); }
.seg[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg .tag { font-size: .6875rem; padding: 2px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: stretch; max-width: 1020px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: var(--s6) var(--s5); }
.plan h3 { font-size: 1.25rem; margin-bottom: 2px; }
.plan .for { color: var(--muted); font-size: .875rem; }
.plan .was { color: var(--faint); text-decoration: line-through; font-size: .875rem; margin: var(--s3) 0 0; min-height: 1.3em; }
.plan .was:empty { visibility: hidden; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin: 0; }
.plan .price strong { font-size: 2.75rem; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--muted); }
.plan .bill { color: var(--muted); font-size: .8125rem; margin: 2px 0 var(--s2); }
.plan .save { color: var(--ok); background: var(--ok-bg); font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; width: fit-content; min-height: 24px; }
.plan .save:empty { visibility: hidden; }
.plan ul { list-style: none; padding: 0; margin: var(--s4) 0 var(--s5); display: grid; gap: var(--s2); font-size: .9rem; flex: 1; align-content: start; }
.plan li { display: flex; gap: var(--s2); align-items: flex-start; }
.plan li .i { color: var(--ok-solid); margin-top: 3px; }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-10px); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 38%); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); margin: 0; background: var(--primary); color: var(--primary-contrast); font-size: .75rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: var(--s2); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 var(--s5); }
.faq details[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s4) 0; font-weight: 600; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: var(--s4); margin: 0; }

/* CTA + footer */
.final { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) var(--s5); border-radius: var(--r-xl); color: #fff; margin-bottom: var(--s8);
  background: radial-gradient(70% 90% at 80% 0%, #3b63f0, transparent 70%), linear-gradient(135deg, #0a1330, #14246b); }
.final h2 { font-size: clamp(1.75rem, 4.5vw, 3rem); letter-spacing: -.03em; text-wrap: balance; }
.final .serif { color: #a9bdff; }
.final p { color: #c7d2f2; }
.btn.light { background: #fff; color: #0a1330; border-color: #fff; }
.btn.light:hover { background: #e8edfe; border-color: #e8edfe; }
.foot { border-top: 1px solid var(--border); padding-block: var(--s6); }
.foot-grid { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; align-items: flex-start; }
.foot nav { display: flex; gap: var(--s5); flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: .875rem; }
.foot nav a:hover { color: var(--primary); }

/* Reveal: só esconde se o JS estiver ativo */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .plan.featured.reveal.in { transform: translateY(-10px); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual .frame { transform: none; }
  .f1 { left: 8px; } .f2 { right: 8px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b-wide, .b-wide-2 { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
  .bar .actions { margin-left: auto; }
}
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .bento, .steps, .plans, .versus { grid-template-columns: 1fr; }
  .b-wide, .b-wide-2 { grid-column: auto; } .b-wide { grid-template-columns: 1fr; }
  .plan.featured, .js .plan.featured.reveal.in { transform: none; }
  .float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
