/* ---------- aidizen.com — shared styles ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-tint: #eef1f8;
  --ink: #0b1020;
  --ink-2: #1a2138;
  --muted: #5a637a;
  --muted-2: #8089a1;
  --line: #e3e7f1;
  --line-strong: #c9d1e3;
  --brand: #3a4cf2;          /* indigo */
  --brand-dark: #2536c8;
  --brand-tint: #eaedff;
  --accent: #00b894;         /* available-dot green */
  --warn: #ef6c00;
  --danger: #d92d20;
  --shadow-sm: 0 1px 2px rgba(11,16,32,.06), 0 1px 1px rgba(11,16,32,.04);
  --shadow-md: 0 12px 28px -12px rgba(11,16,32,.18), 0 4px 10px -4px rgba(11,16,32,.08);
  --shadow-lg: 0 24px 48px -16px rgba(11,16,32,.22), 0 8px 16px -8px rgba(11,16,32,.10);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.alt { background: var(--bg-soft); }
section.dark {
  background: linear-gradient(180deg, #0b1020 0%, #131a36 100%);
  color: #e7eaf5;
}
section.dark h1, section.dark h2, section.dark h3 { color: #ffffff; }
section.dark .muted { color: #a8b0c8; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 16px; }
.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
section.dark .eyebrow { background: rgba(255,255,255,.08); color: #b8c0ff; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(58,76,242,.7);
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { background: #f3f5fb; color: var(--ink); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3a4cf2 0%, #6f7cff 60%, #00b894 130%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .9rem;
  box-shadow: 0 6px 14px -6px rgba(58,76,242,.55);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

@media (max-width: 920px) {
  .nav-links, .nav-cta .desktop-only { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: 10px 12px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(58,76,242,.10) 0%, rgba(58,76,242,0) 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(0,184,148,.08) 0%, rgba(0,184,148,0) 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 span.grad {
  background: linear-gradient(90deg, #3a4cf2, #00b894);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 18px;
  color: var(--muted); font-size: .92rem;
}
.hero-meta .dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--accent); border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(0,184,148,.18);
  margin-right: 6px; vertical-align: middle;
}

/* ---------- Teams chat mock ---------- */
.teams-mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: .95rem;
}
.tm-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8f9fd 0%, #ffffff 100%);
}
.tm-avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: linear-gradient(135deg, #3a4cf2, #6f7cff);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; position: relative;
}
.tm-avatar .presence {
  position: absolute; right: -1px; bottom: -1px;
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--accent); border: 2px solid #fff;
}
.tm-id .name { font-weight: 600; color: var(--ink); }
.tm-id .upn { font-size: .78rem; color: var(--muted); }
.tm-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fafbfe; }
.tm-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.45;
  font-size: .92rem;
}
.tm-msg.user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.tm-msg.agent {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.tm-msg .meta { font-size: .72rem; color: var(--muted); margin-top: 4px; }
.tm-typing {
  align-self: flex-start;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: .85rem;
  padding: 8px 12px;
  border-radius: 14px;
  display: inline-flex; gap: 6px; align-items: center;
}
.tm-typing .ddd { display: inline-flex; gap: 3px; }
.tm-typing .ddd i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted-2);
  animation: blink 1.2s infinite;
}
.tm-typing .ddd i:nth-child(2) { animation-delay: .15s; }
.tm-typing .ddd i:nth-child(3) { animation-delay: .3s; }
@keyframes blink {
  0%, 80%, 100% { opacity: .25; }
  40% { opacity: 1; }
}
.tm-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex; align-items: center; gap: 10px;
  color: var(--muted-2);
  font-size: .88rem;
}
.tm-footer .input {
  flex: 1; height: 32px; border-radius: 999px; background: var(--bg-soft);
  display: flex; align-items: center; padding: 0 14px;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

.card.feature {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}
.card.dark {
  background: #0f1530;
  color: #e7eaf5;
  border-color: rgba(255,255,255,.08);
}
.card.dark h3 { color: #fff; }
.card.dark p { color: #a8b0c8; }
.card.dark .icon { background: rgba(58,76,242,.18); color: #aab5ff; }

/* ---------- Problem comparison list ---------- */
.compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 920px) { .compare { grid-template-columns: 1fr; } }
.compare .item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.compare .item h4 { margin-bottom: 6px; }
.compare .item p { color: var(--muted); margin: 0; font-size: .95rem; }
.compare .item.bad h4::before {
  content: "×";
  display: inline-block; width: 22px; height: 22px; line-height: 20px; text-align: center;
  background: #fdecec; color: var(--danger); border-radius: 6px; margin-right: 8px; font-weight: 700;
}
.compare .item.good {
  background: linear-gradient(180deg, #f4f6ff 0%, #ffffff 100%);
  border-color: #d6dcff;
}
.compare .item.good h4::before {
  content: "✓";
  display: inline-block; width: 22px; height: 22px; line-height: 20px; text-align: center;
  background: rgba(0,184,148,.15); color: #008f72; border-radius: 6px; margin-right: 8px; font-weight: 700;
}

/* ---------- Numbered steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px 24px 78px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px; top: 22px;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 920px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #3a4cf2, #6f7cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.stat .label { color: var(--muted); font-size: .92rem; }

/* ---------- CTA strip ---------- */
.cta-band {
  background: linear-gradient(135deg, #1c2557 0%, #3a4cf2 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.78); margin: 8px 0 0; }
.cta-band .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 920px) {
  .cta-band { grid-template-columns: 1fr; padding: 36px 28px; }
  .cta-band .actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1020;
  color: #c9cfe3;
  padding: 64px 0 32px;
}
.site-footer a { color: #c9cfe3; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .legal {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: #8089a1;
}

/* ---------- Sub-page hero ---------- */
.sub-hero {
  padding: 80px 0 56px;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(58,76,242,.10) 0%, rgba(58,76,242,0) 60%),
    var(--bg);
}
.sub-hero .lead { max-width: 720px; }

/* ---------- Misc ---------- */
.kbd {
  font-family: var(--font-mono); font-size: .85em;
  background: var(--bg-tint); border: 1px solid var(--line-strong);
  padding: 2px 6px; border-radius: 6px;
}
code, pre.code {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
code { padding: 1px 6px; }
pre.code { padding: 16px 18px; overflow-x: auto; line-height: 1.55; }
pre.code .c { color: #5a637a; }
pre.code .k { color: #3a4cf2; font-weight: 600; }
pre.code .s { color: #008f72; }

.badge {
  display: inline-block;
  background: var(--brand-tint); color: var(--brand);
  padding: 4px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 600;
}
.badge.green { background: rgba(0,184,148,.14); color: #008f72; }
.badge.amber { background: rgba(239,108,0,.14); color: #b85700; }
.badge.gray { background: var(--bg-tint); color: var(--muted); }

.tool-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
@media (max-width: 720px) { .tool-list { grid-template-columns: 1fr; } }
.tool-list .tool {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--ink-2);
}
.tool-list .tool::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--brand);
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow: 0 18px 40px -16px rgba(58,76,242,.35);
  position: relative;
  background: linear-gradient(180deg, #f7f8ff 0%, #ffffff 60%);
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute; top: -12px; right: 24px;
  background: var(--brand); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.price-card h3 { margin: 0 0 6px; }
.price-card .price {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink); margin: 8px 0 4px;
}
.price-card .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-card .desc { color: var(--muted); margin: 0 0 18px; min-height: 48px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.price-card ul li {
  position: relative; padding-left: 26px; color: var(--ink-2); font-size: .96rem;
}
.price-card ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 6px;
  background: rgba(0,184,148,.18); color: #008f72;
  font-size: .8rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.price-card .btn { margin-top: auto; }

/* ---------- Faq ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(58,76,242,.14);
}
.field textarea { min-height: 120px; resize: vertical; }
.field.full { grid-column: 1 / -1; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* ---------- Logos row ---------- */
.logos {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center;
  opacity: .85;
}
.logo-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-weight: 600; color: var(--ink-2); font-size: .92rem;
}

/* ---------- Quote ---------- */
.quote {
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  font-size: 1.15rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .who .av {
  width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, #3a4cf2, #00b894);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.quote .who small { color: var(--muted); }

/* ---------- Two-column "split" ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse > div:first-child { order: 2; }
@media (max-width: 920px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > div:first-child { order: 0; }
}

ul.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
ul.checklist li {
  position: relative; padding-left: 30px; color: var(--ink-2);
}
ul.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 6px;
  background: rgba(0,184,148,.18); color: #008f72;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
}
