/* ============================================================
   Devonew — shared site styles (marketing + public + auth)
   Loads AFTER devonew/styles.css (reuses tokens, .btn, .card, .ph…)
   ============================================================ */

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-tight { max-width: 920px; }
body.site { background: var(--bg); }

/* âncoras (#recursos…) não podem parar embaixo da nav sticky */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

/* icon (svg stroke) sizing baseline */
.ico { display: inline-block; vertical-align: middle; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(from var(--bg) l c h / 0.82);
  backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-brand .mark {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 38% 34%, var(--accent-strong), var(--accent) 72%);
  box-shadow: 0 0 0 5px var(--accent-tint);
}
.nav-word { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.nav-word b { font-weight: 700; color: var(--accent-strong); } .nav-word span { font-weight: 500; }
.nav-links { display: flex; gap: 6px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
/* rótulo alternativo curto p/ celular (ex.: "Área do membro" → "Entrar") */
.nav-cta-short { display: none; }

@media (max-width: 860px) {
  .nav-inner { gap: 12px; height: 60px; }
  .nav-word { font-size: 18px; }
  .nav-links { display: none; }
  .nav-right { gap: 8px; }
  .nav-right .btn { padding: 9px 14px; font-size: 14px; }
  .nav-cta-text { display: none; }
  .nav-cta-short { display: inline; }
  .hide-mobile { display: none !important; }
  .menu-btn { display: inline-flex; }
  .mobile-menu { display: none; }
  .mobile-menu.open { display: flex; }
}
.mobile-menu {
  display: none; flex-direction: column; gap: 2px; padding: 16px 24px 20px;
  border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow-md);
}
.mobile-menu a { padding: 13px 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: none; }
/* bloco de ações no topo do menu (CTA + entrar) */
.mobile-menu .mm-cta { display: flex; flex-direction: column; gap: 10px; padding: 0 0 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-cta .btn { justify-content: center; padding: 14px 18px; font-size: 15px; }
/* linha utilitária (tema) no rodapé do menu */
.mobile-menu .mm-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 2px; color: var(--muted); font-size: 14px; font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-strong); font-weight: 500;
}
.h-display { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-track, -0.03em); line-height: 1.08; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(34px, 6.2vw, 60px); }
.h2 { font-size: clamp(28px, 4.6vw, 44px); }
.h3 { font-size: clamp(22px, 3.4vw, 30px); }
.lead { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 70% 0%, var(--accent-tint), transparent 60%);
  opacity: 0.8;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin: 18px 0 0; }
.hero .lead { margin: 22px 0 30px; max-width: 34ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 13px; color: var(--muted); margin-top: 16px; display: flex; align-items: center; gap: 8px; }
@media (max-width: 560px) {
  .hero { padding: 40px 0 28px; }
  /* CTAs empilhados e fáceis de tocar */
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; text-align: center; }
}

/* browser frame for product visuals */
.frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.frame-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame-lights { display: flex; gap: 6px; }
.frame-lights i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.frame-url { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-align: center; }
.frame-view { overflow: hidden; background: #fff; }
.frame-view iframe { border: 0; display: block; transform-origin: top left; }

/* ---------- features ---------- */
.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: transform .16s var(--ease), box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-ico { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--accent-tint); color: var(--accent-strong); margin-bottom: 18px; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* small differentiator chips row */
.chips-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- subdomain demo ---------- */
.sub-demo { display: flex; align-items: stretch; gap: 0; max-width: 480px; margin: 0 auto; }
.sub-demo input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-right: none;
  border-radius: 999px 0 0 999px; padding: 15px 22px; font-family: var(--font-text); font-size: 16px;
  background: var(--surface); color: var(--ink); outline: none; text-align: right;
}
.sub-demo input:focus { border-color: var(--accent); }
.sub-demo .suffix {
  display: flex; align-items: center; padding: 0 22px 0 4px; border: 1px solid var(--line); border-left: none;
  border-radius: 0 999px 999px 0; background: var(--surface); color: var(--muted); font-family: var(--font-mono); font-size: 14px; white-space: nowrap;
}
.sub-status { text-align: center; margin-top: 14px; font-size: 14px; font-weight: 600; min-height: 20px; }
.sub-status.ok { color: var(--accent-strong); } .sub-status.no { color: oklch(0.55 0.13 28); }

/* ---------- calculator ---------- */
.calc { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .calc { grid-template-columns: 1fr 1fr; } }
.calc-control label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 18px; }
.calc-control output { font-family: var(--font-display); font-weight: 600; color: var(--accent-strong); font-size: 1.15em; }
input[type="range"].slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); outline: none; }
input[type="range"].slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; }
input[type="range"].slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); cursor: pointer; }
.calc-result { text-align: center; padding: 36px; border-radius: var(--r-xl); background: radial-gradient(120% 100% at 100% 0%, var(--accent-tint), transparent 60%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.calc-big { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(48px, 9vw, 76px); line-height: 1; color: var(--accent-strong); }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; max-width: 820px; margin: 0 auto; }
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.plan.feat { border-color: var(--accent); box-shadow: var(--shadow-md); position: relative; }
.plan.feat::after { content: "Mais popular"; position: absolute; top: -12px; right: 24px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; padding: 5px 13px; border-radius: 999px; }
.plan-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.plan-price b { font-family: var(--font-display); font-weight: 700; font-size: 42px; letter-spacing: -0.03em; }
.plan-price span { color: var(--muted); font-size: 15px; }
.plan-list { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.plan-list .ico { color: var(--accent-strong); flex: none; margin-top: 1px; }

/* ---------- steps / onboarding ---------- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-strong); font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--r-xl); padding: 56px 40px; text-align: center; background: linear-gradient(150deg, var(--accent-strong), var(--accent)); color: var(--accent-ink); box-shadow: var(--shadow-md); }
.cta-band .h2 { color: var(--accent-ink); }
.cta-band p { color: oklch(1 0 0 / 0.85); font-size: 17px; margin: 14px auto 28px; max-width: 46ch; }
@media (max-width: 560px) {
  .cta-band { padding: 40px 22px; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .sub-demo .suffix { padding: 0 14px 0 4px; font-size: 12.5px; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; font-weight: 600; }
.footer a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 5px 0; }
.footer a:hover { color: var(--accent-strong); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- floating chat ---------- */
.fab { position: fixed; bottom: 24px; right: 24px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); border: none; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; transition: transform .15s var(--ease); }
.fab:hover { transform: scale(1.05); }
.chatbox { position: fixed; bottom: 92px; right: 24px; z-index: 80; width: min(360px, calc(100vw - 32px)); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; transform: translateY(12px) scale(0.98); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.chatbox.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow-y: auto; }
.bubble { padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.5; max-width: 85%; }
.bubble.bot { background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 5px; align-self: flex-start; }
.bubble.me { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; align-self: flex-end; }
.chat-quick { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.chat-quick button { text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.chat-quick button:hover { border-color: var(--accent); color: var(--accent-strong); }

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

/* theme toggle (shared, compact) */
.tt { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.tt button { width: 30px; height: 30px; border-radius: 50%; border: none; background: none; color: var(--faint); display: flex; align-items: center; justify-content: center; }
.tt button.on { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
