/* Public pages, account and admin. Builds on the tokens in app.css. */
.ghostpill{background:transparent;color:var(--on-dark);border:1px solid rgba(255,255,255,.25);box-shadow:none}
.ghostpill:hover{background:rgba(255,255,255,.08)}
.flash{background:var(--good-soft);color:#0B5E36;font-weight:700;padding-block:12px}
.flash-err{background:var(--bad-soft);color:#8E1F1F}

/* landing */
.lp-hero .wrap{padding-block:64px 56px}
.lp-hero h1{font-size:clamp(34px,5vw,60px);max-width:16ch}
.lp-ctas{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.btn-outline-dark{display:inline-flex;align-items:center;height:58px;padding:0 26px;border-radius:12px;border:1px solid rgba(255,255,255,.3);color:var(--on-dark);text-decoration:none;font-weight:800;font-size:18px}
.btn-outline-dark:hover{background:rgba(255,255,255,.07)}
.checks{display:flex;gap:18px;flex-wrap:wrap;color:var(--on-dark);font-size:15.5px;list-style:none;margin:0;padding:0}
.checks li::before{content:"✓";color:var(--orange);font-weight:800;margin-inline-end:7px}
.preview{background:var(--white);border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.45);overflow:hidden;color:var(--text)}
.preview .ph{background:var(--black);padding:10px 14px;display:flex;gap:6px}
.preview .ph i{width:10px;height:10px;border-radius:50%;background:#444}
.preview .pb{padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.prow{display:grid;grid-template-columns:minmax(0,1fr) 64px 70px;gap:10px;align-items:center;font-size:14.5px;padding:8px 0;border-bottom:1px solid var(--line)}
.prow:last-child{border-bottom:0}
.prow b{color:var(--ink)}
.section{padding-block:72px}
.section.alt{background:var(--white)}
.section h2.big{font-size:clamp(28px,3.6vw,40px);text-align:center;margin:0 auto 10px;max-width:22ch}
.section .center{text-align:center;margin:0 auto 36px;max-width:60ch;color:var(--muted);font-size:18px}
.features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.feature{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:8px}
.section.alt .feature{background:var(--canvas);border-color:transparent}
.feature .fi{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:var(--orange-soft);color:var(--orange-ink);font-weight:800;font-size:20px}
.feature .fi.b{background:var(--blue-soft);color:#1E46C8}
.feature h3{font-size:19px}
.feature p{margin:0;color:var(--muted)}
.steps3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;counter-reset:s}
.step3{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:24px;position:relative}
.step3::before{counter-increment:s;content:counter(s);display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--navy-900);color:var(--orange);font-weight:800;margin-bottom:12px}
.step3 p{margin:6px 0 0;color:var(--muted)}
.pricing{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;align-items:stretch}
.price{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:14px;position:relative}
.price.featured{border:2px solid var(--orange);box-shadow:0 20px 50px rgba(255,165,0,.18)}
.price .badge{position:absolute;top:-13px;inset-inline-start:24px;background:var(--orange);color:var(--black);font-weight:800;font-size:13px;border-radius:999px;padding:3px 12px}
.price .amt{font-size:46px;font-weight:800;color:var(--ink);line-height:1}
.price .amt small{font-size:17px;color:var(--muted);font-weight:700}
.price ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;flex:1}
.price li::before{content:"✓";color:var(--good);font-weight:800;margin-inline-end:8px}
.price .btn-orange,.price .btn{justify-content:center;text-decoration:none}
.faq{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.faq details{background:var(--white);border:1px solid var(--line);border-radius:14px}
.faq summary{list-style:none;cursor:pointer;padding:18px 20px;font-weight:800;color:var(--ink);display:flex;gap:10px;justify-content:space-between;font-size:17px}
.faq summary::-webkit-details-marker{display:none}
.faq details p{margin:0;padding:0 20px 18px;color:var(--muted)}
.final{border-radius:24px}

/* auth */
.authwrap{min-height:calc(100vh - 72px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.authside{background:radial-gradient(700px 360px at 90% 0%,rgba(51,102,255,.4),transparent 60%),linear-gradient(180deg,var(--navy-900),var(--navy-800));color:var(--on-dark);padding:56px max(32px,env(safe-area-inset-right,0px)) 56px 32px;display:flex;flex-direction:column;gap:18px;justify-content:center}
.authside h2{color:var(--on-dark);font-size:34px;line-height:1.15}
.authmain{display:flex;align-items:center;justify-content:center;padding:40px 24px}
.authcard{width:100%;max-width:440px;display:flex;flex-direction:column;gap:16px}
.authcard h1{font-size:30px;color:var(--ink);margin:0}
.field2{display:flex;flex-direction:column;gap:6px;font-weight:700;color:var(--ink)}
.field2 input,.field2 select{height:50px;border:1.5px solid var(--line);border-radius:12px;padding:0 14px;font-size:16.5px;background:var(--white)}
.field2 input:focus,.field2 select:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 4px var(--blue-soft)}
.field2 .help{font-weight:500;color:var(--muted);font-size:13.5px}
.authcard .btn-orange{width:100%}
.alert{border-radius:12px;padding:12px 14px;font-weight:600}
.alert.err{background:var(--bad-soft);color:#8E1F1F}
.alert.ok{background:var(--good-soft);color:#0B5E36}
.planpick{display:flex;gap:8px;flex-wrap:wrap}
.planpick label{flex:1;min-width:120px;border:1.5px solid var(--line);border-radius:12px;padding:10px 12px;cursor:pointer;display:flex;flex-direction:column;gap:2px;font-weight:700}
.planpick input{position:absolute;opacity:0}
.planpick label:has(input:checked){border-color:var(--orange);background:var(--orange-soft)}
.planpick small{color:var(--muted);font-weight:600}

/* account & admin */
.acc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.meter{height:10px;border-radius:10px;background:var(--line);overflow:hidden}
.meter i{display:block;height:100%;border-radius:10px;background:var(--blue)}
.meter.full i{background:var(--bad)}
.usage{display:flex;flex-direction:column;gap:14px}
.usage .row{justify-content:space-between}
.inline{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.inline input,.inline select{height:40px;border:1px solid var(--line);border-radius:9px;padding:0 10px;font-size:15px;background:var(--white)}
.status{font-weight:800;border-radius:7px;padding:3px 10px;font-size:13.5px}
.status.active,.status.trial{background:var(--good-soft);color:#0B7A43}
.status.canceled,.status.expired,.status.past_due,.status.none{background:var(--bad-soft);color:var(--bad)}
.admin table td,.admin table th{font-size:14px}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.kpi{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:16px}
.kpi b{display:block;font-size:28px;color:var(--ink)}
.planedit{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:end}
.planedit label{display:flex;flex-direction:column;gap:4px;font-weight:700;font-size:13.5px;color:var(--muted)}
.planedit input{height:40px;border:1px solid var(--line);border-radius:9px;padding:0 10px;font-size:15px}
.planedit select{height:40px;border:1px solid var(--line);border-radius:9px;padding:0 8px;font-size:15px;background:var(--white);color:var(--ink);min-width:0;width:100%}
.upgrade-modal{position:fixed;inset:0;display:grid;place-items:center;background:rgba(5,2,42,.55);z-index:90;padding:16px}
.upgrade-modal .box{background:var(--white);border-radius:20px;max-width:480px;width:100%;padding:28px;display:flex;flex-direction:column;gap:12px}

@media (max-width:980px){.features,.steps3{grid-template-columns:minmax(0,1fr)}.authwrap,.acc{grid-template-columns:minmax(0,1fr)}.authside{display:none}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hero .wrap.hero-split{display:grid;flex-direction:initial}
a.btn-orange,a.btn,a.cta-pill{text-decoration:none}
/* Footer: dark, two quiet rows */
.foot{background:var(--black);color:#9A9DB8;font-size:14px;padding-block:22px 18px}
.foot-top{display:flex;align-items:center;justify-content:space-between;gap:16px 28px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.08)}
.foot-brand{display:block;line-height:0}.foot-brand img{height:26px;width:auto}
.foot-links{display:flex;gap:6px 24px;flex-wrap:wrap}
.foot-links a{color:#E6E7F2;text-decoration:none;font-weight:600}
.foot-links a:hover{color:var(--orange)}
.foot-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;padding-top:14px;font-size:13px}
.foot-legal{display:flex;gap:18px}
.foot-legal a{color:#9A9DB8;text-decoration:none}
.foot-legal a:hover{color:#fff;text-decoration:underline}
@media (max-width:640px){.foot-top,.foot-bottom{justify-content:center;text-align:center}.foot-links{justify-content:center}}
/* Terms and privacy */
.legal{background:var(--canvas);padding-block:36px 56px}
.legal .wrap{max-width:820px}
.legal-tabs{display:flex;gap:6px;margin-bottom:16px}
.legal-tabs a{padding:7px 14px;border-radius:9px;color:var(--muted);font-weight:700;text-decoration:none;font-size:15px}
.legal-tabs a:hover{color:var(--ink);background:#fff}
.legal-tabs a[aria-current="page"]{background:#fff;color:var(--ink);box-shadow:0 0 0 1px var(--line)}
.legal-doc{background:#fff;border:1px solid var(--line);border-radius:16px;padding:36px 40px;line-height:1.75;font-size:16px;color:var(--text)}
.legal-doc h1{font-size:30px;margin:0;color:var(--ink)}
.legal-upd{color:var(--muted);font-size:14px;margin:6px 0 22px}
.legal-doc h2{font-size:19px;margin:28px 0 8px;color:var(--ink)}
.legal-doc p{margin:0 0 10px}
.legal-doc ul{margin:0 0 10px;padding-inline-start:20px}
.legal-doc li{margin-bottom:6px}
.legal-doc a{color:var(--blue)}
.legal-contact{margin-top:30px;padding:16px 18px;border-radius:12px;background:var(--blue-soft);font-size:15px}
@media (max-width:640px){.legal-doc{padding:24px 18px;font-size:15.5px}.legal-doc h1{font-size:25px}}
/* A text the admin hid prints nothing: drop the empty element so it leaves no gap. */
.section :is(h1,h2,h3,p.center,p.lead,p.hint,a.btn,a.btn-orange,a.btn-outline-dark):empty,.hero :is(h1,p.lead,p.hint,a.btn-orange,a.btn-outline-dark):empty{display:none}
.oauthcard{gap:16px}
.oa-list{display:flex;flex-direction:column;gap:10px}
.oa-item{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-weight:400}
.oa-item>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-weight:800;flex:none;font-size:13px}
.oa-item.ok>span{background:var(--good-soft);color:var(--good)} .oa-item.no>span{background:var(--canvas);color:var(--muted)}
.oa-item input{width:20px;height:20px;margin:2px 2px 0;flex:none;accent-color:var(--blue)}
.oa-item b{display:block;color:var(--ink);font-size:15.5px}
.oa-item small{display:block;color:var(--muted);font-size:14px;line-height:1.5;margin-top:2px}
label.oa-item{cursor:pointer}
/* Sign in / sign up with Google */
.gsign{display:flex;align-items:center;justify-content:center;gap:12px;height:54px;border-radius:12px;background:#fff;color:#1f1f1f;font-weight:700;font-size:17px;text-decoration:none;border:1px solid #DADCE0;transition:box-shadow .15s,border-color .15s}
.gsign:hover{border-color:#C4C7CF;box-shadow:0 2px 10px rgba(8,5,48,.1)}
.gsign:focus-visible{outline:3px solid #3366FF;outline-offset:2px}
.orline{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px}
.orline::before,.orline::after{content:"";flex:1;height:1px;background:var(--line)}
/* Sign-up on one screen (body.auth-fit): header + two halves that fill the rest of the viewport, no page scroll */
body.auth-fit{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.auth-fit .topbar{flex:none}
.auth-fit .authwrap{flex:1;min-height:0}
.auth-fit .authside{display:flex;align-items:center;justify-content:center;padding:28px 40px;overflow:hidden}
.side-in{width:100%;max-width:560px;display:flex;flex-direction:column;gap:18px}
.auth-fit .authside h2{font-size:clamp(26px,2.3vw,36px);margin:0;text-wrap:balance}
.auth-fit .authside .lead{margin:0;font-size:17px;color:var(--on-dark-2)}
.auth-fit .authmain{padding:20px 24px;overflow-y:auto}
.auth-fit .authcard{gap:12px;max-width:480px}
.auth-fit .authcard h1{font-size:28px}
.auth-fit .field2{gap:4px;font-size:15px}
.auth-fit .field2 input{height:44px;font-size:16px}
.auth-fit .planpick label{padding:8px 12px}
.auth-fit .gsign{height:48px}
.fgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px}
.fgrid .span2{grid-column:1/-1}
.authfoot{margin:0;text-align:center}
/* The product preview on the dark side */
.kwmock{margin:0;width:100%;background:#fff;color:var(--ink);border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.08);overflow:hidden}
.kw-head{display:flex;align-items:center;gap:6px;padding:11px 14px;border-bottom:1px solid var(--line);background:#F7F8FC;font-size:14px}
.kw-dot{width:9px;height:9px;border-radius:50%;background:#D9DCE8}
.kw-head b{margin-inline-start:6px}
.kw-q{margin-inline-start:auto;border:1px solid var(--line);background:#fff;border-radius:8px;padding:3px 10px;font-weight:700;color:var(--muted)}
.kwmock table{width:100%;border-collapse:collapse;font-size:14.5px}
.kwmock th{text-align:start;font-weight:700;color:var(--muted);font-size:12.5px;padding:9px 14px 6px}
.kwmock td{padding:9px 14px;border-top:1px solid var(--line);font-weight:600}
.kwmock td:nth-child(2){font-variant-numeric:tabular-nums}
.kw-hot td{background:var(--orange-soft)}
.kw-pos{display:inline-block;min-width:30px;text-align:center;border-radius:20px;padding:2px 9px;font-size:13px;font-weight:800}
.kw-pos.up{background:var(--good-soft);color:var(--good)}
.kw-pos.mid{background:var(--warn-soft);color:var(--warn)}
.kw-pos.none{background:var(--bad-soft);color:var(--bad);font-weight:700}
.kwmock figcaption{padding:11px 14px;border-top:1px solid var(--line);background:var(--blue-soft);font-size:14px;line-height:1.5}
.kwmock figcaption b{color:var(--blue)}
.kw-note{margin:-8px 0 0;font-size:12.5px;color:rgba(255,255,255,.5);text-align:center}
@media (max-height:760px) and (min-width:981px){.auth-fit .authside .lead{display:none}.kwmock td{padding:7px 14px}}
@media (max-height:720px){
  .auth-fit .authmain{padding-block:12px}
  .auth-fit .authcard{gap:9px}
  .auth-fit .authcard h1{font-size:24px}
  .auth-fit .field2 input{height:42px}
  .auth-fit .gsign{height:44px}
  .auth-fit .planpick label{padding:6px 10px}
  .fgrid{gap:8px 10px}
}
/* Phone: a compact dark band (headline + two rows of the preview) above a compact form */
@media (max-width:980px){
  .auth-fit .topbar .nav{display:none}
  .auth-fit .topbar .wrap{flex-wrap:nowrap;padding-block:0;height:56px}
  .auth-fit .authwrap{display:flex;flex-direction:column}
  .auth-fit .authside{display:flex;flex:none;padding:12px 16px 14px}
  .side-in{gap:9px}
  .auth-fit .authside h2{font-size:18px;line-height:1.3;text-align:center}
  .auth-fit .authside .lead,.kwmock thead,.kwmock figcaption,.kw-x,.kw-dot{display:none}
  .kw-head{padding:6px 10px;font-size:12.5px}.kw-head b{margin:0}.kw-q{padding:1px 8px}
  .kwmock{border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.4)}
  .kwmock table{font-size:13px}.kwmock td{padding:6px 10px}
  .kw-pos{font-size:12px;padding:1px 8px}
  .kw-note{margin:-4px 0 0;font-size:11px}
  .auth-fit .authmain{flex:1;min-height:0;align-items:flex-start;padding:12px 16px}
  .auth-fit .authcard{gap:8px}
  .auth-fit .authcard h1,.auth-fit .authcard > p.muted:first-of-type{display:none}
  .auth-fit .gsign{height:42px;font-size:15.5px}
  .auth-fit .orline{font-size:13px}
  .auth-fit .planpick{gap:6px}
  .auth-fit .planpick label{min-width:0;padding:5px 8px;font-size:14px;line-height:1.2}
  .auth-fit .planpick small{font-size:11.5px}
  .auth-fit .fgrid{gap:8px}
  .auth-fit .fgrid .field2 > span,.auth-fit .fgrid .field2{font-size:0;gap:0}
  .auth-fit .fgrid .help{display:none}
  .auth-fit .field2 input{height:42px;font-size:16px}
  .auth-fit .authcard .btn-orange{height:46px;font-size:17px}
  .auth-fit .authfoot{font-size:12.5px}
}
