/* Dark is the default look; light mode overrides the colors below */
:root {
  --bg: #0f0d17;
  --bg-alt: #17142a;
  --card: #1e1a33;
  --border: #2e2850;
  --text: #f4f2fb;
  --muted: #b4adcc;
  --accent: #6b28d7;
  --accent-hover: #5a1fb8;
  --accent-text: #c4b5fd;
  --chip: #f4f2fb;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f5f3fb;
  --card: #ffffff;
  --border: #e2ddf0;
  --text: #17142a;
  --muted: #4f4868;
  --accent: #6b28d7;
  --accent-hover: #5a1fb8;
  --accent-text: #6b28d7;
  --chip: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-text); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }

.section-alt { background: var(--bg-alt); }

.eyebrow {
  color: var(--accent-text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-title { font-size: clamp(28px, 4vw, 40px); }

.section-intro {
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 40px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  border: 0;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
}

.btn:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 16px;
  font-size: 14px;
}

.btn-ghost:hover { background: var(--bg-alt); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.logo span { color: var(--accent-text); }

/* Show the logo version that matches the theme */
.logo-light { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
:root[data-theme="light"] .logo-dark { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.site-header .btn { padding: 10px 18px; font-size: 14px; }

.theme-toggle { padding: 9px 14px; }

.toggle-icon { display: none; }

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1 { font-size: clamp(34px, 5vw, 52px); }

.hero .lead { font-size: 20px; margin: 0 0 16px; }

.hero .intro { color: var(--muted); margin: 0 0 28px; }

.hero-photo img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
  max-width: 420px;
  margin-left: auto;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.chips li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--muted);
}

/* Shared "What it does" / "Impact" blocks */
.detail { margin-top: 22px; }

.detail:first-of-type { margin-top: 14px; }

.detail h4 {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}

.detail p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.detail ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 16px;
}

.detail li + li { margin-top: 6px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stack {
  font-size: 14px;
  color: var(--muted);
  margin: 18px 0 0;
}

/* Voice AI */
.voice-list { display: grid; gap: 28px; }

.voice-item {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  align-items: center;
}

.video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-note {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.voice-item h3 { font-size: 24px; }

/* System cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 { font-size: 20px; }

.card .actions { margin-top: auto; padding-top: 24px; }

/* Line up titles, "What it does", "Impact" and buttons across each row of cards */
@supports (grid-template-rows: subgrid) {
  .card {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .card-body { display: contents; }
  .card-body > * { margin-left: 22px; margin-right: 22px; }
  .card h3 { padding-top: 22px; }
  .card .actions { align-self: end; margin-top: 0; padding-bottom: 22px; }
}

/* Built with */
.tools {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tools li {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--card);
  font-weight: 600;
  font-size: 15px;
}

.tools img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--chip);
  padding: 2px;
}

/* Booking */
.booking {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.booking > p { color: var(--muted); max-width: 620px; margin: 0 auto 24px; }

.booking .chips { justify-content: center; }

.thank-you { max-width: 760px; margin: 0 auto; }

.calendar-embed {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

/* Workflow and calendar viewer */
dialog {
  width: min(1200px, 94vw);
  max-height: 92vh;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
}

dialog::backdrop { background: rgba(0, 0, 0, 0.75); }

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-alt);
}

.dialog-head h3 { margin: 0; font-size: 18px; }

.dialog-body { padding: 20px; display: grid; gap: 20px; }

.dialog-body figure { margin: 0; }

.dialog-body img {
  border-radius: 10px;
  border: 1px solid var(--border);
  width: 100%;
}

.dialog-body figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Phone and tablet */
@media (max-width: 1100px) {
  .tools { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(3, 1fr); }
  .voice-item { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  section { padding: 52px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 190px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .booking { padding: 28px 8px; }
  .booking > .eyebrow, .booking > h2, .booking > p { padding: 0 12px; }
  .site-header .wrap { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .logo { font-size: 16px; gap: 6px; white-space: nowrap; }
  .logo img { width: 40px; height: 40px; }
  .header-actions { gap: 6px; flex-shrink: 0; }
  .site-header .btn { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .toggle-text { display: none; }
  .toggle-icon { display: inline; font-size: 16px; line-height: 1; }
}
