/* ==========================================================================
   CrüTech "Arcade" layer
   Loaded AFTER theme-default.css. Keeps the CrüTech logo cyan as the hero
   colour, then adds a playful "player colours" palette, chunky press-able
   buttons, sticker cards and circuit/power-cross motifs from the logo.
   Remove the <link> in BaseLayout.astro to revert to the original look.
   ========================================================================== */

:root {
  /* Brand — sampled from crutech-logo.png */
  --brand: #6acce5;
  --brand-bright: #a8e6f5;
  --brand-deep: #2a9fc0;

  /* Player colours */
  --sun: #ffd166;   /* light / faith */
  --pink: #ff7aa8;
  --violet: #a58cff;
  --mint: #4fe3b2;

  /* Re-map the original tokens so every existing rule picks these up */
  --cyan: var(--brand);
  --cyan-bright: var(--brand-bright);
  --lime: var(--mint);
  --coral: var(--pink);

  --bg: #080b1d;
  --surface: #11163a;
  --surface-2: #171d48;
  --surface-strong: #11163a;
  --line: rgba(168, 230, 245, 0.14);
  --line-strong: rgba(168, 230, 245, 0.34);
  --text: #f2f7ff;
  --muted: #a7b3d6;

  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 14px;

  --display: "Fredoka", "Outfit", system-ui, sans-serif;
  --pixel: "Silkscreen", "JetBrains Mono", monospace;

  --press: 0 6px 0 rgba(3, 5, 18, 0.9);
  --press-sm: 0 4px 0 rgba(3, 5, 18, 0.9);

  --accent: var(--brand);

  /* Power-cross glyph from the logo (power ring + cross), as a mask */
  --glyph-power: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.2 6.6a8 8 0 1 0 9.6 0' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M12 2.2v10.4M8.6 5.4h6.8' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body {
  background:
    radial-gradient(60rem 40rem at 10% -10%, rgba(106, 204, 229, 0.18), transparent 60%),
    radial-gradient(50rem 36rem at 95% 10%, rgba(165, 140, 255, 0.14), transparent 60%),
    radial-gradient(50rem 40rem at 50% 105%, rgba(255, 122, 168, 0.08), transparent 60%),
    var(--bg);
}

/* Circuit-dot field instead of a flat grid */
body::before {
  background-image: radial-gradient(rgba(168, 230, 245, 0.16) 1.4px, transparent 1.6px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000, transparent 80%);
}

.site-shell::before { background: rgba(106, 204, 229, 0.5); }
.site-shell::after { background: rgba(165, 140, 255, 0.4); }

::selection {
  background: var(--sun);
  color: #1a1400;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

h1, h2, h3,
.hero h1,
.section-heading h2,
.section-copy h2,
.cta-panel h2,
.page-hero__title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-heading h2,
.section-copy h2,
.cta-panel h2 {
  line-height: 1.02;
}

/* Squiggle highlight under the last word-ish of section titles */
.section-heading h2 {
  position: relative;
  padding-bottom: 0.9rem;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 5.5rem;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 10'%3E%3Cpath d='M2 6c6-5 10-5 16 0s10 5 16 0 10-5 16 0 10 5 16 0 10-5 16 0' fill='none' stroke='%236acce5' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain;
}

/* --------------------------------------------------------------------------
   Eyebrows → pixel-font "level labels" with the power-cross glyph
   -------------------------------------------------------------------------- */

.eyebrow,
.hero .eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--glyph-power) center / contain no-repeat;
  mask: var(--glyph-power) center / contain no-repeat;
}

.hero .eyebrow { color: var(--sun); }

/* --------------------------------------------------------------------------
   Utility bar / announcement / header
   -------------------------------------------------------------------------- */

.utility-bar__items {
  background: rgba(10, 13, 34, 0.85);
  border-color: var(--line);
}

.utility-bar__items span,
.utility-bar__items a {
  color: var(--muted);
}

.utility-bar__items a { color: var(--brand); }

.utility-bar__items span:not(:last-child)::after,
.utility-bar__items a:not(:last-child)::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.6;
}

.announcement-bar {
  background: linear-gradient(100deg, rgba(255, 209, 102, 0.16), rgba(255, 122, 168, 0.12) 55%, rgba(165, 140, 255, 0.14));
  border: 2px solid rgba(255, 209, 102, 0.35);
  border-radius: var(--radius-md);
  box-shadow: var(--press-sm);
}

.announcement-bar::before {
  background: var(--sun) !important;
  color: #2a1d00 !important;
  font-family: var(--display);
  font-weight: 700;
  border-radius: 50%;
  animation: bob 2.4s ease-in-out infinite;
}

.announcement-bar strong { color: var(--sun); }

.topbar {
  background: rgba(12, 16, 42, 0.82);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.75rem 0.65rem 1.1rem;
  box-shadow: var(--press-sm), 0 18px 40px rgba(2, 6, 16, 0.45);
}

.brand__logo {
  height: 2.75rem;
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand__logo { transform: rotate(90deg) scale(1.06); }

.brand__text {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.brand__subtext {
  font-family: var(--pixel);
  font-size: 0.6rem;
  color: var(--brand);
  letter-spacing: 0.08em;
}

.nav {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  gap: 0.35rem;
}

.nav > a,
.nav-dropdown__toggle {
  padding: 0.5rem 0.85rem !important;
  border-radius: 999px;
  background-image: none !important;
  color: var(--text);
  line-height: 1.2;
}

.nav > a:hover,
.nav > a:focus-visible,
.nav-dropdown__toggle:hover,
.nav-dropdown.is-open .nav-dropdown__toggle {
  background-color: rgba(106, 204, 229, 0.14);
  color: var(--brand-bright);
  transform: translateY(-2px);
}

.nav-dropdown__toggle {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown__menu {
  background: rgba(14, 18, 46, 0.98);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--press-sm), 0 24px 50px rgba(2, 6, 16, 0.5);
}

.nav-dropdown__menu a {
  border-radius: 10px;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
  background: rgba(106, 204, 229, 0.12);
  color: var(--brand-bright);
}

/* The CTA was invisible (dark text, background removed) — make it a real button */
.nav .nav__cta,
.nav .nav__cta:hover {
  background: var(--sun) !important;
  background-image: none !important;
  background-size: auto !important;
  color: #2a1d00 !important;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 0.6rem 1.1rem !important;
  font-weight: 700;
  box-shadow: var(--press-sm);
  margin-left: 0.4rem;
}

.nav .nav__cta:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(3, 5, 18, 0.9); }
.nav .nav__cta:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(3, 5, 18, 0.9); }

@media (min-width: 761px) and (max-width: 1180px) {
  .nav .nav__cta { display: none; }
}

.nav-toggle {
  border-radius: 50%;
  border: 2px solid var(--line-strong);
}

/* --------------------------------------------------------------------------
   Buttons — chunky "press start" arcade buttons
   -------------------------------------------------------------------------- */

.button {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  padding: 0.85rem 1.6rem;
  box-shadow: var(--press);
  transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 160ms ease, background 200ms ease;
}

.button--primary::before,
.button--ghost::before {
  content: none;
}

.button--primary {
  background: linear-gradient(180deg, var(--brand-bright), var(--brand) 55%, var(--brand-deep));
  color: #04202b;
  box-shadow: var(--press), 0 18px 34px rgba(106, 204, 229, 0.25);
}

.button--primary::after {
  /* little ▶ "start" arrow that nudges on hover */
  content: "";
  position: static;
  inset: auto;
  width: 0;
  height: 0;
  margin-left: 0.6rem;
  border-left: 0.5rem solid currentColor;
  border-top: 0.32rem solid transparent;
  border-bottom: 0.32rem solid transparent;
  background: none;
  transform: none;
  transition: transform 200ms ease;
}

.button--primary:hover::after,
.button--primary:focus-visible::after {
  transform: translateX(4px);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--line-strong);
  color: var(--text);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--brand);
  color: var(--brand-bright);
  background: rgba(106, 204, 229, 0.08);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 rgba(3, 5, 18, 0.9), 0 20px 36px rgba(106, 204, 229, 0.22);
}

.button:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 rgba(3, 5, 18, 0.9);
  transition-duration: 60ms;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero,
.page-hero {
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  clip-path: none;
  background:
    radial-gradient(40rem 30rem at 0% 0%, rgba(106, 204, 229, 0.16), transparent 60%),
    radial-gradient(30rem 26rem at 100% 100%, rgba(165, 140, 255, 0.16), transparent 60%),
    linear-gradient(160deg, #10153a, #0b0f29);
  box-shadow: 0 10px 0 rgba(3, 5, 18, 0.85), 0 40px 90px rgba(2, 6, 16, 0.55);
}

.page-hero {
  padding: 3rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Replace the floating squares with the actual logo circuit, slowly spinning */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  top: -9rem;
  left: -9rem;
  right: auto;
  width: 30rem;
  height: 30rem;
  background: url("/assets/crutech-logo.png") center / contain no-repeat;
  opacity: 0.07;
  animation: spinSlow 80s linear infinite;
  pointer-events: none;
}

.page-hero::before {
  left: auto;
  right: -8rem;
  top: -8rem;
  width: 24rem;
  height: 24rem;
}

.hero::after {
  background-image: radial-gradient(rgba(168, 230, 245, 0.12) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
}

.hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.hero__brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  background: linear-gradient(100deg, #ffffff 0%, var(--brand-bright) 35%, var(--brand) 60%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 6px 0 rgba(3, 5, 18, 0.9));
}

.hero__h1-sub {
  color: var(--muted) !important;
  font-family: "Outfit", sans-serif;
}

.hero__lede {
  font-family: var(--display);
  font-weight: 500;
}

.trust-pill {
  margin-bottom: 1rem;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-family: "Outfit", sans-serif;
  font-weight: 500;
}

/* Chips → colourful "skill tags" */
.hero__chips {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero__chips li {
  --accent: var(--brand);
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__chips li::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  vertical-align: 0.05em;
}

.hero__chips li:nth-child(5n + 2) { --accent: var(--pink); }
.hero__chips li:nth-child(5n + 3) { --accent: var(--sun); }
.hero__chips li:nth-child(5n + 4) { --accent: var(--violet); }
.hero__chips li:nth-child(5n + 5) { --accent: var(--mint); }

.hero__chips li:hover { transform: translateY(-3px) rotate(-2deg); }

.hero__mini-proof div {
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.hero__mini-proof div::before { content: none; }

.hero__mini-proof strong {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--sun);
}

.hero__mini-proof div:nth-child(2) strong { color: var(--brand); }
.hero__mini-proof div:nth-child(3) strong { color: var(--pink); }

.hero-card {
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
}

.hero-card--photo-main {
  border: 3px solid var(--brand);
  box-shadow: 10px 10px 0 rgba(106, 204, 229, 0.25), var(--shadow);
  transform: rotate(1.2deg);
}

.hero-card--photo-side {
  border: 3px solid var(--pink);
  box-shadow: -8px 8px 0 rgba(255, 122, 168, 0.22), var(--shadow);
}

.hero-card__overlay {
  border-radius: var(--radius-sm) !important;
  background: rgba(10, 13, 34, 0.82) !important;
  border: 2px solid var(--line) !important;
  backdrop-filter: blur(10px);
}

.hero-card__overlay strong {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--sun);
}

.hero-card--stats > div {
  border-left: 4px solid var(--brand);
  padding-left: 0.85rem;
}

.hero-card--stats > div:nth-child(2) { border-left-color: var(--pink); }
.hero-card--stats > div:nth-child(3) { border-left-color: var(--sun); }

.hero-card--stats strong { font-family: var(--display); }

.page-hero__title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 0.98;
}

.hero-card--page {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.page-hero__stat strong {
  font-family: var(--display);
  color: var(--sun);
}

.page-hero__stat:nth-child(3n + 2) strong { color: var(--brand); }
.page-hero__stat:nth-child(3n + 3) strong { color: var(--pink); }

/* --------------------------------------------------------------------------
   Sticker cards — shared treatment with rotating "player colours"
   -------------------------------------------------------------------------- */

.quick-access-card,
.info-card,
.feature-card,
.confidence-card,
.detail-card,
.timeline__item,
.highlight-panel article,
.proof-card,
.segment-card,
.support-card,
.prep-card,
.packing-card,
.elective-card,
.showcase-card,
.lvc-result-card,
.timeline-callout,
.quote-panel,
.cta-panel,
.faq-item,
.breakdown-intro,
.info-banner {
  border-radius: var(--radius-md) !important;
  border: 2px solid var(--line) !important;
  background: linear-gradient(170deg, var(--surface-2), var(--surface)) !important;
  box-shadow: var(--press), 0 24px 50px rgba(2, 6, 16, 0.35);
  clip-path: none !important;
}

/* Drop the old corner brackets */
.quick-access-card::before,
.quick-access-card::after,
.info-card::before,
.feature-card::before,
.confidence-card::before,
.detail-card::before,
.highlight-panel article::before,
.proof-card::before,
.segment-card::before {
  content: none !important;
}

/* Player-colour cycle */
:is(.quick-access-grid, .info-grid, .feature-grid, .confidence-grid, .details-grid, .timeline, .highlight-panel, .proof-grid, .segment-grid, .support-grid, .elective-grid) > * {
  --accent: var(--brand);
}

:is(.quick-access-grid, .info-grid, .feature-grid, .confidence-grid, .details-grid, .timeline, .highlight-panel, .proof-grid, .segment-grid, .support-grid, .elective-grid) > :nth-child(4n + 2) { --accent: var(--pink); }
:is(.quick-access-grid, .info-grid, .feature-grid, .confidence-grid, .details-grid, .timeline, .highlight-panel, .proof-grid, .segment-grid, .support-grid, .elective-grid) > :nth-child(4n + 3) { --accent: var(--sun); }
:is(.quick-access-grid, .info-grid, .feature-grid, .confidence-grid, .details-grid, .timeline, .highlight-panel, .proof-grid, .segment-grid, .support-grid, .elective-grid) > :nth-child(4n + 4) { --accent: var(--violet); }

/* Coloured top "health bar" on each card */
:is(.quick-access-card, .info-card, .feature-card, .confidence-card, .detail-card, .timeline__item, .highlight-panel article, .segment-card, .support-card, .elective-card) {
  position: relative;
  overflow: hidden;
}

:is(.quick-access-card, .info-card, .feature-card, .confidence-card, .detail-card, .timeline__item, .highlight-panel article, .segment-card, .support-card, .elective-card)::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: auto !important;
  height: 5px !important;
  border: 0 !important;
  background: var(--accent) !important;
  opacity: 0.9;
}

:is(.quick-access-card, .info-card, .feature-card, .confidence-card, .detail-card, .timeline__item, .highlight-panel article, .proof-card, .segment-card, .support-card, .elective-card, .showcase-card):hover {
  border-color: color-mix(in srgb, var(--accent, var(--brand)) 70%, transparent) !important;
  box-shadow: 0 10px 0 rgba(3, 5, 18, 0.9), 0 0 0 4px color-mix(in srgb, var(--accent, var(--brand)) 18%, transparent), 0 30px 60px rgba(2, 6, 16, 0.45);
}

/* Labels inside cards pick up the card's colour */
.quick-access-card__kicker,
.info-card__label,
.detail-card span,
.timeline__item span,
.segment-card__tag,
.elective-card__tag {
  font-family: var(--pixel) !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  color: var(--accent, var(--brand)) !important;
}

.info-card h3,
.feature-card h3,
.confidence-card h3,
.timeline__item h3,
.highlight-panel h3,
.quick-access-card h3,
.proof-card h3,
.segment-card h3,
.elective-card h3,
.detail-card strong {
  font-family: var(--display);
  font-weight: 600;
  color: var(--text);
}

.quick-access-card h3 { font-size: 1.35rem; }

/* Quick access → level select */
.quick-access-grid { counter-reset: lvl; }

.quick-access-card {
  counter-increment: lvl;
  padding-top: 1.8rem;
}

.quick-access-card h3::after {
  content: " →";
  display: inline-block;
  color: var(--accent);
  transition: transform 200ms ease;
}

.quick-access-card:hover h3::after { transform: translateX(5px); }

.quick-access-card__kicker::before {
  content: "LVL " counter(lvl, decimal-leading-zero) " · ";
  opacity: 0.65;
}

/* Info cards — dot becomes a glowing node */
.info-card__dot {
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 18px var(--accent);
}

.info-grid > .info-card:nth-child(3) { transform: none; }

.info-strip__note {
  border-radius: var(--radius-sm) !important;
  border: 2px dashed var(--line-strong) !important;
}

/* Icons (highlight + feature) → chunky tiles */
.highlight-panel__icon,
.feature-card__icon {
  border-radius: 14px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  background: var(--accent);
  color: #0a0d22;
  font-family: var(--pixel);
  font-weight: 700;
  box-shadow: var(--press-sm);
  transform: rotate(-4deg);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

:is(.feature-card, .highlight-panel article):hover :is(.feature-card__icon, .highlight-panel__icon) {
  transform: rotate(6deg) scale(1.12);
}

.feature-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.highlight-panel article:nth-child(2) { margin-left: 2rem; }
.highlight-panel article:nth-child(3) { margin-left: 0.75rem; }

/* Feature bento: the Bible card spans the full row and glows gold */
.feature-grid > .feature-card:nth-child(6) {
  grid-column: 1 / -1;
}

.feature-card--faith {
  --accent: var(--sun) !important;
  background:
    radial-gradient(30rem 14rem at 0% 0%, rgba(255, 209, 102, 0.18), transparent 70%),
    linear-gradient(170deg, var(--surface-2), var(--surface)) !important;
  border-color: rgba(255, 209, 102, 0.4) !important;
}

/* Proof + showcase photo cards */
.proof-card {
  overflow: hidden;
  padding: 0 !important;
}

.proof-card img {
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 13rem !important;
  object-fit: cover;
  border-bottom: 4px solid var(--accent);
  transition: transform 500ms ease;
}

.proof-card:hover img { transform: scale(1.04); }

.proof-card h3,
.proof-card p {
  padding: 0 1.3rem;
}

.proof-card h3 { margin-top: 1.1rem; }
.proof-card p { padding-bottom: 1.3rem; }

.showcase-card { overflow: hidden; }

.showcase-card img { border-bottom: 4px solid var(--brand); }
.program-showcase > :nth-child(2) img { border-bottom-color: var(--pink); }

/* --------------------------------------------------------------------------
   Faith / quote panels — warm "light" treatment
   -------------------------------------------------------------------------- */

.split > .quote-panel:only-child {
  grid-column: 1 / -1;
}

.quote-panel {
  overflow: hidden;
  grid-template-columns: 0.85fr 1.15fr;
}

#faith .quote-panel {
  border-color: rgba(255, 209, 102, 0.45) !important;
  background:
    radial-gradient(36rem 24rem at 85% 0%, rgba(255, 209, 102, 0.2), transparent 65%),
    linear-gradient(170deg, var(--surface-2), var(--surface)) !important;
}

#faith .quote-panel__content {
  position: relative;
}

/* Big soft power-cross watermark behind the verse */
#faith .quote-panel__content::before {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  width: 7rem;
  height: 7rem;
  background: var(--sun);
  opacity: 0.12;
  -webkit-mask: var(--glyph-power) center / contain no-repeat;
  mask: var(--glyph-power) center / contain no-repeat;
  pointer-events: none;
}

#faith .eyebrow { color: var(--sun); }

.quote-panel blockquote {
  font-family: var(--display);
  font-weight: 600;
  color: var(--text);
}

#faith .quote-panel blockquote {
  background: linear-gradient(100deg, #fff6d8, var(--sun));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quote-panel__content {
  padding: 2.6rem;
}

/* --------------------------------------------------------------------------
   Hype bands → colourful marquee pills
   -------------------------------------------------------------------------- */

.hype-band__track span {
  font-family: var(--display) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  border-radius: 999px !important;
  border: 2px solid rgba(0, 0, 0, 0.3) !important;
  color: #0a0d22 !important;
  background: var(--brand) !important;
  box-shadow: var(--press-sm);
}

.hype-band__track span:nth-child(4n + 2) { background: var(--pink) !important; }
.hype-band__track span:nth-child(4n + 3) { background: var(--sun) !important; }
.hype-band__track span:nth-child(4n + 4) { background: var(--violet) !important; }

/* --------------------------------------------------------------------------
   Confidence (parents) section — calmer, still friendly
   -------------------------------------------------------------------------- */

.section--accent::before {
  clip-path: none;
  border-radius: 36px;
  border: 2px solid var(--line);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(79, 227, 178, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.02);
}

.confidence-card h3::before {
  content: "";
  display: inline-block;
  width: 1.3rem;
  height: 1.3rem;
  margin-right: 0.55rem;
  vertical-align: -0.2em;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%230a0d22' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat;
}

/* --------------------------------------------------------------------------
   Testimonials → chat bubbles
   -------------------------------------------------------------------------- */

.testimonial-slide {
  border-radius: 28px 28px 28px 8px !important;
  border: 2px solid var(--line-strong) !important;
  background: linear-gradient(170deg, var(--surface-2), var(--surface)) !important;
  box-shadow: var(--press);
}

.testimonial-slide p {
  font-family: var(--display) !important;
  font-weight: 600;
}

.testimonial-slide cite {
  font-family: var(--pixel);
  font-style: normal;
  color: var(--pink) !important;
}

.testimonial-dot {
  border-radius: 50% !important;
}

.testimonial-dot.is-active {
  background: var(--sun) !important;
  transform: scale(1.3);
}

/* --------------------------------------------------------------------------
   FAQ — fix collapsed answers leaving empty padding, add +/× toggle
   -------------------------------------------------------------------------- */

.faq-answer > * {
  min-height: 0;
  overflow: hidden;
}

.faq-answer p {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: padding 260ms ease, opacity 200ms ease, transform 260ms ease;
}

.faq-item.is-open .faq-answer p {
  padding-bottom: 1.2rem !important;
}

.faq-item {
  box-shadow: var(--press-sm);
}

.faq-item.is-open {
  border-color: color-mix(in srgb, var(--brand) 60%, transparent) !important;
}

.faq-question {
  font-family: var(--display) !important;
  font-weight: 600 !important;
  font-size: 1.08rem !important;
  padding: 1.1rem 1.2rem !important;
}

/* --------------------------------------------------------------------------
   Timeline → quest path
   -------------------------------------------------------------------------- */

.timeline__item:nth-child(2n) { transform: translateY(1.2rem); }

.timeline__item::before { content: none !important; }

.timeline__item span {
  display: inline-block !important;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

/* --------------------------------------------------------------------------
   CTA panel
   -------------------------------------------------------------------------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--brand) 45%, transparent) !important;
  background:
    radial-gradient(30rem 20rem at 100% 100%, rgba(255, 122, 168, 0.16), transparent 70%),
    radial-gradient(30rem 20rem at 0% 0%, rgba(106, 204, 229, 0.2), transparent 70%),
    linear-gradient(170deg, var(--surface-2), var(--surface)) !important;
  box-shadow: 0 10px 0 rgba(3, 5, 18, 0.9), 0 40px 80px rgba(2, 6, 16, 0.5);
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -6rem;
  width: 20rem;
  height: 20rem;
  background: url("/assets/crutech-logo.png") center / contain no-repeat;
  opacity: 0.1;
  animation: spinSlow 60s linear infinite reverse;
  pointer-events: none;
}

.cta-panel > * { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Electives / filters / misc pages
   -------------------------------------------------------------------------- */

.elective-filter {
  font-family: var(--display) !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  border: 2px solid var(--line-strong) !important;
  box-shadow: var(--press-sm);
}

.elective-filter.is-active {
  background: var(--sun) !important;
  color: #2a1d00 !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

.gallery-item {
  border-radius: var(--radius-sm) !important;
  border: 2px solid var(--line) !important;
  overflow: hidden;
}

.gallery-item:nth-child(4n + 1):hover { border-color: var(--brand) !important; }
.gallery-item:nth-child(4n + 2):hover { border-color: var(--pink) !important; }
.gallery-item:nth-child(4n + 3):hover { border-color: var(--sun) !important; }
.gallery-item:nth-child(4n + 4):hover { border-color: var(--violet) !important; }

.lvc-tally__score {
  font-family: var(--display) !important;
}

.lvc-tally__side:first-child .lvc-tally__score { color: var(--brand) !important; }
.lvc-tally__side:last-child .lvc-tally__score { color: var(--pink) !important; }

.register-form input,
.register-form select,
.register-form textarea {
  border-radius: var(--radius-sm) !important;
  border: 2px solid var(--line-strong) !important;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(106, 204, 229, 0.18);
}

/* --------------------------------------------------------------------------
   Footer / scroll progress
   -------------------------------------------------------------------------- */

.scroll-progress__bar {
  background: linear-gradient(90deg, var(--brand), var(--violet), var(--pink), var(--sun));
}

.footer__col img[src*="crutech-logo"] {
  animation: spinSlow 40s linear infinite;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(-50%) rotate(-6deg); }
  50% { transform: translateY(calc(-50% - 3px)) rotate(6deg); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .feature-grid > .feature-card:nth-child(6) { grid-column: span 2; }
  .highlight-panel article:nth-child(n) { margin-left: 0; }
}

@media (max-width: 760px) {
  .utility-bar__items {
    flex-direction: row;
    gap: 0.4rem 0.9rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
  }

  .utility-bar__items span:nth-child(2),
  .utility-bar__items span:nth-child(3) {
    display: none;
  }

  .utility-bar__items span,
  .utility-bar__items a {
    font-size: 0.72rem;
  }

  .topbar {
    border-radius: 24px;
    padding: 0.65rem 0.75rem 0.65rem 0.9rem;
  }

  .nav .nav__cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .nav > a,
  .nav-dropdown__toggle {
    padding: 0.6rem 0.8rem !important;
  }

  .hero::before {
    width: 20rem;
    height: 20rem;
    top: -6rem;
    left: -6rem;
  }

  .hero,
  .page-hero {
    padding: 2rem 1.25rem;
  }

  .hero-card--photo-main { transform: none; }

  .feature-grid > .feature-card:nth-child(6) { grid-column: span 1; }

  .timeline__item:nth-child(2n) { transform: none; }

  .quote-panel__content { padding: 1.6rem; }

  .button { width: auto; }
}
