/*
 * kudzutech.com, the marketing site.
 *
 * Fluent 2 token layer, light theme. Blue primary with a green accent on a
 * white background with dark text, matching the demo site and the console.
 *
 * This is a prospect facing surface, so it deliberately carries no developer
 * identity bar.
 */
:root {
  --bg: #ffffff;
  --canvas: #faf9f8;
  --panel: #ffffff;
  --panel-2: #f5f5f5;
  --line: #e0e0e0;
  --line-strong: #d1d1d1;
  --text: #242424;
  --text-2: #424242;
  --dim: #616161;

  --brand: #0f6cbd;
  --brand-hover: #115ea3;
  --brand-tint: #eff6fc;

  --accent: #107c10;
  --accent-deep: #0b5a0b;
  --accent-tint: #f1faf1;
  --accent-line: #bdda9b;

  --warn-tint: #fff4ce;
  --warn-line: #f2c288;
  --warn-text: #8a4b06;

  --danger: #c50f1f;
  --danger-tint: #fdf3f4;
  --danger-text: #960b18;

  --font-base: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system,
    BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'Cascadia Mono', Consolas, 'Courier New', monospace;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-circular: 9999px;

  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.14), 0 0 2px rgba(0, 0, 0, 0.12);
  --shadow-8: 0 4px 8px rgba(0, 0, 0, 0.14), 0 0 2px rgba(0, 0, 0, 0.12);
  --shadow-16: 0 8px 16px rgba(0, 0, 0, 0.14), 0 0 2px rgba(0, 0, 0, 0.12);

  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --curve-ease: cubic-bezier(0.33, 0, 0.67, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
}

.shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  display: block;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background var(--duration-fast) var(--curve-ease);
}

.nav a:hover {
  background: var(--panel-2);
  color: var(--text);
}

.topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--curve-ease);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-hover);
}

.btn--secondary {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  background: var(--panel-2);
}

.btn--subtle {
  background: transparent;
  color: var(--text-2);
}

.btn--subtle:hover {
  background: var(--panel-2);
  color: var(--text);
}

.btn--lg {
  min-height: 40px;
  padding: 9px 20px;
  font-size: 16px;
  line-height: 22px;
}

/* Hero */
.hero {
  padding: 72px 0 64px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 8px;
  border-radius: var(--radius-circular);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circular);
  background: var(--accent);
}

h1 {
  font-size: 44px;
  line-height: 52px;
  letter-spacing: -0.5px;
  margin: 20px 0 0;
  max-width: 15ch;
}

.hero__sub {
  margin-top: 16px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-2);
  max-width: 52ch;
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 14px;
  color: var(--dim);
  font-size: 12px;
  line-height: 16px;
}

/* Browser and widget preview */
.preview {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-16);
  overflow: hidden;
}

.preview__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.preview__dots {
  display: flex;
  gap: 6px;
}

.preview__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}

.preview__url {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-circular);
  padding: 3px 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--dim);
}

.preview__body {
  padding: 18px;
}

.chat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-8);
  overflow: hidden;
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--brand);
  color: #fff;
}

.chat__head strong {
  font-size: 14px;
  font-weight: 600;
}

.chat__head span {
  font-size: 12px;
  line-height: 16px;
  opacity: 0.88;
  display: block;
}

.chat__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
}

.chat__body {
  padding: 14px;
  display: grid;
  gap: 10px;
  background: var(--canvas);
}

.bubble {
  max-width: 84%;
  padding: 9px 12px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  line-height: 19px;
}

.bubble--visitor {
  justify-self: end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: var(--radius-sm);
}

.bubble--ai {
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom-left-radius: var(--radius-sm);
}

.bubble--operator {
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-bottom-left-radius: var(--radius-sm);
}

.bubble__label {
  display: block;
  font-size: 11px;
  line-height: 15px;
  font-weight: 600;
  color: var(--dim);
  margin-bottom: 3px;
}

.bubble--operator .bubble__label {
  color: var(--accent-deep);
}

.handoff {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  padding: 3px 12px;
  border-radius: var(--radius-circular);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
}

.chat__composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.fake-input {
  flex: 1;
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-bottom-color: var(--brand);
  border-radius: var(--radius-md);
  color: var(--dim);
  font-size: 13px;
}

.fake-btn {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 5px 12px;
}

/* Section furniture */
section {
  padding: 64px 0;
}

.band {
  background: var(--canvas);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
}

.section-head h2 {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.3px;
}

.section-head p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-2);
}

.kicker {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand);
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: 22px;
}

.card h3 {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 6px;
}

.card p {
  color: var(--text-2);
}

.steps,
.channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.step__num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circular);
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
}

.code {
  margin-top: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--text-2);
  overflow-x: auto;
  white-space: pre;
}

/* Channels */
.channel__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-circular);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  margin-left: auto;
}

.badge--live {
  background: var(--accent-tint);
  color: var(--accent-deep);
  border: 1px solid var(--accent-line);
}

.badge--next {
  background: var(--warn-tint);
  color: var(--warn-text);
  border: 1px solid var(--warn-line);
}

.icon-tile {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--brand-tint);
  display: grid;
  place-items: center;
}

/* Split feature */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.split__lede {
  margin-top: 10px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-2);
}

.checklist {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
}

.check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-circular);
  background: var(--accent-tint);
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.checklist strong {
  display: block;
  font-weight: 600;
}

.checklist span {
  color: var(--text-2);
}

/* Console preview */
.console {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-8);
  overflow: hidden;
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row--active {
  background: var(--brand-tint);
  box-shadow: inset 3px 0 0 var(--brand);
}

.row__name {
  font-weight: 600;
}

.row__preview {
  color: var(--dim);
  font-size: 13px;
}

.row__meta {
  color: var(--dim);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

/* Trust */
.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

/* Closing call to action */
.cta {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 40px;
  align-items: start;
}

.cta h2 {
  font-size: 28px;
  line-height: 36px;
}

/* Scoped to the intro column: the form beside it is a white surface, and a
   rule that whitened every paragraph inside the panel made its fine print and
   its status message invisible. */
.cta__intro p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 24px;
  max-width: 56ch;
}

.cta :focus-visible {
  outline-color: #fff;
}

.cta__points {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.cta__points li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 20px;
}

/* A check drawn in CSS rather than a character, so it keeps its weight
   against the brand background at every zoom level. */
.cta__points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid rgba(255, 255, 255, 0.95);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Demo request form */
.lead {
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-16);
  display: grid;
  gap: 16px;
}

.lead__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text);
}

.field__hint {
  font-weight: 400;
  color: var(--dim);
}

.field input,
.field textarea {
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-bottom-width: 1px;
  border-radius: var(--radius-md);
  padding: 5px 10px;
  min-height: 32px;
  width: 100%;
  transition: border-color var(--duration-fast) var(--curve-ease);
}

.field textarea {
  padding: 8px 10px;
  resize: vertical;
}

/* Fluent focus: the field grows a 2px brand bottom border rather than a ring,
   so the caret and the indicator sit on the same edge. */
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 4px;
}

.field textarea:focus {
  padding-bottom: 7px;
}

.lead .btn--primary {
  background: var(--brand);
  color: #fff;
  width: 100%;
  justify-content: center;
}

.lead .btn--primary:hover {
  background: var(--brand-hover);
}

.lead .btn--primary[disabled] {
  background: var(--line-strong);
  cursor: default;
}

.lead :focus-visible {
  outline-color: var(--brand);
}

/* Present in the markup for a bot that submits every named field it finds,
   and genuinely absent for anyone using the page. A one pixel offscreen box
   would still be a box, which is a thing a person can land on. */
.lead__trap {
  display: none;
}

.lead__fine {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 16px;
}

.lead__status {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  border-radius: var(--radius-md);
}

.lead__status:empty {
  display: none;
}

/* Fluent MessageBar: a 3px leading intent stripe over a tinted surface. */
.lead__status.is-ok,
.lead__status.is-error,
.lead__status.is-pending {
  padding: 10px 12px;
  border-left: 3px solid var(--dim);
  background: var(--panel-2);
}

.lead__status.is-ok {
  border-left-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-deep);
}

.lead__status.is-error {
  border-left-color: var(--danger);
  background: var(--danger-tint);
  color: var(--danger-text);
}

.lead__status a {
  color: inherit;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 32px 0 48px;
  color: var(--dim);
}

.footer__inner {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.footer__links {
  margin-left: auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--text-2);
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

@media (max-width: 940px) {
  .hero__grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .steps,
  .channels {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px;
  }

  .nav {
    display: none;
  }

  h1 {
    font-size: 34px;
    line-height: 42px;
    max-width: none;
  }

  .shell {
    padding: 0 20px;
  }
}

@media (max-width: 560px) {
  .trust {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead {
    padding: 20px;
  }
}
