/* HORIZON MATERIALS PRIVATE LIMITED — Support Terminal help center (Neon Grove creative) */

@keyframes a36-help-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}
@keyframes a36-help-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.page-help-atlas.a36-help-creative {
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --atlas-ink: #0B1320;
  --atlas-panel: #121B2E;
  --atlas-muted: #5C6778;
  --atlas-line: rgba(78, 205, 196, 0.18);
  --atlas-surface: #F4F0E8;
  --atlas-mint: #4ECDC4;
  --atlas-mango: #FF9F1C;
  --atlas-berry: #E63946;
  --atlas-purple: #5A189A;
  --atlas-citrus: #FFB703;
  --atlas-berry-hue: #C77DFF;
  --atlas-stone: #FF758F;
  --atlas-tropical: #2EC4B6;
  background:
    radial-gradient(circle at 100% 0%, rgba(90, 24, 154, 0.05) 0%, transparent 40%),
    var(--atlas-surface);
}

.a36-atlas {
  padding: 0 0 4.5rem;
}

/* ── Hero: dark terminal header ── */
.a36-atlas-hero {
  position: relative;
  padding: 2.75rem 0 2.25rem;
  overflow: hidden;
  background: var(--atlas-panel);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.a36-atlas-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78, 205, 196, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 205, 196, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  pointer-events: none;
}

.a36-atlas-hero-slice {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(255, 159, 28, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(78, 205, 196, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.a36-atlas-watermark {
  position: absolute;
  top: 0.5rem;
  right: 4%;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  letter-spacing: -0.04em;
}

.a36-atlas-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(var(--a36-sidebar-min), 360px);
  gap: var(--a36-layout-gap);
  align-items: end;
}

.a36-atlas-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--atlas-mint);
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.25);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.a36-atlas-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--atlas-mango);
  box-shadow: 0 0 8px rgba(255, 159, 28, 0.5);
  animation: a36-help-glow 2.5s ease-in-out infinite;
}

.a36-atlas-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.a36-atlas-hero h1 em {
  font-style: normal;
  color: var(--atlas-mango);
  position: relative;
}

.a36-atlas-hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.32em;
  background: rgba(255, 159, 28, 0.22);
  z-index: -1;
  transform: skewX(-6deg);
}

.a36-atlas-lede {
  margin: 0;
  max-width: 52ch;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
}

/* Search — cut-corner command bar */
.a36-atlas-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.a36-atlas-search::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.08), transparent);
  animation: a36-help-scan 4s ease-in-out infinite;
  pointer-events: none;
}

.a36-atlas-search:focus-within {
  border-color: var(--atlas-mint);
  box-shadow: 0 0 0 1px rgba(78, 205, 196, 0.35), 0 12px 40px rgba(0, 0, 0, 0.25);
}

.a36-atlas-search-icon {
  font-size: 0.65rem;
  color: var(--atlas-mango);
  flex-shrink: 0;
  transform: rotate(45deg);
}

.a36-atlas-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  color: #fff;
  min-width: 0;
  outline: none;
}

.a36-atlas-search input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.a36-atlas-search-clear {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.a36-atlas-search-clear:hover {
  background: var(--atlas-mango);
  color: var(--atlas-ink);
}

/* ── Chapter signal meter ── */
.a36-atlas-meter-wrap {
  background: #fff;
  border-bottom: 1px solid rgba(11, 19, 32, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 8px 32px rgba(11, 19, 32, 0.06);
}

.a36-atlas-meter {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 1.15rem 0 0.85rem;
}

.a36-atlas-meter-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.55rem;
  height: 2px;
  background: rgba(11, 19, 32, 0.08);
  margin: 0 10%;
  pointer-events: none;
}

.a36-atlas-meter-fill {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--atlas-mango), var(--atlas-mint));
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.a36-atlas-meter-btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: transform 0.2s;
}

.a36-atlas-meter-btn:hover {
  transform: translateY(-3px);
}

.a36-atlas-meter-dot {
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid rgba(11, 19, 32, 0.15);
  transform: rotate(45deg);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.a36-atlas-meter-btn.hue-citrus.is-active .a36-atlas-meter-dot {
  border-color: var(--atlas-citrus);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.25);
}
.a36-atlas-meter-btn.hue-berry.is-active .a36-atlas-meter-dot {
  border-color: var(--atlas-berry-hue);
  box-shadow: 0 0 0 3px rgba(199, 125, 255, 0.25);
}
.a36-atlas-meter-btn.hue-stone.is-active .a36-atlas-meter-dot {
  border-color: var(--atlas-stone);
  box-shadow: 0 0 0 3px rgba(255, 117, 143, 0.25);
}
.a36-atlas-meter-btn.hue-tropical.is-active .a36-atlas-meter-dot {
  border-color: var(--atlas-tropical);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.25);
}

.a36-atlas-meter-btn.is-active .a36-atlas-meter-dot {
  transform: rotate(45deg) scale(1.2);
  background: var(--atlas-ink);
}

.a36-atlas-meter-stage {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--atlas-muted);
}

.a36-atlas-meter-btn.is-active .a36-atlas-meter-stage {
  color: var(--atlas-mango);
}

.a36-atlas-meter-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--atlas-ink);
  line-height: 1.25;
  max-width: 12ch;
  letter-spacing: -0.01em;
}

/* ── Bento stage ── */
.a36-atlas-stage {
  padding-top: 2.25rem;
}

.a36-atlas-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--atlas-muted);
  font-size: 0.9rem;
  background: #fff;
  border: 1px dashed rgba(11, 19, 32, 0.12);
  margin-bottom: 1.5rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.a36-atlas-empty[hidden] {
  display: none;
}

.a36-atlas-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 1.65rem;
  align-items: start;
}

.a36-atlas-chapter {
  display: none;
  grid-column: 1;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.a36-atlas-chapter.is-active {
  display: grid;
}

/* Intro panel */
.a36-atlas-intro {
  grid-column: 1 / -1;
  padding: 1.85rem 2rem;
  background: var(--atlas-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.a36-atlas-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--atlas-mango), var(--atlas-mint));
}

.a36-atlas-chapter.hue-citrus .a36-atlas-intro::before { background: linear-gradient(180deg, var(--atlas-citrus), var(--atlas-mango)); }
.a36-atlas-chapter.hue-berry .a36-atlas-intro::before { background: linear-gradient(180deg, var(--atlas-berry-hue), var(--atlas-berry)); }
.a36-atlas-chapter.hue-stone .a36-atlas-intro::before { background: linear-gradient(180deg, var(--atlas-stone), var(--atlas-mango)); }
.a36-atlas-chapter.hue-tropical .a36-atlas-intro::before { background: linear-gradient(180deg, var(--atlas-tropical), var(--atlas-mint)); }

.a36-atlas-intro::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 180px;
  height: 180px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.a36-atlas-intro-badge {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.18rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--atlas-mint);
  background: rgba(78, 205, 196, 0.12);
  border: 1px solid rgba(78, 205, 196, 0.25);
}

.a36-atlas-intro h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.a36-atlas-intro p {
  margin: 0;
  max-width: 60ch;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

/* FAQ tiles */
.a36-atlas-tile {
  background: #fff;
  border: 1px solid rgba(11, 19, 32, 0.08);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.a36-atlas-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11, 19, 32, 0.08);
}

.a36-atlas-tile[open] {
  border-color: rgba(78, 205, 196, 0.45);
  box-shadow: 0 14px 36px rgba(11, 19, 32, 0.1);
}

.a36-atlas-tile[hidden] {
  display: none;
}

.a36-atlas-tile summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
}

.a36-atlas-tile summary::-webkit-details-marker {
  display: none;
}

.a36-atlas-tile-num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--atlas-mango);
  padding-top: 0.2rem;
}

.a36-atlas-chapter.hue-citrus .a36-atlas-tile-num { color: var(--atlas-citrus); }
.a36-atlas-chapter.hue-berry .a36-atlas-tile-num { color: var(--atlas-berry-hue); }
.a36-atlas-chapter.hue-stone .a36-atlas-tile-num { color: var(--atlas-stone); }
.a36-atlas-chapter.hue-tropical .a36-atlas-tile-num { color: var(--atlas-tropical); }

.a36-atlas-tile-q {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--atlas-ink);
}

.a36-atlas-tile-chevron {
  width: 24px;
  height: 24px;
  background: var(--atlas-surface);
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s, transform 0.3s;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.a36-atlas-tile-chevron::before {
  content: '+';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--atlas-ink);
  line-height: 1;
  transition: color 0.25s, transform 0.3s;
}

.a36-atlas-tile[open] .a36-atlas-tile-chevron {
  background: var(--atlas-ink);
  transform: rotate(90deg);
}

.a36-atlas-tile[open] .a36-atlas-tile-chevron::before {
  content: '−';
  color: var(--atlas-mango);
}

.a36-atlas-tile-a {
  padding: 0 1.2rem 1.25rem 3.4rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--atlas-muted);
  border-top: 1px solid rgba(11, 19, 32, 0.06);
  margin: 0 1rem;
  padding-top: 0.85rem;
  padding-left: 1rem;
  padding-right: 0;
}

.a36-atlas-tile-a a {
  color: var(--atlas-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--atlas-mango);
  text-underline-offset: 2px;
}

/* Concierge sidebar */
.a36-atlas-concierge {
  grid-column: 2;
  grid-row: 1 / span 20;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.35rem;
  background: var(--atlas-panel);
  color: rgba(255, 255, 255, 0.85);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow: 0 20px 50px rgba(11, 19, 32, 0.28);
  border: 1px solid rgba(78, 205, 196, 0.15);
}

.a36-atlas-concierge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--atlas-mango), var(--atlas-mint), var(--atlas-purple));
}

.a36-atlas-concierge-head {
  text-align: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.a36-atlas-concierge-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 159, 28, 0.12);
  border: 1px solid rgba(255, 159, 28, 0.3);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.a36-atlas-concierge-head h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.a36-atlas-concierge-head p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.a36-atlas-concierge-link {
  display: block;
  padding: 0.7rem 1rem;
  text-align: center;
  background: var(--atlas-mango);
  color: var(--atlas-ink) !important;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: transform 0.2s, filter 0.2s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.a36-atlas-concierge-link:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.a36-atlas-concierge-link + .a36-atlas-concierge-link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88) !important;
}

.a36-atlas-concierge-link + .a36-atlas-concierge-link:hover {
  background: rgba(255, 255, 255, 0.06);
  filter: none;
}

.a36-atlas-concierge-meta {
  margin: 0;
  font-size: 0.72rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.a36-atlas-concierge-card {
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.a36-atlas-concierge-card h4 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--atlas-mint);
}

.a36-atlas-concierge-card p {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  line-height: 1.5;
}

.a36-atlas-concierge-card p:last-child {
  margin-bottom: 0;
}

.a36-atlas-concierge-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.a36-atlas-concierge-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.a36-atlas-concierge-nav a:hover {
  color: var(--atlas-mango) !important;
  border-bottom-color: var(--atlas-mango);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .a36-atlas-hero {
    clip-path: none;
  }

  .a36-atlas-hero-inner {
    grid-template-columns: 1fr;
  }

  .a36-atlas-grid {
    grid-template-columns: 1fr;
  }

  .a36-atlas-concierge {
    grid-column: 1;
    grid-row: auto;
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    clip-path: none;
  }

  .a36-atlas-concierge-head {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .a36-atlas-meter {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding-bottom: 0.75rem;
  }

  .a36-atlas-meter-track {
    display: none;
  }

  .a36-atlas-meter-btn {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 0.7rem 0.85rem;
    background: var(--atlas-surface);
    border: 1px solid rgba(11, 19, 32, 0.08);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  }

  .a36-atlas-meter-btn.is-active {
    border-color: var(--atlas-mint);
    background: #fff;
  }

  .a36-atlas-meter-label {
    max-width: none;
    flex: 1;
  }

  .a36-atlas-chapter {
    grid-template-columns: 1fr;
  }

  .a36-atlas-intro {
    clip-path: none;
    padding: 1.5rem 1.25rem;
  }

  .a36-atlas-tile {
    clip-path: none;
  }

  .a36-atlas-tile-a {
    margin: 0;
    padding: 0.85rem 1.2rem 1.2rem;
  }

  .a36-atlas-concierge {
    display: flex;
    clip-path: none;
  }

  .a36-atlas-search {
    clip-path: none;
  }
}

@media (max-width: 480px) {
  .a36-atlas-meter {
    grid-template-columns: 1fr;
  }

  .a36-atlas-watermark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a36-atlas-kicker::before,
  .a36-atlas-search::after {
    animation: none;
  }
}
