/* Home-only product theme; campaign and document pages keep their own layouts. */
body.home-page {
  --ink: #0d1114;
  --panel: #151c20;
  --text: #f2f6f5;
  --white: #f2f6f5;
  --muted: #b0bdc2;
  --line: #2b363b;
  --green-text: #57d591;
  --ai: #70d5e5;
  --home-band: #12191c;
  background: var(--ink);
}

body.home-page[data-theme="light"] {
  --ink: #fcfdfd;
  --panel: #f1f5f5;
  --text: #111b20;
  --white: #111b20;
  --muted: #4e626b;
  --line: #d1dddf;
  --green-text: #147044;
  --ai: #086d80;
  --home-band: #f0f5f5;
  background: var(--ink);
}

.home-page .site-header,
.home-page[data-theme="light"] .site-header {
  inset: 0 0 auto;
  width: 100%;
  height: 76px;
  margin: 0;
  padding-inline: max(24px, calc((100% - 1180px) / 2));
  transform: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink);
  box-shadow: none;
}

.home-page .brand-logo { width: 164px; }
.home-page .desktop-nav { gap: 20px; font-size: 0.875rem; }
.home-page .header-actions .link-button { display: none; }
.home-page .mobile-menu { top: 84px; background: var(--panel); }
.home-page .primary-button { background: #f1d279; box-shadow: none; border-radius: 6px; }
.home-page .primary-button:hover { background: #ffe39a; }
.home-page .secondary-button { background: transparent; border-color: var(--line); border-radius: 6px; }
.home-page .secondary-button:hover { border-color: var(--green-text); }
.home-page section[id] { scroll-margin-top: 98px; }

.home-page .hero {
  display: block;
  min-height: 0;
  padding: 116px 24px 28px;
  border-bottom: 1px solid var(--line);
}

.home-page .hero-grid { display: block; overflow: visible; }
.home-page .hero-copy { max-width: 760px; margin: auto; text-align: center; }
.home-page .eyebrow { color: var(--ai); text-transform: none; }
.home-ai-mark {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.6875rem;
}
.home-page .hero h1 { margin-top: 12px; font-size: 4rem; line-height: 1; text-transform: none; }
.home-page .home-brand-tagline { margin-top: 12px; font-size: 2.5rem; }
.home-page .hero-lede { max-width: 65ch; margin: 16px auto 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.home-page .hero-actions { margin-top: 22px; justify-content: center; }

.home-product-stage { max-width: 780px; margin: 30px auto 0; }
.home-product-stage__screens {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
}
.home-product-screen { flex: 0 1 132px; min-width: 0; margin: 0; }
.home-product-screen--ai { flex-basis: 153px; }
.home-product-screen figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}
.home-product-screen figcaption span { color: var(--green-text); }
.home-product-screen--ai figcaption,
.home-product-screen--ai figcaption span { color: var(--ai); }
.home-product-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 20;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.home-preview-note { margin: 16px 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.6; text-align: center; }

.home-product-stage.is-carousel {
  --carousel-width: 153px;
  --carousel-offset: 165px;
  --carousel-caption-height: 27px;
}
.is-carousel .home-product-stage__screens {
  position: relative;
  display: block;
  width: 100%;
  height: calc(var(--carousel-width) * 20 / 9 + var(--carousel-caption-height));
  touch-action: pan-y pinch-zoom;
  user-select: none;
  isolation: isolate;
}
.is-carousel .home-product-screen {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--carousel-width);
  transform-origin: center bottom;
  will-change: transform;
  transition: transform 850ms cubic-bezier(0.22, 0.68, 0, 1);
}
.is-carousel .home-product-screen[data-position="center"] {
  z-index: 3;
  transform: translateX(-50%) scale(1);
}
.is-carousel .home-product-screen[data-position="left"] {
  z-index: 1;
  transform: translateX(calc(-50% - var(--carousel-offset))) scale(0.84);
}
.is-carousel .home-product-screen[data-position="right"] {
  z-index: 2;
  transform: translateX(calc(-50% + var(--carousel-offset))) scale(0.84);
}
.is-carousel .home-product-screen figcaption { height: calc(var(--carousel-caption-height) - 10px); align-items: center; }
.is-carousel .home-product-screen img { -webkit-user-drag: none; }
.home-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.home-carousel-controls[hidden] { display: none; }
.home-carousel-button,
.home-carousel-dots button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.home-carousel-button:hover { color: var(--text); border-color: var(--line); background: var(--panel); }
.home-carousel-controls button:disabled { cursor: default; opacity: 0.5; }
.home-carousel-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-carousel-button svg[hidden] { display: none; }
.home-carousel-toggle { border-color: var(--line); }
.home-carousel-dots { display: flex; align-items: center; }
.home-carousel-dots button { flex-basis: 32px; width: 32px; }
.home-carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.home-carousel-dots button[aria-pressed="true"] span { width: 18px; border-radius: 4px; background: var(--ai); }
.home-carousel-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-product-stage[data-image-state="error"] .home-carousel-status { position: static; display: block; width: auto; height: auto; margin-top: 8px; overflow: visible; clip-path: none; white-space: normal; color: var(--muted); text-align: center; font-size: 0.8125rem; }
.is-carousel > .home-preview-note { margin-top: 8px; }

.home-page .home-metrics { width: min(900px, calc(100% - 32px)); max-width: none; margin: 0 auto; gap: 0; padding: 26px 0; }
.home-page .home-metrics div { min-height: 0; padding: 0 24px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; text-align: center; }
.home-page .home-metrics div:last-child { border-right: 0; }
.home-page .home-metrics strong { color: var(--green-text); font-size: 2rem; }
.home-page .home-metrics div:nth-child(3) strong { color: var(--ai); }
.home-page .home-metrics span { font-size: 0.8125rem; font-weight: 500; }
.home-page .logo-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px; width: 100%; padding: 18px 24px; border: 0; border-block: 1px solid var(--line); border-radius: 0; background: var(--home-band); }
.home-page .logo-strip span { min-height: 0; border: 0; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }

.home-page .section,
.home-page .platform-section,
.home-page .trust-section { padding-top: 88px; }
.home-page .section-heading { max-width: 720px; }
.home-page .section-heading > span,
.home-page .section-kicker { color: var(--green-text); }
.home-page .section-heading h2 { font-size: 2.5rem; }
.home-page .section-heading p { font-size: 1rem; }
.home-page .home-benefits .platform-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.home-page .platform-copy { gap: 0; }
.home-page .feature-row { grid-template-columns: 32px minmax(0, 1fr); gap: 18px; padding: 24px 0; }
.home-page .feature-row:first-child { padding-top: 0; }
.home-page .feature-row > span { width: 32px; height: 32px; background: transparent; color: var(--green-text); border: 1px solid var(--line); border-radius: 4px; font: 600 0.75rem/1 ui-monospace, Consolas, monospace; }
.home-page .feature-row:nth-child(2) > span,
.home-page .feature-row:nth-child(3) > span { color: var(--ai); border-color: var(--ai); }
.home-page .feature-row h3 { font-size: 1.125rem; }
.home-page .feature-row p { font-size: 0.9375rem; }

.home-product-demo { min-width: 0; padding-top: 16px; border-top: 2px solid var(--ai); }
.home-product-demo__heading { display: flex; justify-content: space-between; gap: 12px; }
.home-tech-label { color: var(--muted); font: 500 0.6875rem/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; }
.home-tech-label--ai { color: var(--ai); }
.home-product-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-bottom: 1px solid var(--line); }
.home-product-tabs button { min-width: 0; min-height: 48px; padding: 10px 6px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.home-product-tabs button:hover { color: var(--text); }
.home-product-tabs button[aria-selected="true"] { border-bottom-color: var(--ai); color: var(--ai); }
.home-product-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 210px); align-items: center; gap: 28px; min-height: 516px; padding-block: 24px; }
.home-product-panel[hidden] { display: none; }
.home-product-panel__copy { min-width: 0; }
.home-product-panel h3 { margin: 12px 0 0; font-size: 1.5rem; line-height: 1.3; }
.home-product-panel p { margin: 16px 0 0; color: var(--muted); font-size: 0.9375rem; }
.home-product-panel img { width: 100%; height: auto; aspect-ratio: 9 / 20; border: 1px solid var(--line); border-radius: 8px; object-fit: contain; }
.home-signal-fields { display: flex; gap: 8px; margin-top: 24px; }
.home-signal-fields span { padding-bottom: 5px; border-bottom: 2px solid var(--green-text); font: 600 0.75rem/1.5 ui-monospace, Consolas, monospace; }
.home-signal-fields span:last-child { border-bottom-color: #ec7777; }
.home-demo-detail { display: block; margin-top: 24px; color: var(--ai); font-size: 1.75rem; line-height: 1.3; }
.home-product-demo > .home-preview-note { margin-top: 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }

.home-page .market-card,
.home-page .account-card,
.home-page .trust-grid article { background: var(--panel); border-color: var(--line); }
.home-page .market-card.featured { border-color: var(--green-text); }
.home-page .market-card { padding: 20px; min-height: 0; }
.home-page .market-card b { width: auto; height: auto; display: inline-block; background: transparent; color: var(--gold-text); border-radius: 0; font: 600 1.25rem/1.5 ui-monospace, Consolas, monospace; }
.home-page .market-card h3 { margin-top: 18px; }
.home-page .market-card p { font-size: 0.9375rem; }
.home-page .account-card::before { background: var(--line); height: 2px; }
.home-page .account-card.highlight::before { background: var(--green-text); }
.home-page .account-card.highlight { border-color: var(--green-text); }
.home-page .account-badge { border-radius: 4px; background: var(--line); color: var(--text); }
.home-page .account-card.highlight .account-badge { background: var(--green); color: #07100b; }
.home-page .trust-panel { padding: 36px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.home-page .trust-grid article { padding: 0 24px 0 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.home-page .trust-grid article:last-child { border-right: 0; }
.home-page .trust-grid p { font-size: 0.9375rem; }
.home-page .start-section { width: 100%; margin-top: 88px; padding: 56px max(24px, calc((100% - 1180px) / 2)); background: #173d30; color: #f3fbf7; border-block: 1px solid #32634e; }
.home-page .start-section h2 { color: #f3fbf7; }
.home-page .start-section > div > span { color: #84e5b0; text-transform: none; }
.home-page .start-section p { color: #c3d9cd; font-size: 1rem; max-width: 62ch; }
.home-page .start-section > .primary-button { color: #06100b; }
/* Keep the CTA label separate from the section's eyebrow typography. */
.home-page .start-section > .primary-button > span { color: inherit; font: inherit; letter-spacing: 0; text-transform: none; }
.home-page .site-footer { padding-top: 36px; padding-bottom: 36px; }

@media (max-width: 1060px) {
  .home-page .home-benefits .platform-layout { gap: 32px; grid-template-columns: 1fr 1fr; }
  .home-product-panel { grid-template-columns: 1fr; gap: 20px; min-height: 680px; }
  .home-product-panel img { width: 180px; justify-self: center; }
  .home-product-panel__copy { align-self: start; }
  .home-product-panel p { margin-top: 8px; }
  .home-signal-fields,
  .home-demo-detail { margin-top: 16px; }
}

@media (max-width: 760px) {
  .home-page .site-header { height: 66px; padding-inline: 16px; }
  .home-page .brand-logo { width: 152px; }
  .home-page .mobile-menu { top: 74px; }
  .home-page .hero { padding: 86px 16px 16px; }
  .home-page .eyebrow { font-size: 0.75rem; }
  .home-page .hero h1 { font-size: 2.75rem; }
  .home-page .home-brand-tagline { font-size: 1.75rem; }
  .home-page .hero-lede { font-size: 0.9375rem; margin-top: 12px; }
  .home-page .hero-actions { flex-direction: column; align-items: center; gap: 0; margin-top: 20px; }
  .home-page .hero-actions .primary-button { max-width: 360px; }
  .home-page .hero-actions .secondary-button { width: auto; min-height: 44px; padding: 8px 16px; border-color: transparent; color: var(--muted); }
  .home-product-stage { margin-top: 12px; }
  .home-product-stage__screens { gap: 12px; }
  .home-product-screen { flex-basis: 90px; }
  .home-product-screen--ai { flex-basis: 108px; }
  .home-product-stage.is-carousel { --carousel-width: 108px; --carousel-offset: 108px; --carousel-caption-height: 24px; }
  .home-product-screen figcaption { gap: 4px; font-size: 0.5625rem; }
  .home-product-screen figcaption span { display: none; }
  .home-product-screen--ai figcaption { justify-content: center; }
  .home-preview-note { font-size: 0.6875rem; max-width: 54ch; margin-inline: auto; }
  .home-page .home-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); width: calc(100% - 32px); padding: 22px 0; }
  .home-page .home-metrics div { padding: 0 8px; }
  .home-page .home-metrics strong { font-size: 1.5rem; }
  .home-page .home-metrics span { font-size: 0.6875rem; line-height: 1.5; }
  .home-page .logo-strip { gap: 12px 18px; padding: 16px; }
  .home-page .logo-strip span { font-size: 0.75rem; }
  .home-page .section,
  .home-page .platform-section,
  .home-page .trust-section { padding-top: 56px; }
  .home-page .section-heading { text-align: left; margin-bottom: 28px; }
  .home-page .section-heading h2 { font-size: 2rem; }
  .home-page .home-benefits .platform-layout { grid-template-columns: 1fr; gap: 32px; }
  .home-page .feature-row { padding-block: 20px; gap: 12px; }
  .home-product-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 160px); min-height: 405px; gap: 16px; }
  .home-product-panel img { width: 100%; }
  .home-product-panel__copy { align-self: center; }
  .home-product-panel h3 { font-size: 1.25rem; }
  .home-product-panel p { font-size: 0.875rem; }
  .home-demo-detail { font-size: 1.5rem; }
  .home-page .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .market-card { padding: 18px; }
  .home-page .market-card:last-child { grid-column: 1 / -1; }
  .home-page .trust-grid article { padding: 0 0 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .home-page .trust-grid article:last-child { border-bottom: 0; }
  .home-page .start-section { margin-top: 56px; padding: 40px 16px; }
}

@media (max-width: 380px) {
  .home-page .home-brand-tagline { font-size: 1.5rem; }
  .home-product-screen { flex-basis: 78px; }
  .home-product-screen--ai { flex-basis: 100px; }
  .home-product-stage__screens { gap: 8px; }
  .home-product-stage.is-carousel { --carousel-width: 100px; --carousel-offset: 94px; }
  .home-product-panel { grid-template-columns: minmax(0, 1fr) 128px; min-height: 375px; gap: 12px; }
  .home-product-panel h3 { font-size: 1.125rem; }
  .home-product-panel p { font-size: 0.8125rem; }
  .home-tech-label { font-size: 0.625rem; }
}

@media (min-width: 761px) and (max-height: 820px) {
  .home-page .hero { padding-top: 100px; padding-bottom: 20px; }
  .home-page .hero h1 { font-size: 3.5rem; }
  .home-product-stage { margin-top: 24px; }
  .home-product-screen { flex-basis: 96px; }
  .home-product-screen--ai { flex-basis: 118px; }
  .home-product-stage.is-carousel { --carousel-width: 118px; --carousel-offset: 127px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.home-page) { scroll-behavior: auto; }
  .home-page *, .home-page *::before, .home-page *::after { transition: none !important; }
  .is-carousel .home-product-screen { will-change: auto; }
}
