/* Shared palette and component colors. Feature pages set their own accent. */
body {
  --ink: #25233e;
  --muted: #535568;
  --paper: #fffefa;
  --line: #dedde6;
  --soft: #efedfc;
  --green: #4339a2;
  --dark-green: #292049;
  --lime: #ffda70;
  --white: #fff;
  --accent: #493bb3;
  --accent-dark: #302376;
  --accent-wash: #eeebff;
  --control-line: #847f99;
  background: var(--paper);
  color: var(--ink);
  accent-color: var(--accent);
}
body.page-healthcare {
  --ink: #10314b; --muted: #405c70; --paper: #fff; --line: #c9e0ec;
  --green: #075b96; --lime: #b9f1f4; --soft: #e6f4fa;
  --accent: #075b96; --accent-dark: #103f65; --accent-wash: #e5f5fb; --control-line: #648399;
}
.page-demo { --accent: #9c3924; --accent-dark: #702b21; --accent-wash: #ffede2; --green: #923724; --soft: #ffefe4; }
.page-examples { --accent: #6038ad; --accent-dark: #3b235f; --accent-wash: #f0e8ff; --green: #6038ad; --soft: #f0e8ff; }
.page-pilot-guide { --accent: #705110; --accent-dark: #493612; --accent-wash: #fff0bb; --green: #705110; --soft: #fff0c9; }
.page-careers { --accent: #914127; --accent-dark: #692e20; --accent-wash: #ffeadc; --green: #914127; }
.page-team { --accent: #493fb0; --accent-dark: #302376; --accent-wash: #edebff; }
body > header:first-of-type { background: white; border-bottom: 1px solid var(--line); }
body > header .brand, footer .brand { color: var(--ink); font-size: 1.26rem; font-weight: 760; letter-spacing: -.054em; }
:is(.brand-mark, .brand .mark) {
  width: 2.12rem; height: 2.12rem; flex: none; display: inline-grid; place-items: center;
  background: #4339a2; color: #fff1a5; border-radius: .72rem; font-size: 0;
  transform: rotate(-5deg);
}
:is(.brand-mark, .brand .mark)::before {
  content: ""; width: 1.45rem; aspect-ratio: 1; background: currentColor; transform: rotate(5deg);
  clip-path: polygon(44% 0,56% 0,55% 34%,80% 9%,90% 19%,65% 44%,100% 44%,100% 56%,65% 56%,90% 81%,80% 91%,55% 66%,56% 100%,44% 100%,45% 66%,20% 91%,10% 81%,35% 56%,0 56%,0 44%,35% 44%,10% 19%,20% 9%,45% 34%);
}
.page-healthcare .brand-mark { background: #075b96; color: #cbf5f5; }
body > header nav a { color: var(--ink); font-weight: 640; text-decoration-thickness: 2px; text-underline-offset: .33em; }
body > header nav a:is(:hover,[aria-current="page"]) { color: var(--accent); text-decoration: underline; }
.button, .btn, .nav-contact {
  border-radius: 2rem; font-weight: 710; text-decoration: none;
}
.button, .btn { background: var(--accent); border-color: var(--accent); color: white; }
.button:hover, .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: white; }
.button-outline, .btn.secondary { background: transparent; border-color: var(--control-line); color: var(--accent-dark); }
.button-outline:hover, .btn.secondary:hover { background: var(--accent-wash); border-color: var(--accent); color: var(--accent-dark); }
.button-light, .btn.light { background: var(--lime); border-color: var(--lime); color: #29213b; }
.button-light:hover, .btn.light:hover { background: #ffebad; color: #29213b; }
body > header .nav-contact { background: var(--accent); color: white; padding-inline: 1.1rem; }
body > header .nav-contact:hover { color: white; background: var(--accent-dark); }
.field { border-color: var(--control-line); }
.text-link { color: var(--accent-dark); text-underline-offset: .22em; }
:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #2250a9; outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .button, .btn, .route-card { transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease; }
  .route-card:hover { transform: translateY(-3px); }
}

/* Homepage cover and navigation to the three main experiences. */
.home-cover { background: #fffbef; border-bottom: 1px solid #e8dfcd; }
.page-home .hero {
  grid-template-columns: minmax(0,.98fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 4.6rem);
  padding-block: clamp(2.6rem, 4.8vw, 4.75rem);
}
.page-home .hero-copy { padding-block: .25rem; }
.page-home .hero .eyebrow {
  display: flex; align-items: center; gap: .65rem; color: #493d72; font-size: .85rem; letter-spacing: .085em;
}
.page-home .hero .eyebrow::before { content: ""; width: 1.8rem; height: 3px; background: #d35939; }
.page-home .hero h1 {
  max-width: none; margin: .9rem 0 1rem; color: #29213f;
  font-size: clamp(3.2rem, 5.65vw, 5.35rem); line-height: .99; letter-spacing: -.065em;
}
.page-home .hero h1 em {
  color: #4c3db0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-style: italic; letter-spacing: -.065em;
}
.page-home .hero .lede { font-size: clamp(1.03rem, 1.5vw, 1.14rem); max-width: 42ch; color: #4c4659; }
.page-home .hero .actions { margin-top: 1.45rem; }
.page-home .hero .button { padding-inline: 1.2rem; }
.hero-art {
  margin: .45rem .65rem .65rem .25rem; position: relative; isolation: isolate;
  align-self: center; aspect-ratio: 1.27; min-width: 0;
}
.hero-art::before {
  content: ""; position: absolute; z-index: -1; inset: 0; transform: translate(.7rem,.7rem);
  background: #beb5f3; border-radius: 4.5rem 1.2rem 4.5rem 1.2rem;
}
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; border-radius: 4.5rem 1.2rem 4.5rem 1.2rem; }
.hero-flower {
  position: absolute; width: clamp(3.35rem, 6vw, 5.4rem); aspect-ratio: 1;
  right: -.9rem; bottom: -.65rem; display: grid; place-items: center; background: #ffd462; transform: rotate(-10deg);
  clip-path: polygon(50% 0%,57% 20%,74% 6%,74% 27%,94% 20%,84% 39%,100% 45%,83% 54%,98% 70%,77% 68%,81% 91%,63% 80%,54% 100%,47% 80%,29% 95%,29% 74%,8% 81%,18% 62%,0% 54%,18% 45%,3% 29%,25% 31%,21% 9%,39% 21%);
}
.hero-flower::after { content: ""; width: 25%; height: 25%; border: 3px solid #31204d; border-radius: 50%; }
.start-routes {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem;
  padding-block: clamp(1.4rem, 2.8vw, 2.35rem); align-items: stretch;
}
.start-routes .route-card {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0;
  min-height: 8.4rem; padding: clamp(1rem, 1.8vw, 1.55rem); border-radius: 1.05rem; text-decoration: none;
  color: var(--route-ink); background: var(--route-bg);
}
.route-use { --route-bg: #e8dfff; --route-ink: #412668; --art: #7650b8; }
.route-health { --route-bg: #ceeaf1; --route-ink: #13465b; --art: #1d697a; }
.route-demo { --route-bg: #ffd9c8; --route-ink: #6c2e23; --art: #a64c37; }
.route-copy { display: grid; gap: .3rem; text-align: left; }
.route-copy strong { font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.1; letter-spacing: -.04em; }
.route-copy > span { font-size: .93rem; font-weight: 500; line-height: 1.4; }
.route-card:hover .route-copy strong { text-decoration: underline; text-underline-offset: .18em; }
.route-art { position: relative; flex: 0 0 clamp(2.4rem, 4.7vw, 4.2rem); aspect-ratio: 1; pointer-events: none; }
.art-stack i, .art-stack::before, .art-stack::after {
  content: ""; position: absolute; inset: 17% 18%; border: 2px solid var(--art); border-radius: .22rem;
}
.art-stack::before { background: var(--art); transform: translate(-12%,10%) rotate(-14deg); }
.art-stack i { background: var(--route-bg); transform: rotate(-8deg); }
.art-stack::after { background: repeating-linear-gradient(to bottom, transparent 0 18%, var(--art) 18% 23%) center/57% 47% no-repeat, #fbf7ff; transform: translate(10%,-10%) rotate(5deg); }
.art-health i { position: absolute; inset: 10%; background: var(--art); clip-path: polygon(34% 0,67% 0,67% 34%,100% 34%,100% 67%,67% 67%,67% 100%,34% 100%,34% 67%,0 67%,0 34%,34% 34%); transform: rotate(7deg); }
.art-health::before { content: ""; position: absolute; inset: 0; border: 1px dashed #6c9fab; border-radius: 50%; }
.art-chat::before, .art-chat i { content: ""; position: absolute; inset: 24% 3% 10% 18%; background: var(--art); border-radius: 35% 35% 6% 35%; transform: rotate(8deg); }
.art-chat i { inset: 8% 19% 30% 0; background: #fff1e9; border: 2px solid var(--art); border-radius: 35% 35% 35% 5%; transform: rotate(-8deg); }
.art-chat i::before { content: ""; position: absolute; inset: 43% 23% auto; height: 3px; border-radius: 2px; background: var(--art); }

/* A live sample, an indigo pilot band, and clearly grouped pricing options. */
.page-home .agent-section { padding-top: 2.1rem; }
.agent-overview { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: start; gap: clamp(1.5rem,4.5vw,4rem); }
.page-home .sample { border-radius: 1.35rem; border: 1px solid #d8cce8; background: #f2ecfd; box-shadow: 0 .5rem 0 #dfd5ef; }
.page-home .sample-caption, .page-home .sample-label { color: #4a377b; font-size: .83rem; }
.page-home .sample-message, .page-home #sample-result { border-color: #d9d1e2; }
.page-home .sample-reply { background: #fff6d8; border-color: #e5d7a5; }
.page-home .agent-example { background: #f0eee9; border-color: #e1ded7; }
.page-home .agent-inputs { background: #f1f5ff; }
.page-home .pilot-band { background: #312355; }
.page-home .pilot-layout p:not(.eyebrow) { color: #ede9f9; }
.page-home .pilot-band .eyebrow, .page-home .pilot-steps li > span { color: #ffda70; }
.page-home .price-card { border-top: 5px solid var(--card-color); background: var(--card-bg); }
.page-home .price-card:nth-child(1), .guide-phase:nth-child(1) { --card-bg: #fff3d4; --card-color: #bc812a; }
.page-home .price-card:nth-child(2), .guide-phase:nth-child(2) { --card-bg: #eaf4fa; --card-color: #407ba0; }
.page-home .price-card:nth-child(3), .guide-phase:nth-child(3) { --card-bg: #f0eafa; --card-color: #8060b1; }
.page-home .price-card:nth-child(4) { --card-bg: #fff0e7; --card-color: #be6845; }
.page-home .price { color: #332049; }
.page-home .task-grid article { background: white; border-top: 3px solid #9c87cf; }
.page-home .contact-band { background: #e8e4fb; border-color: #d5cdef; }
.page-home .contact-form, .page-healthcare .contact-form { box-shadow: 0 9px 30px #2324470c; }
#chat-launch, #guided-chat { color: var(--ink); }
#chat-launch { background: white; color: #412b65; border-color: #8a7c9e; }
#guided-chat { background: white; border-color: var(--line); }
#guided-chat .chat-header { background: #3c2d60; }
#guided-chat button, #guided-chat .chat-link { color: #35274c; border-color: #a89bb7; }
#guided-chat button:hover, #guided-chat .chat-link:hover, #chat-launch:hover { background: #eee9fa; }
#guided-chat .chat-header button { color: white; border-color: #c7bbdb; }
#guided-chat .chat-header button:hover { background: #564274; }

/* Page identities. The healthcare workflow stays in its medical blue and teal. */
.page-healthcare .health-hero, .page-examples .intro, .page-demo .demo-intro, .page-pilot-guide .guide-intro {
  position: relative; isolation: isolate;
}
:is(.page-healthcare .health-hero, .page-examples .intro, .page-demo .demo-intro, .page-pilot-guide .guide-intro)::before {
  content: ""; position: absolute; z-index: -1; inset: 0; background: var(--accent-wash);
  box-shadow: 0 0 0 100vmax var(--accent-wash); clip-path: inset(0 -100vmax);
}
.page-healthcare .desk-heading { background: #075b96; }
.page-healthcare .desk-demo { box-shadow: .45rem .5rem 0 #acd9e6; }
.page-healthcare .health-index { background: #fff; }
.page-healthcare .practice-grid article { padding: clamp(1rem, 2.5vw, 1.65rem); border-radius: .95rem; }
.page-healthcare #medical-offices { border-color: #27889a; background: #e6f5f4; }
.page-healthcare #dental-offices { border-color: #467fb6; background: #e8f1ff; }
.page-healthcare .contact-band { background: #deeff8; }
.page-examples .intro { margin-bottom: clamp(2rem,4vw,3.5rem); }
.page-examples .intro h1, .page-demo .demo-intro h1, .page-pilot-guide .guide-intro h1 {
  color: var(--accent-dark); font-weight: 730; line-height: 1; letter-spacing: -.053em;
}
.page-examples .workflow-preview { background: #442c6d; box-shadow: .4rem .45rem 0 #cdb5eb; }
.page-examples .workflow-preview .text-link { color: #ffdf88; }
.page-examples .workflow-preview .incoming-message { border-color: #a38cba; }
.page-examples .automation-categories article:nth-child(3n+1) { background: #f6f0ff; border-color: #ddcfee; }
.page-examples .automation-categories article:nth-child(3n+2) { background: #ffefe2; border-color: #eed8c5; }
.page-examples .automation-categories article:nth-child(3n+3) { background: #e9f3f8; border-color: #cedfe7; }
.page-examples .planner { background: #392451; }
.page-examples .planner p { color: #e8e1f2; }
.page-examples .example-outcome { background: #f3edff; border-color: #ddd0f0; }
.page-demo .demo-intro { margin-bottom: 1.6rem; }
.page-demo .demo-flow { background: #fffaf6; border-color: #e6baa7; }
.page-demo .demo-flow li::before { background: #9c3924; color: white; }
.page-demo .eyebrow { color: #783526; }
.page-demo .demo-samples .btn[aria-pressed="true"] { background: #8e3828; border-color: #8e3828; color: white; }
.page-demo .prototype-output { border-top: 5px solid #c96e4b; }
.page-demo .owner-alert-panel { background: #fff2e6; border-color: #e5c9b6; }
.page-demo .setup-card { background: #fff9ee; }
.page-pilot-guide .guide-purpose { background: #fff9e6; border-color: #dfcd93; }
.page-pilot-guide .guide-phase { border-top: 5px solid var(--card-color); background: var(--card-bg); }
.page-team main, .page-careers main { padding-block: clamp(2.5rem, 6vw, 4.75rem); }
.page-team h1, .page-careers h1 { color: var(--accent-dark); margin: 0 0 1.2rem; }
.page-team .founder-card, .page-careers .career-card { background: var(--accent-wash); border: 1px solid var(--line); border-top: .42rem solid var(--accent); }
.page-team .founder-mark { background: #493fb0; color: white; }
.page-careers .career-apply { background: #fffaf7; }
.page-thank-you { background: #eee7ff; }
.page-thank-you main { box-sizing: border-box; background: #fffefa; border-top: .5rem solid #5641a6; border-radius: 1rem; width: min(90%, 38rem); box-shadow: .55rem .6rem 0 #cfc2ed; }
.page-thank-you h1, .page-thank-you a { color: #3a2863; }
.page-thank-you p { color: #50485d; }

@media (max-width: 860px) {
  .page-home .hero { gap: 1.55rem; }
  .start-routes { gap: .6rem; }
  .start-routes .route-card { min-height: 7rem; }
  .route-art { flex-basis: 2.6rem; }
}
@media (max-width: 720px) {
  .page-home .hero, .agent-overview { grid-template-columns: 1fr; }
  .page-home .hero { padding-block: 2.6rem; }
  .page-home .hero h1 { font-size: clamp(3.15rem, 9.4vw, 4.6rem); }
  .hero-art { width: calc(100% - 1rem); max-height: 25rem; aspect-ratio: 1.65; }
  .start-routes { grid-template-columns: 1fr; }
  .start-routes .route-card { min-height: 5.05rem; padding: .8rem 1.15rem; }
  .route-copy { gap: .15rem; }
  .route-art { flex-basis: 3.1rem; }
  .hero-art img, .hero-art::before { border-radius: 2.75rem .85rem 2.75rem .85rem; }
  .page-home .agent-section { padding-top: 1.3rem; }
}
@media (max-width: 380px) {
  .page-home .hero h1 { font-size: 2.95rem; }
}

.trade-picker { margin-top: .8rem; }
.trade-picker[hidden], #trade-feature[hidden] { display: none; }
.trade-feature { background: var(--accent-wash); border-radius: .75rem; padding: 1rem; margin-bottom: 1rem; }
.trade-feature p { margin-bottom: .5rem; }
