/* Counselling hub — light academic theme */
body.counseling-page {
  --cn-ink: #142033;
  --cn-muted: #5a6578;
  --cn-line: rgba(20, 32, 51, 0.1);
  --cn-paper: #eef3f8;
  --cn-surface: #ffffff;
  --cn-accent: #0b6e8a;
  --cn-accent-2: #e8a317;
  --cn-sky: #d7e8f5;
  background: var(--cn-paper);
  font-family: Sora, Outfit, "Segoe UI", sans-serif;
  color: var(--cn-ink);
}

body.counseling-page .topbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 32, 51, 0.06);
}

.cn-root { overflow: visible; }

/* —— Light hero (not dark) —— */
.cn-hero-band {
  position: relative;
  color: var(--cn-ink);
  padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 80px);
  margin-bottom: clamp(28px, 4vw, 48px);
  overflow: hidden;
  background:
    linear-gradient(165deg, #f7fbff 0%, #e8f1f8 48%, #f3f7fb 100%);
}

.cn-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cn-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(11, 110, 138, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 110, 138, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
}

.cn-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  animation: cn-orb-drift 14s ease-in-out infinite;
}

.cn-hero-orb-a {
  width: 280px;
  height: 280px;
  top: -60px;
  right: 8%;
  background: radial-gradient(circle at 35% 35%, rgba(232, 163, 23, 0.35), rgba(232, 163, 23, 0.05) 65%, transparent 70%);
}

.cn-hero-orb-b {
  width: 320px;
  height: 320px;
  left: -80px;
  bottom: -100px;
  background: radial-gradient(circle at 40% 40%, rgba(11, 110, 138, 0.28), rgba(11, 110, 138, 0.04) 60%, transparent 70%);
  animation-delay: -5s;
}

@keyframes cn-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.04); }
}

.cn-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.85fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.cn-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cn-accent);
}

.cn-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 11.5em;
  color: var(--cn-ink);
}

.cn-lead {
  margin: 0 0 18px;
  font-size: clamp(1.02rem, 1.55vw, 1.12rem);
  line-height: 1.65;
  color: var(--cn-muted);
  max-width: 36rem;
}

.cn-trust-line {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--cn-accent);
}

.cn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cn-btn:hover { transform: translateY(-2px); }

.cn-btn-primary {
  background: var(--cn-accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 12px 28px rgba(11, 110, 138, 0.28);
}

.cn-btn-primary:hover {
  background: #095a72;
  color: #fff;
}

.cn-btn-ghost {
  background: #fff;
  color: var(--cn-ink);
  border: 1px solid rgba(20, 32, 51, 0.12);
  box-shadow: 0 4px 14px rgba(20, 32, 51, 0.04);
}

.cn-btn-ghost:hover {
  border-color: rgba(11, 110, 138, 0.35);
  color: var(--cn-accent);
}

.cn-float-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.cn-float-chip span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cn-accent);
  background: rgba(11, 110, 138, 0.08);
  border: 1px solid rgba(11, 110, 138, 0.14);
  animation: cn-chip-in 0.65s ease backwards;
}

.cn-float-chip span:nth-child(1) { animation-delay: 0.05s; }
.cn-float-chip span:nth-child(2) { animation-delay: 0.12s; }
.cn-float-chip span:nth-child(3) { animation-delay: 0.19s; }
.cn-float-chip span:nth-child(4) { animation-delay: 0.26s; }

@keyframes cn-chip-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Hero side panel */
.cn-hero-panel {
  background: #fff;
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 24px;
  padding: 22px 20px 18px;
  box-shadow:
    0 20px 50px rgba(20, 32, 51, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  animation: cn-panel-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cn-panel-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.cn-hero-panel-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cn-accent);
}

.cn-hero-panel-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--cn-ink);
}

.cn-path {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: cn-path;
}

.cn-path li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px 12px 12px 44px;
  border-radius: 14px;
  background: #f4f8fb;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  counter-increment: cn-path;
}

.cn-path li::before {
  content: counter(cn-path);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: #fff;
  color: var(--cn-accent);
  border: 1px solid rgba(11, 110, 138, 0.2);
}

.cn-path li.is-on {
  background: rgba(11, 110, 138, 0.08);
  border-color: rgba(11, 110, 138, 0.2);
}

.cn-path li.is-on::before {
  background: var(--cn-accent);
  color: #fff;
  border-color: var(--cn-accent);
}

.cn-path li:hover {
  transform: translateX(3px);
}

.cn-path b {
  font-size: 13px;
  font-weight: 750;
  color: var(--cn-ink);
}

.cn-path span {
  font-size: 11px;
  color: var(--cn-muted);
  line-height: 1.35;
}

.cn-hero-panel-link {
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  color: var(--cn-accent);
  text-decoration: none;
}

.cn-hero-panel-link:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .cn-hero {
    grid-template-columns: 1fr;
  }
  .cn-hero-panel { max-width: 420px; }
}

.cn-device {
  margin: 0;
  justify-self: end;
  width: min(100%, 292px);
}

.cn-device-frame {
  position: relative;
  padding: 11px;
  border-radius: 42px;
  background: linear-gradient(160deg, #3a4048 0%, #1a1f26 40%, #0b0e12 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cn-device-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #05070a;
  pointer-events: none;
}

.cn-device-screen {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #07090c;
  aspect-ratio: 9 / 16;
}

.cn-page-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #07090c;
}

.cn-device-home {
  display: block;
  width: 32%;
  height: 4px;
  margin: 10px auto 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.cn-device figcaption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(238, 241, 246, 0.55);
}

.cn-video-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: #8b93a1;
  font-size: 13px;
}

.cn-block { padding: clamp(28px, 5vw, 56px) 0; }

.cn-block-head {
  max-width: 42rem;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.cn-block-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
}

.cn-block-head p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--cn-muted);
}

.cn-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}

.cn-intro-split .cn-block-head { margin-bottom: 0; max-width: none; }

.cn-pain-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.cn-pain-logos li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--cn-line);
}

.cn-pain-logos li span {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #fdecec;
  color: #9b2c2c;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.cn-pain-logos b {
  font-size: 12px;
  font-weight: 700;
  color: var(--cn-ink);
}

.cn-pain-logos em {
  font-style: normal;
  font-size: 11px;
  color: var(--cn-muted);
  line-height: 1.3;
}

.cn-band {
  background: var(--cn-surface);
  border-top: 1px solid var(--cn-line);
  border-bottom: 1px solid var(--cn-line);
}

.cn-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
}

.cn-diff-grid > div {
  padding: 18px 18px 14px;
  border-radius: 16px;
  border: 1px solid var(--cn-line);
  background: #f8f9fb;
}

.cn-diff-grid > div.is-zeline {
  background: #f3f7ef;
  border-color: rgba(31, 107, 42, 0.18);
}

.cn-diff-grid h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.cn-diff-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--cn-muted);
}

.cn-diff-grid li {
  margin: 7px 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.cn-diff-grid .is-zeline li { color: #2c3a2c; }

.cn-steps {
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  border: 0;
  counter-reset: fl-step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.cn-steps::before {
  content: "";
  position: absolute;
  top: 49px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, rgba(11, 110, 138, 0.15), rgba(11, 110, 138, 0.45), rgba(11, 110, 138, 0.15));
  transform-origin: left center;
  animation: cn-flow-line 1.4s ease both;
}

.cn-steps::after {
  content: "";
  position: absolute;
  top: 44px;
  left: 6%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0b6e8a;
  box-shadow: 0 0 0 6px rgba(11, 110, 138, 0.16), 0 0 16px rgba(11, 110, 138, 0.45);
  animation: cn-flow-dot 7s linear infinite;
  z-index: 2;
}

.cn-steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  border: 0;
  counter-increment: fl-step;
  position: relative;
  z-index: 1;
  animation: cn-step-in 0.7s ease backwards;
}

.cn-steps li:nth-child(1) { animation-delay: 0.15s; }
.cn-steps li:nth-child(2) { animation-delay: 0.4s; }
.cn-steps li:nth-child(3) { animation-delay: 0.65s; }
.cn-steps li:nth-child(4) { animation-delay: 0.9s; }

.cn-steps li::before {
  content: counter(fl-step, decimal-leading-zero);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(11, 110, 138, 0.4);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cn-accent);
  grid-row: auto;
  padding: 0;
  box-shadow: 0 6px 16px rgba(11, 110, 138, 0.12);
}

.cn-steps strong {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--cn-ink);
}

.cn-steps span {
  color: var(--cn-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@keyframes cn-flow-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes cn-flow-dot {
  from { left: 6%; }
  to { left: calc(94% - 12px); }
}

@keyframes cn-step-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.cn-check-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.cn-check-grid li {
  position: relative;
  padding: 12px 14px 12px 36px;
  border-radius: 12px;
  background: #f3f7ef;
  border: 1px solid rgba(31, 107, 42, 0.12);
  font-size: 0.95rem;
  font-weight: 650;
}

.cn-check-grid li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--cn-accent);
  font-weight: 800;
}

.cn-split-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.cn-split-3 h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.cn-split-3 p {
  margin: 0;
  color: var(--cn-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cn-split-3 a {
  color: var(--cn-accent);
  font-weight: 650;
  text-decoration: none;
}

.cn-split-3 a:hover { text-decoration: underline; }

.cn-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cn-contact-card {
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--cn-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.cn-contact-card:hover {
  border-color: rgba(31, 107, 42, 0.3);
  background: #f3f7ef;
  transform: translateY(-1px);
}

.cn-contact-card b {
  font-size: 14px;
  font-weight: 700;
  color: var(--cn-ink);
}

.cn-contact-card span {
  font-size: 12px;
  color: var(--cn-muted);
  line-height: 1.35;
  word-break: break-word;
}

.cn-faq { border-top: 1px solid var(--cn-line); }

.cn-faq details {
  border-bottom: 1px solid var(--cn-line);
}

.cn-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 650;
  font-size: 1rem;
  position: relative;
}

.cn-faq summary::-webkit-details-marker { display: none; }

.cn-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cn-accent);
  font-size: 1.25rem;
}

.cn-faq details[open] summary::after { content: "–"; }

.cn-faq p {
  margin: 0 0 16px;
  max-width: 44rem;
  color: var(--cn-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .cn-hero {
    grid-template-columns: 1fr;
  }

  .cn-hero-copy { padding-right: 64px; }

  .cn-device {
    justify-self: center;
    width: min(100%, 250px);
  }

  .cn-intro-split,
  .cn-diff-grid,
  .cn-split-3,
  .cn-check-grid,
  .cn-contact-grid {
    grid-template-columns: 1fr;
  }

  .cn-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .cn-steps {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0 8px 4px;
  }

  .cn-steps::before {
    top: 22px;
    bottom: 22px;
    left: 25px;
    right: auto;
    width: 2px;
    height: auto;
    transform-origin: top center;
    animation-name: cn-flow-line-y;
  }

  .cn-steps::after {
    left: 20px;
    top: 16px;
    animation-name: cn-flow-dot-y;
  }

  .cn-steps li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 2px;
    padding: 0 0 22px;
  }

  .cn-steps li::before {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .cn-steps strong { align-self: end; }
}

@keyframes cn-flow-line-y {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes cn-flow-dot-y {
  from { top: 16px; }
  to { top: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  .cn-btn,
  .cn-contact-card { transition: none; }
}

/* Motion — content always readable (no opacity trap on tall sections) */
.cn-reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .cn-reveal.is-in {
    animation: cn-soft-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}
@keyframes cn-soft-in {
  from { opacity: 0.35; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.cn-reveal-delay-1 { animation-delay: 0.06s; }
.cn-reveal-delay-2 { animation-delay: 0.12s; }
.cn-reveal-delay-3 { animation-delay: 0.18s; }

/* Brands */
.cn-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cn-brand {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px solid var(--cn-line);
  background: #fff;
  scroll-margin-top: 96px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cn-brand-jee {
  background: linear-gradient(155deg, #d4eef8 0%, #f7fbff 46%, #f3e7c4 100%);
  border-color: rgba(11, 110, 138, 0.28);
}

.cn-brand-neet {
  background: linear-gradient(155deg, #d4f3e3 0%, #f6fbf8 48%, #bfe8d2 100%);
  border-color: rgba(15, 107, 76, 0.28);
}

.cn-brand-jac {
  background: linear-gradient(155deg, #f8dce2 0%, #fff7f8 46%, #f0d4c0 100%);
  border-color: rgba(122, 31, 43, 0.28);
}

.cn-brand-jee .cn-brand-meta,
.cn-brand-jee .cn-brand-points li::before,
.cn-brand-jee .cn-brand-contacts a { color: #0b6e8a; }

.cn-brand-neet .cn-brand-meta,
.cn-brand-neet .cn-brand-points li::before,
.cn-brand-neet .cn-brand-contacts a { color: #0f6b4c; }

.cn-brand-jac .cn-brand-meta,
.cn-brand-jac .cn-brand-points li::before,
.cn-brand-jac .cn-brand-contacts a { color: #7a1f2b; }

.cn-brand:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 20, 28, 0.08);
  border-color: rgba(14, 77, 110, 0.22);
}

.cn-brand-meta {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cn-accent);
}

.cn-brand h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.cn-brand p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--cn-muted);
}

.cn-brand-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.cn-brand-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--cn-muted);
}

.cn-brand-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cn-accent);
  font-weight: 800;
  font-size: 0.8rem;
}

.cn-brand-contacts {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.cn-brand-contacts a {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--cn-accent);
  text-decoration: none;
  word-break: break-word;
}

.cn-brand-contacts a:hover { text-decoration: underline; }

.cn-brand-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.cn-brand-actions .cn-btn-dark,
.cn-brand-actions .cn-btn-line {
  margin-top: 0;
  width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  padding: 8px 8px;
}

.cn-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: #12200f;
  color: #f5f7fb;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cn-btn-dark:hover {
  transform: translateY(-1px);
  background: #1a2e18;
}

/* Glow on “Open brand site” buttons */
.cn-btn-glow,
.cn-desk-open,
.cn-brand-actions .cn-btn-dark,
.cn-desk-cta-actions .cn-btn-dark {
  background: linear-gradient(135deg, #0b6e8a 0%, #0a5a72 55%, #0e7a4a 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(11, 110, 138, 0.35),
    0 0 18px rgba(11, 110, 138, 0.45),
    0 0 36px rgba(232, 163, 23, 0.28);
  animation: cn-open-glow 2.2s ease-in-out infinite;
}

.cn-btn-glow:hover,
.cn-desk-open:hover,
.cn-brand-actions .cn-btn-dark:hover,
.cn-desk-cta-actions .cn-btn-dark:hover {
  background: linear-gradient(135deg, #0d7fa0 0%, #0c6a86 55%, #129058 100%);
  box-shadow:
    0 0 0 1px rgba(11, 110, 138, 0.5),
    0 0 24px rgba(11, 110, 138, 0.6),
    0 0 48px rgba(232, 163, 23, 0.4);
}

@keyframes cn-open-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(11, 110, 138, 0.35),
      0 0 14px rgba(11, 110, 138, 0.4),
      0 0 28px rgba(232, 163, 23, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(11, 110, 138, 0.55),
      0 0 22px rgba(11, 110, 138, 0.65),
      0 0 44px rgba(232, 163, 23, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cn-btn-glow,
  .cn-desk-open,
  .cn-brand-actions .cn-btn-dark,
  .cn-desk-cta-actions .cn-btn-dark,
  .cn-steps,
  .cn-steps::before,
  .cn-steps::after,
  .cn-steps li {
    animation: none;
  }
}

.cn-btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  color: var(--cn-ink);
  border: 1px solid var(--cn-line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cn-btn-line:hover {
  border-color: rgba(14, 77, 110, 0.4);
  transform: translateY(-1px);
}

/* Core central strip */
.cn-core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cn-core-grid .is-extra,
.cn-core-grid [data-mq-clone] {
  display: none;
}

.cn-browse-phone { display: none; }

.cn-core-card {
  position: relative;
  overflow: hidden;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(14, 77, 110, 0.14);
  background: linear-gradient(160deg, #ffffff 0%, #f3f7fb 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cn-core-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #f0c75e, #0e4d6e);
}

.cn-core-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(14, 77, 110, 0.1);
}

.cn-core-card .cn-core-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cn-accent);
}

.cn-core-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.cn-core-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--cn-muted);
}

.cn-core-card .cn-core-line {
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--cn-ink);
  line-height: 1.45;
}

/* Portal browser */
.cn-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--cn-line);
  background: #fff;
}

.cn-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cn-search {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--cn-line);
  background: #f8fafc;
  font: inherit;
  font-size: 14px;
  color: var(--cn-ink);
}

.cn-search:focus {
  outline: 2px solid rgba(14, 77, 110, 0.25);
  border-color: rgba(14, 77, 110, 0.35);
  background: #fff;
}

.cn-chip {
  appearance: none;
  border: 1px solid var(--cn-line);
  background: #fff;
  color: var(--cn-ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cn-chip:hover,
.cn-chip.is-on {
  background: #0e4d6e;
  border-color: #0e4d6e;
  color: #f5f7fb;
}

.cn-portal-meta {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--cn-muted);
}

.cn-portal-scroll {
  max-height: min(520px, 62vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--cn-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 10px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 110, 138, 0.45) rgba(11, 110, 138, 0.08);
}

.cn-portal-scroll:focus {
  outline: 2px solid rgba(11, 110, 138, 0.28);
  outline-offset: 2px;
}

.cn-portal-scroll::-webkit-scrollbar {
  width: 10px;
}

.cn-portal-scroll::-webkit-scrollbar-track {
  background: rgba(11, 110, 138, 0.06);
  border-radius: 999px;
}

.cn-portal-scroll::-webkit-scrollbar-thumb {
  background: rgba(11, 110, 138, 0.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.cn-portal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(11, 110, 138, 0.55);
  background-clip: padding-box;
  border: 2px solid transparent;
}

.cn-portal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cn-portal {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--cn-line);
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cn-portal:hover {
  transform: translateX(3px);
  border-color: rgba(14, 77, 110, 0.25);
  box-shadow: 0 10px 24px rgba(15, 20, 28, 0.05);
}

.cn-portal[hidden] { display: none !important; }

.cn-portal.is-featured {
  border-color: rgba(240, 199, 94, 0.55);
  background: linear-gradient(110deg, #fffdf6 0%, #ffffff 55%);
}

.cn-portal-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  justify-content: space-between;
}

.cn-portal-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--cn-ink);
}

.cn-portal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cn-portal-badges span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(14, 77, 110, 0.08);
  color: var(--cn-accent);
}

.cn-portal-line {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #3d4654;
}

.cn-portal-line strong {
  color: var(--cn-ink);
  font-weight: 700;
}

.cn-portal-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--cn-muted);
}

@keyframes cn-row-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.cn-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--cn-muted);
  border: 1px dashed var(--cn-line);
  border-radius: 14px;
}

.cn-seo-crawl {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cn-crosslink {
  margin: 22px 0 0;
  color: var(--cn-muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 44rem;
}

.cn-crosslink a {
  color: var(--cn-accent);
  font-weight: 650;
  text-decoration: none;
}

.cn-crosslink a:hover { text-decoration: underline; }

/* —— Dedicated brand desk pages —— */
.cn-desk .cn-desk-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cn-desk-panel-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cn-accent);
}

.cn-desk-panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
}

.cn-desk-panel p {
  margin: 0;
  color: var(--cn-muted);
  font-size: 15px;
  line-height: 1.55;
}

.cn-desk-open {
  align-self: flex-start;
  margin-top: 8px;
}

.cn-desk-open-note {
  margin: 0 !important;
  font-size: 12px !important;
  color: var(--cn-muted);
}

.cn-desk-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.cn-desk-points li {
  position: relative;
  padding: 14px 16px 14px 36px;
  background: var(--cn-surface);
  border: 1px solid var(--cn-line);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--cn-ink);
}

.cn-desk-points li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cn-accent);
}

.cn-desk-list {
  max-width: 40rem;
}

.cn-desk-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 4vw, 32px);
  background: linear-gradient(135deg, #f7fbff, #eef6fa);
  border: 1px solid var(--cn-line);
  border-radius: 16px;
}

.cn-desk-cta h2 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.cn-desk-cta p {
  margin: 0;
  color: var(--cn-muted);
  font-size: 15px;
  max-width: 36rem;
}

.cn-desk-cta-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1 1 260px;
  min-width: min(100%, 260px);
}

.cn-desk-cta-actions .cn-btn-dark,
.cn-desk-cta-actions .cn-btn-line {
  width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  padding: 8px 10px;
}

.cn-desk-more {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--cn-muted);
}

.cn-desk-more a {
  color: var(--cn-accent);
  font-weight: 650;
  text-decoration: none;
}

.cn-desk-more a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .cn-brand-grid,
  .cn-core-grid,
  .cn-desk-points {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cn-reveal,
  .cn-float-chip span,
  .cn-portal,
  .cn-brand {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
