/* =========================================================
   AIBOS website styles
   Colours are set once here. Change them to re-theme the site.
   ========================================================= */
:root {
  --navy: #0b1f3a;        /* main deep navy */
  --navy-2: #13294b;      /* slightly lighter navy */
  --accent: #ffb020;      /* single bright accent (amber) */
  --accent-dark: #e09500;
  --ink: #1a2433;         /* body text */
  --muted: #4a5668;       /* secondary text (passes contrast on white) */
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --line: #dde3ec;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 31, 58, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--accent); color: var(--navy); padding: 0.5rem 1rem; border-radius: 8px; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0.5rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.06em; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.nav-list a { color: #dbe4f0; text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav-list a:hover { color: #fff; border-bottom-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: #ffc24d; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-large { font-size: 1.1rem; padding: 0.95rem 1.8rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}
.hero-inner > * { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-bottom: 0.75rem; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 8vw, 4.5rem); letter-spacing: 0.04em; margin-bottom: 0.2em; }
.pronounce { font-size: 0.3em; font-weight: 500; letter-spacing: 0.02em; color: #c3cfe0; vertical-align: middle; white-space: nowrap; }
.pitch { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; color: var(--accent); margin-bottom: 0.5em; }
.lead { font-size: 1.2rem; color: #e4ebf5; max-width: 620px; }
.after-hours { font-size: 1.1rem; font-weight: 700; color: var(--accent); max-width: 700px; margin-bottom: 0.35rem; }
.after-hours-note { color: #e4ebf5; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.75rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { max-width: 720px; color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.subhead { font-size: 1.5rem; margin-top: 3rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--accent); margin-bottom: 1rem;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step p { color: var(--muted); margin: 0; }
.step h4 { margin-bottom: 0.25em; }
.step-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--navy); font-weight: 800; display: grid; place-items: center;
}

/* ---------- Demo chat ---------- */
.chat { max-width: 640px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: 0 12px 40px rgba(11,31,58,0.15); overflow: hidden; border: 1px solid var(--line); }
.chat-header { display: flex; align-items: center; gap: 0.75rem; background: var(--navy); color: #fff; padding: 0.9rem 1.1rem; flex-wrap: wrap; }
.chat-header p { margin: 0; }
.chat-dot { width: 12px; height: 12px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,0.25); flex: none; }
.chat-name { font-weight: 700; }
.chat-sub { font-size: 0.85rem; color: #c3cfe0; }
.demo-badge { margin-left: auto; background: var(--accent); color: var(--navy); font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 999px; }
.chat-body { padding: 1.25rem 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; background: #f7f9fc; }
.msg { max-width: 88%; padding: 0.7rem 0.95rem; border-radius: 14px; font-size: 0.98rem; }
.msg p { margin: 0; }
.msg p + p, .msg ul + p { margin-top: 0.4rem; }
.msg ul { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.msg-bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.flag { padding-left: 0.7rem; border-left: 4px solid; }
.flag-red { border-color: #d64545; }
.flag-amber { border-color: var(--accent); }
.flag-blue { border-color: #3b82c4; }
.chat-caption { font-size: 0.85rem; color: var(--muted); text-align: center; padding: 0.75rem 1rem; border-top: 1px solid var(--line); background: #fff; }

/* Gentle reveal animation for the chat messages */
@media (prefers-reduced-motion: no-preference) {
  .msg { animation: msg-in 0.5s ease both; }
  .msg:nth-child(1) { animation-delay: 0.1s; }
  .msg:nth-child(2) { animation-delay: 0.35s; }
  .msg:nth-child(3) { animation-delay: 0.6s; }
  .msg:nth-child(4) { animation-delay: 0.85s; }
  .msg:nth-child(5) { animation-delay: 1.1s; }
  .msg:nth-child(6) { animation-delay: 1.35s; }
  .msg:nth-child(7) { animation-delay: 1.7s; }
  .msg:nth-child(8) { animation-delay: 2.05s; }
}
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Pricing ---------- */
.rate { display: inline-block; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.25rem 1.75rem; margin-bottom: 2rem; }
.rate p { margin: 0; }
.rate-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.rate-price { font-size: 1.3rem; }
.rate-amount { font-size: 2.6rem; font-weight: 800; }
.rate-was { font-size: 1rem; color: #c3cfe0; margin-left: 0.4rem; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.option { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: #fff; box-shadow: var(--shadow); }
.option-featured { border: 2px solid var(--accent); }
.option-price { color: var(--muted); font-size: 1.05rem; }
.option-price strong { color: var(--navy); font-size: 1.6rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.45rem; height: 0.8rem; border: solid var(--accent-dark); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.note { margin-top: 1.5rem; color: var(--muted); max-width: 720px; }

/* ---------- Resources ---------- */
.resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; align-items: start; }
.resource { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.resource-body { padding: 1.25rem 1.4rem; }
.resource-body p { color: var(--muted); margin: 0; }
.resource-type { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy); background: #ffe7b8; padding: 0.15rem 0.55rem; border-radius: 999px; margin-bottom: 0.6rem; }
.resource h3 a { text-decoration: none; }
.resource h3 a:hover { text-decoration: underline; }
.resource-link { display: inline-block; margin-top: 0.8rem; font-weight: 700; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.coming-soon, .noscript-msg { background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--muted); font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; text-align: center; }
.contact h2 { color: #fff; }
.contact p { color: #dbe4f0; }
.contact-inner { max-width: 640px; }
.contact-inner > p { max-width: 34em; margin-inline: auto; text-wrap: balance; }
.contact-phone a { color: #fff; }
.contact-details { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.75rem; color: #c3cfe0; }

/* ---------- Footer ---------- */
.site-footer { background: #071528; color: #b7c3d4; padding: 2rem 0; font-size: 0.92rem; }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: var(--accent); }
.footer-small { color: #8d9bb0; margin-top: 0.75rem !important; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-inner { justify-content: center; }
  .nav-list { justify-content: center; gap: 0.2rem 1rem; }
  .nav-list a { font-size: 0.92rem; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .demo-badge { margin-left: 0; }
  .msg { max-width: 94%; }
  .resources { grid-template-columns: 1fr; }
  .rate { display: block; }
}
.setup-includes { margin: 1.25rem 0; }
.rate-was-light { color: var(--muted); font-size: .95rem; }
.kit-note { margin-top: 1rem; padding: .75rem 1rem; border-radius: 10px; background: #fff7e6; color: var(--navy); font-size: .95rem; }

/* ---------- See the agents at work (three example chats) ---------- */
.agents-at-work { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow-dark { color: #9a6200; margin-bottom: 0.5rem; } /* darker amber so the small label passes contrast on white */
.agent-chats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.chat-mini { max-width: none; margin: 0; display: flex; flex-direction: column; }
.chat-mini .chat-header { align-items: flex-start; padding: 0.85rem 1rem; }
.chat-mini .chat-name { color: #fff; font-size: 1.05rem; margin: 0; }
.chat-mini .chat-sub { font-size: 0.82rem; line-height: 1.35; margin-top: 0.15rem; }
.agent-label { flex: 1 1 0; min-width: 0; }
.agent-avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--navy); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em;
}
.chat-day { align-self: center; margin: 0 0 0.25rem; }
.chat-day span { display: inline-block; background: #ffe7b8; color: var(--navy); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.15rem 0.65rem; border-radius: 999px; }
.chat-mini .chat-body { padding: 1rem 0.85rem; gap: 0.5rem; flex: 1; }
.chat-mini .msg { font-size: 0.9rem; line-height: 1.5; max-width: 92%; padding: 0.6rem 0.8rem; }
.chat-mini .msg ul { padding-left: 1.1rem; }
.chat-mini .msg li + li { margin-top: 0.1rem; }
.schedule { list-style: none; padding-left: 0 !important; }
.schedule li { padding: 0.15rem 0; }
.schedule li + li { border-top: 1px dashed var(--line); }
.draft { background: #fff7e6; border-left: 4px solid var(--accent); padding: 0.45rem 0.65rem; border-radius: 6px; font-style: italic; }
.tax-note { font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.4rem; margin-top: 0.55rem !important; }
.receipt {
  background: #fff; color: var(--ink); border-radius: 6px; padding: 0.55rem 0.7rem 0.6rem; margin-bottom: 0.45rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.78rem; line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25); transform: rotate(-1.5deg); min-width: 190px;
}
.receipt p { margin: 0; }
.receipt-store { font-weight: 800; letter-spacing: 0.12em; color: #0d5c3a; text-align: center; border-bottom: 1px dashed #b9c2cf; padding-bottom: 0.3rem; margin-bottom: 0.3rem !important; }
.receipt-line { display: flex; justify-content: space-between; gap: 0.75rem; }
.receipt-total { font-weight: 700; border-top: 1px dashed #b9c2cf; margin-top: 0.3rem !important; padding-top: 0.3rem; }
.agents-footnote { font-size: 0.85rem; color: var(--muted); text-align: center; margin: 1.5rem auto 0; max-width: 640px; }

@media (max-width: 960px) {
  .agent-chats { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
