/*
 * IKON Community™ — landing page
 * Component styles for the public landing page only. Tokens (color,
 * radius, spacing, shadow) come from theme.css — link that before this
 * file. Fonts are the one exception — see the block immediately below.
 */

/* ---------------------------------------------------------------
 * Fonts — Inter (headings + body) / JetBrains Mono (nav index numbers,
 * stat figures, badges) — a deliberate, confirmed pairing for the
 * public landing page and its header ONLY, replacing theme.css's own
 * Fraunces/Work Sans/IBM Plex Mono pairing just for this page's DOM
 * subtree. Not a change to theme.css itself (every other page —
 * Practitioner dashboard, Admin, auth screens — keeps the original
 * pairing untouched): `--font-heading`/`--font-body`/`--font-mono` are
 * plain CSS custom properties, resolved wherever they're *read* (every
 * rule in theme.css that does `font-family: var(--font-heading)`, for
 * example), not where they're *declared* — so redeclaring all three
 * here, scoped to `body[data-page="landing"]` (home.php's own <body>
 * carries that attribute), makes every one of theme.css's shared
 * typography rules resolve to Inter/JetBrains Mono automatically for
 * this page's own DOM, with zero changes to theme.css and zero risk of
 * leaking onto any other page. The actual font files are requested via
 * a <link> in home.php's own <head> (same "page-scoped extra font
 * request" shape the old Work-Sans-800 exception used), not an
 * `@import` here.
 * --------------------------------------------------------------- */
body[data-page="landing"] {
  --font-heading: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
}

/* ---- Live status strip (above the sticky nav) ----
 * Real data only: the online figure is App\Models\User::onlineCount()
 * (HomeController), the exact same 2-minute-heartbeat presence query
 * Connect's own sidebar and IKON Challenge's own "N online" prompt
 * already read — not a separate/fabricated counter, and not a
 * client-side jittered animation, since that would mean making up
 * numbers between real page loads.
 */
.land-topbar {
  position: sticky;
  top: 0;
  z-index: 51;
  background: linear-gradient(90deg, var(--indigo) 0%, #1c2b4d 60%, var(--indigo) 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  padding: 8px var(--space-8);
}

.land-topbar-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.land-topbar-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #6EE7B7;
  background: rgba(110, 231, 183, 0.14);
  border: 1px solid rgba(110, 231, 183, 0.28);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.land-topbar-live .live-dot {
  background: #6EE7B7;
}

.land-topbar-stat strong {
  color: #fff;
}

.land-topbar-link {
  margin-left: auto;
  color: #F3C6C0;
  font-weight: 600;
  font-size: 0.74rem;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.land-topbar-link:hover {
  color: #fff;
}

@media (max-width: 700px) {
  .land-topbar {
    padding: 7px var(--space-4);
  }

  .land-topbar-inner {
    gap: var(--space-2);
  }

  .land-topbar-link {
    display: none;
  }
}

/* ---- Sticky nav ----
 * A translucent, blurred "glass" bar rather than a flat opaque one —
 * theme-reactive via color-mix() on --paper, so it stays correct in
 * both light and dark mode without a second set of dark-mode-only
 * overrides.
 */
.land-nav {
  position: sticky;
  top: 34px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 14px var(--space-8);
  border-bottom: 1px solid var(--line);
  background: var(--paper); /* fallback for browsers without color-mix() support — a solid nav instead of a translucent one, never a broken/transparent bar */
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Real logo image (public/assets/img/logo.png — the full "IKON
 * COMMUNITY™" lockup, icon-mark + wordmark baked into one file),
 * replacing the old text-based wordmark this class used to style
 * directly. .land-brand is now just the clickable wrapper — a light
 * background here (the nav's own translucent --paper, and the footer's
 * solid --paper), so the logo's own dark/red-on-transparent coloring
 * reads correctly with no extra treatment needed, unlike the dashboard/
 * Admin sidebars (see practitioner.css/admin.css's own .side-brand,
 * which give it a light chip backdrop instead — a dark navy sidebar
 * background would make the logo's black "IKON" text unreadable).
 */
.land-brand {
  display: inline-flex;
  align-items: center;
}

.land-logo {
  height: 30px;
  width: auto;
  display: block;
}

.land-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.land-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.land-links a:hover {
  color: var(--gold);
  background: var(--surface-muted);
}

/* Icon prefix on each desktop nav link, replacing the old "01"-"05"
   mono numbers. stroke="currentColor" so it inherits .land-links a's
   own color exactly the way the label text already does — muted by
   default, the same var(--gold) on hover/focus, no separate color
   rule needed here. */
.land-link-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.land-link-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: flicker 1.8s ease-in-out infinite;
}

.land-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--indigo) 0%, #24345c 100%);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(22, 33, 62, 0.28);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.land-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(22, 33, 62, 0.34);
}

/* Groups the theme toggle with the outline "Explore" CTA and the solid
   Practitioner Login CTA so all three sit tight against each other as one
   row inside .land-nav's justify-content:space-between layout, instead of
   being spaced apart. */
.land-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Light/Dark mode toggle — same small circular icon-button vocabulary as
   the floating accessibility widget's own .a11y-toggle (accessibility.css),
   just inline in the nav instead of fixed/floating, and one size down
   since it sits among other nav controls rather than alone. Icon swap is
   pure CSS, keyed off the same html[data-theme] attribute theme.css's own
   token overrides read — public/js/theme.js only ever toggles that one
   attribute, never touches these two <svg> elements directly. */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .theme-icon-moon {
  display: block;
}

/* Secondary CTA — same sizing/padding/radius/font as .land-cta, ghost/outline
   treatment instead of filled. Padding is 1px tighter on each side than
   .land-cta's to offset the added border under box-sizing:border-box, so
   both buttons render at identical outer height/width and stay aligned. */
.land-cta-outline {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 17px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.land-cta-outline:hover {
  background: rgba(203, 45, 57, 0.1);
}

/* ---- Header profile chip — logged-in replacement for .land-cta's own
 * "IKON Practitioner Login" ----
 * Avatar + compact verified badge duplicated here rather than imported
 * from practitioner.css: this page family keeps its own copy of shared
 * visual vocabulary on purpose (see accessibility.css's own docblock on
 * why *that* file is the deliberate exception, not the norm). The badge
 * markup itself still comes from the one real shared partial
 * (partials/verified-badge.php, size 'xs') — only the CSS backing its
 * class names is duplicated, not the component.
 */
.land-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--indigo) 0%, #24345c 100%);
  color: #fff;
  padding: 6px 16px 6px 6px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(22, 33, 62, 0.28);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.land-profile-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(22, 33, 62, 0.34);
}

.land-avatar-badge-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.land-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.62rem;
  flex-shrink: 0;
  overflow: hidden;
}

.land-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Same compact-badge recipe as practitioner.css's .verify-badge/
   .verify-badge-xs — solid brand red, white checkmark, no label, sized
   for this 26px avatar (practitioner.css's own "xxs 26px" size step). */
.verify-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.verify-badge svg {
  stroke: #fff;
}

.verify-badge-xs {
  width: 10px;
  height: 10px;
  border-width: 1.5px;
}

.verify-badge-xs svg {
  width: 6px;
  height: 6px;
  stroke-width: 3.25;
}

/* ---- Mobile nav: hamburger + slide-down menu ----
 * Hidden entirely above 900px. Below it, .land-links and the standalone
 * .land-cta are replaced by a hamburger button; JS (public/js/landing.js)
 * toggles a `.nav-open` class on .land-nav, which drives everything below
 * via CSS (max-height transition on .mobile-menu, bar->X on .hamburger).
 * No JS runs the layout itself — it only flips one class.
 */
/* Wraps the mobile theme toggle + hamburger as one pair — hidden above
   900px same as .hamburger itself (its child .theme-toggle has no such
   rule of its own, so without this the desktop layout would show a
   second, wrapper-visible toggle next to the one already in
   .land-cta-group). Flipped to a flex row inside the mobile media query
   below. */
.mobile-nav-controls {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--indigo);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.land-nav.nav-open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.land-nav.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.land-nav.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .land-nav {
    flex-wrap: wrap;
    padding: 14px var(--space-6);
  }

  .land-links,
  .land-nav > .land-cta-group {
    display: none;
  }

  /* Groups the mobile theme toggle with the hamburger as one tight pair
     on the right of .land-nav's justify-content:space-between row —
     without this wrapper, a bare third flex child would float centered
     between the logo and the hamburger instead of sitting next to it. */
  .mobile-nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Both controls in the mobile header row share this rounded-square
     outline look, same 36px box .theme-toggle already used, just square
     instead of circular so the pair reads as one matched unit. */
  .mobile-header-theme-toggle,
  .hamburger {
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    /* visibility flips to hidden only after the collapse finishes, so links
       inside stay keyboard-focusable while the panel is visibly open and
       drop out of the tab order once it's actually closed */
    transition: max-height 0.28s ease, opacity 0.2s ease, visibility 0s linear 0.28s;
  }

  .land-nav.nav-open .mobile-menu {
    max-height: 460px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.28s ease, opacity 0.2s ease, visibility 0s linear 0s;
  }

  .mobile-menu-links {
    list-style: none;
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
  }

  .mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    transition: color var(--transition-fast);
  }

  .mobile-menu-links a:hover,
  .mobile-menu-links a:focus-visible {
    color: var(--gold);
  }

  /* Icon prefix on each mobile menu item, replacing the old "01"-"05"
     number + " — subtitle" text. Same currentColor inheritance as the
     desktop .land-link-icon, one size up to match this list's larger
     touch-target row height. */
  .mobile-menu-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
  }

  .mobile-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin: var(--space-4) 0 var(--space-3);
  }

  /* .land-profile-chip is display:inline-flex by default (avatar +
     "My Dashboard" text side by side, gap:8px between them) — .mobile-cta
     alone would flatten that to plain block/inline flow above and lose
     the gap entirely (gap has no effect outside a flex/grid container),
     so this compound selector (higher specificity than .mobile-cta
     alone, wins regardless of source order) keeps it a centered flex row
     instead, full-width like every other .mobile-cta but with its
     avatar+text still laid out correctly. */
  .land-profile-chip.mobile-cta {
    display: flex;
    justify-content: center;
  }

}

/* Extra breathing room on narrow phones (down to ~320px) */
@media (max-width: 480px) {
  .land-nav {
    padding: 12px var(--space-4);
  }

  .land-logo {
    height: 24px;
  }
}

/* ---- Hero ----
 * The `.radar-grid` background from UX.html (a faint centered crimson
 * glow + a 32px graph-paper line grid) layered UNDER this hero's own
 * pre-existing off-center accent glow and paper→bg vertical fade — all
 * five kept as one background-image stack rather than losing either
 * treatment, since a plain `background:` shorthand would otherwise
 * reset the other whenever one changed. `background-image`/
 * `background-size` are split out as their own properties specifically
 * so the dark-mode override two rules down only has to swap the image
 * layers (UX.html's own separate light/dark rgba values for the grid —
 * kept literal, not remapped to this app's own --gold, per the
 * request's own "add this exact background treatment") — it never
 * needs to repeat `background-size`, since only `background-image`
 * actually differs between the two modes. This paints as `.land-hero`'s
 * own element background, so it's always behind its own in-flow
 * content (.land-hero-grid and everything inside it) with no z-index
 * needed — and every rgba value here is ≤0.12 alpha, faint enough that
 * .land-hero-copy's own opaque text colors (var(--ink)/var(--ink-soft),
 * both near-solid) keep full contrast on top of it in both modes.
 */
.land-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-9) var(--space-8) 60px;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(190, 18, 60, 0.08) 0%, transparent 70%),
    linear-gradient(to right, rgba(156, 163, 175, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(156, 163, 175, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 85% 10%, rgba(203, 45, 57, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
  background-size: 100% 100%, 32px 32px, 32px 32px, 100% 100%, 100% 100%;
}

html[data-theme="dark"] .land-hero {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(225, 29, 72, 0.12) 0%, transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 85% 10%, rgba(203, 45, 57, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
}

.land-hero-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.land-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: var(--teal);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.eyebrow-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: block;
}

.eyebrow-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.6;
  animation: land-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes land-ping {
  0% { transform: scale(1); opacity: 0.6; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.land-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 660px;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.land-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold) 0%, #E1544A 55%, #E88A4E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.land-hero p {
  max-width: 540px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 30px;
}

.hbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: var(--space-8);
}

.btn-solid,
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-solid svg,
.btn-line svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-solid {
  background: linear-gradient(120deg, var(--indigo) 0%, var(--gold) 130%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(203, 45, 57, 0.28);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(203, 45, 57, 0.36);
}

.btn-line {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}

.btn-line svg {
  color: var(--gold);
}

.btn-line:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.land-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.land-stats div {
  font-family: var(--font-mono);
}

.land-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--ink);
}

.land-stats span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
  .land-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* ---- Hero visual: radar card ----
 * A restyled version of the same decorative "connected practitioners"
 * illustration this page has always shipped (.hero-network/.hn-*),
 * wrapped in a card with concentric radar rings and a slow rotating
 * sweep behind it to match the reference design's radar aesthetic.
 * Purely decorative (aria-hidden, no click handlers, nothing here
 * claims to be live data) — the one real figure on this card is the
 * "N online now" count in its header, the same App\Models\User::onlineCount()
 * value the top status strip already shows.
 */
.land-hero-visual {
  display: none;
}

@media (min-width: 1024px) {
  .land-hero-visual {
    display: block;
  }
}

.radar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
}

.radar-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.radar-card-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.radar-card-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
}

.hero-network {
  position: relative;
  height: 400px;
  border-radius: var(--radius-xl);
  background: var(--bg);
  overflow: hidden;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed var(--line);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.radar-ring-1 { width: 90%; height: 90%; }
.radar-ring-2 { width: 60%; height: 60%; border-style: solid; }
.radar-ring-3 { width: 30%; height: 30%; }

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96%;
  height: 96%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  animation: radar-spin 5s linear infinite;
  opacity: 0.5;
}

.radar-sweep::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(203, 45, 57, 0.28), transparent 26%);
}

html[data-theme="dark"] .radar-sweep::before {
  background: conic-gradient(from 0deg, rgba(203, 45, 57, 0.4), transparent 26%);
}

@keyframes radar-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hn-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hn-svg .hn-line {
  stroke: #C7D2E0;
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 6 5;
  animation: hn-flow 6s linear infinite;
}

html[data-theme="dark"] .hn-svg .hn-line {
  stroke: rgba(255, 255, 255, 0.14);
}

.hn-svg .hn-dot {
  fill: #B9C6D6;
}

@keyframes hn-flow {
  to { stroke-dashoffset: -110; }
}

.hn-node {
  position: absolute;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--paper);
}

.hn-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 168px;
}

.hn-card .hn-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #fff;
  font-weight: 600;
}

.hn-card strong {
  display: block;
  font-size: 0.78rem;
  color: var(--ink);
}

.hn-card span {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.hn-badge {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold), #A83420);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(203, 45, 57, 0.35);
  border: 3px solid var(--paper);
}

.hn-badge svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

/* =================================================================
 * "The Five Foundations" — a tabbed showcase of the platform's five
 * pillars (Connect / News / Profiling / Placement / Analytics), each
 * panel pre-written marketing copy plus, where a real number exists,
 * the exact same figure already shown elsewhere on this page
 * (NewsItem::weeklyActivity(), JobListing::count(),
 * MicroCredential::allActive()/Degree::allActive() — see home.php's
 * own $pillars array). Connect and Analytics have no such metric to
 * query yet, so their two chips stay qualitative rather than a made-up
 * number. Tab-switching is real, new interactivity (public/js/landing.js)
 * — not a duplicate of anything else on the site — over content that's
 * all server-rendered up front: the Connect panel is visible by default
 * with no `hidden` attribute, so a visitor with JS disabled (or before
 * it finishes loading) still sees real, complete content, not an empty
 * shell waiting on a script.
 * ================================================================= */
.land-showcase {
  padding: 56px var(--space-8) 60px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.land-showcase-head {
  max-width: 640px;
  margin: 0 auto 34px;
  text-align: center;
}

.land-showcase-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}

.land-showcase-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 10px;
  text-wrap: balance;
}

.land-showcase-head p {
  color: var(--muted);
  font-size: 0.9rem;
}

.pillar-tabs {
  max-width: var(--container-width);
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.pillar-tab {
  text-align: left;
  padding: 14px 15px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pillar-tab:hover {
  border-color: var(--gold);
}

.pillar-tab.is-active {
  border-color: var(--gold);
  background: var(--mint);
  box-shadow: var(--shadow-sm);
}

.pillar-tab-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 3px;
}

.pillar-tab.is-active .pillar-tab-num {
  color: var(--gold);
}

.pillar-tab-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.pillar-panel {
  max-width: var(--container-width);
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
}

.pillar-panel-body {
  display: none;
  max-width: 640px;
}

.pillar-panel-body.is-active {
  display: block;
}

.pillar-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: var(--mint);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.pillar-panel-body h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-3);
  text-wrap: balance;
}

.pillar-panel-body p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.pillar-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-5);
}

.pillar-chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--radius-md);
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold);
}

.pillar-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .pillar-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .land-showcase {
    padding: 44px var(--space-5) 48px;
  }

  .pillar-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-panel {
    padding: var(--space-5);
  }
}

/* =================================================================
 * "Latest News" preview section — .ls-head/.live-badge/.live-dot/
 * .view-all-btn/.news-card-grid/.news-card. The headline itself is
 * plain text, not a link, and "View all News" is a real
 * <a href="/register">. The one real interactive element per card
 * (.news-card-read) is a real <a> to the article, gated for a
 * signed-out visitor by public/js/landing.js's login-modal handling
 * (.gated-link) with a working plain-href fallback underneath if JS is
 * off.
 * ================================================================= */
.land-section {
  padding: 56px 42px;
  background: var(--bg);
}

.ls-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: var(--space-4);
}

.ls-head h3 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ls-head p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(203, 45, 57, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 4px;
  vertical-align: middle;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: flicker 1.6s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.view-all-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 15px;
  border-radius: var(--radius-md);
  background: var(--paper);
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.view-all-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

/* "Connect community right now" (#connect-preview, Phase 10) — a plain
 * 4-tile stat grid, same card recipe (.paper background, .line border,
 * .radius-md) as this page's other small stat surfaces rather than a
 * new one. Numbers update in place via landing.js's poll of
 * GET /community-stats — see that file's own comment — so .connect-stat-tile
 * strong never needs its own loading/skeleton state, just a fresh
 * textContent swap.
 */
.connect-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.connect-stat-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}

.connect-stat-tile strong {
  display: block;
  font-size: 1.7rem;
  color: var(--ink);
  transition: opacity 0.15s ease;
}

.connect-stat-tile span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* The real-24h-count-was-0 fallback note (HomeController::
 * withFallbackCount()) — a second, smaller line under the label, never
 * uppercase like the label itself so it doesn't read as a second stat
 * name. [hidden] (both the initial server-rendered state and
 * landing.js's own live toggle) is enough on its own to hide it — no
 * separate display:none rule needed. */
.connect-stat-fallback {
  display: block;
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 2px;
  font-style: italic;
}

@media (max-width: 700px) {
  .connect-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Practitioner Groups preview (groups_mockup.html) — real groups,
 * inside the same #connect-preview section as the stat tiles above.
 * .job-card-badge (the tag) and .land-cta-outline (Join/Open) are the
 * exact same real classes Placement's own cards and the hero's
 * secondary CTA already use — .gpc-* below only covers what's
 * genuinely new: the grid, the card shell, and the avatar/name/meta
 * row the mockup has no real equivalent for elsewhere on this page. ---- */
.groups-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 34px 0 16px;
}

.groups-preview-head h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.view-all-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.view-all-link:hover {
  text-decoration: underline;
}

.groups-preview-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 0;
}

.groups-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1000px) {
  .groups-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .groups-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gpc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.gpc-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.gpc-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gpc-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(203, 45, 57, 0.16), var(--mint));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gpc-avatar svg {
  width: 19px;
  height: 19px;
}

.gpc-id {
  min-width: 0;
}

.gpc-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.gpc-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.gpc-desc {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gpc-join {
  margin-top: auto;
  width: 100%;
  text-align: center;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
}

.gpc-join-disabled,
.gpc-join-disabled:hover {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
  cursor: default;
}

/* .news-card-grid: a 3/2/1-column card grid — UX.html's own #news
 * section layout (grid-cols-1 md:grid-cols-2 lg:grid-cols-3), replacing
 * this file's earlier, simpler single-column row-list translation of
 * it. `summary` is a real column (NewsItem::latestPinned() already
 * selects it; this view just wasn't rendering it before) — the same
 * discipline as everywhere else on this page: only ever real, queried
 * data, no fabricated per-category color-coding (real category strings
 * are freeform, sourced from micro_credentials.category at fetch time —
 * not a fixed 3-value taxonomy a hardcoded color map could reliably
 * cover) and no bookmark/save control (unlike Placement, there's no
 * real "save an article" feature in this app to back one).
 */
.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .news-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .news-card-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.news-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.news-card-badge {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gold);
  background: var(--mint);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.news-card-time {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

.news-card h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
}

.news-card-summary {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.news-card-source {
  font-size: 0.72rem;
  color: var(--muted);
}

.news-card-read {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  transition: transform 0.15s ease;
  display: inline-block;
}

.news-card:hover .news-card-read {
  transform: translateX(2px);
}

.news-card-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.news-card-promo {
  align-items: center;
  text-align: center;
  justify-content: center;
  background: var(--mint);
  border-style: dashed;
  border-color: var(--gold);
}

.news-card-promo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.news-card-promo-icon svg {
  width: 20px;
  height: 20px;
}

.news-card-promo h4 {
  margin-bottom: 6px;
}

.news-card-promo p {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.news-card-promo-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #A83420);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 7px 18px rgba(203, 45, 57, 0.2);
  transition: transform 0.15s ease;
}

.news-card-promo-cta:hover {
  transform: translateY(-1px);
}

/* =================================================================
 * "Latest Remote Roles" preview section — .place-preview-grid/.job-card/
 * .pp-heart/.pp-apply/.load-more-btn/.gate-note. Two-column card grid,
 * matching UX.html's own #placement section layout (this file's earlier
 * translation flattened each card to a single compact row; .job-card
 * restores the real two-row shape: category + location on top, then a
 * bottom row separated by a hairline). UX.html's own cards show a
 * match-% badge and a salary line — neither has a real backing column
 * in this app's `job_listings` table (no salary, no match score is
 * computed anywhere), so both are left out rather than invented;
 * `posted_at` (a real column, already selected by JobListing::latest()
 * but unused by the previous translation) fills that same bottom-left
 * slot instead — a real fact about the role, not a fabricated number.
 *
 * Apply's href and the heart's "saved" state are both resolved
 * server-side per HomeController's own docblock — a logged-in Apply
 * opens the role inside the Practitioner's own dashboard first (the
 * external employer site is a second, separate button there — see
 * PlacementController::show()), never the employer's site directly from
 * here. A signed-out click on Apply, the heart, or News' "Read" instead
 * opens the login modal (public/js/landing.js's own docblock) —
 * .gated-link/.gated-heart are what that script hooks into; each
 * control's real href/form action is still a correct, working
 * server-side gate underneath (Apply's own /register fallback, the
 * heart form's Auth::requireLogin()-gated POST) for when JS is off.
 * ================================================================= */
.place-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .place-preview-grid {
    grid-template-columns: 1fr;
  }
}

.job-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4) 19px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.job-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.job-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.job-card-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--mint);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.job-card-sep {
  color: var(--line);
}

.job-card-loc {
  font-size: 0.76rem;
  color: var(--muted);
}

.job-card-top h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.job-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.job-card-posted {
  font-size: 0.72rem;
  color: var(--muted);
}

.job-card-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.pp-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.pp-card-actions form {
  display: contents; /* the CSRF <form> shouldn't introduce its own box in this flex row */
}

.pp-heart {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pp-heart.saved {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(203, 45, 57, 0.06);
}

.pp-heart:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pp-apply {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), #A83420);
  color: #fff;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(203, 45, 57, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pp-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(203, 45, 57, 0.28);
}

.load-more-btn {
  display: block;
  margin: 20px auto 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.load-more-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.gate-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
  line-height: 1.5;
}

/* =================================================================
 * Login modal — shown in place of a straight redirect-to-login for
 * every signed-out gated action on this page (News "Read More",
 * Placement's heart, Placement's Apply); see public/js/landing.js's own
 * docblock for exactly which controls trigger it and why the underlying
 * href/form action is still a real, working fallback without JS.
 *
 * Hidden state is opacity/visibility/pointer-events, NOT the `hidden`
 * attribute or `display:none` — deliberately, after a real bug: this
 * rule used to set `display:flex` unconditionally and relied on the
 * browser's default `[hidden]{display:none}` UA style to hide it, but an
 * author stylesheet rule always wins over a UA one at equal specificity,
 * so `display:flex` here silently beat `[hidden]` and the modal was
 * visible on every landing-page load, not just on a gated click. Fixed
 * by making visibility purely a function of `.is-open` (toggled by
 * public/js/landing.js, nothing else) — `display:flex` is now
 * unconditional and harmless, since opacity:0 + visibility:hidden +
 * pointer-events:none already fully hide and disable it, both visually
 * and for tab order and screen readers, with no attribute/class fight
 * left to lose. This same toggle also drives the entrance/exit
 * transition — see `.is-open` below.
 * ================================================================= */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  background: rgba(22, 33, 62, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s, backdrop-filter 0.22s ease;
}

.login-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, visibility 0s linear 0s, backdrop-filter 0.22s ease;
}

.login-modal {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-2xl);
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(6px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.1), opacity 0.2s ease;
}

.login-modal-overlay.is-open .login-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.login-modal h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.login-modal p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 22px;
}

.login-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-modal-actions a {
  text-align: center;
  padding: 12px 20px;
  font-size: 0.86rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login-modal-actions .land-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(22, 33, 62, 0.22);
}

.login-modal-actions .land-cta:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(22, 33, 62, 0.18);
}

.login-modal-actions .land-cta-outline:hover {
  transform: translateY(-1px);
}

.login-modal-actions .land-cta-outline:active {
  transform: translateY(0);
  background: rgba(203, 45, 61, 0.14);
}

.login-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.login-modal-close:hover {
  color: var(--ink);
  background: rgba(22, 33, 62, 0.06);
}

.login-modal-close:active {
  transform: scale(0.92);
}

/* =================================================================
 * Analytics preview — the public landing page's own copy of the
 * sandboxed iframe treatment, publicly viewable without login, same as
 * News'/Placement's own preview sections. .iframe-sandbox-wrap/-bar/
 * -body/-frame mirror admin.css's/practitioner.css's own copies
 * exactly (same established convention: duplicated per stylesheet, not
 * shared) — height is a clamp() so it fills its container responsively
 * instead of a fixed pixel height that would clip taller content, and
 * .iframe-sandbox-loading is a light spinner shown until the iframe's
 * own `load` event fires (public/js/landing.js), so a fresh page load
 * never flashes an empty white box before the published content
 * appears.
 * ================================================================= */
.iframe-sandbox-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl, 12px);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.iframe-sandbox-bar {
  background: var(--indigo);
  color: rgba(255, 255, 255, 0.5);
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  display: flex;
  justify-content: space-between;
}

.iframe-sandbox-body {
  position: relative;
  height: clamp(380px, 62vh, 640px);
}

.iframe-sandbox-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.iframe-sandbox-wrap.is-loading .iframe-sandbox-frame {
  opacity: 0;
}

.iframe-sandbox-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.76rem;
}

.iframe-sandbox-wrap.is-loading .iframe-sandbox-loading {
  display: flex;
}

.iframe-sandbox-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: iframe-sandbox-spin 0.7s linear infinite;
}

@keyframes iframe-sandbox-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 768px, matching design/analytics.html's own mobile-compaction
   breakpoint — see admin.css's identical rule for the full reasoning. */
@media (max-width: 768px) {
  .iframe-sandbox-body {
    height: clamp(320px, 88vh, 660px);
  }
}

.analytics-preview-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .land-section {
    padding: 40px 20px;
  }

  .ls-head {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
}

/* =================================================================
 * Footer — the full IKON SKILLS™ footer component (brand + operating-
 * entity info, three external link columns, a bottom legal bar),
 * class names kept exactly as provided (.ikon-footer-*) rather than
 * renamed to this file's own .land-* convention — a deliberate,
 * self-contained component, easier to cross-reference against its own
 * source later than force-renamed.
 *
 * Colors/fonts wired into this app's real tokens rather than the
 * source's own standalone --ik-* variables: --ik-text-title/-body/
 * -muted/-light all collapse onto this app's existing var(--ink)/
 * var(--ink-soft)/var(--muted) three-tier system (this app doesn't have
 * a 4th, even-lighter muted tier, so -muted and -light both map to the
 * same var(--muted)); --ik-border(-subtle) → var(--line); --ik-link-hover
 * → var(--ink); --ik-accent-red → var(--gold) (this app's own brand red,
 * rather than keeping a second, subtly different rose alongside it);
 * --ik-font-sans → var(--font-body) (already Inter — see this file's
 * own body[data-page="landing"] override up top). --ik-heading (amber,
 * #d97706) is kept as a genuine one-off literal, same "one-off value,
 * not every hex needs a token" precedent this app already uses
 * elsewhere (e.g. the Scramble game-card's own --amber/--indigo-deep) —
 * it's a real second accent the source's own design deliberately uses
 * for structure (column headings, info-card left borders) distinct
 * from --gold's own brand/CTA role, not a duplicate to fold away.
 * --ik-heading-hover/--ik-border-subtle were declared in the source but
 * never actually referenced by anything in it — dropped rather than
 * carried over as dead tokens.
 *
 * Logo: the source's own inline SVG icon + "IKON SKILLS™" text
 * (.ikon-logo-icon/.ikon-brand-name/.ikon-tm) is replaced by the real
 * public/assets/img/logo.png (see .ikon-brand-logo-img below) — one
 * consistent mark sitewide, per the request, even though this
 * particular link/section is about the separate IKON SKILLS™ product
 * (the logo itself reads "IKON Community™"); a deliberate, explicitly
 * requested choice, not an oversight. The decorative background
 * watermark SVG (.ikon-bg-watermark, in home.php) is NOT a logo mark
 * and was left as the source's own geometric shapes.
 * ================================================================= */
.ikon-footer {
  --ik-heading: #d97706;
  --ik-card-bg: rgba(255, 255, 255, 0.85);

  background-color: var(--bg);
  background-image:
    radial-gradient(at 12% 0%, rgba(245, 158, 11, 0.08) 0px, transparent 45%),
    radial-gradient(at 88% 95%, rgba(225, 29, 72, 0.06) 0px, transparent 45%),
    radial-gradient(at 50% 40%, rgba(56, 189, 248, 0.03) 0px, transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .ikon-footer {
  --ik-card-bg: rgba(255, 255, 255, 0.06);

  background-image:
    radial-gradient(at 12% 0%, rgba(245, 158, 11, 0.1) 0px, transparent 45%),
    radial-gradient(at 88% 95%, rgba(225, 29, 72, 0.1) 0px, transparent 45%),
    radial-gradient(at 50% 40%, rgba(56, 189, 248, 0.05) 0px, transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
}

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

/* Ambient top accent border line */
.ikon-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  width: 420px;
  max-width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.5), rgba(225, 29, 72, 0.3), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Precision micro-dot-matrix background texture */
.ikon-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.28) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 45%, transparent 85%);
  mask-image: radial-gradient(ellipse at 50% 40%, black 45%, transparent 85%);
  opacity: 0.7;
  z-index: 0;
}

html[data-theme="dark"] .ikon-footer::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
}

/* Subtle geometric watermark, bottom-right — decorative only */
.ikon-bg-watermark {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 320px;
  height: 320px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
}

html[data-theme="dark"] .ikon-bg-watermark {
  opacity: 0.08;
}

.ikon-footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 4.25rem 1.75rem 2.25rem;
  position: relative;
  z-index: 1;
}

.ikon-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 0.9fr 1.15fr;
  gap: 3.5rem 2.5rem;
  margin-bottom: 3.5rem;
}

.ikon-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-right: 1rem;
}

.ikon-brand-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ikon-brand-logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.ikon-brand-logo-img {
  display: block;
  height: 32px;
  width: auto;
}

/* Dark mode only — see practitioner.css's/admin.css's own .side-logo
   for the identical reasoning: the logo's black "IKON" text is baked
   into the PNG and needs a real, fixed-white backdrop to stay readable
   once this footer's own background goes dark; not needed in light
   mode, where the footer background is already light enough on its
   own (same as the main header). */
html[data-theme="dark"] .ikon-brand-logo-img {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.ikon-brand-summary {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 380px;
}

.ikon-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.25rem;
}

.ikon-info-card {
  background: var(--ik-card-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-left: 3px solid var(--ik-heading);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ikon-info-card:hover {
  background: #fff;
  border-color: #cbd5e1;
  border-left-color: #b45309;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* Source has no dark-mode variant of its own — these literal
   light-tuned values (white borders/hover-background) go invisible or
   wrong against a dark card, so re-derive the same effect with theme
   tokens instead of the source's literals here specifically. */
html[data-theme="dark"] .ikon-info-card {
  border-color: var(--line);
}

html[data-theme="dark"] .ikon-info-card:hover {
  background: var(--ik-card-bg);
  border-color: var(--muted);
  border-left-color: var(--ik-heading);
  box-shadow: var(--shadow-md);
}

.ikon-info-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
  display: block;
  font-weight: 700;
}

.ikon-info-title {
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.ikon-info-detail {
  font-size: 0.775rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.15rem;
}

.ikon-info-detail a {
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.15s ease;
}

.ikon-info-detail a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.ikon-footer-heading {
  color: var(--ik-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ikon-footer-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.4), transparent);
  max-width: 45px;
}

.ikon-footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ikon-footer-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.45;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
  font-weight: 450;
}

.ikon-footer-link:hover {
  color: var(--ink);
  transform: translateX(3px);
  font-weight: 500;
}

.ikon-footer-link .ext-icon {
  opacity: 0;
  transform: translateY(1px) scale(0.85);
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: var(--muted);
  flex-shrink: 0;
}

.ikon-footer-link:hover .ext-icon {
  opacity: 1;
  transform: translateY(1px) scale(1);
  color: var(--teal);
}

.ikon-tag-community {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.06);
  margin-left: 0.4rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  display: inline-block;
  flex-shrink: 0;
}

.ikon-footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  width: 100%;
  margin-bottom: 1.75rem;
}

.ikon-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.ikon-footer-copyright {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ikon-footer-copyright a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.ikon-footer-copyright a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.ikon-footer-trademark {
  color: var(--muted);
  text-align: right;
}

@media (max-width: 1024px) {
  .ikon-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2.5rem;
  }

  .ikon-footer-brand {
    grid-column: span 2;
    max-width: 640px;
  }

  .ikon-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .ikon-footer-trademark {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .ikon-footer-container {
    padding: 3.25rem 1.25rem 1.75rem;
  }

  .ikon-footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .ikon-footer-brand {
    grid-column: span 1;
    padding-right: 0;
  }

  .ikon-footer-link {
    font-size: 0.85rem;
    padding: 0.15rem 0;
  }
}
