*{box-sizing:border-box}html{scroll-behavior:smooth}:root{--bg:#f3f7fb;--panel:#fff;--text:#102033;--muted:#627084;--primary:#0d3565;--primary2:#081f3a;--accent:#1fc7b5;--accent2:#e7fbf8;--border:#dce7f1;--shadow:0 18px 55px rgba(13,53,101,.11);--danger:#b91c1c;--warning:#b45309;--success:#047857}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.hero{background:radial-gradient(circle at 80% 20%,rgba(31,199,181,.35),transparent 28%),linear-gradient(135deg,var(--primary2),var(--primary));color:#fff;padding:22px 20px 70px}.nav{max-width:1160px;margin:0 auto 58px;display:flex;justify-content:space-between;gap:20px;align-items:center}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}.brand strong{font-size:22px}.brand small{display:block;color:rgba(255,255,255,.68);font-size:12px}.logo{width:46px;height:46px;border-radius:16px;background:#fff;color:var(--primary);display:grid;place-items:center;font-weight:950}.nav-links{display:flex;gap:10px;flex-wrap:wrap}.nav-links a{color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:9px 14px}.hero-inner{max-width:1160px;margin:auto;display:grid;grid-template-columns:1.1fr .9fr;gap:34px;align-items:center}.eyebrow,.section-label{color:#13b8a7;text-transform:uppercase;letter-spacing:.09em;font-size:13px;font-weight:900}.hero .eyebrow{color:#b8fff4}.hero h1{font-size:clamp(42px,6vw,76px);line-height:.98;margin:12px 0 20px}.lead{font-size:20px;line-height:1.62;color:rgba(255,255,255,.87);max-width:720px}.btn{border:0;border-radius:16px;padding:13px 18px;font-weight:900;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:15px}.primary{background:var(--accent);color:#062421}.secondary{background:#edf4fb;color:var(--primary)}.ghost{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.22)}.plain{background:transparent;color:var(--primary);border:1px solid var(--border)}.danger{color:var(--danger);border-color:#f5c5c5}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.micro-trust{display:flex;gap:14px;flex-wrap:wrap;margin-top:18px;color:rgba(255,255,255,.77);font-size:14px}.hero-panel{display:flex;justify-content:center}.fake-window{width:min(420px,100%);background:rgba(255,255,255,.12);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.24);border-radius:28px;padding:22px;box-shadow:0 30px 80px rgba(0,0,0,.2)}.dots{display:flex;gap:7px;margin-bottom:18px}.dots i{width:11px;height:11px;background:rgba(255,255,255,.55);border-radius:50%}.mini-card{background:#fff;color:var(--text);border-radius:16px;padding:14px;margin-top:12px}.mini-card p{margin:.3rem 0 0;color:var(--muted)}.mini-card.urgent{background:#fff7ed;color:#9a3412;font-weight:900}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.mini-grid div{background:#fff;color:var(--text);border-radius:16px;padding:14px}.mini-grid span{display:block;color:var(--muted)}.metrics{max-width:980px;margin:-36px auto 28px;padding:0 20px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.metrics div{background:var(--panel);border:1px solid var(--border);border-radius:22px;padding:18px;box-shadow:var(--shadow)}.metrics strong{display:block;font-size:25px;color:var(--primary)}.metrics span{color:var(--muted)}.app-shell,.feature-section,.saved-section,.seo-section,.faq{max-width:1160px;margin:24px auto;padding:24px}.app-shell{background:var(--panel);border:1px solid var(--border);border-radius:32px;box-shadow:var(--shadow)}.app-top,.section-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end}.app-top h2,.feature-section h2,.saved-section h2,.seo-section h2,.faq h2{font-size:clamp(28px,4vw,44px);line-height:1.08;margin:8px 0}.app-top p,.feature-section p,.seo-section p,.faq p{color:var(--muted);line-height:1.55}.usage-box{min-width:160px;background:var(--accent2);border:1px solid #bceee7;border-radius:22px;padding:18px;text-align:center}.usage-box span{display:block;font-size:42px;font-weight:950;color:#0f766e}.usage-box small{color:#0f766e;font-weight:800}.workspace{display:grid;grid-template-columns:.82fr 1.18fr;gap:22px;margin-top:24px}.input-pane,.result-pane{background:#f8fbfe;border:1px solid var(--border);border-radius:26px;padding:20px}label{display:block;margin:14px 0 8px;font-weight:900}select,textarea{width:100%;border:1px solid var(--border);border-radius:16px;padding:14px;font:inherit;background:#fff}textarea{min-height:320px;resize:vertical}.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.privacy-note{margin-top:16px;background:#fff;border:1px solid var(--border);border-radius:16px;padding:13px;color:var(--muted);font-size:14px;line-height:1.45}.empty-state{text-align:center;padding:70px 20px;color:var(--muted)}.empty-icon{font-size:54px}.empty-state h3{color:var(--text);font-size:26px}.hidden{display:none}.result-header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.result-header h3{font-size:30px;margin:5px 0}.priority{padding:9px 13px;border-radius:999px;font-weight:950;background:#e8faf7;color:#047857;white-space:nowrap}.priority.medium{background:#fff7ed;color:#b45309}.priority.high{background:#fef2f2;color:#b91c1c}.analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.analysis-card{background:#fff;border:1px solid var(--border);border-radius:20px;padding:16px}.analysis-card.wide{grid-column:1/-1}.analysis-card h4{margin:0 0 8px;color:var(--primary);font-size:17px}.analysis-card p{margin:0;color:var(--muted);line-height:1.55}.analysis-card ul{margin:0;padding-left:20px;color:#2f4054}.reply-box{background:#f7fbff;border:1px solid var(--border);border-radius:16px;padding:14px;line-height:1.6;white-space:pre-line;color:#26384b}.feature-grid,.seo-grid,.saved-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:20px}.feature-grid article,.seo-grid article,.saved-item{background:#fff;border:1px solid var(--border);border-radius:22px;padding:20px;box-shadow:0 10px 30px rgba(13,53,101,.06)}.feature-grid span{width:36px;height:36px;border-radius:12px;background:var(--accent2);color:#0f766e;display:grid;place-items:center;font-weight:950}.feature-grid h3,.seo-grid h3{margin-bottom:8px}.seo-grid{grid-template-columns:repeat(3,1fr)}.seo-grid a{color:var(--primary);font-weight:900}.saved-grid{grid-template-columns:repeat(3,1fr)}.saved-item small{color:var(--muted)}.saved-item button{margin-top:12px;border:0;background:#fee2e2;color:#991b1b;border-radius:10px;padding:8px 10px;cursor:pointer}details{background:#fff;border:1px solid var(--border);border-radius:18px;padding:16px;margin:12px 0}summary{cursor:pointer;font-weight:900;color:var(--primary)}footer{max-width:1160px;margin:40px auto 20px;padding:24px;text-align:center;color:var(--muted)}footer strong{color:var(--primary)}@media(max-width:900px){.hero-inner,.workspace,.metrics,.feature-grid,.seo-grid,.saved-grid{grid-template-columns:1fr}.nav{align-items:flex-start}.nav-links{justify-content:flex-end}.app-top,.section-head{display:block}.usage-box{margin-top:14px}.analysis-grid{grid-template-columns:1fr}}@media(max-width:560px){.hero{padding:18px 16px 55px}.app-shell,.feature-section,.saved-section,.seo-section,.faq{padding:18px}.nav{display:block}.nav-links{margin-top:15px}.hero-actions .btn{width:100%}}

/* Version 3: mobile-first hero cleanup */
.mobile-first-hero{
  grid-template-columns: 1fr;
  max-width: 940px;
  text-align: center;
  gap: 26px;
}

.mobile-first-hero .hero-copy{
  max-width: 780px;
  margin: 0 auto;
}

.mobile-first-hero h1{
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.045em;
}

.mobile-first-hero .lead{
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.mobile-first-hero .hero-actions{
  justify-content: center;
}

.mobile-first-hero .micro-trust{
  justify-content: center;
}

.quick-preview{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}

.quick-row{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}

.quick-row span{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.quick-row b{
  display: block;
  color: #fff;
}

.quick-row small{
  display: block;
  color: rgba(255,255,255,.72);
  margin-top: 3px;
  line-height: 1.35;
}

@media(max-width:900px){
  .hero{
    padding: 18px 16px 42px;
  }

  .nav{
    margin-bottom: 34px;
  }

  .nav-links{
    display: none;
  }

  .mobile-first-hero{
    text-align: left;
  }

  .mobile-first-hero .hero-copy{
    margin: 0;
  }

  .mobile-first-hero h1{
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.02;
    margin-left: 0;
    margin-right: 0;
    letter-spacing: -0.04em;
  }

  .mobile-first-hero .lead{
    font-size: 17px;
    line-height: 1.5;
    margin-left: 0;
    margin-right: 0;
  }

  .mobile-first-hero .hero-actions{
    justify-content: stretch;
  }

  .mobile-first-hero .hero-actions .btn{
    width: 100%;
  }

  .mobile-first-hero .micro-trust{
    justify-content: flex-start;
    gap: 8px;
    font-size: 13px;
  }

  .quick-preview{
    grid-template-columns: 1fr;
  }

  .quick-row{
    padding: 14px;
  }

  .metrics{
    margin-top: -18px;
  }

  .app-shell{
    margin-top: 10px;
  }

  .app-top h2{
    font-size: 30px;
  }

  textarea{
    min-height: 250px;
  }
}


/* Version 4: Tool-first layout */
.tool-first-hero{
  padding-bottom: 44px;
}

.tool-hero-inner{
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 26px;
  align-items: start;
}

.tool-intro h1{
  font-size: clamp(34px,5vw,58px);
  line-height: 1.02;
  margin: 12px 0 18px;
  letter-spacing: -0.045em;
}

.tool-intro .lead{
  font-size: 18px;
  line-height: 1.52;
  max-width: 520px;
}

.hero-tool-card{
  background: #fff;
  color: var(--text);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.35);
}

.hero-tool-head{
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 8px;
}

.hero-tool-head h2{
  margin: 4px 0 0;
  font-size: 28px;
  color: var(--text);
}

.usage-pill{
  background: var(--accent2);
  color: #0f766e;
  font-weight: 950;
  border-radius: 999px;
  padding: 9px 12px;
  white-space: nowrap;
}

.usage-pill span{
  font-size: 20px;
}

.hero-tool-card textarea{
  min-height: 220px;
}

.hero-note{
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.light{
  color: var(--primary);
  border-color: #dce7f1;
}

.result-only-shell{
  margin-top: 26px;
}

.full-result{
  background: #f8fbfe;
}

@media(max-width:900px){
  .tool-first-hero{
    padding: 18px 16px 34px;
  }

  .tool-hero-inner{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tool-intro h1{
    font-size: clamp(31px,10vw,43px);
    margin-bottom: 12px;
  }

  .tool-intro .lead{
    font-size: 16px;
    max-width: none;
  }

  .hero-tool-card{
    padding: 16px;
    border-radius: 22px;
  }

  .hero-tool-head h2{
    font-size: 24px;
  }

  .hero-tool-card textarea{
    min-height: 210px;
  }

  .hero-tool-card .button-row .btn{
    flex: 1 1 100%;
  }

  .result-only-shell{
    margin-top: 12px;
  }
}

/* Version 5 SEO improvements */
.seo-intro{
  max-width: 760px;
}
.seo-grid.expanded{
  grid-template-columns: repeat(3, 1fr);
}
.problem-hero{
  padding-bottom: 46px;
}
.problem-layout{
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: start;
}
.problem-content,.problem-tool,.toc-box{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(13,53,101,.07);
}
.problem-content h2{
  font-size: clamp(27px,3vw,40px);
  line-height: 1.1;
  margin-top: 8px;
}
.problem-content p,.problem-content li{
  color: var(--muted);
  line-height: 1.65;
}
.problem-content strong{
  color: var(--text);
}
.problem-content .example-box{
  background: #f7fbff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  color: #2f4054;
}
.toc-box{
  position: sticky;
  top: 18px;
}
.toc-box h3{
  margin-top: 0;
  color: var(--primary);
}
.toc-box a{
  display: block;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  margin: 10px 0;
}
.problem-cta{
  background: var(--accent2);
  border: 1px solid #bceee7;
  border-radius: 20px;
  padding: 18px;
  margin-top: 18px;
}
.problem-cta p{
  color: #0f766e;
  margin-top: 6px;
}
.breadcrumb{
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px 0;
  color: rgba(255,255,255,.75);
  font-size: 14px;
}
.breadcrumb a{
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
@media(max-width:900px){
  .seo-grid.expanded,.problem-layout{
    grid-template-columns: 1fr;
  }
  .problem-layout{
    padding: 18px;
  }
  .toc-box{
    position: static;
    order: -1;
  }
}

/* Version 6: input method / upload flow */
.input-method-box{
  margin: 14px 0 16px;
  background: #f7fbff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
}
.input-question{
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 950;
}
.method-tabs{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.method-tab{
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  border-radius: 14px;
  padding: 11px 10px;
  font-weight: 900;
  cursor: pointer;
}
.method-tab.active{
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.input-panel{
  display: none;
}
.input-panel.active{
  display: block;
}
.upload-box{
  position: relative;
  background: #fff;
  border: 2px dashed #b7c8d9;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
}
.upload-box input{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-box strong{
  display: block;
  color: var(--primary);
  font-size: 18px;
}
.upload-box span{
  display: block;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}
.upload-note{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 10px 0 0;
}
.file-status{
  margin-top: 12px;
  background: var(--accent2);
  border: 1px solid #bceee7;
  color: #0f766e;
  border-radius: 16px;
  padding: 12px;
  font-weight: 800;
}
@media(max-width:700px){
  .method-tabs{
    grid-template-columns: 1fr;
  }
  .method-tab{
    text-align: left;
  }
  .upload-box{
    padding: 20px 14px;
  }
}

/* Version 6.1: mobile readability fixes */
.problem-content{
  overflow-wrap: anywhere;
}

.problem-content h2{
  margin-top: 22px;
  margin-bottom: 10px;
}

.problem-content h2:first-of-type{
  margin-top: 0;
}

@media(max-width:900px){
  .problem-content,
  .problem-tool,
  .toc-box{
    border-radius: 22px;
    padding: 20px;
  }

  .problem-content h2{
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: -0.025em;
  }

  .problem-content p,
  .problem-content li{
    font-size: 16px;
    line-height: 1.58;
  }
}

@media(max-width:420px){
  .problem-layout{
    padding: 12px;
  }

  .problem-content,
  .toc-box{
    padding: 18px;
  }

  .problem-content h2{
    font-size: 25px;
  }
}
