/* ROW's public website guide: local, homepage-grounded, and API-free. */

body.marketing-site .row-guide,
body.marketing-site .row-guide * {
  box-sizing: border-box;
}

body.marketing-site .row-guide {
  --guide-navy: #294965;
  --guide-navy-deep: #142b3d;
  --guide-cream: #f7f5f0;
  --guide-paper: #fffdf8;
  --guide-berry: #8f1d4b;
  --guide-orange: #c94d29;
  --guide-yellow: #ffc94f;
  --guide-sage: #54765b;
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 80;
  pointer-events: none;
}

body.marketing-site .row-guide [hidden] {
  display: none !important;
}

body.marketing-site .row-guide__focus-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
  background: rgba(13, 32, 46, .13);
  -webkit-backdrop-filter: blur(3px) saturate(.88);
  backdrop-filter: blur(3px) saturate(.88);
  animation: row-guide-veil-in 220ms ease-out both;
}

body.marketing-site .row-guide__panel,
body.marketing-site .row-guide__launcher-wrap,
body.marketing-site .row-guide__noscript {
  pointer-events: auto;
}

body.marketing-site .row-guide__panel {
  position: absolute;
  right: 0;
  bottom: 80px;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(408px, calc(100vw - 32px));
  height: min(476px, calc(100dvh - 112px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 24px 24px 8px 24px;
  background: var(--guide-cream);
  color: var(--guide-navy-deep);
  box-shadow: 0 34px 86px rgba(18, 38, 55, .35), 0 8px 24px rgba(18, 38, 55, .16);
  isolation: isolate;
  transform-origin: calc(100% - 30px) 100%;
  animation: row-guide-arrive 480ms cubic-bezier(.16, 1, .3, 1) both;
  transition: height 320ms cubic-bezier(.16, 1, .3, 1);
}

body.marketing-site .row-guide[data-conversation="active"] .row-guide__panel {
  height: min(584px, calc(100dvh - 112px));
}

body.marketing-site .row-guide__panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .24;
  background-image:
    linear-gradient(rgba(41, 73, 101, .034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 73, 101, .026) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  pointer-events: none;
}

body.marketing-site .row-guide__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 100px;
  padding: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 16%, rgba(255, 201, 79, .27) 0 2px, transparent 3px),
    radial-gradient(circle at 91% 43%, rgba(255, 255, 255, .2) 0 1.5px, transparent 2.5px),
    linear-gradient(132deg, #132a3b 0%, #294965 63%, #37637d 100%);
  color: var(--guide-cream);
}

body.marketing-site .row-guide__header::after {
  position: absolute;
  right: -31px;
  bottom: -72px;
  width: 182px;
  height: 136px;
  border: 1px solid rgba(255, 201, 79, .28);
  border-radius: 50%;
  content: "";
  transform: rotate(-12deg);
}

body.marketing-site .row-guide__identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.marketing-site .row-guide__brand-mark {
  display: grid;
  flex: 0 0 96px;
  width: 96px;
  min-height: 56px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 201, 79, .38);
  border-radius: 16px 16px 6px 16px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11), 0 8px 22px rgba(3, 14, 23, .17);
}

body.marketing-site .row-guide__brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .14));
  animation: row-guide-logo-reveal 620ms cubic-bezier(.16, 1, .3, 1) both;
}

body.marketing-site .row-guide__eyebrow {
  margin: 0 0 2px;
  color: rgba(247, 245, 240, .72);
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.marketing-site .row-guide__title.row-guide__title {
  margin: 0;
  color: var(--guide-cream) !important;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.16;
}

body.marketing-site .row-guide__subtitle {
  margin: 3px 0 0;
  color: rgba(247, 245, 240, .72);
  font-size: 11px;
  line-height: 1.3;
}

body.marketing-site .row-guide__close {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(247, 245, 240, .27);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  color: var(--guide-cream);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body.marketing-site .row-guide__close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

body.marketing-site .row-guide__close:is(:hover, :focus-visible) {
  border-color: var(--guide-yellow);
  background: rgba(255, 201, 79, .14);
  transform: rotate(4deg);
}

body.marketing-site .row-guide__body {
  display: grid;
  grid-template-rows: auto minmax(94px, 1fr) auto auto;
  min-height: 0;
  padding: 12px 15px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .66), transparent 40%);
}

body.marketing-site .row-guide__boundary {
  margin: 0 0 9px;
  color: rgba(23, 43, 61, .62);
  font-size: 11.5px;
  line-height: 1.4;
}

body.marketing-site .row-guide__messages {
  min-height: 94px;
  padding: 0 3px 7px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(41, 73, 101, .28) transparent;
  scrollbar-width: thin;
}

body.marketing-site .row-guide__message {
  display: flex;
  gap: 8px;
  width: fit-content;
  max-width: 96%;
  margin: 0 0 8px;
  color: var(--guide-navy-deep);
  font-size: 14px;
  line-height: 1.52;
  animation: row-guide-message 300ms cubic-bezier(.16, 1, .3, 1) both;
}

body.marketing-site .row-guide__message p {
  margin: 0;
}

body.marketing-site .row-guide__message--guide {
  align-items: flex-start;
}

body.marketing-site .row-guide__message--guide > div {
  padding: 10px 12px;
  border: 1px solid rgba(41, 73, 101, .14);
  border-radius: 3px 14px 14px 14px;
  background: #edf3f1;
  color: #24475f;
  box-shadow: inset 3px 0 0 rgba(84, 118, 91, .28), 0 5px 15px rgba(29, 51, 68, .06);
}

body.marketing-site .row-guide__message--visitor {
  margin-left: auto;
}

body.marketing-site .row-guide__message--visitor > div {
  padding: 9px 12px;
  border-radius: 14px 3px 14px 14px;
  background: var(--guide-orange);
  color: #fff;
}

body.marketing-site .row-guide__message-mark {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  place-items: center;
  border-radius: 8px 8px 3px 8px;
  background: var(--guide-navy);
  color: var(--guide-yellow);
  font-size: 12px;
}

body.marketing-site .row-guide__message--typing > div {
  color: rgba(23, 43, 61, .62);
  font-size: 13px;
}

body.marketing-site .row-guide__message--typing .row-guide__message-mark {
  animation: row-guide-think 900ms ease-in-out infinite alternate;
}

body.marketing-site .row-guide__message-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 3px;
  color: var(--guide-berry);
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .045em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body.marketing-site .row-guide__message-link::after {
  margin-left: 7px;
  content: "→";
  text-decoration: none;
  transition: transform 160ms ease;
}

body.marketing-site .row-guide__message-link:is(:hover, :focus-visible)::after {
  transform: translateX(3px);
}

body.marketing-site .row-guide__prompts {
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid rgba(41, 73, 101, .14);
}

body.marketing-site .row-guide__prompt-heading,
body.marketing-site .row-guide__prompt-heading > div:first-child,
body.marketing-site .row-guide__prompt-actions,
body.marketing-site .row-guide__rail-controls {
  display: flex;
  align-items: center;
}

body.marketing-site .row-guide__prompt-heading {
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 4px;
}

body.marketing-site .row-guide__prompt-heading > div:first-child {
  gap: 7px;
  min-width: 0;
}

body.marketing-site .row-guide__prompt-heading p {
  margin: 0;
  color: var(--guide-navy);
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;
  text-transform: uppercase;
}

body.marketing-site .row-guide__prompt-heading span {
  color: rgba(23, 43, 61, .5);
  font-family: "Barlow", sans-serif;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.marketing-site .row-guide__prompt-actions,
body.marketing-site .row-guide__rail-controls {
  gap: 5px;
}

body.marketing-site .row-guide__text-action {
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(41, 73, 101, .18);
  border-radius: 10px;
  background: rgba(255, 253, 248, .82);
  color: var(--guide-navy);
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  white-space: nowrap;
  cursor: pointer;
}

body.marketing-site .row-guide__text-action:is(:hover, :focus-visible) {
  border-color: var(--guide-navy);
  background: var(--guide-navy);
  color: #fff;
}

body.marketing-site .row-guide__rail-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(41, 73, 101, .18);
  border-radius: 12px;
  background: rgba(255, 253, 248, .92);
  color: var(--guide-navy);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

body.marketing-site .row-guide__rail-controls button:is(:hover, :focus-visible) {
  background: var(--guide-navy);
  color: #fff;
  transform: translateY(-1px);
}

body.marketing-site .row-guide__rail-controls svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body.marketing-site .row-guide__prompt-rail {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 1px 18% 5px 1px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

body.marketing-site .row-guide__prompt-rail::-webkit-scrollbar {
  display: none;
}

body.marketing-site .row-guide__prompt-card {
  position: relative;
  display: grid;
  align-items: center;
  flex: 0 0 min(172px, 72%);
  min-height: 58px;
  padding: 10px 34px 10px 12px;
  overflow: hidden;
  border: 0;
  border-radius: 13px 13px 5px 13px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 4px 11px rgba(23, 43, 61, .12);
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body.marketing-site .row-guide__prompt-card--navy { background: #294965; }
body.marketing-site .row-guide__prompt-card--sage { background: #5b8163; }
body.marketing-site .row-guide__prompt-card--berry { background: #8f1d4b; }
body.marketing-site .row-guide__prompt-card--orange { background: #c94d29; }
body.marketing-site .row-guide__prompt-card--sky { background: #527b91; }
body.marketing-site .row-guide__prompt-card--gold {
  background: #ffc94f;
  color: var(--guide-navy-deep);
}

body.marketing-site .row-guide__prompt-card:is(:hover, :focus-visible) {
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 9px 18px rgba(23, 43, 61, .17);
}

body.marketing-site .row-guide__prompt-question {
  position: relative;
  z-index: 1;
  display: block;
}

body.marketing-site .row-guide__prompt-question {
  align-self: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

body.marketing-site .row-guide__prompt-arrow {
  position: absolute;
  right: 11px;
  top: 50%;
  z-index: 1;
  color: var(--guide-yellow);
  font-size: 17px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

body.marketing-site .row-guide__prompt-card--gold .row-guide__prompt-arrow {
  color: var(--guide-berry);
}

body.marketing-site .row-guide__prompt-card:is(:hover, :focus-visible) .row-guide__prompt-arrow {
  transform: translateY(-50%) translateX(3px);
}

body.marketing-site .row-guide__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 7px;
  margin-top: 8px;
  padding: 5px;
  border: 1px solid rgba(41, 73, 101, .22);
  border-radius: 15px;
  background: var(--guide-paper);
  box-shadow: 0 6px 18px rgba(29, 51, 68, .07);
}

body.marketing-site .row-guide__composer:focus-within {
  border-color: var(--guide-orange);
  box-shadow: 0 0 0 3px rgba(201, 77, 41, .13);
}

body.marketing-site .row-guide form.row-guide__composer input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 44px !important;
  padding: 8px 9px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--guide-navy-deep) !important;
  font: 500 14px/1.4 "Barlow", sans-serif !important;
}

body.marketing-site .row-guide__composer input::placeholder {
  color: rgba(23, 43, 61, .55);
}

body.marketing-site .row-guide form.row-guide__composer button[type="submit"] {
  display: grid;
  width: 46px;
  min-height: 44px !important;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 11px !important;
  background: var(--guide-orange) !important;
  color: #fff;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease !important;
}

body.marketing-site .row-guide form.row-guide__composer button[type="submit"]:is(:hover, :focus-visible) {
  background: var(--guide-berry) !important;
  transform: translateX(1px);
  box-shadow: none !important;
}

body.marketing-site .row-guide__composer button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

body.marketing-site .row-guide__close:focus-visible,
body.marketing-site .row-guide__rail-controls button:focus-visible,
body.marketing-site .row-guide__text-action:focus-visible,
body.marketing-site .row-guide__prompt-card:focus-visible,
body.marketing-site .row-guide__composer button:focus-visible,
body.marketing-site .row-guide__message-link:focus-visible,
body.marketing-site .row-guide__launcher:focus-visible {
  outline: 3px solid var(--guide-yellow);
  outline-offset: 3px;
}

body.marketing-site .row-guide__launcher-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

body.marketing-site .row-guide__launcher-label {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid rgba(41, 73, 101, .12);
  border-radius: 13px 13px 4px 13px;
  background: rgba(255, 253, 248, .97);
  color: var(--guide-navy);
  box-shadow: 0 8px 24px rgba(18, 38, 55, .17);
  transition: opacity 180ms ease, transform 180ms ease;
}

body.marketing-site .row-guide__launcher-label strong {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

body.marketing-site .row-guide__launcher-label small {
  color: #52636f;
  font-size: 10px;
  line-height: 1.2;
}

body.marketing-site .row-guide[data-state="open"] .row-guide__launcher-label {
  opacity: 0;
  transform: translateX(6px);
  visibility: hidden;
}

body.marketing-site .row-guide__launcher {
  position: relative;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 23px 23px 7px 23px;
  background: linear-gradient(145deg, #315d7b, var(--guide-navy-deep));
  cursor: pointer;
  box-shadow: 0 15px 34px rgba(18, 38, 55, .32), inset 0 0 0 1px rgba(255, 201, 79, .18);
  transition: border-radius 260ms ease, transform 200ms ease, box-shadow 200ms ease;
}

body.marketing-site .row-guide__launcher::after {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--guide-yellow);
  box-shadow: 0 0 10px rgba(255, 201, 79, .9);
  content: "";
  animation: row-guide-twinkle 2s ease-in-out infinite;
}

body.marketing-site .row-guide__launcher:is(:hover, :focus-visible) {
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(18, 38, 55, .36), 0 0 0 5px rgba(255, 201, 79, .2);
  transform: translateY(-3px) rotate(-2deg);
}

body.marketing-site .row-guide__launcher-halo {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 201, 79, .34);
  border-radius: 19px 19px 5px 19px;
  animation: row-guide-halo 3s ease-in-out infinite;
}

body.marketing-site .row-guide__launcher-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .18));
  animation: row-guide-logo-breathe 4.2s ease-in-out infinite;
}

body.marketing-site .row-guide__noscript {
  margin: 0;
  padding: 8px 12px;
  background: var(--guide-navy);
}

body.marketing-site .row-guide__noscript a { color: #fff; }
body.marketing-site #back-to-top { right: 112px; }

@keyframes row-guide-veil-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes row-guide-arrive {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    clip-path: inset(16% 0 0 28% round 28px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    clip-path: inset(0 round 0);
  }
}

@keyframes row-guide-logo-reveal {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes row-guide-message {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes row-guide-think {
  from { transform: scale(.9); }
  to { transform: scale(1.08); }
}

@keyframes row-guide-logo-breathe {
  0%, 100% { opacity: .92; transform: scale(.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

@keyframes row-guide-halo {
  0%, 100% { opacity: .55; transform: scale(.97); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes row-guide-twinkle {
  0%, 100% { opacity: .32; transform: scale(.72); }
  50% { opacity: 1; transform: scale(1.35); }
}

@media (max-width: 480px) {
  body.marketing-site .row-guide {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  body.marketing-site .row-guide__panel {
    right: 0;
    bottom: 78px;
    width: 100%;
    height: min(492px, calc(100dvh - 96px));
    border-radius: 20px 20px 6px 20px;
  }

  body.marketing-site .row-guide[data-conversation="active"] .row-guide__panel {
    height: min(608px, calc(100dvh - 96px));
  }

  body.marketing-site .row-guide__header {
    min-height: 96px;
    padding: 14px;
  }

  body.marketing-site .row-guide__brand-mark {
    flex-basis: 86px;
    width: 86px;
    min-height: 52px;
  }

  body.marketing-site .row-guide__title.row-guide__title { font-size: 21px; }
  body.marketing-site .row-guide__body { padding: 10px 12px 12px; }
  body.marketing-site .row-guide__launcher-wrap { margin-left: auto; }
  body.marketing-site .row-guide__launcher-label { display: none; }
  body.marketing-site #back-to-top { right: 88px; bottom: 14px; }
}

@media (max-width: 350px) {
  body.marketing-site .row-guide__identity { gap: 8px; }

  body.marketing-site .row-guide__brand-mark {
    flex-basis: 72px;
    width: 72px;
    min-height: 48px;
    padding: 6px;
  }

  body.marketing-site .row-guide__eyebrow { font-size: 9.5px; }
  body.marketing-site .row-guide__subtitle { display: none; }
  body.marketing-site .row-guide__title.row-guide__title { font-size: 19px; }
  body.marketing-site .row-guide__prompt-heading { gap: 4px; }
  body.marketing-site .row-guide__prompt-heading p { font-size: 9.75px; }
  body.marketing-site .row-guide__text-action { padding-inline: 5px; font-size: 10.5px; }
  body.marketing-site .row-guide__prompt-card { flex-basis: 72%; }
}

@media (prefers-reduced-motion: reduce) {
  body.marketing-site .row-guide,
  body.marketing-site .row-guide *,
  body.marketing-site .row-guide *::before,
  body.marketing-site .row-guide *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  body.marketing-site .row-guide button,
  body.marketing-site .row-guide a,
  body.marketing-site .row-guide input,
  body.marketing-site .row-guide form.row-guide__composer button[type="submit"] {
    transition: none !important;
    animation: none !important;
  }
}
