/* RiskPod-inspired type, rhythm and content structure, scoped to Ello documents. */
body.ello-doc {
  --ello-navy: #100b2d;
  --ello-navy-2: #17113f;
  --ello-navy-3: #1f1852;
  --ello-teal: #00dfd2;
  --ello-blue: #0058ff;
  --ello-off: #f7f9fc;
  --ello-ink: #f5f7ff;
  --ello-muted: #c5c5d6;
  --ello-line: rgba(255, 255, 255, 0.14);
  --ello-wrap: 1216px;
  --ello-gutter: clamp(18px, 3vw, 32px);
  color-scheme: dark;
  color: var(--ello-ink);
  background-color: var(--ello-navy) !important;
  background-image:
    linear-gradient(180deg, rgba(16, 11, 45, 0.84), rgba(16, 11, 45, 0.93)),
    radial-gradient(850px 520px at 88% 0%, rgba(0, 88, 255, 0.22), transparent 62%),
    radial-gradient(700px 440px at 0% 72%, rgba(0, 223, 210, 0.08), transparent 60%),
    url("/docs/ello-wave-background.webp") !important;
  background-position: center, top right, bottom left, center;
  background-size: cover, auto, auto, cover;
  background-attachment: fixed, fixed, fixed, fixed;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.ello-doc *,
.ello-doc *::before,
.ello-doc *::after {
  box-sizing: border-box;
}

.ello-doc a {
  color: #75eee5;
  text-underline-offset: 0.2em;
}

.ello-doc a:hover {
  color: #fff;
}

.ello-doc a:focus-visible,
.ello-doc button:focus-visible {
  outline: 3px solid var(--ello-teal);
  outline-offset: 3px;
}

.ello-doc header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 var(--ello-gutter);
  border-bottom: 1px solid var(--ello-line);
  background: rgba(16, 11, 45, 0.93);
  box-shadow: 0 8px 32px rgba(5, 5, 20, 0.18);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.ello-head-inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  width: 100%;
  max-width: calc(var(--ello-wrap) + var(--ello-gutter) * 2);
  min-height: 78px;
  margin: 0 auto;
}

.ello-doc-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font: 800 16px/1.1 "Manrope", system-ui, sans-serif;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.ello-doc-brand > span:last-child {
  display: grid;
  gap: 4px;
}

.ello-doc-brand small {
  color: #a29dc8;
  font: 600 8px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.16em;
}

.ello-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(0, 223, 210, 0.55);
  border-radius: 50%;
  background: rgba(0, 223, 210, 0.08);
  box-shadow: 0 0 24px rgba(0, 223, 210, 0.15);
}

.ello-brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--ello-teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ello-doc nav.pub {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 30px);
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  scrollbar-width: none;
  font: 500 13px/1.4 "Inter", system-ui, sans-serif;
}

.ello-doc nav.pub::-webkit-scrollbar {
  display: none;
}

.ello-doc nav.pub a {
  flex: 0 0 auto;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ello-doc nav.pub a:hover,
.ello-doc nav.pub a[aria-current="page"] {
  color: var(--ello-teal);
}

.ello-head-cta,
.ello-doc .cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ello-teal);
  color: var(--ello-navy) !important;
  font: 700 14px/1.2 "Inter", system-ui, sans-serif;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ello-head-cta:hover,
.ello-doc .cta:hover {
  transform: translateY(-2px);
  background: #3ff0e5;
  box-shadow: 0 8px 28px -10px rgba(0, 223, 210, 0.72);
}

.ello-doc .cta.alt {
  border-color: rgba(0, 223, 210, 0.62);
  background: transparent;
  color: #8cf3eb !important;
}

.ello-doc .cta.alt:hover {
  background: rgba(0, 223, 210, 0.1);
}

.ello-doc main#main {
  width: 100%;
  max-width: calc(var(--ello-wrap) + var(--ello-gutter) * 2);
  margin: 0 auto;
  padding: 34px var(--ello-gutter) 96px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ello-doc .crumbs {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.ello-doc .crumbs ol {
  gap: 10px;
}

.ello-doc .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 17px;
  color: var(--ello-teal);
  font: 600 12px/1.3 "Inter", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: none;
}

.ello-doc .eyebrow::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--ello-teal);
  box-shadow: 0 0 14px rgba(0, 223, 210, 0.8);
  content: "";
}

.ello-doc h1,
.ello-doc h2,
.ello-doc h3 {
  font-family: "Manrope", system-ui, sans-serif;
}

.ello-doc h1 {
  max-width: 19ch;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.55rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.ello-doc h2 {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: clamp(1.9rem, 3.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.ello-doc h3 {
  color: #fff;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ello-doc p {
  color: rgba(245, 247, 255, 0.82);
  font-size: 16px;
  line-height: 1.65;
}

.ello-doc .doc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  min-height: 510px;
  margin: 0 calc(var(--ello-gutter) * -1) 76px;
  padding: 42px var(--ello-gutter) 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(680px 420px at 90% 5%, rgba(0, 88, 255, 0.16), transparent 68%),
    radial-gradient(500px 360px at 8% 100%, rgba(0, 223, 210, 0.07), transparent 68%);
}

.ello-doc .doc-hero-copy {
  min-width: 0;
}

.ello-doc .doc-hero h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 17ch;
}

.ello-doc .doc-hero--overview h1 {
  font-size: clamp(2.6rem, 4.3vw, 3.75rem);
}

.ello-doc .doc-hero--business h1 {
  max-width: 22ch;
  font-size: clamp(2.35rem, 3.65vw, 3.3rem);
}

.ello-doc .ello-title-mark {
  flex: 0 0 clamp(52px, 6vw, 72px);
  width: clamp(52px, 6vw, 72px);
  margin: 0;
  border-color: rgba(0, 223, 210, 0.56);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(0, 223, 210, 0.2), transparent 60%), rgba(10, 7, 32, 0.8);
  box-shadow: 0 0 30px rgba(0, 88, 255, 0.18), inset 0 0 20px rgba(0, 223, 210, 0.1);
}

.ello-doc .ello-title-mark .ring {
  stroke: rgba(0, 223, 210, 0.5);
}

.ello-doc .ello-title-mark .wave {
  stroke: var(--ello-teal);
  filter: drop-shadow(0 0 3px rgba(0, 223, 210, 0.7));
}

.ello-doc .bluf {
  max-width: 74ch;
  margin: 22px 0 22px;
  padding: 0 0 0 20px;
  border: 0;
  border-left: 3px solid var(--ello-teal);
  border-radius: 0;
  background: transparent;
  color: rgba(245, 247, 255, 0.83);
  font-size: 17px;
  line-height: 1.65;
}

.ello-doc .bluf strong {
  color: #fff;
}

.ello-doc .doc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.ello-doc .doc-hero-actions .cta {
  margin: 0;
}

.ello-doc .ello-hero-visual {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(0, 223, 210, 0.25);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(31, 24, 82, 0.8), rgba(16, 11, 45, 0.9));
  box-shadow: 0 22px 60px rgba(4, 4, 20, 0.35), 0 0 44px rgba(0, 88, 255, 0.12);
  text-align: center;
}

.ello-doc .ello-hero-visual img {
  width: 100%;
  max-width: 439px;
  border-radius: 14px;
}

.ello-doc .ello-hero-visual figcaption {
  max-width: 52ch;
  margin: 13px auto 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

.ello-doc .ello-hero-visual figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ello-teal);
  font: 700 14px/1.35 "Manrope", system-ui, sans-serif;
}

.ello-doc .doc-hero--business {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: start;
  padding-top: 50px;
}

.ello-doc .business-journey {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(360px 240px at 100% 0%, rgba(0, 223, 210, 0.12), transparent 72%),
    linear-gradient(155deg, rgba(31, 24, 82, 0.83), rgba(16, 11, 45, 0.88));
  box-shadow: 0 20px 52px rgba(5, 5, 20, 0.26);
}

.ello-doc .business-journey h2 {
  margin: 3px 0 24px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.ello-doc .business-flow {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ello-doc .business-flow::before {
  position: absolute;
  top: 21px;
  bottom: 24px;
  left: 17px;
  width: 1px;
  background: linear-gradient(180deg, var(--ello-teal), rgba(0, 88, 255, 0.6), rgba(255, 255, 255, 0.1));
  content: "";
}

.ello-doc .business-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 13px;
  align-items: start;
  min-height: 40px;
}

.ello-doc .business-flow li > span {
  z-index: 1;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(0, 223, 210, 0.56);
  border-radius: 50%;
  background: var(--ello-navy-2);
  color: var(--ello-teal);
  font: 700 11px/1 "Inter", system-ui, sans-serif;
}

.ello-doc .business-flow b {
  color: #fff;
  font: 700 15px/1.35 "Manrope", system-ui, sans-serif;
}

.ello-doc .business-flow small {
  grid-column: 2;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.45;
}

.ello-doc .business-journey-note {
  margin: 23px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--ello-line);
  color: rgba(255, 255, 255, 0.63) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.ello-doc main#main > h2,
.ello-doc main#main > section:not(.doc-hero) > h2 {
  scroll-margin-top: 108px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.ello-doc main#main > h2 {
  margin-top: 86px;
  padding-top: 34px;
  border-top: 1px solid var(--ello-line);
}

.ello-doc .doc-hero + h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.ello-doc main#main > p:not(.eyebrow):not(.bluf):not(.doc-hero-actions) {
  max-width: 83ch;
}

.ello-doc .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 20px;
}

.ello-doc .card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 25px 24px;
  border: 1px solid var(--ello-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: 0 1px 2px rgba(16, 11, 45, 0.08);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}

.ello-doc .card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 223, 210, 0.42);
  box-shadow: 0 16px 34px rgba(5, 5, 20, 0.24);
}

.ello-doc .card h3 {
  margin: 0 0 2px;
}

.ello-doc .card p,
.ello-doc .card ul {
  margin: 0;
  color: rgba(245, 247, 255, 0.76);
  font-size: 14px;
  line-height: 1.62;
}

.ello-doc .tag {
  align-self: flex-start;
  padding: 5px 10px;
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  font: 600 10px/1.2 "Inter", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ello-doc .tag.now {
  border-color: rgba(0, 223, 210, 0.6);
  background: rgba(0, 223, 210, 0.08);
  color: #72eee4;
}

.ello-doc .tag.future {
  border-color: rgba(125, 169, 255, 0.48);
  background: rgba(0, 88, 255, 0.1);
  color: #a8c4ff;
}

.ello-doc .note {
  margin: 24px 0;
  padding: 17px 20px;
  border: 1px solid rgba(0, 223, 210, 0.25);
  border-left: 3px solid var(--ello-teal);
  border-radius: 12px;
  background: rgba(23, 17, 63, 0.73);
  color: rgba(245, 247, 255, 0.82);
}

.ello-doc .note strong {
  color: #fff;
}

.ello-doc .tablewrap {
  overflow: auto;
  margin: 20px 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(16, 11, 45, 0.66);
  box-shadow: 0 14px 36px rgba(5, 5, 20, 0.18);
}

.ello-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.ello-doc th,
.ello-doc td {
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}

.ello-doc thead th {
  background: rgba(31, 24, 82, 0.96);
  color: #fff;
  font: 700 12px/1.45 "Manrope", system-ui, sans-serif;
}

.ello-doc tbody th {
  background: rgba(0, 223, 210, 0.055);
  color: #9bf3eb;
  font-weight: 600;
}

.ello-doc td {
  color: rgba(245, 247, 255, 0.78);
}

.ello-doc details {
  margin: 10px 0;
  padding: 16px 19px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.ello-doc summary {
  color: #fff;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.ello-doc details p {
  margin: 12px 0 0;
  color: rgba(245, 247, 255, 0.74);
}

.ello-doc footer {
  max-width: none;
  margin: 0;
  padding: 28px var(--ello-gutter) 36px;
  border-top: 1px solid var(--ello-line);
  background: rgba(16, 11, 45, 0.94);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-align: center;
}

.ello-doc footer p {
  max-width: var(--ello-wrap);
  margin: 0 auto;
  color: inherit;
  font-size: inherit;
}

.ello-doc footer a {
  margin-left: 9px;
}

.shopping-blueprint .doc-hero {
  min-height: 0;
  margin-bottom: 36px;
  padding-bottom: 40px;
}

.shopping-blueprint .doc-hero--shopping {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
}

.shopping-blueprint .doc-hero h1 {
  max-width: 15ch;
}

.shopping-blueprint .doc-hero-visual {
  min-width: 0;
}

.shopping-blueprint .doc-hero .dek {
  max-width: 70ch;
  color: rgba(245, 247, 255, 0.8);
}

.shopping-blueprint .status-banner {
  margin: 24px 0 18px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(5, 5, 20, 0.24);
}

.shopping-blueprint .scope-note {
  max-width: 82ch;
  margin: 22px 0 38px;
}

.shopping-blueprint section {
  margin: 76px 0;
}

.shopping-blueprint .hero-sim {
  margin: 0;
  padding: clamp(16px, 2.4vw, 28px);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(5, 5, 20, 0.3), 0 0 32px rgba(0, 88, 255, 0.1);
}

.shopping-blueprint .sim-head h2 {
  max-width: 19ch;
  font-size: clamp(1.55rem, 2.45vw, 2.05rem);
  line-height: 1.12;
}

@media (max-width: 980px) {
  .ello-head-inner {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0 22px;
    padding: 12px 0;
  }

  .ello-doc nav.pub {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 24px;
    min-height: 38px;
  }

  .ello-head-cta {
    margin-left: auto;
  }

  .ello-doc .doc-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
    gap: 28px;
  }
}

@media (max-width: 720px) {
  body.ello-doc {
    background-attachment: scroll, scroll, scroll, scroll;
    font-size: 15px;
  }

  .ello-doc main#main {
    padding-top: 24px;
    padding-bottom: 68px;
  }

  .ello-doc .doc-hero,
  .ello-doc .doc-hero--business {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    margin-bottom: 52px;
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .ello-doc .doc-hero h1 {
    align-items: flex-start;
    gap: 12px;
    font-size: clamp(2.15rem, 9vw, 3.1rem);
  }

  .ello-doc .doc-hero .ello-title-mark {
    flex-basis: 48px;
    width: 48px;
    margin-top: 4px;
  }

  .ello-doc .bluf {
    padding-left: 15px;
    font-size: 15px;
  }

  .ello-doc .doc-hero-actions {
    gap: 8px;
  }

  .ello-doc .doc-hero-actions .cta {
    min-height: 44px;
    padding-inline: 15px;
    font-size: 13px;
  }

  .ello-doc .ello-hero-visual {
    max-width: 520px;
  }

  .ello-doc main#main > h2 {
    margin-top: 58px;
    padding-top: 27px;
  }

  .ello-doc .card {
    padding: 21px 19px;
  }

  .ello-doc table {
    min-width: 680px;
  }

  .shopping-blueprint .doc-hero {
    gap: 14px;
    padding-top: 24px;
  }

  .shopping-blueprint .doc-hero--shopping {
    grid-template-columns: 1fr;
  }

  .shopping-blueprint .doc-hero-visual {
    width: 100%;
  }

  .shopping-blueprint section {
    margin: 54px 0;
  }
}

@media (max-width: 440px) {
  .ello-doc-brand {
    font-size: 14px;
  }

  .ello-brand-mark {
    width: 33px;
    height: 33px;
  }

  .ello-brand-mark svg {
    width: 22px;
    height: 22px;
  }

  .ello-head-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .ello-doc nav.pub {
    gap: 20px;
    font-size: 12px;
  }

  .ello-doc .crumbs {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ello-doc *,
  .ello-doc *::before,
  .ello-doc *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .ello-doc .card:hover,
  .ello-doc .cta:hover,
  .ello-doc .ello-head-cta:hover {
    transform: none;
  }
}
