/* =========================================================
   AI Without the Jargon — global stylesheet
   Plain vanilla CSS. No build step. Mobile-first.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --navy-dark:    #0D1B2A;
  --navy-mid:     #112236;
  --navy-deep:    #091422;
  --teal-primary: #1D9E75;
  --teal-bright:  #5DCAA5;
  --teal-light:   #9FE1CB;
  --teal-pale:    #E1F5EE;
  --white:        #FFFFFF;
  --off-white:    #F5F5F3;
  --text-dark:    #0D1B2A;
  --text-muted:   #444441;
  --text-light:   #E1F5EE;

  /* Spacing scale (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 4px 12px rgba(13, 27, 42, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(13, 27, 42, 0.12);
  --shadow-float: 0 12px 32px rgba(13, 27, 42, 0.18);

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
  color: var(--teal-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--teal-bright); }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-2);
  line-height: 1.2;
  color: inherit;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
}

p { margin: 0 0 var(--space-2); }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.section {
  padding-block: clamp(56px, 9vw, 96px);
}

.section--white     { background: var(--white); }
.section--off-white { background: var(--off-white); }
.section--dark {
  background: var(--navy-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}
.section--dark h2,
.section--dark h3,
.section--dark h1 { color: var(--white); }

.section--dark p { color: var(--text-light); }

.section__inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-primary);
  margin-bottom: var(--space-1);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 64ch;
}
.section--dark .lead { color: var(--text-light); opacity: 0.92; }

.text-center { text-align: center; }

.narrow {
  max-width: 700px;
  margin-inline: auto;
}

.section__intro {
  text-align: center;
  margin-bottom: var(--space-6);
}
.section__intro .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--t-fast), filter var(--t-fast), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}

.btn--primary {
  background: var(--teal-primary);
  color: var(--white);
}
.btn--primary:hover {
  background: #178A66;
  color: var(--white);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--teal-light);
}
.btn--secondary:hover {
  background: var(--teal-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--teal-primary);
  border-color: var(--teal-primary);
}
.btn--ghost:hover {
  background: var(--teal-primary);
  color: var(--white);
}

.btn--large { padding: 18px 32px; font-size: 1.05rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.section--dark .btn-row,
.hero .btn-row { justify-content: flex-start; }
.text-center .btn-row { justify-content: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.card h3 { margin-bottom: var(--space-1); }
.card p { color: var(--text-muted); margin-bottom: 0; }

/* ---------- Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
  position: relative;
}

.step {
  text-align: center;
  padding: var(--space-3);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal-primary);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.step h3 { margin-bottom: var(--space-1); }
.step p { color: var(--text-muted); margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-dark);
  color: var(--text-light);
  padding-block: clamp(72px, 12vw, 132px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--teal-primary) 0%, transparent 70%);
  top: -120px; right: -120px;
}
.hero::after {
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--teal-bright) 0%, transparent 70%);
  bottom: -140px; left: -100px;
  opacity: 0.22;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.hero h1 { color: var(--white); margin-bottom: var(--space-2); }
.hero .lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--text-light);
  opacity: 0.92;
  max-width: 60ch;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
}
.brand:hover { color: var(--white); }
.brand__logo { width: 32px; height: 32px; flex: 0 0 auto; }
.brand__text { font-family: var(--font-body); }
.brand__text .ai {
  font-family: var(--font-serif);
  color: var(--teal-bright);
  font-style: italic;
  font-weight: 700;
  margin-right: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--white); border-bottom-color: var(--teal-bright); }
.nav__links a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--teal-primary);
}
.nav__links .btn { padding: 10px 18px; font-size: 0.95rem; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  color: var(--white);
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-mid);
    padding: var(--space-2) var(--space-3) var(--space-3);
    transform: translateY(-120%);
    transition: transform var(--t-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-float);
  }
  .nav__links a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav__links a:last-of-type { border-bottom: 0; }
  .nav__links .btn {
    margin-top: var(--space-2);
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }
  .nav.is-open .nav__links { transform: translateY(0); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: var(--text-light);
  padding-block: var(--space-6) var(--space-3);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer p { opacity: 0.85; margin-bottom: var(--space-1); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a {
  color: var(--text-light);
  opacity: 0.85;
}
.footer a:hover { color: var(--white); opacity: 1; }
.footer__social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: background var(--t-fast);
}
.footer__social a:hover { background: var(--teal-primary); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-2);
  font-size: 0.9rem;
  opacity: 0.75;
  text-align: center;
}

/* ---------- Page-specific bits ---------- */

/* Pricing banner (services page) */
.banner {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal-primary);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-6);
}
.banner p { margin: 0; color: var(--text-dark); font-size: 1.05rem; }
.banner strong { color: var(--navy-dark); }

/* Service card status badges */
.service-card { display: flex; flex-direction: column; gap: var(--space-1); }
.service-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge--available { background: #DEF5EB; color: #117A50; }
.badge--soon      { background: #FDF1D7; color: #8A5A00; }

/* About page narrow story column */
.story p {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: var(--space-3);
  color: var(--text-dark);
}
.story p:first-of-type::first-letter {
  font-family: var(--font-serif);
  color: var(--teal-primary);
  font-weight: 700;
  font-size: 2.5em;
  float: left;
  line-height: 0.9;
  padding-right: 8px;
  padding-top: 4px;
}

/* Contact options */
.contact-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-3); }
.contact-card { display: flex; flex-direction: column; }
.contact-card__icon { font-size: 1.75rem; margin-bottom: var(--space-1); }
.contact-card .btn { margin-top: auto; align-self: flex-start; }

/* Form */
.form { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form input,
.form textarea {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid rgba(13, 27, 42, 0.15);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-weight: 400;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
}
.form .btn { align-self: flex-start; margin-top: var(--space-1); }

.contact-bottom-note {
  text-align: center;
  margin-top: var(--space-6);
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* =========================================================
   Chatbot widget
   ========================================================= */
.cb-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal-primary);
  color: var(--white);
  border: 0;
  box-shadow: var(--shadow-float);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-base), background var(--t-fast);
}
.cb-launcher:hover { background: #178A66; transform: scale(1.05); }
.cb-launcher svg { width: 28px; height: 28px; }
.cb-launcher[aria-expanded="true"] { transform: scale(0.9); opacity: 0; pointer-events: none; }

.cb-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 201;
  width: min(360px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 48px));
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base), opacity var(--t-base);
}
.cb-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.cb-header {
  background: var(--navy-dark);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
}
.cb-header__title { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cb-header__title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(93, 202, 165, 0.18);
}
.cb-close {
  background: transparent;
  border: 0;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cb-close:hover { background: rgba(255,255,255,0.1); }
.cb-close svg { width: 18px; height: 18px; }

.cb-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  scroll-behavior: smooth;
}
.cb-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.cb-msg--user {
  align-self: flex-end;
  background: var(--teal-primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.cb-msg--bot {
  align-self: flex-start;
  background: var(--off-white);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}
.cb-msg--error {
  background: #FDECEC;
  color: #8A1F1F;
}

.cb-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
}
.cb-typing span {
  width: 7px; height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  opacity: 0.4;
  animation: cb-bounce 1.2s infinite ease-in-out;
}
.cb-typing span:nth-child(2) { animation-delay: 0.15s; }
.cb-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cb-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.cb-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(13, 27, 42, 0.08);
  background: var(--white);
  align-items: flex-end;
}
.cb-input {
  flex: 1;
  resize: none;
  border: 1.5px solid rgba(13, 27, 42, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  max-height: 120px;
  min-height: 42px;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cb-input:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
}
.cb-send {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--teal-primary);
  color: var(--white);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), opacity var(--t-fast);
}
.cb-send:hover:not(:disabled) { background: #178A66; }
.cb-send:disabled { opacity: 0.5; cursor: not-allowed; }
.cb-send svg { width: 18px; height: 18px; }

.cb-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 6px 8px 10px;
  background: var(--white);
  border-top: 1px solid rgba(13, 27, 42, 0.04);
}

@media (max-width: 480px) {
  .cb-launcher { right: 16px; bottom: 16px; }
  .cb-panel {
    right: 12px; bottom: 12px; left: 12px;
    width: auto;
    height: min(80vh, 600px);
  }
}
