@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--ink:#182321;--green:#1f473b;--accent:#d4ef6b;--paper:#f5f6f1;--line:#dfe3db;--muted:#68736d;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #709532;outline-offset:3px}button{color:inherit}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}.preview{background:var(--paper)}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:#fff;border-right:1px solid var(--line);padding:36px 24px;display:flex;flex-direction:column}.wordmark{text-decoration:none;font:italic 800 54px/.85 'Barlow Condensed',Impact,sans-serif;letter-spacing:-3px}.wordmark span{display:block;font:700 10px/2 'DM Sans',Arial;letter-spacing:3px;padding-left:2px}.workspace-label{font-size:10px;color:var(--muted);letter-spacing:1.5px;margin:65px 0 16px}.sidebar nav a{display:block;text-decoration:none;padding:13px 12px;margin:5px -5px;font-size:12px;border-radius:6px}.sidebar nav a.active{background:#edf1e6;color:var(--green);font-weight:700}.sidebar-bottom{margin-top:auto;font-size:12px;line-height:1.8}.sidebar-bottom span{font-size:10px;color:var(--muted)}.pilot{margin-top:20px;font-size:10px;color:var(--green);border-top:1px solid var(--line);padding-top:20px}.dashboard{margin-left:232px;padding:0 48px;max-width:1600px}.dashboard>header{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}header b{margin:0 15px;color:#a8b1a6}.dashboard>header a{text-decoration:none;color:var(--ink)}.preview-heading{padding:52px 0 34px;position:relative}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px}.preview-heading h1{font-size:clamp(35px,4vw,59px);line-height:1.05;letter-spacing:-2.5px;font-weight:500;margin:18px 0}.preview-heading p{max-width:480px;font-size:13px;line-height:1.8;color:var(--muted)}.mode-pill{position:absolute;right:0;top:64px;border:1px solid var(--line);padding:10px 13px;border-radius:30px;font-size:10px;background:#fff}.mode-pill span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#6f894a;margin-right:5px}.mode-pill b{padding:0 6px;color:#a2a99d}.showcase{display:grid;grid-template-columns:1fr 430px;min-height:680px;background:#e6ebdf;border:1px solid #d6dfcf;border-radius:14px;overflow:hidden}.showcase-copy{padding:66px 40px;position:relative;background:radial-gradient(ellipse at 0 100%,#c0cfae 0,transparent 60%)}.showcase-copy h2{font-family:'Barlow Condensed',Impact,sans-serif;font-size:62px;line-height:.98;font-weight:700;letter-spacing:-1px;margin:26px 0}.showcase-copy>p{max-width:255px;font-size:13px;color:#566450;line-height:1.8}.primary{background:var(--green);color:#fff;border:0;border-radius:6px;padding:14px 20px;font-weight:600;font-size:12px}.showcase-copy>.primary{margin-top:12px}.sample-prompts{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:32px}.sample-prompts button{background:none;border:0;border-bottom:1px solid #aab99e;padding:0 0 7px;font-size:11px}.review-note{font-size:9px;letter-spacing:1px;margin-top:55px;max-width:250px;line-height:1.8}.review-note span{font-size:10px;letter-spacing:0;color:#65735c}.widget-stage{padding:24px 24px 30px;background:#d9e2d0}.stage-label{display:flex;gap:6px;font-size:8px;letter-spacing:1px;margin:0 0 17px}.stage-label>span:first-child{color:#496844}.stage-label>span:last-child{margin-left:auto;color:#718168}.widget-stage iframe{display:block;width:100%;height:615px;border:0;border-radius:14px;box-shadow:0 12px 36px #243b2220;background:#fff}.capabilities{display:grid;grid-template-columns:repeat(3,1fr);gap:36px;padding:44px 0;border-bottom:1px solid var(--line)}.capabilities article>span{font-size:9px;color:var(--muted);letter-spacing:1.3px}.capabilities h3{font-size:16px;letter-spacing:-.5px;font-weight:500;margin-top:16px}.capabilities p,.installation p{color:var(--muted);font-size:12px;line-height:1.8;max-width:290px}.installation{padding:44px 0;display:grid;grid-template-columns:1fr 1fr;gap:40px}.installation h2{font-size:25px;font-weight:500;letter-spacing:-1px}pre{background:#e9ede3;padding:22px;border-radius:8px;overflow:auto;font-size:11px;line-height:2}.muted{font-size:11px!important;color:var(--muted);line-height:1.7}footer{padding:20px 0 30px;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:var(--muted)}
.widget-page{height:100dvh;background:#fff;font-size:13px}.chat-shell{height:100%;display:flex;flex-direction:column;overflow:hidden}.chat-header{display:flex;align-items:center;gap:12px;padding:19px 20px;background:var(--green);color:#fff}.assistant-avatar{width:38px;height:38px;flex-shrink:0;border-radius:50%;object-fit:cover;background:var(--accent)}.chat-header strong{font-size:14px;font-weight:600}.chat-header small{display:block;font-size:10px;opacity:.7;margin-top:4px}.chat-header>button{margin-left:auto;border:0;background:transparent;color:#fff;font-size:24px;width:32px;height:32px}.chat-status{padding:9px 20px;font-size:9px;background:#eef3e8;color:#4e6845;border-bottom:1px solid #e0e8d9}.chat-scroll{overflow-y:auto;flex:1;padding:24px 20px;scroll-behavior:smooth;overscroll-behavior:contain}.welcome h1{font-size:34px;line-height:1.08;letter-spacing:-1.5px;font-weight:500;margin:13px 0}.welcome .eyebrow{font-size:8px;color:#6e7c64}.welcome>p{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:24px}.message{padding:12px 14px;margin:10px 0;border-radius:9px;line-height:1.7;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.message.assistant{background:#f0f3eb;margin-right:20px;border-bottom-left-radius:2px}.message.user{background:var(--green);color:#fff;margin-left:35px;border-bottom-right-radius:2px}.quick-actions{display:flex;flex-direction:column;gap:7px;margin:16px 0}.quick-actions button{border:1px solid #dfe5d7;border-radius:6px;padding:11px 13px;background:#fff;text-align:left;font-size:11px}.quick-actions span{float:right;color:#68825b}.chat-bottom{padding:0 16px 11px;border-top:1px solid #edf0e8;background:white}.utility{display:flex;gap:10px;padding:11px 2px}.utility button{border:0;background:none;padding:0;color:#607056;font-size:9px}.utility button:last-child{margin-left:auto}.chat-bottom form{display:flex;padding:6px;border:1px solid #dce3d5;border-radius:8px;gap:6px}.chat-bottom input{width:100%;min-width:0;border:0;background:transparent;font-size:12px;padding:6px;outline-offset:0}.chat-bottom form button{flex-shrink:0;border:0;border-radius:6px;background:var(--green);color:white;width:34px;height:34px;font-size:20px}.chat-bottom>p{font-size:8px;color:#8b9285;text-align:center;margin:10px 0 0}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:15px}.section-heading h2{font-size:20px;letter-spacing:-.7px;font-weight:500;margin:0}.back{background:none;border:0;color:var(--green);margin-left:auto;font-size:9px;padding:6px 0}label{display:block;font-size:10px;font-weight:600;margin:13px 0}label input,label select,label textarea{display:block;width:100%;padding:10px;border:1px solid #dbe2d5;border-radius:5px;margin-top:7px;background:#fff;color:var(--ink);font-size:12px}textarea{resize:vertical}.vehicle{border:1px solid var(--line);padding:16px;border-radius:8px;margin:12px 0}.vehicle>small{font-size:9px;color:#6a7a5c;text-transform:uppercase;letter-spacing:1px}.vehicle h3{font-size:15px;margin:8px 0}.vehicle p{font-size:10px;color:var(--muted);line-height:1.6}.vehicle strong{font-size:19px;font-weight:500}.vehicle .links{display:flex;justify-content:space-between;margin-top:14px}.vehicle a,.vehicle button{font-size:10px;color:var(--green)}.vehicle button{background:none;border:0;padding:0;text-decoration:underline}.all-stock,.call{font-size:11px;color:var(--green);display:block;margin:20px 0}.consent{display:flex;gap:9px;align-items:flex-start;line-height:1.6;font-size:10px;font-weight:400}.consent input{width:15px;min-width:15px;margin:2px 0}.privacy{font-size:9px;color:var(--muted);line-height:1.6}#lead-result{font-size:11px;line-height:1.7}#lead-submit{width:100%}.error{color:#a13d27}.success{color:var(--green)}
@media(min-width:1500px){.showcase{grid-template-columns:1fr 470px}.showcase-copy{padding-left:65px}.showcase-copy h2{font-size:76px}}@media(max-width:1150px){.sidebar{width:190px;padding:30px 20px}.dashboard{margin-left:190px;padding:0 28px}.showcase{grid-template-columns:1fr 390px}.showcase-copy{padding:48px 24px}.showcase-copy h2{font-size:50px}.mode-pill{position:static;display:inline-block;margin-top:12px}}@media(max-width:900px){.sidebar{display:none}.dashboard{margin:0;padding:0 24px}.showcase{grid-template-columns:1fr 390px}.preview-heading{padding-top:35px}}@media(max-width:650px){.dashboard{padding:0 18px}.dashboard>header{height:64px;font-size:9px}.dashboard>header b{margin:0 5px}.preview-heading h1{font-size:43px}.preview-heading{padding-bottom:25px}.showcase{display:flex;flex-direction:column}.showcase-copy{padding:30px}.showcase-copy h2{font-size:48px}.showcase-copy>p{max-width:100%}.review-note{margin-top:24px;max-width:100%}.sample-prompts{margin-top:22px}.widget-stage{padding:20px 14px}.widget-stage iframe{height:610px}.capabilities{grid-template-columns:1fr;gap:20px}.capabilities p{max-width:100%}.installation{grid-template-columns:1fr;gap:12px}footer{font-size:8px}.chat-scroll{padding:22px 18px}}

.conversation-date{font-size:8px;letter-spacing:1.4px;color:#7c8973;text-align:center;margin:2px 0 28px}.chat-scroll .message.assistant{font-size:13px;padding:16px;line-height:1.85}.chat-bottom form{border-color:#93a685}.chat-bottom input{padding:10px 6px}.chat-bottom .utility{padding:12px 2px}.chat-header small{opacity:.85}

.source-links{border-top:1px solid #d8dfd0;display:flex;flex-direction:column;gap:8px;margin-top:12px;padding-top:12px}.source-links a{font-size:10px;line-height:1.5;color:#315746}.message a{color:inherit;text-underline-offset:3px}

.chat-scroll .message.typing {
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  min-height: 38px;
  padding: 0 14px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: cmx-typing 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 150ms; }
.typing-dot:nth-child(3) { animation-delay: 300ms; }

.chat-product-shell {
  position: relative;
  --corner-offset: -6px;
  --corner-diameter: 28px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
}

.product-summary {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
}
.chat-product {
  display: block;
  border-radius: 10px;
  text-decoration: none;
}

.chat-product-shell:has(a.chat-product:hover) { border-color: var(--green); }
a.chat-product:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.product-toggle {
  position: absolute;
  left: var(--corner-offset);
  bottom: var(--corner-offset);
  z-index: 2;
  width: var(--corner-diameter);
  height: var(--corner-diameter);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #eef3e8;
  color: var(--green);
  cursor: pointer;
}
.product-toggle::before {
  content: '';
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.product-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(225deg); }
.product-expanded { border-top: 1px solid var(--line); padding: 10px 10px 28px; font-size: 11px; line-height: 1.55; }
.product-expanded p { margin: 0; }
.product-expanded p + p { margin-top: 6px; }

.product-media { min-width: 0; padding: 10px 0 10px 10px; text-align: center; }

.product-photos {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: #f2f4ef;
}

.product-photos img {
  display: block;
  width: 100%;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  object-fit: contain;
  scroll-snap-align: start;
}

.product-details { min-width: 0; padding: 10px; align-self: center; }
.product-details:only-child { grid-column: 1 / -1; }
.product-details strong { display: block; font-size: 12px; line-height: 1.35; }
.product-number {
  position: absolute;
  top: var(--corner-offset);
  right: var(--corner-offset);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--corner-diameter);
  height: var(--corner-diameter);
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 10px;
  line-height: 1;
}
.product-details small { display: block; margin: 5px 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.product-price { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; }
.product-link { display: block; margin-top: 5px; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }

@keyframes cmx-typing {
  0%, 60%, 100% { opacity: .45; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .typing-dot { animation: none; }
}

/* CMX Powersports branding for both the embedded chat and inline preview. */
.widget-page {
  --ink: #191b19;
  --green: #202320;
  --accent: #40d800;
  --line: #dfe3de;
  --muted: #535c53;
  color: var(--ink);
}
.widget-page .chat-header { border-bottom: 3px solid var(--accent); }
.widget-page .chat-status { background: #edf8e9; color: #28551b; border-color: #d7e9d3; }
.widget-page .message.assistant { background: #f1f3f0; }
.widget-page .message.user,
.widget-page #send,
.widget-page .product-number,
.widget-page .product-toggle { background: var(--accent); color: var(--ink); }
.widget-page .product-toggle { border-color: #319d07; }
.widget-page .product-toggle:hover { background: #64e43b; }
.widget-page .chat-bottom form { border-color: #a6afa5; }
.widget-page .utility button,
.widget-page .conversation-date,
.widget-page .source-links a { color: var(--muted); }
.widget-page :focus-visible { outline-color: #2c810a; }

.widget-page[data-host-theme] {
  --line: color-mix(in srgb, var(--ink) 20%, var(--host-surface));
  --muted: color-mix(in srgb, var(--ink) 82%, var(--host-surface));
  --host-bubble: color-mix(in srgb, var(--ink) 8%, var(--host-surface));
  background: var(--host-surface);
}
.widget-page[data-host-theme] .chat-header,
.widget-page[data-host-theme] .chat-header > button,
.widget-page[data-host-theme] .primary { color: var(--on-header); }
.widget-page[data-host-theme] .chat-status {
  background: color-mix(in srgb, var(--accent) 12%, var(--host-surface));
  color: var(--ink);
  border-color: var(--line);
}
.widget-page[data-host-theme] .message.assistant,
.widget-page[data-host-theme] .product-photos { background: var(--host-bubble); }
.widget-page[data-host-theme] .chat-bottom,
.widget-page[data-host-theme] .chat-product-shell,
.widget-page[data-host-theme] input,
.widget-page[data-host-theme] select,
.widget-page[data-host-theme] textarea { background: var(--host-surface); color: var(--ink); border-color: var(--line); }
.widget-page[data-host-theme] .message.user,
.widget-page[data-host-theme] #send,
.widget-page[data-host-theme] .product-number,
.widget-page[data-host-theme] .product-toggle { color: var(--on-accent); }
.widget-page[data-host-theme] .product-toggle { border-color: var(--line); }
.widget-page[data-host-theme] .product-toggle:hover { background: var(--accent); filter: brightness(.9); }
.widget-page[data-host-theme] .chat-bottom form { border-color: var(--line); }
.widget-page[data-host-theme] .chat-bottom > p { color: var(--muted); }
.widget-page[data-host-theme] :focus-visible { outline-color: var(--ink); }

.preview {
  --cmx-primary: #d4ef6b;
  --ink: #191b19;
  --green: #202320;
  --paper: #f5f6f4;
}
.preview .sidebar nav { margin-top: 44px; }
.preview .showcase { background: #eaf0e8; }
.preview .showcase-copy { background: radial-gradient(ellipse at 0 100%, #d7efce 0, transparent 70%); }
.preview .showcase-copy > p { max-width: 350px; }
.preview .widget-stage { background: #e1e9df; }
.preview .installation pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.preview .showcase, .preview .widget-stage {
  background: color-mix(in srgb, var(--cmx-primary) 9%, #f5f6f4);
}
.preview .showcase-copy {
  background: radial-gradient(ellipse at 0 100%, color-mix(in srgb, var(--cmx-primary) 21%, #fff), transparent 70%);
}
.preview .primary { background: var(--cmx-header, #202320); color: var(--on-header, #fff); }
.widget-page[style*="--cmx-primary"] .chat-header { border-bottom-color: var(--cmx-primary); }
.preview .sidebar, .preview .showcase { color: #191b19; }
.preview .preview-heading p, .preview .dashboard > header, .preview .capabilities p, .preview .installation p { color: var(--ink); }
