/* ============================================================
   AI IN PLAIN LANGUAGE v3
   Design: Neutral Trust | Green + White | Mobile First
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── Tokens ── */
:root {
  --green: #2e7d52;
  --green-d: #1f5c3a;
  --green-l: #f0faf4;
  --green-m: #d1ead9;
  --navy: #1a2332;
  --text: #1a2332;
  --text2: #6b7c93;
  --text3: #aab4c0;
  --white: #ffffff;
  --bg: #f7f9fc;
  --border: #e8ecf0;
  --border2: #d4dbe3;
  --r: 10px;
  --r-sm: 6px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 4px rgba(26,35,50,0.06);
  --shadow: 0 2px 12px rgba(26,35,50,0.08);
  --shadow-md: 0 4px 20px rgba(26,35,50,0.10);
}

/* ── Base ── */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
h1,h2,h3,h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-d); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ── Nav ── */
#nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}
.nav-logo {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--bg); color: var(--navy); }
.btn-pro {
  background: var(--green) !important;
  color: white !important;
  font-weight: 600 !important;
  border-radius: var(--r-sm) !important;
}
.btn-pro:hover { background: var(--green-d) !important; }
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--navy);
  padding: 4px 8px;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 16px 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text);
  padding: 10px 8px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* ── Hero ── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-l);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--green-m);
}
.hero h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero p {
  font-size: 17px;
  color: var(--text2);
  max-width: 500px;
  margin: 0 auto 32px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border2);
  color: var(--text);
  background: var(--white);
  transition: all 0.15s;
  text-decoration: none;
}
.hero-tag:hover { border-color: var(--green); color: var(--green); background: var(--green-l); }

/* ── Trust bar ── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}
.trust-item::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ── Section ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.section-sub { font-size: 15px; color: var(--text2); margin-bottom: 32px; }

/* ── Tool grid ── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: block;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.tool-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.tool-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--green-l);
  color: var(--green);
  border: 1px solid var(--green-m);
  letter-spacing: 0.03em;
}
.tool-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.tool-card p { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green); color: white; border-color: var(--green); }
.btn-primary:hover { background: var(--green-d); border-color: var(--green-d); color: white; }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--border2); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-full { width: 100%; }

/* ── Tool page ── */
.tool-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  transition: all 0.15s;
  text-decoration: none;
}
.back-link:hover { border-color: var(--green); color: var(--green); }
.tool-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.tool-header-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}
.tool-title { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.tool-desc { font-size: 14px; color: var(--text2); }

/* ── Card box ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

/* ── Form elements ── */
.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}
textarea, input[type="text"], input[type="email"],
input[type="number"], input[type="url"], select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border2);
  border-radius: var(--r-sm);
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea:focus, input:focus, select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,82,0.10);
}
textarea { resize: vertical; min-height: 130px; }

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.stat-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 8px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: 10px;
  color: var(--text2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

/* ── Sid inline response ── */
.sid-result {
  background: var(--green-l);
  border: 1px solid var(--green-m);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-top: 16px;
  display: none;
}
.sid-result.show { display: flex; gap: 12px; align-items: flex-start; }
.sid-result-icon {
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.sid-result-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.sid-result-text { font-size: 14px; line-height: 1.6; color: var(--navy); }

/* ── Pro banner ── */
.pro-banner {
  background: var(--navy);
  border-radius: var(--r);
  padding: 18px 22px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pro-banner strong { color: white; font-size: 15px; display: block; margin-bottom: 3px; }
.pro-banner p { color: rgba(255,255,255,0.6); font-size: 13px; margin: 0; }

/* ── Ad placeholder ── */
.ad-placeholder {
  background: var(--white);
  border: 1px dashed var(--border2);
  border-radius: var(--r-sm);
  padding: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ad-banner { min-height: 60px; display: flex; align-items: center; justify-content: center; }
.ad-wrap { padding: 16px 24px; max-width: 1100px; margin: 0 auto; }

/* ── Footer ── */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  margin-top: auto;
}
.footer-ad-slot {
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo {
  font-size: 17px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 220px; }
.footer-col h4 {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Email capture ── */
.email-section {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  text-align: center;
  margin: 40px 0;
}
.email-section h2 { color: white; font-size: 22px; margin-bottom: 8px; }
.email-section p { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 22px; }
.email-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.email-form input {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: white;
  border-radius: var(--r-sm);
}
.email-form input::placeholder { color: rgba(255,255,255,0.4); }
.email-form input:focus { border-color: var(--green); background: rgba(255,255,255,0.15); box-shadow: none; }

/* ── Progress bars ── */
.progress-bar { background: var(--border2); border-radius: 20px; height: 8px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; border-radius: 20px; transition: width 0.3s, background 0.3s; }

/* ── Utility ── */
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.hidden { display: none !important; }
.prose h2 { font-size: 20px; margin: 28px 0 10px; }
.prose p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose li { font-size: 14px; color: var(--text2); margin-bottom: 6px; line-height: 1.6; }

/* ── Sid widget ── */
#sid-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
#sid-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border2);
  border-radius: 24px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
  user-select: none;
  position: relative;
}
#sid-btn:hover { border-color: var(--green); box-shadow: 0 4px 20px rgba(46,125,82,0.15); }
#sid-btn.active { background: var(--green); border-color: var(--green); }
#sid-btn.active #sid-btn-label { color: white; }
#sid-btn.active .sid-btn-dot { background: white; }
.sid-btn-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
#sid-btn-label { font-size: 13px; font-weight: 700; color: var(--navy); }
#sid-notif {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: #e53e3e;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: white;
  align-items: center;
  justify-content: center;
}
#sid-panel {
  width: 320px;
  height: 400px;
  background: var(--white);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  flex-direction: column;
  overflow: hidden;
  display: none;
}
#sid-head {
  background: var(--navy);
  color: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sid-avatar-sm {
  width: 30px;
  height: 30px;
  background: var(--green);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
#sid-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sid-msg-bot { display: flex; justify-content: flex-start; }
.sid-msg-user { display: flex; justify-content: flex-end; }
.sid-bubble-bot {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 3px;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 82%;
  color: var(--text);
}
.sid-bubble-user {
  background: var(--green);
  color: white;
  border-radius: 12px 12px 3px 12px;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 82%;
}
.sid-dots { display: flex; gap: 4px; align-items: center; padding: 3px 0; }
.sid-dots span {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.sid-dots span:nth-child(2) { animation-delay: 0.2s; }
.sid-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-5px)} }
#sid-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
#sid-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--border2);
  border-radius: 20px;
  font-size: 13px;
  min-height: unset;
  width: auto;
}
#sid-input:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(46,125,82,0.08); }
#sid-input-row button {
  width: 36px;
  height: 36px;
  background: var(--green);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
#sid-input-row button:hover { background: var(--green-d); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 16px 32px; }
  .section { padding: 32px 16px; }
  .tool-page { padding: 24px 16px 60px; }
  .pro-banner { flex-direction: column; text-align: center; }
  #sid-panel { width: calc(100vw - 40px); }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
