/* Echo Lattice — help-center exclusive DNA (eh-)
   Signal pods + frequency-bar FAQs · charcoal / cyan / sand
   Not overlapping paper sheets, not oriel, not kinetic workspace */

:root {
  /* Tideboard-aligned Echo (dark desk) */
  --eh-void: #013533;
  --eh-panel: #024E4A;
  --eh-cyan: #B8F2E0;
  --eh-cyan-dim: #7DD4B8;
  --eh-sand: #EFFFFA;
  --eh-warm: #FF9B71;
  --eh-mute: #9BC4BE;
  --eh-ink: #042A28;
  --eh-ease: cubic-bezier(0.34, 1.4, 0.64, 1);
  --eh-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --eh-display: "Bricolage Grotesque", "Playfair Display", Georgia, serif;
  --eh-body: "Plus Jakarta Sans", "Be Vietnam Pro", system-ui, sans-serif;
}

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

body.eh-echo {
  margin: 0;
  font-family: var(--eh-body);
  color: var(--eh-sand);
  background:
    radial-gradient(ellipse 60% 45% at 80% -10%, rgba(184, 242, 224, 0.16), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 60%, rgba(255, 155, 113, 0.1), transparent 45%),
    linear-gradient(165deg, #012826 0%, var(--eh-void) 45%, #024E4A 100%);
  min-height: 100vh;
  line-height: 1.55;
}

body.eh-echo .page-main { padding: 0 0 3rem; }
.dna-wrap { max-width: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Vertical edge compass — not top tabs / paper chips */
.eh-compass {
  position: fixed;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem;
  background: rgba(1, 53, 51, 0.92);
  border: 1px solid rgba(184, 242, 224, 0.25);
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.eh-compass a {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-decoration: none !important;
  color: var(--eh-mute) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 0.45rem;
  border-radius: 0.75rem;
  transition: color 0.25s, background 0.25s, transform 0.3s var(--eh-ease);
}

.eh-compass a:hover,
.eh-compass a:focus-visible {
  color: var(--eh-ink) !important;
  background: var(--eh-cyan);
  outline: none;
  transform: rotate(180deg) scale(1.05);
}

.eh-compass a.is-here {
  color: var(--eh-void) !important;
  background: var(--eh-warm);
}

/* Beam hero + morphing search */
.eh-beam {
  position: relative;
  padding: 3.5rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
  padding-right: clamp(3.5rem, 8vw, 5.5rem);
  max-width: 52rem;
  overflow: hidden;
}

.eh-beam-glow {
  position: absolute;
  width: 18rem;
  height: 18rem;
  left: -4rem;
  top: -6rem;
  background: radial-gradient(circle, rgba(184, 242, 224, 0.35), transparent 65%);
  pointer-events: none;
  animation: eh-pulse 6s ease-in-out infinite;
}

.eh-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--eh-cyan);
}

.eh-beam h1 {
  margin: 0;
  font-family: var(--eh-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.02;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.eh-beam h1 em {
  font-style: italic;
  color: var(--eh-cyan);
}

.eh-lede {
  margin: 1rem 0 1.5rem;
  color: rgba(246, 241, 232, 0.82);
  font-size: 1.05rem;
  max-width: 34rem;
}

.eh-seek {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 34rem);
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  background: rgba(1, 53, 51, 0.9);
  border: 1.5px solid rgba(184, 242, 224, 0.35);
  border-radius: 999px;
  transition:
    width 0.45s var(--eh-soft),
    border-color 0.3s,
    box-shadow 0.35s,
    transform 0.35s var(--eh-ease);
}

.eh-seek.is-hot {
  width: min(100%, 40rem);
  border-color: var(--eh-cyan);
  box-shadow:
    0 0 0 4px rgba(184, 242, 224, 0.15),
    0 16px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.eh-seek-caret {
  width: 0.35rem;
  height: 1.15rem;
  background: var(--eh-cyan);
  border-radius: 2px;
  animation: eh-blink 1.1s steps(1) infinite;
  flex-shrink: 0;
}

.eh-seek input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0.25rem;
  outline: none;
}

.eh-seek input::placeholder { color: rgba(155, 196, 190, 0.85); }

.eh-seek button,
#ehClear {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  background: var(--eh-warm);
  color: var(--eh-ink);
  font-family: var(--eh-body);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--eh-ease), background 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 0 rgba(180, 90, 50, 0.35);
}

.eh-seek button:hover,
.eh-seek button:focus-visible,
#ehClear:hover,
#ehClear:focus-visible {
  background: #FFB08E;
  color: var(--eh-ink);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 0 rgba(180, 90, 50, 0.3);
  outline: 2px solid #EFFFFA;
  outline-offset: 2px;
}

/* Shell + hexagonal-ish pods */
.eh-shell {
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) 2rem;
  padding-right: clamp(3.5rem, 8vw, 5.5rem);
}

.eh-pods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.eh-pod {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.1rem 1rem 1.2rem;
  border: 1.5px solid rgba(184, 242, 224, 0.28);
  background: linear-gradient(155deg, rgba(2, 78, 74, 0.95), rgba(1, 53, 51, 0.92));
  color: var(--eh-sand);
  font-family: var(--eh-body);
  text-align: left;
  cursor: pointer;
  clip-path: polygon(8% 0, 100% 0, 100% 85%, 92% 100%, 0 100%, 0 15%);
  transition:
    transform 0.35s var(--eh-ease),
    border-color 0.25s,
    background 0.3s,
    box-shadow 0.35s;
}

.eh-pod:hover,
.eh-pod:focus-visible {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--eh-cyan);
  outline: none;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.eh-pod.is-on {
  background: linear-gradient(155deg, rgba(184, 242, 224, 0.22), rgba(2, 78, 74, 0.98));
  border-color: var(--eh-cyan);
  box-shadow: 0 0 0 1px rgba(184, 242, 224, 0.4), 0 16px 32px rgba(0, 0, 0, 0.28);
}

.eh-pod-stage {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--eh-cyan);
}

.eh-pod-title {
  font-family: var(--eh-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: #FFFFFF;
}

.eh-pod-blip {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(155, 196, 190, 0.45);
  transition: background 0.25s, box-shadow 0.25s, transform 0.3s var(--eh-ease);
}

.eh-pod.is-on .eh-pod-blip,
.eh-pod:hover .eh-pod-blip {
  background: var(--eh-cyan);
  box-shadow: 0 0 0 4px rgba(184, 242, 224, 0.25);
  transform: scale(1.3);
}

.eh-empty {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 155, 113, 0.15);
  border: 1px solid rgba(255, 155, 113, 0.4);
  color: var(--eh-warm);
  font-weight: 700;
}

.eh-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 1.25rem;
  align-items: start;
}

/* Frequency bands + signal accordions */
.eh-band {
  display: none;
  animation: eh-rise 0.45s var(--eh-soft) both;
}

.eh-band.is-on { display: block; }

.eh-band-head {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(184, 242, 224, 0.2);
}

.eh-band-stage {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eh-warm);
}

.eh-band-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--eh-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #FFFFFF;
}

.eh-band-head p {
  margin: 0;
  color: var(--eh-mute);
}

.eh-signal {
  margin: 0 0 0.65rem;
  background: rgba(1, 53, 51, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(184, 242, 224, 0.35);
  border-radius: 0 1rem 1rem 0;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.35s var(--eh-ease),
    background 0.3s,
    box-shadow 0.35s;
}

.eh-signal:hover {
  border-left-color: var(--eh-cyan);
  transform: translateX(4px);
}

.eh-signal[open] {
  border-left-color: var(--eh-warm);
  background: rgba(2, 70, 66, 0.95);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  transform: translateX(8px) scale(1.01);
}

.eh-signal summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1rem;
  cursor: pointer;
  user-select: none;
}

.eh-signal summary::-webkit-details-marker { display: none; }

.eh-signal-wave {
  display: flex;
  align-items: end;
  gap: 0.18rem;
  height: 1.35rem;
}

.eh-signal-wave i {
  display: block;
  width: 0.22rem;
  background: var(--eh-cyan);
  border-radius: 2px;
  opacity: 0.55;
  transition: height 0.35s var(--eh-ease), opacity 0.25s, background 0.25s;
}

.eh-signal-wave i:nth-child(1) { height: 35%; }
.eh-signal-wave i:nth-child(2) { height: 65%; }
.eh-signal-wave i:nth-child(3) { height: 45%; }
.eh-signal-wave i:nth-child(4) { height: 80%; }
.eh-signal-wave i:nth-child(5) { height: 50%; }

.eh-signal:hover .eh-signal-wave i,
.eh-signal[open] .eh-signal-wave i {
  opacity: 1;
  animation: eh-eq 0.9s ease-in-out infinite alternate;
}

.eh-signal[open] .eh-signal-wave i { background: var(--eh-warm); }
.eh-signal:hover .eh-signal-wave i:nth-child(1),
.eh-signal[open] .eh-signal-wave i:nth-child(1) { animation-delay: 0s; }
.eh-signal:hover .eh-signal-wave i:nth-child(2),
.eh-signal[open] .eh-signal-wave i:nth-child(2) { animation-delay: 0.08s; }
.eh-signal:hover .eh-signal-wave i:nth-child(3),
.eh-signal[open] .eh-signal-wave i:nth-child(3) { animation-delay: 0.16s; }
.eh-signal:hover .eh-signal-wave i:nth-child(4),
.eh-signal[open] .eh-signal-wave i:nth-child(4) { animation-delay: 0.24s; }
.eh-signal:hover .eh-signal-wave i:nth-child(5),
.eh-signal[open] .eh-signal-wave i:nth-child(5) { animation-delay: 0.32s; }

.eh-signal-q {
  font-weight: 700;
  font-size: 0.98rem;
  color: #FFFFFF;
  line-height: 1.35;
}

.eh-signal-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1.5px solid rgba(184, 242, 224, 0.45);
  position: relative;
  transition: transform 0.35s var(--eh-ease), background 0.25s, border-color 0.25s;
}

.eh-signal-mark::before,
.eh-signal-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--eh-cyan);
  transform: translate(-50%, -50%);
}

.eh-signal-mark::before { width: 0.55rem; height: 1.5px; }
.eh-signal-mark::after { width: 1.5px; height: 0.55rem; transition: transform 0.3s, opacity 0.3s; }

.eh-signal[open] .eh-signal-mark {
  background: var(--eh-warm);
  border-color: var(--eh-warm);
  transform: rotate(90deg);
}

.eh-signal[open] .eh-signal-mark::before,
.eh-signal[open] .eh-signal-mark::after {
  background: var(--eh-void);
}

.eh-signal[open] .eh-signal-mark::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}

.eh-signal-a {
  padding: 0 1rem 1.1rem 3.2rem;
  color: rgba(246, 241, 232, 0.88);
  font-size: 0.95rem;
  animation: eh-rise 0.35s var(--eh-soft) both;
}

.eh-signal-a a {
  color: var(--eh-cyan) !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.eh-signal-a a:hover,
.eh-signal-a a:focus-visible {
  color: var(--eh-warm) !important;
  outline: none;
}

.eh-signal-a strong { color: #FFFFFF; }

/* Support raft */
.eh-raft {
  position: sticky;
  top: 1.25rem;
}

.eh-raft-inner {
  padding: 1.25rem;
  background: linear-gradient(160deg, rgba(184, 242, 224, 0.12), rgba(1, 53, 51, 0.98));
  border: 1.5px solid rgba(184, 242, 224, 0.3);
  border-radius: 1.5rem 0.4rem 1.5rem 1.5rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.eh-raft-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eh-cyan);
}

.eh-raft h3 {
  margin: 0 0 0.35rem;
  font-family: var(--eh-display);
  font-size: 1.45rem;
  color: #FFFFFF;
}

.eh-raft > .eh-raft-inner > p {
  margin: 0 0 1rem;
  color: var(--eh-mute);
  font-size: 0.9rem;
}

.eh-raft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--eh-warm);
  color: var(--eh-ink) !important;
  font-family: var(--eh-body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s var(--eh-ease), background 0.25s, box-shadow 0.3s;
  box-shadow: 0 8px 0 rgba(180, 90, 50, 0.4);
}

.eh-raft-btn:hover,
.eh-raft-btn:focus-visible {
  background: #FFB08E;
  color: var(--eh-ink) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(180, 90, 50, 0.35);
  outline: 2px solid #EFFFFA;
  outline-offset: 2px;
}

.eh-raft-mail {
  display: block;
  color: var(--eh-warm) !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  margin-bottom: 0.35rem;
  word-break: break-all;
}

.eh-raft-mail:hover,
.eh-raft-mail:focus-visible {
  color: #FFFFFF !important;
  outline: none;
}

.eh-raft-meta {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--eh-mute);
}

.eh-raft-block {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(184, 242, 224, 0.25);
}

.eh-raft-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eh-cyan);
}

.eh-raft-block p {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: rgba(239, 255, 250, 0.88);
}

.eh-raft-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.eh-raft-nav a {
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s, padding-left 0.25s;
}

.eh-raft-nav a:hover,
.eh-raft-nav a:focus-visible {
  color: var(--eh-cyan) !important;
  border-bottom-color: var(--eh-cyan);
  padding-left: 0.35rem;
  outline: none;
}

.eh-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 0;
  margin-right: clamp(3.5rem, 8vw, 5.5rem);
  padding-top: 1.15rem;
  border-top: 1px solid rgba(184, 242, 224, 0.15);
  color: var(--eh-mute);
  font-size: 0.85rem;
}

.eh-foot a {
  color: var(--eh-cyan) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.eh-foot a:hover,
.eh-foot a:focus-visible {
  color: var(--eh-warm) !important;
  outline: none;
}

@keyframes eh-blink {
  50% { opacity: 0; }
}

@keyframes eh-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes eh-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes eh-eq {
  from { transform: scaleY(0.7); }
  to { transform: scaleY(1.25); }
}

@media (max-width: 960px) {
  .eh-compass {
    position: static;
    transform: none;
    flex-direction: row;
    width: max-content;
    max-width: calc(100% - 2rem);
    margin: 1rem auto 0;
    writing-mode: horizontal-tb;
  }
  .eh-compass a {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 0.5rem 0.7rem;
  }
  .eh-compass a:hover,
  .eh-compass a:focus-visible {
    transform: scale(1.05);
  }
  .eh-beam,
  .eh-shell,
  .eh-foot {
    padding-right: clamp(1.25rem, 4vw, 3.5rem);
    margin-right: clamp(1.25rem, 4vw, 3.5rem);
  }
  .eh-pods { grid-template-columns: 1fr 1fr; }
  .eh-grid { grid-template-columns: 1fr; }
  .eh-raft { position: static; }
}

@media (max-width: 560px) {
  .eh-pods { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Help center button / CTA lock — beat tide-unify */
body.eh-echo.dna-exclusive .page-main .eh-seek button,
body.eh-echo.dna-exclusive .page-main #ehClear {
  background: var(--eh-warm) !important;
  color: var(--eh-ink) !important;
  border: 0 !important;
  box-shadow: 0 4px 0 rgba(180, 90, 50, 0.35) !important;
}

body.eh-echo.dna-exclusive .page-main .eh-seek button:hover,
body.eh-echo.dna-exclusive .page-main .eh-seek button:focus-visible,
body.eh-echo.dna-exclusive .page-main #ehClear:hover,
body.eh-echo.dna-exclusive .page-main #ehClear:focus-visible {
  background: #FFB08E !important;
  color: var(--eh-ink) !important;
}

body.eh-echo.dna-exclusive .page-main .eh-raft-btn {
  background: var(--eh-warm) !important;
  color: var(--eh-ink) !important;
  border: 0 !important;
  box-shadow: 0 8px 0 rgba(180, 90, 50, 0.4) !important;
}

body.eh-echo.dna-exclusive .page-main .eh-raft-btn:hover,
body.eh-echo.dna-exclusive .page-main .eh-raft-btn:focus-visible {
  background: #FFB08E !important;
  color: var(--eh-ink) !important;
}

body.eh-echo.dna-exclusive .page-main .eh-pod {
  background: linear-gradient(155deg, rgba(2, 78, 74, 0.95), rgba(1, 53, 51, 0.92)) !important;
  color: var(--eh-sand) !important;
  border-color: rgba(184, 242, 224, 0.28) !important;
}

body.eh-echo.dna-exclusive .page-main .eh-pod.is-on {
  background: linear-gradient(155deg, rgba(184, 242, 224, 0.22), rgba(2, 78, 74, 0.98)) !important;
  border-color: var(--eh-cyan) !important;
}

body.eh-echo.dna-exclusive .page-main .eh-pod-title {
  color: #FFFFFF !important;
}

body.eh-echo.dna-exclusive .page-main .eh-seek input {
  color: #FFFFFF !important;
  background: transparent !important;
}

body.eh-echo.dna-exclusive .page-main .eh-raft-mail {
  color: var(--eh-warm) !important;
}

body.eh-echo.dna-exclusive .page-main .eh-raft-nav a {
  color: #FFFFFF !important;
}

body.eh-echo.dna-exclusive .page-main .eh-raft-nav a:hover,
body.eh-echo.dna-exclusive .page-main .eh-raft-nav a:focus-visible {
  color: var(--eh-cyan) !important;
}
