/* ÉKHO root first view: shown until Flutter's first frame and without
   JavaScript. It mirrors the app's landing hero (breakpoints 560 / 600 /
   1024 / 1100 / 1200, same copy and proportions) so the switch to the app
   does not change the design. Every rule is scoped to #ekho-preboot. */

#ekho-preboot {
  --pb-bg: #0a0e1a;
  --pb-card: #111827;
  --pb-line: #1e293b;
  --pb-accent: #818cf8;
  --pb-accent-bright: #a5b4fc;
  --pb-teal: #43e1d8;
  --pb-text: #f1f5f9;
  --pb-muted: #94a3b8;
  --pb-beta: #fbbf24;
  --pb-gutter: 20px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: var(--pb-bg);
  color: var(--pb-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#ekho-preboot *,
#ekho-preboot *::before,
#ekho-preboot *::after {
  box-sizing: border-box;
}

#ekho-preboot h1,
#ekho-preboot h2,
#ekho-preboot h3,
#ekho-preboot p,
#ekho-preboot ul,
#ekho-preboot ol,
#ekho-preboot figure {
  margin: 0;
}

#ekho-preboot img,
#ekho-preboot svg {
  display: block;
}

#ekho-preboot a {
  color: var(--pb-accent-bright);
  text-underline-offset: 0.18em;
}

#ekho-preboot a:focus-visible,
#ekho-preboot summary:focus-visible {
  outline: 2px solid var(--pb-accent-bright);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Header: 80px bar, max 1200px, like the app's LandingHeader */

#ekho-preboot .pb-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

#ekho-preboot .pb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(1200px + 2 * var(--pb-gutter));
  height: 80px;
  margin: 0 auto;
  padding: 0 var(--pb-gutter);
}

/* Logo without its baked-in subtitle; the subtitle is real text placed
   where it sat in the 2000 x 665 artwork (x 833, y 436 at 44px height). */
#ekho-preboot .pb-brand {
  display: inline-grid;
  margin-right: auto;
  padding: 6px 2px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
}

#ekho-preboot .pb-brand > * {
  grid-area: 1 / 1;
}

#ekho-preboot .pb-brand img {
  width: auto;
  height: 44px;
}

#ekho-preboot .pb-tagline {
  margin: 28.85px 0 0 55.1px;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

#ekho-preboot .pb-nav {
  display: none;
  align-items: center;
}

#ekho-preboot .pb-nav a {
  min-width: 64px;
  margin: 0 4px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--pb-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
}

#ekho-preboot .pb-nav a:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--pb-text);
}

/* Room the app uses for its login link, so the links do not shift. */
#ekho-preboot .pb-nav-space {
  width: 115px;
}

#ekho-preboot .pb-cta {
  display: none;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--pb-accent);
  color: var(--pb-bg);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

#ekho-preboot .pb-cta:hover {
  background: var(--pb-accent-bright);
  color: var(--pb-bg);
}

#ekho-preboot .pb-menu {
  position: relative;
}

#ekho-preboot .pb-menu summary {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--pb-text);
  cursor: pointer;
  list-style: none;
}

#ekho-preboot .pb-menu summary::-webkit-details-marker {
  display: none;
}

#ekho-preboot .pb-menu summary svg {
  width: 24px;
  height: 24px;
}

#ekho-preboot .pb-menu-panel {
  position: absolute;
  top: 54px;
  right: 0;
  width: min(19rem, calc(100vw - 2 * var(--pb-gutter)));
  padding: 8px;
  border: 1px solid var(--pb-line);
  border-radius: 18px;
  background: var(--pb-card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

#ekho-preboot .pb-menu-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--pb-text);
  font-weight: 600;
  text-decoration: none;
}

#ekho-preboot .pb-menu-link.pb-quiet {
  color: var(--pb-muted);
  font-weight: 500;
}

#ekho-preboot .pb-menu-link:hover {
  background: rgba(148, 163, 184, 0.08);
}

#ekho-preboot .pb-menu-panel .pb-btn {
  width: 100%;
  margin-top: 8px;
}

/* Hero */

#ekho-preboot .pb-hero {
  position: relative;
  overflow: hidden;
  padding: 112px var(--pb-gutter) 56px;
}

#ekho-preboot .pb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/seo/ekho-network.svg") center / cover no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

#ekho-preboot .pb-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(rgba(10, 14, 26, 0), var(--pb-bg));
  pointer-events: none;
}

#ekho-preboot .pb-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#ekho-preboot .pb-copy {
  max-width: 620px;
}

#ekho-preboot .pb-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

#ekho-preboot .pb-pill {
  padding: 6px 12px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 100px;
  background: rgba(251, 191, 36, 0.1);
  color: var(--pb-beta);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.3px;
}

#ekho-preboot .pb-kicker-text {
  color: var(--pb-accent-bright);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

#ekho-preboot h1 {
  margin-top: 24px;
  color: var(--pb-text);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

#ekho-preboot h1 span {
  color: var(--pb-accent-bright);
}

#ekho-preboot .pb-lead {
  margin-top: 24px;
  color: var(--pb-muted);
  font-size: 17px;
  line-height: 1.6;
}

#ekho-preboot .pb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

#ekho-preboot .pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 60px;
  padding: 20px 28px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
}

#ekho-preboot .pb-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

#ekho-preboot .pb-btn-primary {
  background: var(--pb-accent);
  color: var(--pb-bg);
  font-weight: 700;
}

#ekho-preboot .pb-btn-primary:hover {
  background: var(--pb-accent-bright);
  color: var(--pb-bg);
}

#ekho-preboot .pb-btn-outline {
  padding: 19px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--pb-text);
  font-weight: 500;
}

#ekho-preboot .pb-btn-outline:hover {
  border-color: var(--pb-accent-bright);
  color: var(--pb-text);
}

#ekho-preboot .pb-actions .pb-btn {
  width: 100%;
}

#ekho-preboot .pb-fine {
  margin-top: 24px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 13px;
  line-height: 1.5;
}

#ekho-preboot .pb-visual {
  display: flex;
  justify-content: center;
}

/* Example signal view, like the app's LandingInsightPreview */

#ekho-preboot .pb-preview {
  container-type: inline-size;
  width: 100%;
  max-width: 590px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 15%, rgba(129, 140, 248, 0.12), rgba(17, 24, 39, 0) 62%),
    var(--pb-card);
  box-shadow: 0 0 48px -12px rgba(129, 140, 248, 0.12);
}

#ekho-preboot .pb-preview-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pb-line);
}

#ekho-preboot .pb-live {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pb-teal);
  box-shadow: 0 0 8px 1px rgba(67, 225, 216, 0.45);
}

#ekho-preboot .pb-preview-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--pb-accent-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ekho-preboot .pb-chip {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--pb-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: 0.8px;
}

#ekho-preboot .pb-preview-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

#ekho-preboot .pb-orb {
  width: 220px;
  height: 220px;
}

#ekho-preboot .pb-signals {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 0;
  list-style: none;
}

#ekho-preboot .pb-signals li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

#ekho-preboot .pb-signals svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--pb-accent-bright);
}

#ekho-preboot .pb-signal {
  flex: 1;
  min-width: 0;
  color: var(--pb-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

#ekho-preboot .pb-track {
  display: block;
  height: 3px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 100px;
  background: var(--pb-line);
}

#ekho-preboot .pb-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pb-accent);
}

#ekho-preboot .pb-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--pb-muted);
  font-size: 12px;
  font-weight: 600;
}

#ekho-preboot .pb-status svg {
  width: 17px;
  height: 17px;
  color: var(--pb-teal);
}

#ekho-preboot .pb-reflection {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 16px;
  background: rgba(10, 14, 26, 0.84);
}

#ekho-preboot .pb-reflection-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.14);
  color: var(--pb-accent-bright);
  font-size: 17px;
  font-weight: 800;
}

#ekho-preboot .pb-reflection-label {
  color: var(--pb-accent-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

#ekho-preboot .pb-reflection-text {
  margin-top: 7px;
  color: var(--pb-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

#ekho-preboot .pb-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--pb-muted);
  font-size: 11px;
}

#ekho-preboot .pb-note svg {
  width: 14px;
  height: 14px;
  flex: none;
}

@container (min-width: 470px) {
  #ekho-preboot .pb-preview-body {
    flex-direction: row;
  }

  #ekho-preboot .pb-orb-wrap {
    display: flex;
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }

  #ekho-preboot .pb-orb {
    width: 100%;
    max-width: 238px;
    height: auto;
  }

  #ekho-preboot .pb-signals {
    flex: 1 1 0;
  }
}

/* Sections below the first view (useful without JavaScript) */

#ekho-preboot .pb-section {
  padding: 64px var(--pb-gutter);
}

#ekho-preboot .pb-tinted {
  background: var(--pb-card);
}

#ekho-preboot .pb-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

#ekho-preboot .pb-eyebrow {
  color: var(--pb-teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

#ekho-preboot h2 {
  max-width: 760px;
  margin-top: 16px;
  color: var(--pb-text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

#ekho-preboot h3 {
  color: var(--pb-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

#ekho-preboot .pb-body {
  max-width: 760px;
  margin-top: 16px;
  color: var(--pb-muted);
  font-size: 16px;
  line-height: 1.65;
}

#ekho-preboot .pb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

#ekho-preboot .pb-card {
  padding: 22px;
  border: 1px solid var(--pb-line);
  border-radius: 18px;
  background: var(--pb-bg);
}

#ekho-preboot .pb-section:not(.pb-tinted) .pb-card {
  background: var(--pb-card);
}

#ekho-preboot .pb-card p {
  margin-top: 8px;
  color: var(--pb-muted);
  font-size: 15px;
  line-height: 1.6;
}

#ekho-preboot .pb-num {
  display: block;
  margin-bottom: 12px;
  color: var(--pb-accent-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

#ekho-preboot .pb-box {
  max-width: 760px;
  margin-top: 36px;
  padding: 20px;
  border: 1px solid var(--pb-line);
  border-radius: 16px;
  background: var(--pb-bg);
  color: var(--pb-muted);
  font-size: 15px;
  line-height: 1.65;
}

#ekho-preboot .pb-guide-link {
  display: block;
  color: var(--pb-text);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

#ekho-preboot .pb-guide-link::after {
  content: " \2192";
  color: var(--pb-accent-bright);
}

#ekho-preboot .pb-guide-link:hover {
  color: var(--pb-accent-bright);
}

#ekho-preboot .pb-footer {
  padding: 28px var(--pb-gutter) 40px;
  border-top: 1px solid var(--pb-line);
  color: var(--pb-muted);
  font-size: 14px;
}

/* Breakpoints matching the app */

@media (min-width: 560px) {
  #ekho-preboot .pb-cta {
    display: inline-flex;
  }
}

@media (min-width: 600px) {
  #ekho-preboot {
    --pb-gutter: 32px;
  }

  #ekho-preboot .pb-hero {
    padding-top: 128px;
    padding-bottom: 72px;
  }

  #ekho-preboot .pb-hero-inner {
    gap: 56px;
  }

  #ekho-preboot h1 {
    margin-top: 32px;
    font-size: 52px;
  }

  #ekho-preboot .pb-lead {
    font-size: 19px;
  }

  #ekho-preboot .pb-actions .pb-btn {
    width: auto;
  }

  #ekho-preboot .pb-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  #ekho-preboot h2 {
    font-size: 32px;
  }

  #ekho-preboot .pb-body {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  #ekho-preboot {
    --pb-gutter: 48px;
  }

  #ekho-preboot h1 {
    font-size: 64px;
  }

  #ekho-preboot .pb-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  #ekho-preboot h2 {
    font-size: 38px;
  }
}

@media (min-width: 1100px) {
  #ekho-preboot .pb-hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
  }

  #ekho-preboot .pb-hero-inner {
    flex-direction: row;
    align-items: center;
  }

  #ekho-preboot .pb-copy,
  #ekho-preboot .pb-visual {
    flex: 1 1 0;
    min-width: 0;
  }

  #ekho-preboot .pb-copy {
    max-width: none;
  }

  #ekho-preboot .pb-visual {
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  #ekho-preboot .pb-nav {
    display: flex;
  }

  #ekho-preboot .pb-menu {
    display: none;
  }
}
