:root {
  --ink: #243d32;
  --muted: #5d695f;
  --paper: #ffffff;
  --subtle: #f5f8f3;
  --line: #e3eae0;
  --line-strong: #c3d4c4;
  --accent: #bd4b1b;
}
body { background: #fffefa; color: var(--ink); }
.topbar { background: #ffffffed; border-color: var(--line); }
.brand span { color: #667366; }
.brand strong { color: #243d32; }
.brand img { mix-blend-mode: multiply; }
.topbar .button { border-radius: 100px; background: transparent; padding-inline: 24px; }
.home-atmosphere { display: none; }
.agent-login {
  max-width: 1320px;
  min-height: 650px;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  padding: 52px 48px 44px;
}
.agent-login-copy { padding: 8px 0 32px; animation: none; }
.agent-brand-mark { display: none; }
.agent-login-copy > .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 3px;
}
.agent-login-copy > .eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}
.agent-login h1 { font-size: clamp(34px, 3.6vw, 49px); font-weight: 550; line-height: 1.5; letter-spacing: -.05em; }
.agent-login-copy > p { max-width: 430px; font-size: 15px; line-height: 1.95; margin-top: 24px; }
.agent-mini-flow { margin-top: 32px; font-size: 12px; gap: 14px; color: #5e715f; }
.agent-mini-flow span:nth-child(even) { color: #7a8e77; }
.agent-login-actions { margin-top: 34px; gap: 13px; }
.agent-login-actions .primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  border-radius: 100px;
  padding: 17px 24px;
  box-shadow: 0 7px 18px #c55a251a;
}
.agent-login-actions .primary:hover { background: #a83f15; }
.agent-login-actions .quiet { color: #315d43; text-decoration: underline; text-underline-offset: 5px; }
.agent-login-actions small { font-size: 12px; }
.visual-scene {
  align-self: center;
  position: relative;
  min-width: 0;
  padding: 174px 17px 16px;
  border: 1px solid #e5ece1;
  border-radius: 28px;
  background: #f4f8ed;
  box-shadow: 0 16px 48px #425b3708;
  overflow: hidden;
}
.visual-scene-photo {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: 78% 46%;
}
.visual-scene::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 155px 0 auto;
  height: 140px;
  background: linear-gradient(transparent, #f4f8ed);
  pointer-events: none;
}
.intent-carousel { position: relative; z-index: 1; }
.example-selectors {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 4px;
  gap: 2px;
  border: 1px solid #ffffffbf;
  border-radius: 100px;
  background: #fffffff7;
  scrollbar-width: none;
}
.example-selector { min-height: 44px; padding: 7px 12px; border: 0; font-size: 11px; color: #4b604f; box-shadow: none; }
.example-selector:hover { background: #f0f7eb; }
.example-selector[aria-pressed="true"] { background: #e5f3da; color: #2d583b; box-shadow: inset 0 0 0 1px #c1d8b4; }
.example-slide { padding: 0 0 12px; }
.example-card { border: 1px solid #fff; background: #fff; border-radius: 19px; padding: 25px 26px 21px; box-shadow: 0 6px 20px #3a57250a; }
.example-card-top { margin-bottom: 14px; }
.example-kind { color: #3e6c48; font-size: 12px; }
.example-label { border: 0; padding: 4px 8px; border-radius: 100px; background: #fff3e5; color: #876339; font-size: 10px; }
.example-title { font-size: 21px; font-weight: 550; line-height: 1.5; color: #243d32; }
.example-description { font-size: 14px; color: #59675e; line-height: 1.85; margin: 16px 0 18px; }
.example-tags { gap: 6px; }
.example-tags span { background: #f0f7e9; color: #48673d; border-radius: 100px; padding: 5px 9px; font-size: 10px; }
.example-use { font-size: 12px; min-height: 44px; margin-top: 16px; border-color: #e3b59b; color: #a84219; }
.example-footer { padding: 0 5px; gap: 8px; }
.example-disclosure { color: #5a6d51; font-size: 11px; flex-basis: 120px; }
.example-controls { gap: 6px; }
.example-arrow { width: 44px; min-height: 44px; background: #fff; color: #42623c; border-color: #ccdcbf; box-shadow: none; }
.example-count { color: #5a6d51; font-size: 11px; }
.install-section { max-width: 1224px; padding: 60px 0 56px; border-top: 1px solid #e6eadf; margin-inline: auto; }
.install-section .section-heading { text-align: left; margin-bottom: 26px; }
.install-section h2 { font-size: 26px; font-weight: 550; letter-spacing: -.04em; }
.install-section .section-heading p { color: #626d60; font-size: 13px; }
.install-grid { gap: 18px; }
.install-card { background: #fff; border-radius: 18px; border-color: #e3eade; box-shadow: 0 5px 22px #415c2404; }
.brand-tile { background: #f0f6e9; border-radius: 13px; }
.brand-tile img { filter: invert(1) opacity(.8); }
.install-copy { border-radius: 100px; background: #edf6e4; border-color: #cfdfc2; color: #315b39; }
.install-copy:hover { background: #dfefce; border-color: #aac597; color: #315b39; }
.install-copy:active { background: #d4e8c1; color: #315b39; }
.install-source { color: #3f6542; }
.install-note, .install-footnote { color: #626d60; }
footer { border-color: #e6eadf; color: #626d60; background: #fafcf5; }
button:focus-visible, a:focus-visible { outline: 3px solid #bd4b1b; outline-offset: 4px; }
@media (max-width: 1080px) {
  .agent-login { padding-inline: 28px; gap: 32px; grid-template-columns: .9fr 1.1fr; }
  .agent-login h1 { font-size: 37px; }
  .example-card { padding: 22px; }
  .example-selector { padding-inline: 9px; }
  .install-section { margin-inline: 28px; }
}
@media (max-width: 760px) {
  .agent-login { grid-template-columns: 1fr; padding: 34px 20px 36px; gap: 30px; }
  .agent-login-copy { padding: 0; }
  .agent-login-copy > .eyebrow { margin: 0 0 16px; }
  .agent-login h1 { font-size: clamp(32px, 7.7vw, 45px); line-height: 1.5; }
  .agent-login-copy > p { font-size: 14px; margin-top: 16px; }
  .agent-mini-flow { margin-top: 22px; }
  .agent-login-actions { margin-top: 25px; }
  .visual-scene { padding: 163px 10px 12px; border-radius: 22px; }
  .visual-scene-photo { height: 245px; }
  .example-selectors { width: 100%; justify-content: space-between; gap: 0; padding: 3px; margin-bottom: 10px; }
  .example-selector { min-height: 44px; padding-inline: 7px; font-size: 11px; }
  .example-card { padding: 22px 19px 18px; }
  .example-title { font-size: 19px; }
  .example-description { font-size: 14px; }
  .example-footer { flex-wrap: wrap; gap: 6px; }
  .example-disclosure { flex-basis: 100%; }
  .example-controls { margin-left: auto; }
  .example-arrow { width: 44px; min-height: 44px; }
  .install-section { padding-block: 32px; margin-inline: 20px; }
  .install-section h2 { font-size: 24px; }
  .install-grid { grid-template-columns: 1fr; }
  .brand strong { font-size: 21px; }
  .brand span { font-size: 10px; padding-left: 9px; margin-left: 4px; }
  .language-toggle { min-width: 44px; padding-inline: 4px; }
  .topbar .button { padding-inline: 16px; }
  .header-actions { gap: 4px; }
}

/* Light surfaces keep the photo's original exposure and the existing composition. */
.topbar .button { background: #fff; border-color: #dce6d7; color: #315b39; }
.language-toggle { background: #f5f9ef; }
.example-arrow:hover { background: #eaf4df; border-color: #acc795; }
.install-description { color: var(--muted); }
.install-details { border-color: #e4ebdf; }
.install-details summary { min-height: 44px; display: flex; align-items: center; gap: 6px; color: #51634b; }
.install-details summary::before { content: '▸'; }
.install-details[open] summary::before { content: '▾'; }
.install-prompt { background: #f7faf3; color: #354b39; border-color: #e0e9d9; }

/* Continuous, slow right-to-left movement with a visible next card. */
.flow-carousel .example-viewport {
  overflow: hidden;
  touch-action: pan-y;
  margin: 0 -10px 8px;
  padding: 6px 10px 0;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent, #000 8px, #000 calc(100% - 8px), transparent);
}
.flow-carousel .example-viewport:active { cursor: grabbing; }
.flow-carousel .example-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
  transition: none;
  will-change: transform;
}
.flow-carousel .example-slide {
  flex: 0 0 min(440px, 88%);
  min-width: 0;
  padding: 0 0 14px;
}
.flow-carousel .example-card {
  border-color: #e0e9d8;
  box-shadow: 0 7px 18px #36502408;
  user-select: none;
}
.flow-carousel .example-card button { cursor: pointer; }
@media (max-width: 760px) {
  .flow-carousel .example-track { gap: 12px; }
  .flow-carousel .example-slide { flex-basis: 90%; }
  .flow-carousel .example-card { padding: 22px 18px 18px; }
}

/* The carousel is a full-width section in the normal homepage flow. */
.wide-home-hero {
  min-height: 0;
  padding-block: 42px 44px;
  gap: 64px;
}
.wide-home-hero .agent-login-copy { padding: 0; }
.wide-home-hero .agent-login-copy > .eyebrow { margin-bottom: 16px; }
.wide-home-hero h1 { font-size: clamp(34px, 3.1vw, 44px); line-height: 1.4; }
.wide-home-hero .agent-login-copy > p { margin-top: 18px; }
.wide-home-hero .agent-mini-flow { margin-top: 22px; }
.wide-home-hero .agent-login-actions { margin-top: 24px; gap: 10px; }
.wide-home-hero .agent-login-actions .primary { padding-block: 14px; }
.wide-home-hero .visual-scene {
  padding: 0;
  height: clamp(300px, 28vw, 390px);
  width: 100%;
  border-radius: 26px;
}
.wide-home-hero .visual-scene-photo { inset: 0; height: 100%; object-position: 78% 46%; }
.wide-home-hero .visual-scene::after { display: none; }
.wide-examples {
  width: 100%;
  min-width: 0;
  padding: 24px 0 20px;
  border-block: 1px solid #e2eadb;
  background: #f3f7ed;
}
.wide-examples .example-selectors { width: fit-content; max-width: calc(100% - 40px); margin-bottom: 18px; }
.wide-examples.flow-carousel .example-viewport {
  width: 100%;
  margin: 0 0 8px;
  padding: 6px 0 0;
  mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.wide-examples.flow-carousel .example-track { gap: 20px; }
/* At least one complete five-card group always exceeds the viewport width. */
.wide-examples.flow-carousel .example-slide { flex-basis: max(360px, 32vw); }
.wide-examples.flow-carousel .example-card { padding: 27px 28px 24px; }
.wide-examples .example-title { font-size: 23px; }
.wide-examples .example-description { font-size: 15px; }
.wide-examples .example-tags span { font-size: 11px; }
.wide-examples .example-footer {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 48px;
  justify-content: space-between;
}
.wide-examples .example-disclosure { flex-basis: auto; }
.wide-examples + .install-section { border-top: 0; }
@media (max-width: 1080px) {
  .wide-home-hero { gap: 32px; padding-inline: 28px; }
  .wide-examples .example-footer { padding-inline: 28px; }
}
@media (max-width: 760px) {
  .wide-home-hero { padding: 30px 20px; gap: 26px; }
  .wide-home-hero h1 { font-size: clamp(32px, 7.7vw, 44px); }
  .wide-home-hero .visual-scene { height: 190px; border-radius: 20px; }
  .wide-home-hero .visual-scene-photo { object-position: 78% 53%; }
  .wide-examples { padding-block: 18px 16px; }
  .wide-examples .example-selectors { width: calc(100% - 32px); max-width: none; margin-bottom: 14px; }
  .wide-examples.flow-carousel .example-track { gap: 14px; }
  .wide-examples.flow-carousel .example-slide { flex-basis: calc(100% - 36px); }
  .wide-examples.flow-carousel .example-card { padding: 24px 22px 20px; }
  .wide-examples .example-title { font-size: 21px; }
  .wide-examples .example-description { font-size: 14px; }
  .wide-examples .example-footer { padding-inline: 20px; gap: 8px; }
  .wide-examples .example-disclosure { flex-basis: 100%; }
}

/* The Agent connection cards now span the same page width as the hero and carousel. */
.wide-examples + .install-section {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}
.wide-examples + .install-section .section-heading,
.wide-examples + .install-section .install-footnote {
  padding-inline: clamp(20px, 2.5vw, 56px);
}
.wide-examples + .install-section .install-grid {
  width: 100%;
  gap: 20px;
}
@media (max-width: 760px) {
  .wide-examples + .install-section .install-grid { gap: 14px; }
}

/* Panoramic courtyard as the entire welcome section's background. */
.wide-home-hero {
  display: flex;
  align-items: center;
  max-width: none;
  width: 100%;
  min-height: 560px;
  padding: 48px max(48px, calc((100% - 1224px) / 2));
  overflow: hidden;
  background: #f7f4eb;
}
.wide-home-hero .agent-login-copy {
  width: 48%;
  max-width: 560px;
  z-index: 2;
}
.wide-home-hero .agent-login-copy > p { max-width: 455px; color: #43584b; }
.wide-home-hero .agent-mini-flow,
.wide-home-hero .agent-login-actions small { color: #4d6252; }
.wide-home-hero .visual-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 0;
  pointer-events: none;
}
.wide-home-hero .visual-scene-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.wide-home-hero .visual-scene::after {
  display: block;
  inset: 0;
  height: auto;
  background: linear-gradient(90deg, rgba(255,254,249,.95) 0%, rgba(255,254,249,.88) 28%, rgba(255,254,249,.62) 43%, rgba(255,254,249,.12) 61%, transparent 73%);
}
@media (min-width: 1700px) {
  .wide-home-hero { min-height: 620px; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .wide-home-hero { padding: 42px 28px; min-height: 550px; }
  .wide-home-hero .agent-login-copy { width: 48%; }
  .wide-home-hero h1 { font-size: 34px; }
  .wide-home-hero .agent-login-copy > p { font-size: 14px; }
  .wide-home-hero .visual-scene::after {
    background: linear-gradient(90deg, rgba(255,254,249,.97), rgba(255,254,249,.9) 30%, rgba(255,254,249,.56) 46%, rgba(255,254,249,.08) 67%, transparent 80%);
  }
}
@media (max-width: 760px) {
  .wide-home-hero {
    align-items: flex-start;
    min-height: 0;
    padding: 32px 20px 250px;
    background: #fffef9;
  }
  .wide-home-hero .agent-login-copy { width: 100%; max-width: 520px; }
  .wide-home-hero .visual-scene { inset: auto 0 0; height: 300px; }
  .wide-home-hero .visual-scene-photo { object-position: right bottom; }
  .wide-home-hero .visual-scene::after {
    background: linear-gradient(180deg, #fffef9 0%, rgba(255,254,249,.94) 10%, rgba(255,254,249,.38) 27%, transparent 48%);
  }
}
