/* ========== Base ==========
   Brand: emerald-ish #0ea36b
=========================== */
:root {
  --bg: #ffffff;
  --text: #151515;
  --muted: #667085;
  --border: #e5e7eb;
  --alt: #f6f7f9;
  --brand: #0ea36b;
  --brand-700: #0b8658;
  --warn: #b45309;
  --ok: #059669;
  --info: #2563eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Helpers */
.container { width: min(1120px, 92%); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.accent { color: var(--brand-700); }
.lead { font-size: 1.125rem; color: #374151; max-width: 48ch; }
.fineprint { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.tiny { font-size: .75rem; }

/* Banner */
.top-banner {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: .5rem .75rem;
  font-size: .9rem;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: inherit; }
.brand__logo {
 width: 20vw;   /* 10% of viewport width */
  max-width: 180px; /* cap it so it doesn’t blow up */
  min-width: 110px;  /* don’t shrink too far */
  height: auto;
}
.brand__name { font-weight: 800; letter-spacing: .2px; }

.nav { display: none; gap: 1.25rem; align-items: center; }
.nav a { text-decoration: none; color: inherit; font-size: .95rem; }
.nav a:hover { color: var(--brand-700); }

.hamburger { display: inline-flex; flex-direction: column; gap: 4px; padding: 10px 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.hamburger span { width: 20px; height: 2px; background: #111; display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.1rem; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; color: inherit; }
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-700); border-color: var(--brand-700); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn--small { padding: .5rem .75rem; font-size: .9rem; }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--alt); }
.section--border { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Hero */
.hero h1 { font-size: clamp(2rem, 2.2rem + 1vw, 3rem); line-height: 1.15; margin: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.1fr 1fr; } }

/* Mock */
.mock { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.mock__top { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; background: #f9fafb; border-bottom: 1px solid var(--border); font-size: .9rem; }
.dots i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 4px; background: #ef4444; }
.dots i:nth-child(2){ background: #f59e0b; } .dots i:nth-child(3){ background: #10b981; }
.mock__body { padding: 1rem; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.card { border: 1px solid var(--border); border-radius: 12px; padding: .9rem; }
.card .icon { width: 36px; height: 36px; border-radius: 10px; background: #ecfdf5; margin-bottom: .5rem; }
.card__title { font-weight: 600; }
.card__sub { font-size: .85rem; color: var(--muted); }
.list { border: 1px solid var(--border); border-radius: 12px; padding: .9rem; margin-top: .75rem; }
.list__title { font-weight: 700; margin-bottom: .5rem; }
.list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.list li { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; }
.badge { font-style: normal; font-size: .8rem; padding: .15rem .5rem; border-radius: 999px; border: 1px solid var(--border); }
.badge--warn { color: var(--warn); border-color: #fbbf24; }
.badge--ok { color: var(--ok); border-color: #a7f3d0; }
.badge--info { color: var(--info); border-color: #bfdbfe; }

/* Logos */
.logos { margin-top: 1rem; display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; opacity: .8; }
.logos > div { height: 44px; border: 1px solid var(--border); border-radius: 12px; display: grid; place-items: center; font-weight: 600; color: #475569; }
@media (min-width: 700px){ .logos { grid-template-columns: repeat(4,1fr); } }

/* Features */
.grid-3 { display: grid; gap: 1rem; }
@media (min-width: 860px){ .grid-3 { grid-template-columns: repeat(3,1fr); } }
.feature { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; background: #fff; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; background: #ecfdf5; margin-bottom: .5rem; }

/* Steps */
.steps { display: grid; gap: 1rem; counter-reset: step; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 1rem; }
.step__num { width: 32px; height: 32px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* Pricing */
.pricing { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 720px){ .pricing { grid-template-columns: repeat(2,1fr); } }
.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: left; background: #fff; }
.plan__label { color: var(--brand-700); font-weight: 700; }
.plan__price { font-size: 2rem; font-weight: 900; margin: .25rem 0 .75rem; }
.plan__price span { font-size: 1rem; color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: .9rem 1.1rem; }
.faq details + details { margin-top: .75rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: .5rem 0 0; color: #374151; }

/* CTA form */
.cta-form { display: grid; gap: .5rem; grid-template-columns: 1fr; max-width: 520px; margin: 1rem auto 0; }
.cta-form input { padding: .85rem .9rem; border: 1px solid var(--border); border-radius: 12px; font-size: 1rem; }
.cta-form button { width: 100%; }
@media (min-width: 560px){ .cta-form { grid-template-columns: 1fr auto; } .cta-form button { width: auto; } }
.form-status { margin-top: .5rem; min-height: 1.25rem; font-size: .9rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0 24px; background: #fff; }
.footer__grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px){ .footer__grid { grid-template-columns: repeat(4,1fr); } }
.footer__title { font-weight: 700; margin-bottom: .5rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li a { text-decoration: none; color: inherit; }
.list li a:hover { color: var(--brand-700); }

@media (min-width: 880px){
  .nav { display: inline-flex; }
  .hamburger { display: none; }
}


/* ===== App UI (lists, forms, utilities) ===== */

/* Page scaffold */
.app-header { border-bottom: 1px solid var(--border); padding: 12px 0; }
.toolbar { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; margin-top: 10px; }

/* Controls */
input[type="text"], select, textarea, .input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .55rem .7rem;
  font-size: .95rem;
  background: #fff;
  min-width: 220px;
}
input:focus, select:focus, textarea:focus, .input:focus {
  outline: none;
  box-shadow: 0 0 0 3px #00000012;
}

/* Tables */
.table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.table thead th {
  text-align: left; font-weight: 700;
  padding: 10px 8px; border-bottom: 1px solid var(--border);
}
.table tbody td {
  padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: .95rem;
}
.table tbody tr:hover { background: var(--alt); }

/* Badges (status/priority) */
.badge { font-size:.78rem; padding:.15rem .5rem; border-radius:999px; border:1px solid var(--border); }
.badge--ok { color: var(--ok); border-color:#a7f3d0; }
.badge--warn { color: var(--warn); border-color:#fbbf24; }

/* Spacing helpers */
.mt-1{margin-top:.25rem;} .mt-2{margin-top:.5rem;} .mt-3{margin-top:.75rem;}


/* === Floating chat === */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--brand); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); z-index: 1000;
}
.chat-fab:hover { background: var(--brand-700); }

.chat-panel {
  position: fixed; right: 20px; bottom: 86px; width: min(420px, 92vw);
  max-height: 70vh; display: grid; grid-template-rows: auto 1fr auto;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); overflow: hidden; z-index: 1000; transform: translateY(8px);
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.chat-panel__top { display:flex; align-items:center; justify-content:space-between; padding:.6rem .8rem; border-bottom:1px solid var(--border); background: var(--alt); }
.chat-close { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: .25rem .5rem; cursor: pointer; }
.chat-body { padding:.75rem; overflow: auto; display: grid; gap: .5rem; background: #fff; }
.chat-msg { display: flex; }
.chat-msg--you { justify-content: flex-end; }
.chat-msg .bubble {
  max-width: 80%; padding:.55rem .7rem; border:1px solid var(--border); border-radius: 14px; background:#fff;
}
.chat-msg--you .bubble { background: #ecfdf5; border-color: #bbf7d0; }
.chat-form { display:flex; gap:.5rem; padding:.6rem .8rem; border-top:1px solid var(--border); background:#fff; }
.chat-form input { flex:1; border:1px solid var(--border); border-radius:12px; padding:.55rem .7rem; }

