/* Standalone styles for the Instant Preview & Audit tool — reuses CET brand tokens */
:root{
  --ink:#12111A; --muted:#5B5A72; --line:rgba(18,17,26,0.09);
  --violet:#1B3A6B; --pink:#2F6FE4; --cyan:#4FB6E8; --lime:#C6FF3D;
  --glass:rgba(255,255,255,0.6); --glass-brd:rgba(255,255,255,0.7);
}
*{box-sizing:border-box; margin:0; padding:0;}
body{font-family:'Inter',sans-serif; background:#F4F3FB; color:var(--ink); min-height:100vh; line-height:1.5;}
h1,h2,h3{font-family:'Space Grotesk',sans-serif; letter-spacing:-0.02em;}
a{color:inherit; text-decoration:none;}
.wrap{max-width:820px; margin:0 auto; padding:0 24px;}
.glass{background:var(--glass); backdrop-filter:blur(20px) saturate(160%); border:1px solid var(--glass-brd); box-shadow:0 16px 40px -18px rgba(31,20,90,0.18);}

nav{padding:20px 0;}
nav .wrap{display:flex; align-items:center; justify-content:space-between;}
.logo{display:flex; align-items:center; gap:10px; font-weight:700; font-size:17px;}
.logo-mark{width:32px; height:32px; border-radius:9px; background:linear-gradient(135deg,var(--violet),var(--pink)); display:flex; align-items:center; justify-content:center; color:#fff; font-family:'JetBrains Mono'; font-size:12px; font-weight:600;}
.back-link{font-size:13.5px; color:var(--muted);}

.tool-header{text-align:center; padding:36px 0 8px;}
.tool-header .eyebrow{display:inline-block; background:rgba(255,255,255,0.6); color:var(--violet); border:1px solid var(--glass-brd); padding:6px 14px; border-radius:99px; font-size:12px; font-weight:600; margin-bottom:16px;}
.tool-header h1{font-size:32px; margin-bottom:10px;}
.tool-header p{color:var(--muted); font-size:15px;}

.path-select{display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:36px 0;}
.path-card{border-radius:20px; padding:28px 24px; cursor:pointer; transition:transform .25s ease;}
.path-card:hover{transform:translateY(-3px);}
.path-card h3{font-size:17px; margin-bottom:8px;}
.path-card p{font-size:13.5px; color:var(--muted);}
.path-card .icon{font-size:26px; margin-bottom:12px;}

.tool-panel{display:none; margin-top:10px;}
.tool-panel.active{display:block;}
.field{margin-bottom:16px;}
.field label{display:block; font-size:13px; font-weight:600; margin-bottom:6px;}
.field input, .field select, .field textarea{
  width:100%; padding:13px 14px; border-radius:10px; border:1px solid var(--glass-brd); background:rgba(255,255,255,0.7);
  font-family:'Inter'; font-size:14px; color:var(--ink);
}
.style-options{display:flex; gap:10px; flex-wrap:wrap;}
.style-opt{padding:10px 16px; border-radius:99px; border:1px solid var(--glass-brd); background:rgba(255,255,255,0.5); font-size:13px; font-weight:600; cursor:pointer; color:var(--muted);}
.style-opt.active{background:var(--ink); color:#fff; border-color:var(--ink);}

.btn{display:inline-flex; align-items:center; gap:8px; padding:13px 24px; border-radius:99px; font-weight:600; font-size:14.5px; cursor:pointer; border:none; width:100%; justify-content:center;}
.btn-primary{background:linear-gradient(100deg,var(--violet),var(--pink)); color:#fff;}
.btn-back{background:none; border:none; color:var(--muted); font-size:13px; margin-bottom:14px; cursor:pointer;}

.loading{text-align:center; padding:50px 0; display:none;}
.loading.active{display:block;}
.spinner{width:40px; height:40px; border:3px solid var(--line); border-top-color:var(--pink); border-radius:50%; margin:0 auto 16px; animation:spin 0.8s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}

.result{display:none; margin-top:20px;}
.result.active{display:block;}
.score-ring{width:120px; height:120px; margin:0 auto 20px; position:relative;}
.score-ring svg{transform:rotate(-90deg);}
.score-ring .num{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk'; font-weight:700; font-size:30px;}
.issue{border-radius:14px; padding:16px 18px; margin-bottom:10px; display:flex; gap:12px; align-items:flex-start;}
.issue .dot{width:8px; height:8px; border-radius:50%; margin-top:6px; flex-shrink:0;}
.issue.high .dot{background:#e5484d;}
.issue.medium .dot{background:#f5a623;}
.issue.low .dot{background:var(--cyan);}
.issue h4{font-size:14px; margin-bottom:3px;}
.issue p{font-size:13px; color:var(--muted);}

.lead-gate{border-radius:18px; padding:26px; text-align:center; margin-top:20px;}
.lead-gate h4{font-size:16px; margin-bottom:8px;}
.lead-gate p{font-size:13.5px; color:var(--muted); margin-bottom:16px;}
.lead-gate .field{max-width:340px; margin:0 auto 12px;}

.preview-wrap{border-radius:18px; overflow:hidden; margin-top:20px; box-shadow:0 30px 70px -20px rgba(0,0,0,0.25);}
.preview-chrome{height:32px; background:#e9e9f0; display:flex; align-items:center; gap:6px; padding:0 14px;}
.preview-chrome span{width:9px; height:9px; border-radius:50%; background:#c7c7d6;}
.preview-site{min-height:420px;}
.preview-nav{display:flex; justify-content:space-between; align-items:center; padding:18px 30px;}
.preview-nav .pn-logo{font-family:'Space Grotesk'; font-weight:700; font-size:16px;}
.preview-nav .pn-links{display:flex; gap:22px; font-size:12.5px; font-weight:500; opacity:0.8;}
.preview-hero{padding:56px 30px; text-align:center;}
.preview-hero .tag{font-size:10.5px; font-family:'JetBrains Mono'; opacity:0.55; margin-bottom:14px; letter-spacing:0.05em;}
.preview-hero h2{font-size:30px; margin-bottom:14px; line-height:1.2;}
.preview-hero .sub{font-size:14.5px; opacity:0.8; max-width:440px; margin:0 auto 24px;}
.preview-hero .pn-btn{display:inline-block; padding:11px 26px; border-radius:99px; font-size:13px; font-weight:600;}
.preview-about{padding:36px 30px; text-align:center;}
.preview-about p{font-size:13.5px; opacity:0.8; max-width:500px; margin:0 auto;}
.preview-services-wrap{padding:10px 30px 46px;}
.preview-services-wrap .ps-title{text-align:center; font-size:11px; font-family:'JetBrains Mono'; opacity:0.5; margin-bottom:18px; letter-spacing:0.05em;}
.preview-services{display:grid; grid-template-columns:repeat(3,1fr); gap:14px;}
.preview-services .ps-card{border-radius:14px; padding:18px 14px; text-align:center; font-size:12.5px; font-weight:600;}
.preview-services .ps-card .ps-dot{width:28px; height:28px; border-radius:50%; margin:0 auto 10px;}
.preview-footer{padding:16px 30px; text-align:center; font-size:11px; opacity:0.5;}

.error-box{background:rgba(229,72,77,0.1); border:1px solid rgba(229,72,77,0.3); border-radius:12px; padding:16px; font-size:13.5px; color:#c0303a; margin-top:14px;}

.cta-final{text-align:center; padding:24px 0 60px;}
.cta-final p{color:var(--muted); font-size:13.5px; margin-bottom:14px;}

@media(max-width:640px){
  .path-select{grid-template-columns:1fr;}
  .preview-services{grid-template-columns:1fr;}
}
