
:root{
  --max:1200px;
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#6b7280;
  --primary:#4f46e5;
  --primary-soft:#eef2ff;
  --border:#e5e7eb;
  --radius:18px;
}
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}


body{
  font-family:'Manrope',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
  radial-gradient(700px 300px at 50% -120px,#eef2ff,transparent),
  linear-gradient(#f8f9fc,#eef1f6);
}
/* ================= HEADER ================= */

.topbar{
  position:sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid var(--border);
  z-index:100;
}

.topbar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 26px;
}

.logo{
  font-size:26px;
  font-weight:800;
  color:var(--primary);
  text-decoration:none;
}

.tagline{
  font-size:12px;
  color:var(--muted);
}

.top-nav{
  display:flex;
  gap:24px;
  justify-content:center;
  width:100%;
}

@media(max-width:768px){
  .top-nav{
    justify-content:center;
    text-align:center;
  }
}
.top-nav a{
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  color:#334155;
}

.top-nav a.active{
  color:var(--primary);
  border-bottom:2px solid var(--primary);
}

/* ================= MAIN ================= */

.app{
  max-width:1400px;
  margin:auto;
  padding:24px 18px 60px;
}
/* ================= HERO ================= */

.intro{
  text-align:center;
  max-width:var(--max);
  margin: 6px auto 4px;
}


.intro-trust{
  margin-top:8px;
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  font-size:14px;
}

/* ================= EDITOR ================= */
.editor{
  background:var(--card);
  border-radius:28px;
  padding:28px;
  box-shadow:0 14px 32px rgba(0,0,0,.05);
  border:1px solid #eef0f6;
  margin-top:0px;
  position:relative;
  margin-bottom:0;

  width:100%;
  max-width:1400px;
  margin-left:auto;
  margin-right:auto;
}

textarea{
  width:100%;
  max-width:100%;
  min-height:260px;
  border-radius:22px;
  border:1px solid var(--border);
  padding:20px 22px; 
  font-size:16px;
  line-height:1.75;
  resize:vertical; 
  background:#fff;
  box-shadow:inset 0 1px 6px rgba(0,0,0,.06);
    margin-top:6px;
    font-family: inherit;

}

.action-row{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:8px;
   margin-bottom:2px;
}

/* privacy message center */
.privacy-line{
  text-align:center;
  width:100%;
  margin-top:2px;
  font-size:14px;
  color:#6b7280;
}
button{
  margin:4px 6px;
}

textarea:focus{
  outline:none;
  border-color:#6366f1;
  box-shadow:0 0 0 3px rgba(99,102,241,.12);
}
button:active{
  transform:scale(.97);
}


/* ================= TRUST LINES ================= */

.trust-line{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  width:100%;
  text-align:center;
  max-width:560px;
  margin:10px auto 0;
}

.instant-note{
  text-align:center;
  margin-top:6px;
}

.trust-line span{white-space:nowrap}

/* ================= STATS ================= */

.stat-card{
  background:var(--card);
  border-radius:22px;
  padding:20px 16px;
  text-align:center;
  border:1px solid #eef0f6;
  /* box-shadow:0 12px 24px rgba(0,0,0,.05); */
  transition:.18s ease;
}

.stat-card:hover{
  transform:translateY(-3px);
      box-shadow: 0 6px 12px rgb(96 96 96 / 8%);
}

.stat-card strong{
  font-size:26px;
  color:#4f46e5;
}

.stat-card span{
  font-size:13px;
  color:var(--muted);
}
.muted{
  font-size:12px;
  color:#9ca3af;
  display:block;
  margin-top:2px;
}
/* ================= ACTIONS ================= */


button{
  border:none;
  border-radius:999px;
  padding:12px 28px;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  margin:6px;
  box-shadow:0 16px 34px rgba(79,70,229,.28);
}

button.secondary{
  background:#eef2ff;
  color:#4f46e5;
  box-shadow:none;
}

/* ================= KEYWORDS ================= */
/* ================= KEYWORDS UI ================= */

.keywords-section{
  margin-top: 22px;
  padding:20px;
   background:#fafbff;
  border-radius:18px;
  border:1px solid #eef0f6;
  box-shadow:0 10px 25px rgba(0,0,0,0.04);
  text-align:center;
}

.keyword-chip{
  font-size:13px;
  padding:7px 12px;
}

.keywords-header h3{
  font-size:20px;
  margin-bottom:6px;
  font-weight:700;
}

.keywords-sub{
  font-size:13px;
  color:#6b7280;
}

/* chips container */
.keywords-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:18px;
}

/* chip */
.keyword-chip{
  background:#eef2ff;
  color:#3730a3;
  padding:8px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  transition:0.2s;
}

.keyword-chip:hover{
  background:#4f46e5;
  color:#fff;
}

/* buttons */
.keywords-actions{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:10px;
}

.keywords-actions button{
  padding:8px 14px;
  border-radius:10px;
  border:none;
  background:#4f46e5;
  color:white;
  font-size:13px;
  cursor:pointer;
}

.keywords-actions .ghost{
  background:#eef2ff;
  color:#3730a3;
}

/* ================= SEO ================= */

.home-seo{
  max-width:var(--max);
  margin:40px auto 0;
  padding:28px;
  background:#ffffff;
  border-radius:22px;
  box-shadow:0 20px 40px rgba(0,0,0,.05);
  border:1px solid #eef0f6;
  line-height:1.85;
  font-size:15px;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

  :root{--max:94%}



  .hero-title{font-size:28px}
  button{
    width:100%;
    padding:12px 18px;
  }

  .keywords-actions button{
    width:auto;
  }

  textarea{
    min-height:180px;
    font-size:15px;
  }

  .stats{
    grid-template-columns:repeat(2,1fr);
  }

  button{
    width:100%;
  }


  .editor{
    padding:20px;
    border-radius:20px;
  }

  .stat-card strong{
    font-size:26px;
  }
}


.lang-detect{
  font-size:14px;
  color:#666;
  margin-bottom:14px;   /* gap create */
  display:block;
  padding-left:2px;
}
.language-badge{
  display:inline-block;
  background:#eef2ff;
  color:#4338ca;
  font-size:13px;
  padding:6px 12px;
  border-radius:999px;
  margin-bottom:10px;
  font-weight:500;
}




.actions label{
  margin:0 10px;
  font-size:14px;
}


@media(max-width:768px){
  .live-bar{
    position:sticky;
    top:72px;
    z-index:50;
    border-radius:0;
  }
}


.live-left span{
  margin-right:12px;
  font-weight:600;
}

.live-right{
  font-weight:700;
  color:#4f46e5;
}
.floating-stats{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
background:rgba(255,255,255,0.60);
backdrop-filter:blur(6px);  border-top:1px solid #e5e7eb;
  padding:8px 12px;
  display:flex;
  justify-content:space-between;
  font-weight:600;
  z-index:30;
  box-shadow:0 -8px 24px rgba(0,0,0,.08);
  padding-bottom:env(safe-area-inset-bottom);
}



@media(min-width:769px){
  .floating-stats{
    display:none;
  }
}


@media(min-width:769px) and (max-width:1024px){
  .stats{
    grid-template-columns:repeat(3,1fr);
  }
}

button:focus{
  outline:3px solid #c7d2fe;
}
.final-trust{
  text-align:center;
  margin-top:28px;
  font-size:13px;
  color:#6b7280;
}

footer{
  text-align:center;
  margin-top:24px;
  padding-bottom:40px;
  color:var(--muted);
  font-size:14px;
}

.tagline-wrap{
  max-width:700px;
  margin:8px auto 14px;
  text-align:center;
  font-size:13px;
  color:#6b7280;
}
.pdf-import{
  text-align:center;
  margin-top:2px;
}

.pdf-btn{
  font-size:13px;
  color:#4f46e5;
  cursor:pointer;
  font-weight:600;
}

.pdf-btn:hover{
  text-decoration:underline;
}
#goalHint{
  text-align:center;
  margin:10px auto 14px;
  font-size:14px;
  color:#374151;
  font-weight:500;
}
#targetStatus{
  text-align:center;
  margin:10px 0 6px;
  font-size:14px;
  font-weight:500;
}

.target-info{
  color:#2563eb;
}

.target-success{
  color:#16a34a;
  font-weight:600;
}
.goal-hint{
  text-align:center;
  margin:10px 0 14px;
  font-size:14px;
  color:#7398d3;
  font-weight:500;
}
.keyword-chip{
  background:#f1f5ff;
  border:1px solid #e5e7eb;
}
/* ===== KEYWORD COPY BUTTON FEEL ===== */
/* ===== COPY BUTTONS ===== */

.action-row button,
.keywords-actions button{
  background:#4f46e5;
  color:#fff;
  border:none;
  padding:8px 14px;
  border-radius:10px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:all .15s ease;
}

/* hover */
.action-row button:hover,
.keywords-actions button:hover{
  background:#4338ca;
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}

/* click press feel */
.action-row button:active,
.keywords-actions button:active{
  transform:scale(.96);
  box-shadow:0 2px 6px rgba(0,0,0,.2) inset;
}

/* ghost hashtag button */
.keywords-actions .ghost{
  background:#eef2ff;
  color:#4f46e5;
}

.keywords-actions .ghost:hover{
  background:#e0e7ff;
}
.ocr-bar-bg{
  height:6px;
  background:#eee;
  border-radius:6px;
  overflow:hidden;
  margin-top:6px;
}
#ocrBar{
  height:100%;
  width:0%;
  background:#4f46e5;
  transition:width .2s;
}
/* ===== MOBILE FIX FINAL ===== */
@media (max-width: 768px){

  body{
    padding:0;
    margin:0;
  }

.app{
  max-width:880px;
  margin:auto;
  width:100%;
}


  .editor{
    width:100%;
  }

  textarea{
    width:100%;
    font-size:16px;
  }

  .stats{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .stats-secondary{
    grid-template-columns:1fr 1fr;
  }

  .topbar-inner{
    padding:10px 14px;
  }


  h1{
    font-size:22px;
    line-height:1.3;
  }

  .subtitle{
    font-size:14px;
  }
}
#languageWrap{
  margin-top:6px;
  display:flex;
  justify-content:flex-start;
}

#languageBadge{
  font-size:12px;
  background:#f2f2f2;
  padding:3px 8px;
  border-radius:6px;
  display:none;
}
#pdfError{
  display:none;
  margin:10px auto;
  max-width:520px;
  text-align:center;
  background:#ffe9e9;
  color:#c62828;
  padding:8px 12px;
  border-radius:6px;
  font-size:13px;
}
.waiting-dots::after{
  content:"";
  animation:dots 1.2s steps(4,end) infinite;
}

@keyframes dots{
  0%{content:"";}
  25%{content:".";}
  50%{content:"..";}
  75%{content:"...";}
  100%{content:"";}
}
.contact-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:12px;
}

.contact-form label{
  display:flex;
  flex-direction:column;
  font-size:14px;
  font-weight:600;
}

.contact-form input,
.contact-form textarea{
  margin-top:6px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  font-size:14px;
}

.contact-form textarea{
  grid-column:1 / -1;
  min-height:160px;
  resize:vertical;
}

.cta-btn{
  grid-column:1 / -1;
  width:220px;
  margin-top:14px;
}


@media(max-width: 480px){
  .contact-form{
    grid-template-columns:1fr;
  }
  .cta-btn{
    width:100%;
  }
}

.editor p{
  line-height:1.7;
  margin-bottom:10px;
}

.editor h2{
  margin-top:18px;
  margin-bottom:6px;
}

.editor ul{
  margin-top:6px;
  margin-bottom:12px;
  line-height:1.7;
}
/* ===== STATIC PAGE BOX SPACING FIX ===== */



.instant-line{
  text-align:center;
  margin-top:8px;
  font-size:14px;
  color:#6b7280;
}
.hindi-page .intro h1{
  max-width:900px;
  margin:auto;
}

button.ghost{
  background:#eef2ff;
  color:#4f46e5;
  box-shadow:none;
}
.visually-hidden{
  position:absolute;
  left:-9999px;
}

.hindi-page .intro{
  margin-top:24px;
}
.actions{
  margin-top:18px;
  margin-bottom:18px;
}
.seo-content{
  margin-top:26px;
}
.stats-primary{
  margin-top:18px;
}

.stats-secondary{
  margin-top:12px;
}


@media(max-width:700px){
  .subtitle{white-space:normal;}
}


.case-section{
  margin-top:22px;
}

.case-card{
  border-radius:18px;
  padding:20px;
  background:#f8f9ff;
  border:1px solid #eef0f6;
}

.case-title{
  font-size:16px;
}

.case-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}

.case-title{
  font-size:18px;
  font-weight:700;
}

.case-badge{
  font-size:12px;
  background:#eef2ff;
  color:#4f46e5;
  padding:6px 10px;
  border-radius:999px;
  font-weight:600;
}

.case-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}

.case-buttons button{
  padding:8px 14px;
  font-size:13px;
  border-radius:10px;
}

.case-note{
  margin-top:14px;
  text-align:center;
  font-size:13px;
  color:#6b7280;
}
.static-page .intro,
.static-page .editor {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.tools-links {
  max-width: 880px;
  margin: 20px auto;
  text-align: center;
}
.static-page .editor {
  margin-top: 20px;
}

.static-page .editor + .editor {
  margin-top: 24px;
}
.site-footer {
  margin-top: 40px;
  padding-bottom: 40px;
}

.center{
  text-align:center;
  width:100%;
}

textarea::placeholder{
  color:#9ca3af;
  font-weight:400;
}
.subtitle{
  max-width:900px;
  margin:8px auto 0;
  line-height:1.6;
  white-space:normal;
  color:var(--muted);
  font-size:15px;
}
.main-actions{
  margin-top:8px;
  margin-bottom:0;
}
.action-row + .pdf-import{
  margin-top:0px;
}
.hero-trust {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
  text-align: center;
}

/* desktop: single line */
@media(min-width:1024px){
.app h1{
  white-space:normal;
}
}

/* mobile */
@media(max-width:768px){
  .app h1{
    font-size:26px;
    white-space:normal;
  }
}

/* FULL WIDTH HERO */
.hero-full{
  width:100%;
  text-align:center;
  padding: 8px 20px 0px;
}

.hero-full h1{
  max-width:1100px;
  margin:0 auto 12px;
  font-size:clamp(36px,4vw,48px);
  line-height:1.2;
  font-weight:800;
}

.hero-full .subtitle{
  white-space:normal;
  max-width:1200px;
  margin:0 auto;
}
.hero-trust{
  margin-top:6px;
  font-size:13px;
}
.workspace{
  display:grid;
  grid-template-columns: 1.7fr 1fr;
  gap:36px;
  max-width:1400px;
  margin-top:-6px;
  align-items:start;
}

.editor-left{ padding-right:14px; }




.editor-left{
  display:flex;
  flex-direction:column;
  height:100%;
  
 padding-right: 12px;
}


.editor-left textarea{
  
  flex:1;
  min-height:65vh;
}


@media(max-width:900px){
  .workspace{
    grid-template-columns:1fr;
  }
 
}
@media(max-width:900px){
  .workspace{
    grid-template-columns:1fr;
    gap:22px;
  }

  .tools-right{
    position:static;   /* sticky हटाया */
    top:auto;
    padding:20px;
    border-left:none;
  }
}


/* wrapper feel */
.tools-right{
  background:#fff;
  border-radius:22px;
}

.tools-right .stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:4px;
}
.tools-right .stats + .case-section{
  border-top:1px solid #f0f1f6;
  padding-top:18px;
}

.case-section + .keywords-section{
  border-top:1px solid #f0f1f6;
  padding-top:18px;
}
.tools-right .stat-card{
  background:#fafbff;
  border:1px solid #eef0f6;
  border-radius:18px;
  padding:20px 18px;
  text-align:left;
  transition:.18s;
}

.tools-right .stat-card strong{
  font-size:28px;
  letter-spacing:.3px;
  font-weight:800;
  color:#111827;
  display:block;
  margin-bottom:2px;
}

.tools-right .stat-card:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(0,0,0,.05);
}

.tools-right .stat-card:nth-child(1),
.tools-right .stat-card:nth-child(2){
  background:#eef2ff;
  border:1px solid #dfe6ff;
}

.site-footer{
  margin-top:40px;
  padding:40px 0 30px;
  text-align:center;
  border-top:1px solid #eef0f6;
  background:#fff;
}

.footer-links{
  display:flex;
  justify-content:center;
  gap:26px;
  margin-bottom:12px;
}

.footer-links a{
  text-decoration:none;
  color:#6b7280;
  font-size:14px;
  font-weight:500;
}

.footer-links a:hover{
  color:#4f46e5;
}

.copyright{
  font-size:13px;
  color:#9ca3af;
}


.live-bar{
  padding:4px 10px;
  font-size:13px;
}
/* ensure textarea always below bar */
.editor textarea{
  margin-top:6px;
}

/* ===============================
   STATS CARDS ALIGN
=============================== */

.stats{
  margin-top:18px;
}

.stats-primary{
  margin-top:18px;
}

.stats-secondary{
  margin-top:10px;
}

/* ===============================
   HINDI PAGE WIDTH
=============================== */

.hindi-page .app{
  max-width:1100px;
}

/* ===============================
   SEO CONTENT FIX
=============================== */

.seo-content{
  max-width:900px;
  margin:40px auto 0;
  line-height:1.8;
}

.seo-content h2{
  font-size:22px;
  margin-top:24px;
}

.seo-content p{
  color:#374151;
}

/* ===============================
   REMOVE DUPLICATE LOOK
=============================== */

/* only one editor style */
.hindi-page .editor{
  margin-top:18px;
}

/* remove extra space */
.hindi-page .editor + .editor{
  margin-top:18px;
}

/* ===============================
   CHARACTER PAGE BAR
=============================== */

.hindi-char-bar{
  display:flex;
  gap:14px;
  font-weight:600;
}

/* ===============================
   ACTION BUTTON ALIGN
=============================== */

.actions{
  margin-top:16px;
  margin-bottom:16px;
}

/* ===============================
   MOBILE IMPROVE
=============================== */

@media(max-width:768px){

  .stats{
    grid-template-columns:1fr 1fr;
  }

  textarea{
    min-height:180px;
  }

}
html{
  scroll-behavior:smooth;
}



/* =========================
   FINAL MOBILE FIX (LOCKED)
========================= */

@media (max-width: 900px){

  body{
    padding:0;
    margin:0;
  }

  .app{
    width:100%;
    max-width:100%;
    padding:14px 12px 90px;
  }

  /* HERO */
  .hero-full{
    padding:8px 8px 0;
  }

  .hero-full h1{
    font-size:24px;
    line-height:1.25;
    margin-bottom:8px;
  }

  .subtitle{
    font-size:14px;
  }

  /* WORKSPACE STACK */
  .workspace{
    display:block;
    gap:0;
  }

  .editor-left{
    padding:0;
  }

  /* EDITOR CARD */
  .editor{
    padding:16px;
    border-radius:16px;
    margin-top:14px;
  }

  textarea{
    min-height:220px;
    font-size:16px;
    border-radius:16px;
  }

  /* ACTION BUTTONS */
  .action-row{
    flex-direction:column;
    gap:8px;
  }

  .action-row button{
    width:100%;
  }

  .pdf-import{
    margin-top:6px;
  }

  /* RIGHT PANEL -> STACK */
  .tools-right{
    margin-top:16px;
    padding:16px;
    border-radius:18px;
  }

  /* STATS GRID */
  .tools-right .stats{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .stat-card{
    padding:16px 12px;
    border-radius:16px;
  }

  .stat-card strong{
    font-size:22px;
  }

  /* KEYWORDS */
  .keywords-section{
    padding:16px;
    margin-top:16px;
  }

  /* CASE TOOL */
  .case-section{
    margin-top:16px;
  }

  /* FLOAT BAR */
  .floating-stats{
    font-size:14px;
  }

}


/* ===== SMALL MOBILE ===== */
@media (max-width: 480px){

  .hero-full h1{
    font-size:22px;
  }

  textarea{
    min-height:200px;
  }

  .tools-right .stats{
    grid-template-columns:1fr;
  }

}

/* =========================
   STATIC PAGE – TOOL STYLE
========================= */

.static-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:60px 20px 80px;
}

/* HERO */
.hero-static{
  text-align:center;
  margin-bottom:40px;
}

.hero-static h1{
  font-size:40px;
  font-weight:800;
}

.hero-static p{
  margin-top:10px;
  color:#6b7280;
  line-height:1.7;
  font-size:16px;
}

/* CONTAINER */
.static-container{
  display:flex;
  flex-direction:column;
  gap:22px;
}

/* CARD */
.info-card{
  background:#fff;
  padding:26px 30px;
  border-radius:22px;
  border:1px solid #eef0f6;
  box-shadow:0 10px 30px rgba(0,0,0,.04);
}

.info-card h3{
  font-size:20px;
  margin-bottom:6px;
}

.info-card p{
  color:#4b5563;
  line-height:1.7;
  font-size:15px;
}

.info-card ul{
  margin-top:8px;
  padding-left:18px;
}

.info-card li{
  margin:6px 0;
  color:#4b5563;
}

/* MOBILE */
@media(max-width:768px){

.hero-static h1{
  font-size:28px;
}

.static-wrap{
  padding:30px 14px 60px;
}

.info-card{
  padding:18px;
  border-radius:16px;
}

}

@media(max-width:768px){
  .top-nav{
    display:flex !important;
    gap:14px;
    overflow-x:auto;
    padding-bottom:6px;
  }
}

.floating-stats{
  padding-bottom:calc(env(safe-area-inset-bottom) + 8px);
}

@media(max-width:480px){
  .topbar-inner{
    padding:10px 12px;
  }

  .logo{
    font-size:22px;
  }
}
/* ===============================
   WORDCNT MOBILE HEADER FIX
=============================== */

@media (max-width:768px){

  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }

  .brand{
    display:flex;
    flex-direction:column;
    gap:2px;
  }

  .logo{
    font-size:22px;
  }

  .tagline{
    font-size:11px;
  }

  .top-nav{
    width:100%;
    display:flex;
    gap:14px;
    margin-top:6px;
    overflow-x:auto;
    white-space:nowrap;
    padding-bottom:4px;
  }

  .top-nav a{
    font-size:13px;
    flex-shrink:0;
  }

}
.logo span{
  color:#6366f1;
  font-size:18px;
}

