/*
 * Lumen product family.
 * The vivid line icons echo the supplied dark product strip while keeping the
 * Lumen indigo → aqua brand ramp as the shared foundation.
 */
:root {
  --tone-pdf: #ff426d;
  --tone-document: #655cff;
  --tone-sheets: #12ad82;
  --tone-slides: #ff7a18;
  --tone-design: #f1479c;
  --tone-video: #ff4f58;
  --tone-notes: #2d98ef;
  --tone-forms: #a34ce8;
  --tone-apps: #17b9bd;
  --tone-automate: #b54be5;
  --tone-agent: #6f6cff;
}

.tone-pdf { --product-tone: var(--tone-pdf); --product-soft: rgba(255, 66, 109, .14); }
.tone-document { --product-tone: var(--tone-document); --product-soft: rgba(101, 92, 255, .14); }
.tone-sheets { --product-tone: var(--tone-sheets); --product-soft: rgba(18, 173, 130, .14); }
.tone-slides { --product-tone: var(--tone-slides); --product-soft: rgba(255, 122, 24, .14); }
.tone-design { --product-tone: var(--tone-design); --product-soft: rgba(241, 71, 156, .14); }
.tone-video { --product-tone: var(--tone-video); --product-soft: rgba(255, 79, 88, .14); }
.tone-notes { --product-tone: var(--tone-notes); --product-soft: rgba(45, 152, 239, .14); }
.tone-forms { --product-tone: var(--tone-forms); --product-soft: rgba(163, 76, 232, .14); }
.tone-apps { --product-tone: var(--tone-apps); --product-soft: rgba(23, 185, 189, .14); }
.tone-automate { --product-tone: var(--tone-automate); --product-soft: rgba(181, 75, 229, .14); }
.tone-agent { --product-tone: var(--tone-agent); --product-soft: rgba(111, 108, 255, .17); }

.hero-second-line {
  display: block;
  margin-top: .15em;
  font-size: .62em;
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.product-family {
  position: relative;
  margin: 48px 0 54px;
  padding: 25px 26px 28px;
  overflow: visible;
  border: 1px solid rgba(122, 135, 181, .24);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(520px 180px at 91% -15%, rgba(58, 200, 198, .18), transparent 65%),
    radial-gradient(500px 200px at 18% 120%, rgba(102, 93, 255, .26), transparent 70%),
    linear-gradient(142deg, #090d1a, #101629 58%, #0b1324);
  box-shadow: 0 30px 80px -46px rgba(11, 16, 40, .78);
}

.product-family::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  border-radius: inherit;
}

.product-family-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  padding: 0 3px 21px;
}

.product-family-kicker {
  color: #8c95b5;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-family-head h2 {
  margin-top: 4px;
  color: #fff;
  font-size: clamp(20px, 2.25vw, 27px);
  letter-spacing: -.035em;
}

.product-family-head p {
  max-width: 440px;
  margin: 0;
  color: #9ea8c5;
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.product-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(11, minmax(68px, 1fr));
  gap: 7px;
}

.product-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 85px;
  padding: 14px 5px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--product-tone);
  background: rgba(255, 255, 255, .025);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.product-mark:hover {
  border-color: color-mix(in srgb, var(--product-tone) 28%, transparent);
  background: var(--product-soft);
}

.product-mark.is-active {
  z-index: 4;
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--product-tone) 38%, transparent);
  background: var(--product-soft);
  box-shadow: 0 16px 32px -22px color-mix(in srgb, var(--product-tone) 65%, transparent);
}

.product-mark-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
}

.product-mark-icon svg {
  width: 29px;
  height: 29px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--product-tone) 26%, transparent));
}

.product-mark-label {
  position: absolute;
  left: 50%;
  bottom: -54px;
  z-index: 10;
  width: max-content;
  max-width: 175px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  color: #fff;
  background: rgba(8, 12, 25, .96);
  box-shadow: 0 18px 38px -18px #000;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity .16s ease, transform .16s ease;
}

.product-mark-label b,
.product-mark-label small { display: block; }
.product-mark-label b { font-size: 12px; line-height: 1.25; }
.product-mark-label small { margin-top: 2px; color: #9ca7c4; font-size: 10px; line-height: 1.25; }

.product-mark.is-active .product-mark-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-mark-agent {
  grid-column: 6;
  grid-row: 1;
  color: #fff;
  border-color: rgba(122, 210, 209, .36);
  background: linear-gradient(145deg, rgba(91, 91, 214, .34), rgba(48, 171, 168, .2));
  box-shadow: inset 0 0 26px rgba(111, 108, 255, .12);
}

.product-mark-agent .product-mark-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #6967ec, #299f9b);
  box-shadow: 0 9px 25px -12px #6e71ff, 0 0 0 5px rgba(255, 255, 255, .045);
}

.product-mark-agent .agent-lumen-logo {
  transform-style: preserve-3d;
  animation: lumen-logo-spin 3.2s linear infinite;
  background: radial-gradient(circle, rgba(216, 244, 255, .24), rgba(89, 101, 216, .2) 52%, rgba(11, 18, 37, .05) 73%);
  box-shadow:
    0 0 13px rgba(120, 213, 206, .7),
    0 0 24px rgba(89, 101, 216, .48),
    inset 0 0 15px rgba(216, 244, 255, .12);
  will-change: transform, filter;
}

.product-mark-agent .agent-lumen-logo svg {
  width: 32px;
  height: 32px;
  overflow: visible;
  fill: initial;
  stroke: none;
  filter:
    drop-shadow(0 0 4px rgba(216, 244, 255, .95))
    drop-shadow(0 0 8px rgba(120, 213, 206, .7));
}

.product-mark-agent .product-mark-label {
  bottom: -58px;
  border-color: rgba(120, 213, 206, .26);
}

.agent-orbit {
  position: absolute;
  width: 63px;
  height: 63px;
  border: 1px dashed rgba(120, 213, 206, .36);
  border-radius: 50%;
  opacity: .75;
}

.agent-orbit::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 27px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #78d5ce;
  box-shadow: 0 0 10px #78d5ce;
}

.product-mark.is-active .motion-stroke {
  animation: product-line .68s ease both;
}
.product-mark.is-active .motion-accent {
  animation: product-pop .62s cubic-bezier(.2, .9, .2, 1.25) both;
}
.product-mark.is-active .motion-shape-a { animation: product-shape-a .7s ease both; }
.product-mark.is-active .motion-shape-b { animation: product-shape-b .7s ease both; }
.product-mark.is-active .motion-shape-c { animation: product-shape-c .7s ease both; }
.product-mark.is-active .motion-check-a { animation: product-check .55s ease both; }
.product-mark.is-active .motion-check-b { animation: product-check .55s .09s ease both; }
.product-mark.is-active .motion-app-a { animation: product-app-a .7s ease both; }
.product-mark.is-active .motion-app-b { animation: product-app-b .7s ease both; }
.product-mark.is-active .agent-orbit { animation: product-orbit .9s cubic-bezier(.25, .75, .25, 1) both; }
.product-mark.is-active .motion-agent-eye { animation: product-eye .8s ease both; }

@keyframes product-line {
  0% { stroke-dasharray: 1 60; stroke-dashoffset: 18; opacity: .25; }
  100% { stroke-dasharray: 60 0; stroke-dashoffset: 0; opacity: 1; }
}
@keyframes product-pop {
  0% { transform: scale(.5); opacity: .2; }
  70% { transform: scale(1.18); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes product-shape-a { 50% { transform: translate(2px, 2px) scale(1.1); } }
@keyframes product-shape-b { 50% { transform: translate(-2px, 2px) rotate(8deg); } }
@keyframes product-shape-c { 50% { transform: translateY(-3px) scale(1.08); } }
@keyframes product-check {
  0% { stroke-dasharray: 1 20; stroke-dashoffset: 12; opacity: .2; }
  100% { stroke-dasharray: 20 0; stroke-dashoffset: 0; opacity: 1; }
}
@keyframes product-app-a { 50% { transform: translateX(8px); } }
@keyframes product-app-b { 50% { transform: translateX(-8px); } }
@keyframes product-orbit { to { transform: rotate(360deg); } }
@keyframes product-eye {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(120, 213, 206, 0)); }
  50% { transform: scale(1.35); filter: drop-shadow(0 0 5px #78d5ce); }
}
@keyframes lumen-logo-spin {
  0% { transform: perspective(140px) rotateX(9deg) rotateY(0deg) scale(1); }
  25% { transform: perspective(140px) rotateX(3deg) rotateY(90deg) scale(.93); }
  50% { transform: perspective(140px) rotateX(-7deg) rotateY(180deg) scale(1.02); }
  75% { transform: perspective(140px) rotateX(3deg) rotateY(270deg) scale(.93); }
  100% { transform: perspective(140px) rotateX(9deg) rotateY(360deg) scale(1); }
}

/* Compact hero picker: the original split hero and illustration stay untouched. */
.hero-tool-picker {
  position: relative;
  max-width: 596px;
  min-height: 72px;
  margin-top: 18px;
  padding-bottom: 23px;
}

.hero-tool-row {
  display: grid;
  grid-template-columns: repeat(5, 42px) 76px repeat(5, 42px);
  gap: 7px;
  align-items: center;
}

.hero-tool-row .product-mark {
  appearance: none;
  width: 42px;
  min-height: 42px;
  height: 42px;
  padding: 0;
  border-color: color-mix(in srgb, var(--product-tone) 15%, var(--line));
  border-radius: 11px;
  color: var(--product-tone);
  background: color-mix(in srgb, var(--product-soft) 38%, var(--surface));
  box-shadow: 0 7px 18px -17px color-mix(in srgb, var(--product-tone) 75%, transparent);
  cursor: pointer;
}

.hero-tool-row .product-mark:hover {
  border-color: color-mix(in srgb, var(--product-tone) 42%, var(--line));
  background: color-mix(in srgb, var(--product-soft) 62%, var(--surface));
}

.hero-tool-row .product-mark:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--product-tone) 24%, transparent);
  outline-offset: 2px;
}

.hero-tool-row .product-mark.is-active {
  border-color: var(--product-tone);
  background: var(--product-soft);
  box-shadow: 0 11px 22px -16px color-mix(in srgb, var(--product-tone) 85%, transparent);
}

.hero-tool-row .product-mark-icon {
  width: 29px;
  height: 29px;
}

.hero-tool-row .product-mark-icon svg {
  width: 24px;
  height: 24px;
  filter: none;
}

.hero-tool-row .product-mark-agent {
  grid-column: auto;
  grid-row: auto;
  width: 76px;
  min-height: 76px;
  height: 76px;
  margin: -17px 0;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  perspective: 360px;
}

.hero-tool-row .product-mark-agent:hover,
.hero-tool-row .product-mark-agent.is-active {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-tool-row .product-mark-agent .product-mark-icon {
  width: 66px;
  height: 66px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-tool-row .product-mark-agent .agent-lumen-logo {
  position: relative;
  display: block;
  animation: none;
  background: transparent;
  box-shadow: none;
}

.hero-tool-row .product-mark-agent .agent-lumen-logo > svg {
  position: absolute;
  inset: 3px;
  width: 60px;
  height: 60px;
  overflow: visible;
  transform-origin: 50% 50%;
  animation: hero-lumen-agent-pulse 1.8s ease-in-out infinite;
  will-change: opacity, transform;
}

.hero-tool-row .agent-orbit {
  width: 74px;
  height: 74px;
  border-color: rgba(89, 101, 216, .38);
  opacity: .9;
  animation: product-orbit 5.4s linear infinite;
}

.hero-tool-row .agent-orbit::after {
  top: -2px;
  left: 33px;
  width: 5px;
  height: 5px;
  background: #78d5ce;
  box-shadow: 0 0 8px #78d5ce, 0 0 15px rgba(89, 101, 216, .65);
}

.hero-tool-row .product-mark-agent:hover .agent-orbit {
  animation-duration: 2.8s;
}

.hero-tool-row .product-mark-agent.is-active .agent-orbit {
  animation: product-orbit 1.15s linear infinite;
}

@keyframes hero-lumen-agent-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .82; transform: scale(.97); }
}

.hero-tool-hint,
.hero-tool-status {
  position: absolute;
  bottom: 0;
  left: 1px;
  margin: 0;
  color: #68748a;
  font-size: 11.5px;
  line-height: 1.4;
}

.hero-tool-status {
  display: flex;
  gap: 6px;
  align-items: baseline;
  max-width: 100%;
  color: #505c70;
}

.hero-tool-status b {
  flex: none;
  color: var(--active-product-tone, #5f5ce6);
  font-weight: 800;
}

.hero-tool-status[hidden],
.hero-tool-hint[hidden] {
  display: none;
}

/* The same color system carries into the main landing-page product cards. */
.surf-grid .surf:nth-child(1) { --product-tone: var(--tone-pdf); --product-soft: rgba(255, 66, 109, .11); }
.surf-grid .surf:nth-child(2) { --product-tone: var(--tone-sheets); --product-soft: rgba(18, 173, 130, .11); }
.surf-grid .surf:nth-child(3) { --product-tone: var(--tone-document); --product-soft: rgba(101, 92, 255, .11); }
.surf-grid .surf:nth-child(4) { --product-tone: var(--tone-design); --product-soft: rgba(241, 71, 156, .11); }
.surf-grid .surf:nth-child(5) { --product-tone: var(--tone-slides); --product-soft: rgba(255, 122, 24, .11); }
.surf-grid .surf:nth-child(6) { --product-tone: var(--tone-notes); --product-soft: rgba(45, 152, 239, .11); }
.surf-grid .surf:nth-child(7) { --product-tone: var(--tone-apps); --product-soft: rgba(23, 185, 189, .11); }
.surf-grid .surf:nth-child(8) { --product-tone: var(--tone-automate); --product-soft: rgba(181, 75, 229, .11); }
.surf-grid .surf:nth-child(9) { --product-tone: var(--tone-forms); --product-soft: rgba(163, 76, 232, .11); }
.surf-grid .surf:nth-child(10) { --product-tone: var(--tone-agent); --product-soft: rgba(111, 108, 255, .13); }

.surf-grid .surf .ico {
  color: var(--product-tone);
  background: var(--product-soft);
}
.surf-grid .surf .ico svg { stroke: currentColor; }
.surf-grid .surf:hover {
  border-color: color-mix(in srgb, var(--product-tone) 28%, var(--line));
  box-shadow: 0 24px 58px -34px color-mix(in srgb, var(--product-tone) 38%, rgba(20, 27, 61, .35));
}
.surf-grid .surf:hover .ico { transform: translateY(-2px) rotate(-2deg); }
.surf-grid .surf .ico { transition: transform .18s ease, background .18s ease; }
.surf-grid .surf .surf-sub { color: var(--product-tone); background: var(--product-soft); }

.dd-menu a[href="/pdf"] .d { --product-tone: var(--tone-pdf); --product-soft: rgba(255, 66, 109, .11); }
.dd-menu a[href="/documents"] .d { --product-tone: var(--tone-document); --product-soft: rgba(101, 92, 255, .11); }
.dd-menu a[href="/spreadsheets"] .d { --product-tone: var(--tone-sheets); --product-soft: rgba(18, 173, 130, .11); }
.dd-menu a[href="/slides"] .d { --product-tone: var(--tone-slides); --product-soft: rgba(255, 122, 24, .11); }
.dd-menu a[href="/canvas"] .d { --product-tone: var(--tone-design); --product-soft: rgba(241, 71, 156, .11); }
.dd-menu a[href="/notes"] .d { --product-tone: var(--tone-notes); --product-soft: rgba(45, 152, 239, .11); }
.dd-menu a[href="/forms"] .d { --product-tone: var(--tone-forms); --product-soft: rgba(163, 76, 232, .11); }
.dd-menu a[href="/#apps"] .d { --product-tone: var(--tone-apps); --product-soft: rgba(23, 185, 189, .11); }
.dd-menu a[href="/workflows"] .d { --product-tone: var(--tone-automate); --product-soft: rgba(181, 75, 229, .11); }
.dd-menu a[href="/#agent"] .d { --product-tone: var(--tone-agent); --product-soft: rgba(111, 108, 255, .13); }
.dd-menu a .d {
  color: var(--product-tone, var(--acc-d));
  background: var(--product-soft, rgba(99, 102, 241, .12));
}
.dd-menu a .d svg { stroke: currentColor; }

.feature-product:has(a[href="/pdf"]) .product-glyph { color: var(--tone-pdf); background: rgba(255, 66, 109, .11); }
.feature-product:has(a[href="/documents"]) .product-glyph { color: var(--tone-document); background: rgba(101, 92, 255, .11); }
.feature-product:has(a[href="/spreadsheets"]) .product-glyph { color: var(--tone-sheets); background: rgba(18, 173, 130, .11); }
.feature-product:has(a[href="/slides"]) .product-glyph { color: var(--tone-slides); background: rgba(255, 122, 24, .11); }
.feature-product:has(a[href="/canvas"]) .product-glyph { color: var(--tone-design); background: rgba(241, 71, 156, .11); }
.feature-product:has(a[href="/notes"]) .product-glyph { color: var(--tone-notes); background: rgba(45, 152, 239, .11); }
.feature-product:has(a[href="/forms"]) .product-glyph { color: var(--tone-forms); background: rgba(163, 76, 232, .11); }
.feature-product:has(a[href="/workflows"]) .product-glyph { color: var(--tone-automate); background: rgba(181, 75, 229, .11); }
.feature-product:has(a[href="#agent"]) .product-glyph { color: var(--tone-agent); background: rgba(111, 108, 255, .13); }

/* Documentation product map */
.docs-product-map {
  padding: 6px 0 38px;
}

.docs-product-map .product-family {
  margin-top: 0;
}

.docs-product-map .product-family-head {
  align-items: center;
}

.docs-product-map .product-mark {
  min-height: 82px;
}

.docs-agent-primer {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 34px;
  margin: 6px 0 44px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(89, 101, 216, .2);
  border-radius: 22px;
  background:
    radial-gradient(400px 260px at 0 100%, rgba(120, 213, 206, .12), transparent 70%),
    linear-gradient(145deg, #fff, #f6f7ff);
  box-shadow: 0 28px 65px -52px rgba(38, 45, 89, .7);
}

.docs-agent-primer .primer-kicker {
  color: #4f4bd7;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.docs-agent-primer h2 {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 35px);
  letter-spacing: -.04em;
}

.docs-agent-primer p {
  margin: 12px 0 0;
  color: #606b82;
  font-size: 14.5px;
  line-height: 1.65;
}

.agent-primer-steps {
  display: grid;
  gap: 10px;
}

.agent-primer-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px;
  border: 1px solid #e3e6f1;
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
}

.agent-primer-step > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #6967ec, #299f9b);
  font-size: 12px;
  font-weight: 850;
}

.agent-primer-step b { display: block; color: #1d2638; font-size: 13.5px; }
.agent-primer-step small { display: block; margin-top: 4px; color: #6f788c; font-size: 12px; line-height: 1.5; }

.docs-tool-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 24px;
}

.docs-tool-legend > div {
  padding: 16px;
  border: 1px solid #e3e6ef;
  border-radius: 13px;
  background: #fff;
}

.docs-tool-legend b { display: block; font-size: 13px; }
.docs-tool-legend span { display: block; margin-top: 4px; color: #6f788c; font-size: 12px; line-height: 1.5; }

.feature-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 20px;
}

.feature-ledger span {
  padding: 5px 9px;
  border: 1px solid #e2e6ef;
  border-radius: 999px;
  color: #4d586d;
  background: #f8f9fc;
  font-size: 11.5px;
  font-weight: 650;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.docs-search-shell {
  position: relative;
  z-index: 3;
  margin-top: -16px;
  margin-bottom: 34px;
}

.docs-search-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: 27px 30px;
  border: 1px solid rgba(89, 101, 216, .2);
  border-radius: 20px;
  background:
    radial-gradient(360px 180px at 100% 0, rgba(120, 213, 206, .15), transparent 72%),
    linear-gradient(145deg, #fff, #f8f9ff);
  box-shadow: 0 24px 65px -50px rgba(38, 45, 89, .9);
}

.docs-search-kicker {
  color: #4f4bd7;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.docs-search-copy h2 {
  margin: 7px 0 0;
  color: #1b2437;
  font-size: clamp(23px, 2.7vw, 32px);
  letter-spacing: -.04em;
}

.docs-search-copy p {
  max-width: 600px;
  margin: 9px 0 0;
  color: #667086;
  font-size: 13.5px;
  line-height: 1.6;
}

.docs-search-control {
  min-width: 0;
}

.docs-search-input-wrap {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 58px;
  padding: 7px 9px 7px 17px;
  border: 1px solid #dfe3ee;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 30px -26px rgba(30, 39, 74, .9);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.docs-search-input-wrap:focus-within {
  border-color: rgba(89, 101, 216, .7);
  box-shadow: 0 0 0 4px rgba(89, 101, 216, .1), 0 16px 36px -28px rgba(30, 39, 74, .9);
}

.docs-search-symbol {
  flex: 0 0 auto;
  color: #5965d8;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  transform: rotate(-15deg);
}

.docs-search-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #20283b;
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.docs-search-input-wrap input::placeholder {
  color: #8b93a6;
  opacity: 1;
}

.docs-search-input-wrap input::-webkit-search-cancel-button {
  display: none;
}

.docs-search-input-wrap kbd,
.docs-search-control > p kbd {
  border: 1px solid #dfe3ed;
  border-bottom-color: #c9ceda;
  border-radius: 6px;
  color: #6e778a;
  background: #f8f9fc;
  box-shadow: 0 1px 0 #d7dbe5;
  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
}

.docs-search-input-wrap kbd {
  padding: 4px 8px;
}

.docs-search-control > p {
  margin: 8px 3px 0;
  color: #858da0;
  font-size: 11px;
}

.docs-search-control > p kbd {
  padding: 1px 4px;
}

.docs-search-input-wrap button,
.docs-search-results-head button {
  border: 0;
  border-radius: 8px;
  color: #515cd2;
  background: #eef0ff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.docs-search-input-wrap button {
  align-self: stretch;
  padding: 0 11px;
}

.docs-search-results {
  margin-top: 10px;
  padding: 18px;
  border: 1px solid #e0e4ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 30px 70px -45px rgba(30, 39, 74, .9);
}

.docs-search-results-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  color: #3b455a;
  font-size: 12.5px;
}

.docs-search-results-head button {
  padding: 7px 10px;
}

.docs-search-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.docs-search-result {
  display: block;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #e5e8f0;
  border-radius: 13px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.docs-search-result:hover,
.docs-search-result:focus-visible {
  border-color: rgba(89, 101, 216, .42);
  outline: none;
  box-shadow: 0 14px 30px -25px rgba(41, 50, 94, .85);
  transform: translateY(-1px);
}

.docs-search-result-kicker {
  display: block;
  margin-bottom: 3px;
  color: #5965d8;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.docs-search-result > b {
  display: block;
  color: #20283a;
  font-size: 14px;
}

.docs-search-result > p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: #6b7487;
  font-size: 11.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.docs-search-result-matches {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.docs-search-result-matches span {
  overflow: hidden;
  max-width: 180px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #536071;
  background: #f2f4f8;
  font-size: 9.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-search-empty {
  grid-column: 1 / -1;
  padding: 25px;
  border: 1px dashed #d8dde9;
  border-radius: 13px;
  color: #687287;
  background: #fafbfe;
  text-align: center;
}

.docs-search-empty b {
  display: block;
  margin-bottom: 5px;
  color: #303a4e;
}

.docs-recipe-grid,
.docs-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 25px;
}

.docs-recipe,
.docs-access-grid > div {
  min-width: 0;
  padding: 19px;
  border: 1px solid #e3e6ef;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #fafbfe);
}

.docs-recipe-kicker {
  display: block;
  margin-bottom: 6px;
  color: #4f4bd7;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.prose .docs-recipe h3,
.prose .docs-access-grid h3 {
  margin: 0;
  color: #263044;
  font-size: 14px;
  line-height: 1.4;
}

.prose .docs-recipe ol {
  margin: 12px 0 0;
  padding-left: 18px;
}

.prose .docs-recipe li {
  margin-top: 7px;
  color: #626c80;
  font-size: 11.5px;
  line-height: 1.52;
}

.prose .docs-access-grid p {
  margin: 9px 0 0;
  color: #626c80;
  font-size: 12px;
  line-height: 1.58;
}

.prose h2[data-product] {
  position: relative;
  padding-left: 45px;
}

.prose h2[data-product]::before {
  content: attr(data-icon);
  position: absolute;
  top: -.2em;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--product-tone);
  background: var(--product-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .02em;
}

.prose h2[data-product] .n {
  display: none;
}

@media (max-width: 1080px) {
  .product-rail { grid-template-columns: repeat(6, 1fr); }
  .product-mark-agent { grid-column: span 1; }
}

@media (max-width: 760px) {
  .hero-second-line { font-size: .68em; }
  .hero-tool-picker { max-width: 336px; min-height: 125px; margin-top: 16px; }
  .hero-tool-row { grid-template-columns: repeat(5, 42px) 72px; gap: 7px; }
  .hero-tool-row .product-mark { min-height: 42px; height: 42px; padding: 0; }
  .hero-tool-row .product-mark-agent { width: 72px; min-height: 72px; height: 72px; margin: -15px 0; }
  .hero-tool-status { max-width: 330px; font-size: 10.5px; }
  .legal { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .legal > .toc,
  .legal > .prose { min-width: 0; }
  .product-family { margin-bottom: 24px; padding: 22px 18px 25px; overflow: hidden; }
  .product-family-head { align-items: start; flex-direction: column; gap: 8px; }
  .product-family-head p { max-width: 620px; text-align: left; }
  .product-rail { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .product-mark { min-height: 96px; padding-bottom: 29px; }
  .product-mark-agent { grid-column: auto; grid-row: auto; }
  .product-mark-label,
  .product-mark-agent .product-mark-label {
    bottom: 8px;
    max-width: calc(100% - 8px);
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: translateX(-50%);
  }
  .product-mark-label b { overflow: hidden; font-size: 9.5px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .product-mark-label small { display: none; }
  .docs-agent-primer { grid-template-columns: 1fr; padding: 26px; }
  .docs-tool-legend { grid-template-columns: 1fr; }
  .docs-search-shell { margin-top: -8px; }
  .docs-search-card { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .docs-search-list,
  .docs-recipe-grid,
  .docs-access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 470px) {
  .hero-tool-picker { max-width: 290px; min-height: 125px; }
  .hero-tool-row { grid-template-columns: repeat(5, 39px) 70px; gap: 5px; }
  .hero-tool-row .product-mark { width: 39px; min-height: 39px; height: 39px; }
  .hero-tool-row .product-mark-agent { width: 70px; min-height: 70px; height: 70px; margin: -15px 0; }
  .product-rail { grid-template-columns: repeat(3, 1fr); }
  .product-family { border-radius: 19px; }
  .docs-agent-primer { padding: 22px 18px; border-radius: 18px; }
  .docs-search-card { padding: 20px 16px; border-radius: 17px; }
  .docs-search-input-wrap { padding-left: 12px; }
  .docs-search-input-wrap kbd { display: none; }
  .docs-search-results { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-mark,
  .agent-lumen-logo,
  .product-mark-icon *,
  .agent-orbit { animation: none !important; transition: none !important; }
}
