/* ===== RESET & BASE ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#0f0f14;--bg2:#18181f;--bg3:#222230;--surface:#1e1e2a;
  --text:#e8e8ef;--text2:#a0a0b8;--text3:#6b6b80;
  --accent:#6C5CE7;--accent2:#a29bfe;--accent-glow:rgba(108,92,231,.15);
  --green:#00b894;--red:#ff6b6b;--yellow:#fdcb6e;--orange:#e17055;
  --radius:12px;--radius-sm:8px;--radius-lg:16px;
  --shadow:0 4px 24px rgba(0,0,0,.3);--shadow-lg:0 8px 40px rgba(0,0,0,.4);
  --font:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --max-width:1160px;--transition:0.2s ease;
}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.65;font-size:16px;overflow-x:hidden}
img,svg{max-width:100%;height:auto}
button,input,select{font-family:var(--font);font-size:inherit}
a{color:var(--accent2);text-decoration:none;transition:color var(--transition)}
a:hover{color:var(--accent)}
.container{max-width:var(--max-width);margin:0 auto;padding:0 20px}
[hidden]{display:none!important}

/* ===== HEADER ===== */
.site-header{position:sticky;top:0;z-index:100;background:rgba(15,15,20,.85);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.06)}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:700;font-size:1.15rem}
.logo:hover{color:var(--text)}
.logo-accent{color:var(--accent2)}
.site-nav{display:flex;gap:24px}
.site-nav a{color:var(--text2);font-size:.9rem;font-weight:500}
.site-nav a:hover{color:var(--text)}

/* ===== HERO ===== */
.hero{padding:80px 0 60px;text-align:center;background:linear-gradient(180deg,var(--bg) 0%,var(--bg2) 100%)}
.hero-tagline{display:inline-block;background:var(--accent-glow);color:var(--accent2);padding:6px 16px;border-radius:20px;font-size:.85rem;font-weight:600;margin-bottom:20px}
.hero h1{font-size:clamp(2rem,5vw,3.2rem);font-weight:800;line-height:1.15;max-width:700px;margin:0 auto 16px;background:linear-gradient(135deg,var(--text) 0%,var(--accent2) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-sub{font-size:1.15rem;color:var(--text2);max-width:560px;margin:0 auto 32px;line-height:1.6}
.hero-note{color:var(--text3);font-size:.85rem;margin-top:16px}

/* ===== BUTTONS ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border-radius:var(--radius);font-weight:600;font-size:.95rem;cursor:pointer;border:none;transition:all var(--transition);text-decoration:none}
.btn-primary{background:var(--accent);color:#fff;box-shadow:0 4px 16px rgba(108,92,231,.3)}
.btn-primary:hover{background:var(--accent2);color:var(--bg);transform:translateY(-1px);box-shadow:0 6px 24px rgba(108,92,231,.4)}
.btn-outline{background:transparent;border:1px solid var(--text3);color:var(--text2)}
.btn-outline:hover{border-color:var(--accent2);color:var(--accent2)}
.btn-sm{padding:8px 16px;font-size:.85rem}
.btn-lg{padding:16px 32px;font-size:1.05rem}
.btn-full{width:100%}

/* ===== SECTIONS ===== */
.section-title{font-size:clamp(1.5rem,3.5vw,2rem);font-weight:700;text-align:center;margin-bottom:8px}
.section-sub{text-align:center;color:var(--text2);font-size:1.05rem;margin-bottom:40px;max-width:520px;margin-left:auto;margin-right:auto}

/* ===== BUILDER ===== */
.builder-section{padding:60px 0;background:var(--bg2)}
.builder-layout{display:grid;grid-template-columns:280px 1fr;gap:32px;align-items:start}
.scenario-cards{display:flex;flex-direction:column;gap:8px;position:sticky;top:80px}
.scenario-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 16px;border-radius:var(--radius);border:1px solid transparent;background:var(--surface);cursor:pointer;text-align:left;transition:all var(--transition);width:100%}
.scenario-card:hover{border-color:var(--accent);background:var(--bg3)}
.scenario-card.active{border-color:var(--accent);background:var(--accent-glow);box-shadow:0 0 0 1px var(--accent)}
.scenario-icon{font-size:1.3rem}
.scenario-name{font-weight:600;font-size:.9rem;color:var(--text)}
.scenario-desc{font-size:.78rem;color:var(--text3);line-height:1.4}

.builder-form-wrap{display:flex;flex-direction:column;gap:24px}
.builder-form{background:var(--surface);padding:28px;border-radius:var(--radius-lg);border:1px solid rgba(255,255,255,.06)}
.form-group{margin-bottom:20px}
.form-group label{display:block;font-size:.85rem;font-weight:600;color:var(--text2);margin-bottom:6px}
.form-group input,.form-group select{width:100%;padding:12px 16px;background:var(--bg);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-sm);color:var(--text);transition:border-color var(--transition);font-size:.95rem}
.form-group input:focus,.form-group select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-glow)}
.form-group input::placeholder{color:var(--text3)}

/* ===== SCRIPT OUTPUT ===== */
.script-output{background:var(--surface);border-radius:var(--radius-lg);border:1px solid rgba(255,255,255,.06);overflow:hidden}
.script-header{display:flex;align-items:center;justify-content:space-between;padding:20px 28px;border-bottom:1px solid rgba(255,255,255,.06);flex-wrap:wrap;gap:12px}
.script-header h3{font-size:1.1rem;font-weight:700}
.script-actions{display:flex;gap:8px}
.script-card{padding:28px}
.script-scenario-label{display:inline-block;background:var(--accent-glow);color:var(--accent2);padding:4px 12px;border-radius:20px;font-size:.8rem;font-weight:600;margin-bottom:20px}
.script-opening,.script-objections,.script-closing,.script-tone{margin-bottom:28px}
.script-opening h4,.script-objections h4,.script-closing h4,.script-tone h4{font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;color:var(--text3);margin-bottom:10px}
.script-opening p{font-size:1.1rem;line-height:1.7;color:var(--text);background:var(--bg);padding:20px;border-radius:var(--radius);border-left:3px solid var(--accent)}
.objections-intro{color:var(--text2);font-size:.9rem;margin-bottom:16px}
.objection-item{border:1px solid rgba(255,255,255,.06);border-radius:var(--radius);margin-bottom:8px;overflow:hidden}
.objection-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 18px;background:var(--bg);border:none;cursor:pointer;color:var(--text);font-size:.95rem;font-weight:500;text-align:left;transition:background var(--transition)}
.objection-trigger:hover{background:var(--bg3)}
.objection-trigger .arrow{color:var(--text3);transition:transform var(--transition);font-size:.8rem}
.objection-item.open .arrow{transform:rotate(180deg)}
.objection-response{padding:0 18px;max-height:0;overflow:hidden;transition:all .3s ease;color:var(--text2);font-size:.93rem;line-height:1.6}
.objection-item.open .objection-response{padding:14px 18px;max-height:300px;border-top:1px solid rgba(255,255,255,.04)}
.script-closing p{font-size:1rem;color:var(--green);background:rgba(0,184,148,.08);padding:16px;border-radius:var(--radius);border-left:3px solid var(--green)}
.script-tone ul{list-style:none;display:flex;flex-direction:column;gap:8px}
.script-tone li{padding:10px 16px;background:var(--bg);border-radius:var(--radius-sm);font-size:.9rem;color:var(--text2)}
.script-tone li::before{content:"→ ";color:var(--accent2)}

/* ===== SAVED SCRIPTS ===== */
.saved-scripts{background:var(--surface);border-radius:var(--radius-lg);border:1px solid rgba(255,255,255,.06);padding:24px}
.saved-scripts h3{font-size:1rem;font-weight:700;margin-bottom:16px}
.saved-item{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--bg);border-radius:var(--radius-sm);margin-bottom:8px}
.saved-item-info{font-size:.9rem}
.saved-item-info strong{color:var(--text)}
.saved-item-info span{color:var(--text3);font-size:.8rem;margin-left:8px}
.saved-item-actions{display:flex;gap:6px}

/* ===== INFO SECTION ===== */
.info-section{padding:60px 0;background:var(--bg)}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.info-card{background:var(--surface);padding:28px;border-radius:var(--radius-lg);border:1px solid rgba(255,255,255,.06)}
.info-num{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;background:var(--accent-glow);color:var(--accent2);border-radius:50%;font-weight:700;font-size:.9rem;margin-bottom:16px}
.info-card h3{font-size:1.05rem;font-weight:700;margin-bottom:10px}
.info-card p{color:var(--text2);font-size:.93rem;line-height:1.6}

/* ===== MISTAKES ===== */
.mistakes-section{padding:60px 0;background:var(--bg2)}
.mistakes-list{max-width:720px;margin:0 auto}
.mistake-item{border:1px solid rgba(255,255,255,.06);border-radius:var(--radius);margin-bottom:8px;overflow:hidden;background:var(--surface)}
.mistake-item summary{display:flex;align-items:center;gap:14px;padding:18px 20px;cursor:pointer;font-weight:600;font-size:.95rem;color:var(--text);list-style:none;transition:background var(--transition)}
.mistake-item summary::-webkit-details-marker{display:none}
.mistake-item summary:hover{background:var(--bg3)}
.mistake-item summary::after{content:"+";margin-left:auto;color:var(--text3);font-size:1.2rem;transition:transform var(--transition)}
.mistake-item[open] summary::after{content:"−"}
.mistake-num{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;background:rgba(255,107,107,.15);color:var(--red);border-radius:50%;font-weight:700;font-size:.8rem;flex-shrink:0}
.mistake-item p{padding:0 20px 18px 62px;color:var(--text2);font-size:.93rem;line-height:1.6}

/* ===== SPOTLIGHT ===== */
.scenario-spotlight{padding:60px 0;background:var(--bg)}
.spotlight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.spotlight-card{background:var(--surface);padding:28px;border-radius:var(--radius-lg);border:1px solid rgba(255,255,255,.06)}
.spotlight-card h3{font-size:1.1rem;font-weight:700;margin-bottom:4px}
.spotlight-meta{color:var(--text3);font-size:.85rem;margin-bottom:16px}
.spotlight-quote{background:var(--bg);padding:16px;border-radius:var(--radius);border-left:3px solid var(--accent);font-size:.93rem;color:var(--text);line-height:1.6;margin-bottom:16px;font-style:italic}
.spotlight-objection{font-size:.88rem;color:var(--text2);line-height:1.6}

/* ===== FAQ ===== */
.faq-section{padding:60px 0;background:var(--bg2)}
.faq-list{max-width:720px;margin:0 auto}
.faq-item{border:1px solid rgba(255,255,255,.06);border-radius:var(--radius);margin-bottom:8px;overflow:hidden;background:var(--surface)}
.faq-item summary{padding:18px 20px;cursor:pointer;font-weight:600;font-size:.95rem;color:var(--text);list-style:none;transition:background var(--transition)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:hover{background:var(--bg3)}
.faq-item summary::after{content:"+";float:right;color:var(--text3);font-size:1.2rem}
.faq-item[open] summary::after{content:"−"}
.faq-item p{padding:0 20px 18px;color:var(--text2);font-size:.93rem;line-height:1.6}

/* ===== FOOTER ===== */
.site-footer{background:var(--bg2);border-top:1px solid rgba(255,255,255,.06);padding:40px 0 24px}
.footer-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:32px;flex-wrap:wrap;gap:24px}
.footer-brand{max-width:300px}
.footer-brand .logo-text{font-size:1.1rem;font-weight:700;color:var(--text)}
.footer-brand p{color:var(--text3);font-size:.88rem;margin-top:8px;line-height:1.6}
.footer-links{display:flex;gap:20px;flex-wrap:wrap}
.footer-links a{color:var(--text2);font-size:.9rem}
.footer-links a:hover{color:var(--text)}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:20px;border-top:1px solid rgba(255,255,255,.04);font-size:.82rem;color:var(--text3)}
.footer-bottom a{color:var(--text3)}
.footer-bottom a:hover{color:var(--text2)}
.footer-legal{display:flex;gap:12px}

/* ===== PRINT ===== */
@media print{
  .site-header,.site-footer,.script-actions,.builder-form,.scenario-cards,.hero,.info-section,.mistakes-section,.scenario-spotlight,.faq-section,.btn{display:none!important}
  body{background:#fff;color:#000}
  .builder-section{padding:0}
  .builder-layout{display:block}
  .script-output{border:none;background:#fff}
  .script-card{padding:0}
  .script-opening p,.script-closing p,.objection-item{border-left-color:#333;background:#f5f5f5;color:#000}
  .objection-item p{color:#333}
  .script-tone li{background:#f5f5f5;color:#333}
  .script-scenario-label{background:#eee;color:#333}
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .builder-layout{grid-template-columns:1fr}
  .scenario-cards{flex-direction:row;overflow-x:auto;position:static;padding-bottom:8px;gap:8px}
  .scenario-card{min-width:140px;flex-shrink:0}
  .info-grid,.spotlight-grid{grid-template-columns:1fr}
  .site-nav{gap:14px}
  .site-nav a{font-size:.82rem}
  .hero{padding:50px 0 40px}
}
@media(max-width:600px){
  .container{padding:0 16px}
  .hero h1{font-size:1.7rem}
  .hero-sub{font-size:1rem}
  .script-header{flex-direction:column;align-items:flex-start}
  .footer-bottom{flex-direction:column;align-items:flex-start}
  .site-nav{display:none}
}

/* ===== ACCESSIBILITY ===== */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:0.01ms!important;transition-duration:0.01ms!important;scroll-behavior:auto!important}
}
:focus-visible{outline:2px solid var(--accent2);outline-offset:2px;border-radius:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ===== TOAST ===== */
.toast{position:fixed;bottom:24px;right:24px;background:var(--surface);color:var(--text);padding:14px 24px;border-radius:var(--radius);border:1px solid var(--accent);box-shadow:var(--shadow-lg);font-size:.9rem;z-index:999;animation:slideUp .3s ease}
@keyframes slideUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
