/* Meet Control / Lane Architecture — EO Account product page
   Scoped to .eo-product. Loaded via extra_css + data-page-css. */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-600.woff2') format('woff2');
}

.eo-product {
  --pool-deep: #0a1a2b;
  --pool-deep-2: #0f2438;
  --deck: #e8eef2;
  --deck-line: #c5d2db;
  --lane-blue: #40b4e0;
  --lane-blue-soft: rgba(64, 180, 224, 0.22);
  --signal-red: #fd192a;
  --signal-red-hover: #e01020;
  --board-amber: #ffb700;
  --board-text: #f2f7fa;
  --board-muted: rgba(242, 247, 250, 0.72);
  --ink: #0f2438;
  --ink-muted: #3d5568;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
}

.eo-product *,
.eo-product *::before,
.eo-product *::after {
  box-sizing: border-box;
}

.eo-product ::selection {
  background: rgba(64, 180, 224, 0.35);
  color: var(--ink);
}

.eo-product a {
  color: var(--lane-blue);
  text-underline-offset: 0.18em;
}

.eo-product a.eo-btn,
.eo-product a.eo-btn:link,
.eo-product a.eo-btn:visited,
.eo-product a.eo-btn:hover,
.eo-product a.eo-btn:active,
.eo-product a.eo-btn:focus-visible {
  text-decoration: none;
}

.eo-product a.eo-back,
.eo-product a.eo-back:link,
.eo-product a.eo-back:visited {
  text-decoration: none;
}

.eo-product a:focus-visible,
.eo-product button:focus-visible {
  outline: 2px solid var(--lane-blue);
  outline-offset: 3px;
}

/* ── Full-bleed bands ── */

.eo-band {
  width: 100%;
  padding: 0 1.5rem;
}

.eo-band--deep {
  background: var(--pool-deep);
  color: var(--board-text);
}

.eo-band--deck {
  background: var(--deck);
  color: var(--ink);
}

.eo-band__inner {
  max-width: 72rem;
  margin: 0 auto;
}

/* ── Type ── */

.eo-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}

.eo-h1 {
  font-size: clamp(3rem, 8vw, 5.75rem);
  max-width: 12ch;
}

.eo-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.eo-band--deep .eo-h2 {
  color: var(--board-text);
}

.eo-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  max-width: 38rem;
  margin: 0;
  color: var(--ink-muted);
}

.eo-band--deep .eo-lead {
  color: var(--board-muted);
}

/* ── Buttons ── */

.eo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0.35rem;
  padding: 1rem 1.75rem;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.eo-btn--signal,
.eo-product a.eo-btn--signal:link,
.eo-product a.eo-btn--signal:visited {
  background: var(--signal-red);
  color: #fff;
  border-color: var(--signal-red);
}

.eo-btn--signal:hover,
.eo-product a.eo-btn--signal:hover {
  background: var(--signal-red-hover);
  border-color: var(--signal-red-hover);
  color: #fff;
  transform: scale(0.97);
}

.eo-btn--signal:active {
  transform: scale(0.95);
  transition-duration: 100ms;
}

.eo-btn--ghost,
.eo-product a.eo-btn--ghost:link,
.eo-product a.eo-btn--ghost:visited {
  background: transparent;
  color: var(--board-text);
  border-color: rgba(242, 247, 250, 0.35);
}

.eo-btn--ghost:hover,
.eo-product a.eo-btn--ghost:hover {
  border-color: var(--board-text);
  color: var(--board-text);
  transform: scale(0.97);
}

.eo-btn--ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: rgba(15, 36, 56, 0.25);
}

.eo-btn--ghost-dark:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: scale(0.97);
}

.eo-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ── Back link ── */

.eo-back,
.eo-product a.eo-back:link,
.eo-product a.eo-back:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--board-muted);
  text-decoration: none;
  padding: 1.5rem 0 0.5rem;
  transition: color 150ms ease;
}

.eo-back:hover,
.eo-product a.eo-back:hover {
  color: var(--board-text);
}

.eo-band--deck .eo-back {
  color: var(--ink-muted);
}

.eo-band--deck .eo-back:hover {
  color: var(--ink);
}

/* ── Hero ── */

.eo-hero {
  position: relative;
  padding: 1.25rem 0 4.5rem;
  overflow: hidden;
}

.eo-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 900px) {
  .eo-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
  }
}

.eo-hero__copy {
  position: relative;
  z-index: 2;
  padding-bottom: 0.5rem;
}

.eo-hero__tag {
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
  max-width: 34rem;
  color: var(--board-muted);
}

/* Lane field behind the board. Oversized layer drifts one lane period. */
.eo-lane-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
  opacity: 0.85;
}

.eo-lane-field::before {
  content: '';
  position: absolute;
  inset: -12% 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 4.5rem,
      var(--lane-blue-soft) 4.5rem,
      var(--lane-blue-soft) calc(4.5rem + 1px)
    );
  animation: eo-drift-lanes 10s linear infinite;
}

@keyframes eo-drift-lanes {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, calc(-4.5rem - 1px), 0); }
}

.eo-board {
  position: relative;
  z-index: 1;
  margin: 0;
}

.eo-board__frame {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
  background: var(--pool-deep-2);
  border: 1px solid rgba(242, 247, 250, 0.12);
}

.eo-board__frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.eo-board__caption {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(242, 247, 250, 0.7);
}

/* Hero entrance — one authored moment */
.eo-hero .eo-hero__copy,
.eo-hero .eo-board {
  animation: eo-board-in 320ms var(--ease-out) both;
}

.eo-hero .eo-board {
  animation-delay: 60ms;
}

@keyframes eo-board-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Stations (lifecycle) ── */

.eo-stations {
  padding: 0.5rem 0 1rem;
}

.eo-station {
  position: relative;
  padding: 3.75rem 0;
  border-top: 1px solid var(--deck-line);
}

.eo-station:first-child {
  border-top: none;
}

.eo-station__head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.eo-station__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .eo-station__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
    align-items: center;
  }

  .eo-station--flip .eo-station__layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .eo-station--flip .eo-station__copy {
    order: 2;
  }

  .eo-station--flip .eo-station__visual {
    order: 1;
  }
}

/* Feature rows — dense list, not cards */
.eo-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--deck-line);
}

@media (min-width: 640px) {
  .eo-features--2 {
    grid-template-columns: 1fr 1fr;
  }

  .eo-features--2 .eo-feature:nth-child(odd) {
    padding-right: 1.25rem;
    border-right: 1px solid var(--deck-line);
  }

  .eo-features--2 .eo-feature:nth-child(even) {
    padding-left: 1.25rem;
  }
}

.eo-feature {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--deck-line);
}

.eo-feature__title {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.eo-feature__title::before {
  content: '';
  flex: 0 0 0.85rem;
  width: 0.85rem;
  height: 2px;
  background: var(--lane-blue);
  transform: translateY(-0.28em);
}

.eo-feature__desc {
  margin: 0;
  padding-left: calc(0.85rem + 0.55rem);
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 38rem;
}

.eo-station__visual .eo-board__frame {
  background: #fff;
  border: 1px solid var(--deck-line);
  box-shadow:
    0 18px 36px rgba(15, 36, 56, 0.12),
    0 1px 2px rgba(15, 36, 56, 0.06);
}

.eo-station__visual .eo-board__caption {
  color: var(--ink-muted);
}

/* Scroll reveal — visible by default; motion only when JS arms it */
.eo-reveal {
  opacity: 1;
  transform: none;
}

.eo-product[data-motion='on'] .eo-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

.eo-product[data-motion='on'] .eo-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── How it works (marshalling) ── */

.eo-marshall {
  padding: 4.25rem 0 4.5rem;
  position: relative;
}

.eo-marshall__head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.eo-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

@media (min-width: 800px) {
  .eo-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eo-step {
  position: relative;
  padding: 1.75rem 0 1.75rem 0;
  border-top: 2px solid var(--lane-blue);
}

@media (min-width: 800px) {
  .eo-step {
    padding: 1.75rem 1.75rem 0 0;
  }

  .eo-step:not(:last-child) {
    border-right: 1px solid var(--deck-line);
    padding-right: 1.75rem;
    margin-right: 1.75rem;
  }
}

.eo-step__mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--lane-blue);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.eo-step__title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.eo-step__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 28rem;
}

/* ── Close (start signal) ── */

.eo-close {
  padding: 5rem 0 5.5rem;
  text-align: left;
}

.eo-close .eo-h2 {
  max-width: 14ch;
}

.eo-close .eo-lead {
  margin-top: 1rem;
  max-width: 36rem;
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  .eo-hero .eo-hero__copy,
  .eo-hero .eo-board {
    animation: eo-fade-in 200ms ease both;
    animation-delay: 0ms;
  }

  .eo-lane-field::before {
    animation: none;
  }

  .eo-product[data-motion='on'] .eo-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 200ms ease;
  }

  .eo-btn,
  .eo-btn--signal:hover,
  .eo-btn--ghost:hover,
  .eo-btn--ghost-dark:hover {
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
    transform: none;
  }

  .eo-btn--signal:active {
    transform: none;
  }
}

@keyframes eo-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hover motion only on fine pointers */
@media (hover: hover) and (pointer: fine) {
  .eo-btn--signal:hover {
    transform: scale(0.97);
  }

  .eo-btn--ghost:hover,
  .eo-btn--ghost-dark:hover {
    transform: scale(0.97);
  }
}

@media (hover: none) {
  .eo-btn--signal:hover,
  .eo-btn--ghost:hover,
  .eo-btn--ghost-dark:hover {
    transform: none;
  }
}

/* ── Small screens: bleed without crushing padding ── */

@media (max-width: 640px) {
  .eo-band {
    padding: 0 1.25rem;
  }

  .eo-hero {
    padding: 1rem 0 3.25rem;
  }

  .eo-station {
    padding: 2.75rem 0;
  }

  .eo-close {
    padding: 3.5rem 0 4rem;
  }
}
