/* =====================================================================
   Public website — landing, tool detail, CMS pages.
   Faithful to the approved landing page, extended with a dark theme.
   ===================================================================== */

body.site { overflow-x: hidden; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.section { padding: 96px 0; position: relative; z-index: 2; }

/* ambient background */
.glow { position: fixed; z-index: 0; border-radius: 50%; filter: blur(120px); opacity: .55; pointer-events: none; }
.glow.g1 { width: 480px; height: 480px; background: color-mix(in srgb, var(--brand) 22%, transparent); top: -120px; left: -80px; }
.glow.g2 { width: 420px; height: 420px; background: color-mix(in srgb, var(--accent) 18%, transparent); bottom: -100px; right: -60px; }
[data-theme="dark"] .glow { opacity: .35; }
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.frag { position: absolute; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--surface) 55%, transparent);
  box-shadow: var(--shadow-sm); animation: float 26s ease-in-out infinite; }
.frag::before, .frag::after { content: ""; position: absolute; left: 12%; height: 2px; background: var(--line); }
.frag::before { top: 22%; width: 60%; }
.frag::after { top: 44%; width: 44%; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-32px) rotate(calc(var(--r) + 4deg)); } }

/* nav */
header.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: var(--glass); border-bottom: 1px solid var(--line); transition: background-color .25s; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: .92rem; color: var(--muted); }
.nav-links > a:not(.btn):hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; }
.mobile-menu { display: none; }

/* hero */
.hero { position: relative; z-index: 2; padding: 74px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.05rem); font-weight: 800; margin: 20px 0 22px; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { font-size: 1.14rem; color: var(--muted); max-width: 40ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn { padding: 12px 22px; font-size: .95rem; }
.trust-row { margin-top: 34px; display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--font-m); font-size: .74rem; color: var(--muted); letter-spacing: .03em; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* scanner illustration */
.scanner { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); }
.scanner-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.scanner-head .lbl { font-family: var(--font-m); font-size: .66rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.live { display: flex; align-items: center; gap: 7px; font-family: var(--font-m); font-size: .66rem; color: var(--accent); }
.live b { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 50% { opacity: .5; box-shadow: 0 0 0 6px transparent; } }
.scan-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc { position: relative; background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: 12px; padding: 16px 15px; overflow: hidden; min-height: 236px; }
.doc .t { height: 9px; border-radius: 3px; background: var(--line-strong); margin-bottom: 9px; }
.doc .t.s { background: var(--brand); height: 11px; width: 52%; opacity: .9; margin-bottom: 14px; }
.doc .t.a { width: 100%; } .doc .t.b { width: 82%; } .doc .t.c { width: 90%; } .doc .t.d { width: 66%; }
.doc .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.doc .box { height: 34px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line); }
.scanline { position: absolute; left: 0; right: 0; height: 44px; top: -44px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand) 16%, transparent) 60%, color-mix(in srgb, var(--brand) 30%, transparent));
  border-bottom: 2px solid var(--brand); box-shadow: 0 0 24px 5px color-mix(in srgb, var(--brand) 28%, transparent);
  animation: scan 3.6s cubic-bezier(.6, .05, .35, 1) infinite; }
@keyframes scan { 0% { top: -44px; } 55% { top: 100%; } 100% { top: 100%; } }
.fields { display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.xfield { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  box-shadow: var(--shadow-sm); opacity: 0; transform: translateX(14px); animation: pop .5s forwards; }
.xfield .ok { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.xfield .ok .icon { width: 10px; height: 10px; stroke-width: 3.2; }
.xfield .meta { font-family: var(--font-m); font-size: .6rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.xfield .val { font-family: var(--font-m); font-size: .82rem; color: var(--ink); font-weight: 500; }
@keyframes pop { to { opacity: 1; transform: translateX(0); } }
.xfield:nth-child(1) { animation-delay: 1.1s; } .xfield:nth-child(2) { animation-delay: 1.5s; } .xfield:nth-child(3) { animation-delay: 1.9s; }
.xfield:nth-child(4) { animation-delay: 2.3s; } .xfield:nth-child(5) { animation-delay: 2.7s; }

/* section heads */
.sec-head { max-width: 660px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; margin: 14px 0; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }

/* tool groups + cards */
.group { margin-bottom: 52px; }
.group-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.group-title h3 { font-size: 1.28rem; font-weight: 700; }
.group-title .no { font-family: var(--font-m); font-size: .72rem; color: var(--accent); letter-spacing: .12em; border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; background: var(--surface); }
.group-title .rule { flex: 1; height: 1px; background: var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.tcard { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px 18px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tcard:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: var(--shadow-lg); }
.tcard .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; background: var(--brand-soft); border: 1px solid var(--line); color: var(--brand); transition: background .2s, color .2s; }
.tcard .ico .icon { width: 21px; height: 21px; stroke-width: 1.7; }
.tcard:hover .ico { background: var(--accent-soft); color: var(--accent); }
.tcard h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; padding-right: 60px; }
.tcard p { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.tcard .tag { position: absolute; top: 18px; right: 16px; }
.tcard .go { margin-top: 14px; font-family: var(--font-m); font-size: .7rem; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(4px); transition: .2s; text-transform: uppercase; }
.tcard .go .icon { width: 12px; height: 12px; stroke-width: 2; }
.tcard:hover .go { opacity: 1; transform: none; color: var(--accent); }
@media (hover: none) { .tcard .go { opacity: 1; transform: none; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: 12px; margin-top: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 16px; position: relative; box-shadow: var(--shadow-sm); }
.step .n { font-family: var(--font-m); font-size: .74rem; color: var(--accent); letter-spacing: .08em; }
.step h4 { font-size: 1.02rem; font-weight: 600; margin: 10px 0 7px; }
.step p { font-size: .82rem; color: var(--muted); }
.step .arrow { position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--brand); z-index: 3; background: var(--bg); border-radius: 50%; padding: 2px; }
.step:last-child .arrow { display: none; }

/* stats band */
.band { background: linear-gradient(120deg, var(--brand), var(--brand-deep)); border-radius: 22px; padding: 42px 36px; display: grid; grid-template-columns: repeat(var(--stats, 4), 1fr);
  gap: 24px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 38%, transparent); filter: blur(30px); }
.cap { text-align: center; position: relative; z-index: 1; }
.cap .big { font-family: var(--font-d); font-size: 2.3rem; font-weight: 800; color: #fff; }
.cap .lbl { font-family: var(--font-m); font-size: .72rem; color: rgba(255, 255, 255, .78); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }

/* cta */
.cta-box { position: relative; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 64px 30px; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-box::before { content: ""; position: absolute; top: -45%; left: 50%; transform: translateX(-50%); width: 560px; height: 560px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent), transparent 65%); }
.cta-box h2 { position: relative; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.cta-box p { position: relative; color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 32px; }
.cta-box .btn { position: relative; }

/* footer */
footer.site-foot { border-top: 1px solid var(--line); padding: 48px 0 36px; position: relative; z-index: 2; margin-top: 20px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h5 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-grid a, .foot-grid p { color: var(--text); font-size: .9rem; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.foot-grid a:hover { color: var(--brand); }
.foot-grid .icon { color: var(--faint); width: 15px; height: 15px; }
.foot-about { color: var(--muted) !important; margin-top: 14px; max-width: 34ch; display: block !important; }
.foot-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }

/* floating whatsapp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; background: #25D366; color: #fff; font-family: var(--font-d);
  font-weight: 700; font-size: .92rem; padding: 13px 20px; border-radius: 40px; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .6); transition: transform .2s ease; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 20px; height: 20px; fill: #fff; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* tool detail page */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.crumbs .icon { width: 14px; height: 14px; color: var(--faint); }
.tool-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; padding: 56px 0 40px; position: relative; z-index: 2; }
.tool-hero .big-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--line); margin-bottom: 22px; }
.tool-hero .big-ico .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.tool-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.tool-hero .lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 22px; }
.tool-hero .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tool-desc { color: var(--text); font-size: .98rem; white-space: pre-line; }
.workspace { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); }
.dropzone { border: 2px dashed var(--line-strong); border-radius: 16px; padding: 44px 20px; text-align: center; background: var(--surface-2); transition: border-color .2s, background-color .2s; }
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .dz-ico { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.dropzone h4 { font-size: 1.05rem; margin-bottom: 6px; }
.dropzone p { color: var(--muted); font-size: .86rem; margin-bottom: 18px; }
.ws-note { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ws-note .icon { color: var(--brand); margin-top: 2px; }

/* tool page (full-width workspace) */
.tool-page { position: relative; z-index: 2; padding: 40px 0 20px; }
.tool-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.tool-head .big-ico { width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--line); flex: none; }
.tool-head .big-ico .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.tool-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.tool-head .lead { color: var(--muted); font-size: 1.05rem; margin-top: 4px; }
.tool-head .badges { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tool-page .workspace { padding: 24px; }
.tool-page .tool-desc { margin-top: 18px; white-space: pre-line; color: var(--text); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 22px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan.featured { border-color: color-mix(in srgb, #E07A1F 45%, var(--line)); box-shadow: 0 26px 50px -26px rgba(224, 122, 31, .45); }
.plan-flag { position: absolute; top: -12px; right: 22px; font-family: var(--font-m); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #F5B53F, #E07A1F); }
.plan-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.plan.featured .plan-name .icon { color: #E07A1F; }
.plan-price { font-family: var(--font-d); font-weight: 800; font-size: 2.6rem; color: var(--ink); line-height: 1; }
.plan-price span { font-family: var(--font-b); font-weight: 500; font-size: .9rem; color: var(--muted); margin-left: 6px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.plan li .icon { color: var(--accent); width: 17px; height: 17px; stroke-width: 2.6; margin-top: 3px; }

/* cms page */
.page-hero { padding: 64px 0 28px; position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; margin: 12px 0 10px; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.prose { position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 44px clamp(22px, 5vw, 56px); box-shadow: var(--shadow-sm);
  max-width: 860px; font-size: 1rem; line-height: 1.75; color: var(--text); margin-bottom: 80px; }
.prose h2 { font-size: 1.5rem; margin: 30px 0 12px; } .prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 12px; margin: 18px 0; }
.prose blockquote { border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; color: var(--muted); margin: 18px 0; }

/* responsive */
@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .hero-grid, .tool-hero { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; } .step .arrow { display: none; }
  .band { grid-template-columns: 1fr 1fr; gap: 30px; }
  .plans { grid-template-columns: minmax(0, 440px); }
  .tool-head .badges { margin-left: 0; }
  .tool-page .workspace { padding: 16px; }
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .mobile-menu { position: fixed; inset: 64px 12px auto 12px; z-index: 49; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 18px; background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .25s var(--ease); }
  .mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a:not(.btn) { padding: 11px 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
  .mobile-menu a:not(.btn):hover { background: var(--surface-3); }
  .mobile-menu .btn { margin-top: 6px; }
}
@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .scan-body { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .nav-actions .btn-login, .nav-actions .btn-cta { display: none; }
  .nav .brand-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .xfield { opacity: 1; transform: none; }
}
