/* The launch surface is separate from the composer and conversation styles. */
.option-b .reference-hero {
  --ink: #161c25;
  --blue: #164aca;
  --inner: 24.6vw;
  --middle: 30.9vw;
  --wide: 37.2vw;
  --edge: 43.4vw;
  --outer: 49.8vw;
  position: relative;
  min-height: 100svh;
  height: auto;
  color: var(--ink);
  background: #fff;
  padding: max(13px, var(--safe-top)) 0 max(18px, var(--safe-bottom));
}

.option-b .reference-hero .topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(78%, 1100px);
  min-height: 50px;
  height: auto;
  gap: 14px;
  padding: 5px 12px 5px 15px;
  border: 1px solid #e8ebf0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 20px #14284a08;
}
.option-b .reference-hero .brand { width: min(138px, 100%); }
.brand-lockup {
  position: relative;
  display: block;
  width: 100%;
}
/* The approved raster stays aligned as three independently removable elements. */
.brand-lockup .brand-logo {
  clip-path: polygon(0 0, 100% 0, 100% 59.5%, 22% 59.5%, 22% 100%, 0 100%);
}
.brand-attribution,
.brand-attribution img { position: absolute; inset: 0; }
.brand-attribution img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.brand-ai-label {
  clip-path: polygon(22% 59.5%, 87.5% 59.5%, 87.5% 70%, 85% 75%, 85% 100%, 22% 100%);
}
.brand-ai-icon {
  clip-path: polygon(87.5% 59.5%, 100% 59.5%, 100% 100%, 85% 100%, 85% 75%, 87.5% 70%);
}
.reference-nav { gap: 24px; white-space: nowrap; color: #343b45; }
.reference-nav a:hover { color: var(--blue); }
.option-b .reference-hero .header-actions { justify-self: end; gap: 8px; }
.option-b .reference-hero .header-actions > :is(.nav-cta, .client-sign-in) {
  height: 34px;
  min-height: 34px;
  padding-inline: 11px;
  border-radius: 9px;
  font-size: 12px;
}
.option-b .reference-hero .header-actions > .client-sign-in {
  background: #f5f6f8;
  color: #242e3d;
  border-color: #e9ebee;
}
.option-b .reference-hero .header-actions > .nav-cta { background: #111a2b; border-color: #111a2b; }

.option-b .reference-hero .hero-layout {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4.3vh, 37px);
  min-height: 0;
  padding: 28px 0 37px;
  text-align: center;
}
.option-b .reference-hero .hero-copy {
  align-self: auto;
  width: min(100%, 560px);
  padding: 0;
  color: var(--ink);
}
.reference-eyebrow {
  display: flex;
  justify-content: center;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  color: #4d5b6b;
  margin: 0 0 16px;
}
.reference-eyebrow > span:first-child { color: #2362d7; font-size: 15px; }
.option-b .reference-hero h1 {
  color: var(--ink);
  font: 700 clamp(38px, 3.8vw, 60px)/1.055 Arial, Helvetica, sans-serif;
  letter-spacing: -.048em;
  margin: 0 auto 12px;
}
.reference-description {
  max-width: 455px;
  margin: 0 auto 19px;
  font-size: 13px;
  line-height: 1.55;
  color: #475361;
}

.option-b .reference-hero .reference-orbits {
  position: absolute;
  inset: 0;
  overflow: clip;
  background: none;
  clip-path: none;
  pointer-events: none;
  mask-image: linear-gradient(#000 66%, transparent 87%);
}
.reference-ring, .reference-marker {
  position: absolute;
  top: 40.6%;
  left: 50%;
  translate: -50% -50%;
}
.reference-ring {
  width: calc(2 * var(--radius));
  aspect-ratio: 1;
  border: 1px solid #e9edf2;
  border-radius: 50%;
}
.ring-inner, .marker-contacts, .marker-reports { --radius: var(--inner); }
.ring-middle, .marker-receipt, .marker-mail, .marker-note, .marker-tasks { --radius: var(--middle); }
.ring-wide, .marker-gift, .marker-pie { --radius: var(--wide); }
.ring-edge, .marker-calendar, .marker-folder { --radius: var(--edge); }
.ring-outer { --radius: var(--outer); }
.ring-inner::after, .ring-middle::after, .ring-wide::after, .ring-edge::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from var(--arc), transparent, #5979e9 8deg, #9db6f5 17deg, transparent 20deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - 1px));
}
.ring-inner { --arc: 273deg; }
.ring-middle { --arc: 103deg; }
.ring-wide { --arc: 240deg; }
.ring-edge { --arc: 76deg; }
.reference-marker {
  width: clamp(39px, 4.25vw, 54px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #edf0f4;
  background: #fff;
  box-shadow: 0 2px 2px #1026430b, 0 7px 12px #1026430b;
  transform: translate(calc(var(--radius) * cos(var(--angle))), calc(var(--radius) * sin(var(--angle))));
}
.marker-contacts { --angle: 168deg; }
.marker-receipt { --angle: 208deg; }
.marker-mail { --angle: 332deg; }
.marker-gift { --angle: 183deg; }
.marker-calendar { --angle: 165deg; }
.marker-pie { --angle: 357deg; }
.marker-reports { --angle: 12deg; }
.marker-folder { --angle: 15deg; }
.marker-note { --angle: 139deg; }
.marker-tasks { --radius: var(--wide); --angle: 34deg; }
.feature-mark { display: block; position: relative; width: 20px; height: 20px; }
.mark-contacts { border: 2px solid #1273e9; border-radius: 6px; }
.mark-contacts::before {
  content: ""; position: absolute; width: 5px; height: 5px; top: 3px; left: 5px; border-radius: 50%; background: #1273e9;
}
.mark-contacts::after {
  content: ""; position: absolute; height: 4px; width: 10px; bottom: 2px; left: 3px; border-radius: 6px 6px 2px 2px; background: #2692ed;
}
.mark-receipt { width: 16px; background: linear-gradient(145deg,#72e0be,#159c83); border-radius: 3px 3px 1px 1px; }
.mark-receipt::after, .mark-note::after {
  content: ""; position: absolute; left: 4px; right: 4px; top: 5px; height: 9px; background: repeating-linear-gradient(#fff 0 1px, transparent 1px 4px);
}
.mark-mail { height: 15px; border: 2px solid #d95f4e; border-radius: 4px; background: #fff1e9; }
.mark-mail::after {
  content: ""; position: absolute; width: 9px; height: 9px; top: -4px; left: 3px; transform: rotate(45deg); border: solid #d95f4e; border-width: 0 2px 2px 0;
}
.mark-gift { height: 14px; border-radius: 3px; background: linear-gradient(90deg,#c44d9c 41%,#ffcb62 41% 59%,#c44d9c 59%); }
.mark-gift::before, .mark-gift::after {
  content: ""; position: absolute; width: 7px; height: 6px; top: -6px; border: 2px solid #c44d9c; border-radius: 60% 60% 0 60%;
}
.mark-gift::before { left: 2px; transform: rotate(16deg); }
.mark-gift::after { right: 2px; transform: scaleX(-1) rotate(16deg); }
.mark-calendar { border-radius: 4px; background: linear-gradient(#d4981e 34%,#fff1b6 34%); border: 1px solid #d4981e; }
.mark-calendar::after {
  content: ""; position: absolute; width: 3px; height: 3px; top: 9px; left: 4px; border-radius: 1px; background: #ac7810; box-shadow: 6px 0 #ac7810, 0 5px #ac7810, 6px 5px #ac7810;
}
.mark-pie { border-radius: 50%; background: conic-gradient(#2a62db 0 28%,#ffc55e 28% 52%,#72c5e5 52%); }
.mark-reports { border-bottom: 1px solid #b6c9e2; background: linear-gradient(#579cf5,#579cf5) left bottom / 4px 45%, linear-gradient(#3682ee,#3682ee) center bottom / 4px 68%, linear-gradient(#164bc8,#164bc8) right bottom / 4px 95%; background-repeat: no-repeat; }
.mark-folder { height: 15px; border-radius: 3px; background: linear-gradient(140deg,#c3a2ef,#8557d2); }
.mark-folder::before { content: ""; position: absolute; top: -3px; left: 1px; width: 9px; height: 5px; background: #b38be5; border-radius: 3px 3px 0 0; }
.mark-note { width: 15px; border-radius: 3px; background: #4a9fd8; }
.mark-tasks { border-radius: 4px; background: #b9e9fb; border: 2px solid #309bcd; }
.mark-tasks::after { content: ""; position: absolute; width: 10px; height: 5px; left: 3px; top: 4px; border: solid #14678f; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.option-b .reference-hero .orbit-stage {
  position: relative;
  width: min(100%, 360px);
  min-height: 145px;
  height: 145px;
  margin: 0;
}
.option-b .reference-hero .reference-chat-launcher {
  position: relative;
  width: min(312px, 94%);
  margin: 0;
  padding: 4px 0 10px;
  color: var(--ink);
}
.reference-chat-launcher::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -16px -32px -38px;
  background: radial-gradient(ellipse at 31% 62%, #b4b9ff87, transparent 52%),
    radial-gradient(ellipse at 70% 65%, #87def697, transparent 55%),
    radial-gradient(ellipse at 55% 36%, #8bbcea91, transparent 65%);
  filter: blur(19px);
  pointer-events: none;
}
.option-b .reference-hero .reference-chat-launcher > span:first-child { font-size: 23px; font-weight: 600; }
.option-b .reference-hero .reference-chat-launcher > small { font-size: 12px; color: #475361; }
.option-b .reference-hero .reference-chat-launcher .orbit-chat-bar {
  min-height: 55px;
  gap: 11px;
  margin-top: 11px;
  padding: 6px 7px 6px 13px;
  border: 1px solid #d5e0ee;
  border-radius: 15px;
  background: #fff;
  color: #435571;
  box-shadow: 0 8px 26px #284d8c17, 0 2px 4px #284d8c08;
}
.reference-chat-launcher img { flex: 0 0 auto; object-fit: contain; }
.reference-chat-prompt { flex: 1; }
.option-b .reference-hero .orbit-chat-bar .reference-chat-arrow {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 10px;
  background: #174dcc;
  color: #fff;
  font: 22px/1 system-ui, sans-serif;
}
.option-b .reference-hero .reference-chat-launcher:hover .orbit-chat-bar { border-color: #9eb9e4; }

.reference-focus { position: relative; text-align: center; }
.reference-focus .mobile-demo-link { display: none; }
.option-b .reference-hero .ai-disclosure { color: #5d6978; margin: 0 auto 8px; font-size: 12px; }
.option-b .reference-hero .focus-strip {
  width: min(80%, 1050px);
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  min-height: 0;
  padding: 0 0 17px;
  color: #566373;
}
.option-b .reference-hero .focus-strip li { font-size: clamp(12px, 1.4vw, 16px); }
.option-b .reference-hero .focus-strip strong { color: #1a2a43; }
.option-b .reference-hero .focus-strip li::before { content: '✓'; font-size: 19px; }
.option-b .reference-hero .focus-strip li:nth-child(2)::before { content: '▤'; }
.option-b .reference-hero .focus-strip li:nth-child(3)::before { content: '↗'; }
.option-b .reference-hero #mendy-card {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 65px #17355f25, 0 0 0 1px #dbe4ef;
}
.option-b .reference-hero #mendy-card .mendy-root {
  --mendy-text: #1a2a43;
  --mendy-muted: #50627d;
  --mendy-accent: #174dcc;
  --mendy-you: #e8efff;
  --mendy-them: #f2f5f9;
  --mendy-border: #dbe4ef;
  --mendy-banner: #f2f6fc;
  --mendy-focus: #174dcc;
}
.option-b .reference-hero #mendy-card .mendy-header { background: #fff; color: #1a2a43; }
.option-b .reference-hero #mendy-card .mendy-mark {
  border-radius: 10px;
  background: #eaf2ff url("/favicon-32.png") center / 65% auto no-repeat;
  font-size: 0;
}
.option-b .reference-hero #mendy-card .mendy-log {
  background: linear-gradient(180deg, #fbfcfe, #fff 55%);
  padding-block-start: 14px;
}
.option-b .reference-hero #mendy-card .mendy-msg { border-radius: 14px; }
.option-b .reference-hero #mendy-card .mendy-mendy { border-bottom-left-radius: 5px; }
.option-b .reference-hero #mendy-card .mendy-you { border-bottom-right-radius: 5px; }
.option-b .reference-hero #mendy-card .mendy-input { border-radius: 11px; }
.option-b .reference-hero #mendy-card .mendy-send { border-radius: 10px; }
.option-b .reference-hero #mendy-card .mendy-send:focus-visible { outline-color: #174dcc; outline-offset: 2px; }
.option-b .reference-hero #mendy-card .chat-back { border-color: #dbe4ef; border-radius: 10px; }
.option-b .reference-hero #mendy-card .mendy-waitlist {
  border-color: #dbe4ef;
  background: #f8faff;
}
.option-b .reference-hero #mendy-card .mendy-waitlist input { border-color: #bccde4; }

.option-b.chat-open:not(.chat-focused) .reference-hero #mendy-card {
  background: transparent;
  box-shadow: none;
}
.option-b.chat-open:not(.chat-focused):not(.preview-keyboard) .reference-hero #mendy-card {
  top: calc(50% + 16px);
}
.option-b.chat-open:not(.chat-focused) .reference-hero #mendy-card .mendy-panel {
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 14px 45px #234e8124;
}
.option-b.chat-open:not(.chat-focused) .reference-hero #mendy-card .orbit-greeting {
  color: #162945;
  padding: 0 37px 0 0;
  text-align: left;
}
.option-b .reference-hero .orbit-greeting-ai { margin-bottom: 5px; color: #174dcc; font-size: 10px; }
.option-b .reference-hero .orbit-greeting h2 { font-size: 26px; font-weight: 600; }
.option-b .reference-hero .orbit-greeting p { margin: 6px 0 12px; font-size: 13px; }
.option-b .reference-hero .orbit-greeting-close {
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f1f5fb;
  font-size: 20px;
}
.option-b.chat-open:not(.chat-focused) .reference-hero #mendy-card .mendy-form {
  padding: 5px 5px 5px 11px;
  border: 1px solid #c7d6eb;
  border-radius: 12px;
  background: #f8faff;
  box-shadow: none;
}
.option-b.chat-open:not(.chat-focused) .reference-hero #mendy-card .mendy-form:focus-within { border-color: #6289d4; }
.option-b.chat-open:not(.chat-focused) .reference-hero #mendy-card .mendy-input { color: #1a2a43; }
.option-b.chat-open:not(.chat-focused) .reference-hero #mendy-card .mendy-input::placeholder { color: #50627d; }
.option-b.chat-open:not(.chat-focused) .reference-hero #mendy-card .mendy-send { border-radius: 8px; }
.option-b.chat-open:not(.chat-focused) .reference-hero .orbit-choices { justify-content: flex-start; margin: 9px 0 0; }
.option-b .reference-hero .orbit-choices button { border-color: #dce5f1; border-radius: 8px; padding: 7px 8px; }
.option-b.preview-keyboard-compact .reference-hero .orbit-greeting h2 { margin-bottom: 8px; }
.option-b.chat-open:not(.chat-focused) .reference-hero .orbit-art { opacity: .55; transform: none; }
.option-b.chat-focused .reference-hero .reference-nav { visibility: hidden; }

@media (min-width: 761px) and (max-height: 649px) {
  .option-b .reference-hero .hero-layout { padding-block: 16px; gap: 18px; }
}

@media (max-width: 760px) {
  .option-b .reference-hero {
    --inner: 47vw;
    --middle: 59vw;
    --wide: 70vw;
    --edge: 81vw;
    --outer: 93vw;
    min-height: max(625px, 100svh);
  }
  .option-b .reference-hero .topbar {
    width: calc(100% - 24px);
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 5px 8px 5px 10px;
    gap: 8px;
  }
  .option-b .reference-hero .brand { width: min(142px, 100%); }
  .reference-nav { display: none; }
  .option-b .reference-hero .header-actions { gap: 5px; grid-auto-columns: auto; }
  .option-b .reference-hero .header-actions > :is(.nav-cta, .client-sign-in) { height: 44px; min-height: 44px; padding-inline: 9px; }
  .option-b .reference-hero .hero-layout { width: calc(100% - 34px); padding-block: 34px 28px; gap: 27px; }
  .option-b .reference-hero .hero-copy { width: 100%; }
  .option-b .reference-hero h1 { font-size: clamp(30px, 7.8vw, 45px); }
  .reference-description { font-size: 13px; max-width: 315px; }
  .reference-eyebrow { font-size: 12px; }
  .option-b.chat-open:not(.chat-focused) .reference-hero #mendy-card .orbit-greeting { padding-right: 50px; }
  .option-b .reference-hero .orbit-greeting-close { width: 44px; height: 44px; }
  .reference-marker { width: 35px; }
  .reference-marker .feature-mark { scale: .78; }
  .marker-contacts, .marker-reports, .marker-gift, .marker-pie, .marker-calendar, .marker-folder { display: none; }
  .marker-receipt { --radius: var(--inner); --angle: 232deg; }
  .marker-mail { --radius: var(--inner); --angle: 308deg; }
  .marker-note { --radius: var(--wide); --angle: 110deg; }
  .marker-tasks { --radius: var(--wide); --angle: 70deg; }
  .option-b .reference-hero .focus-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% - 32px);
    gap: 8px;
    align-items: start;
    padding-bottom: 6px;
  }
  .option-b .reference-hero .focus-strip li {
    display: grid;
    gap: 2px;
    font-size: 11px;
  }
  .option-b .reference-hero .focus-strip li::before { display: none; }
  .reference-focus .ai-disclosure > span { display: none; }
  .reference-focus .mobile-demo-link { display: inline; color: #1451b9; text-decoration: underline; text-underline-offset: 3px; }
}

@media (max-width: 350px) {
  .marker-receipt, .marker-mail { --radius: var(--middle); }
  .marker-note, .marker-tasks { --radius: var(--edge); }
}

@media (max-width: 760px) and (max-height: 624px) {
  .option-b .reference-hero { min-height: 100svh; }
  .option-b .reference-hero .hero-layout { padding-block: 18px 16px; gap: 16px; }
  .option-b .reference-hero .orbit-stage { min-height: 120px; height: 120px; }
  .option-b .reference-hero .ai-disclosure { padding-block: 6px; }
}
