/* ==========================================================================
   AIkya Learn — aikyalearn.com
   Tokens verbatim from the Aikya Brand Book.

   Two rules the whole system obeys:
     1. Amber appears ONCE per view. It is a recognition cue, not a colour.
     2. Night is the ground. Light sections are for reading, not for decoration.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --indigo: #4327D9;
  --amber:  #FFB02E;
  --night:  #141033;
  --deep:   #1B1046;
  --paper:  #FFFFFF;

  --indigo-800: #2A1780;
  --indigo-700: #3620AE;
  --indigo-500: #5B41E6;
  --indigo-300: #9284EC;
  --indigo-100: #E3DFFB;
  --indigo-050: #F2F0FD;

  --ground:  #F4F4F6;
  --surface: #FFFFFF;
  --sunk:    #EAEAEE;
  --ink:     #131316;
  --muted:   #5B5B64;
  --faint:   #8A8A94;
  --line:    #E0E0E5;
  --warn-soft: #FAF0DE;

  /* on-night neutrals */
  --n-text:  #D9D7E8;
  --n-muted: #A9A5C4;
  --n-faint: #8A85AD;
  --n-line:  rgba(255, 255, 255, .11);
  --n-fill:  rgba(255, 255, 255, .05);

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-deva: "Mukta", "Noto Sans Devanagari", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-display: clamp(2.6rem, 1.5rem + 4.6vw, 4.5rem);
  --t-h1: clamp(1.9rem, 1.35rem + 2.3vw, 2.75rem);
  --t-h2: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
  --t-h3: 1.0625rem;
  --t-lead: clamp(1.03rem, .98rem + .3vw, 1.1875rem);
  --t-caption: .8125rem;

  --wrap: 1140px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 16, 51, .05), 0 2px 8px rgba(20, 16, 51, .05);
  --shadow-md: 0 4px 14px rgba(20, 16, 51, .07), 0 14px 36px rgba(20, 16, 51, .07);
  --shadow-lg: 0 12px 32px rgba(20, 16, 51, .12), 0 34px 80px rgba(20, 16, 51, .16);

  /* fine grid + grain, the two textures used on night grounds */
  --grid: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-700); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
  color: var(--deep);
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 3px; }

.dv { font-family: var(--font-deva); font-weight: 700; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding-block: clamp(3.25rem, 6.5vw, 6rem); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.section--surface { background: var(--surface); }
.section--ground { background: var(--ground); }
.section--sunk { background: var(--sunk); }

.section--night {
  position: relative; background: var(--night); color: var(--n-text); overflow: hidden;
}
.section--night::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grid); background-size: 46px 46px;
}
.section--night > * { position: relative; z-index: 1; }
.section--night h2, .section--night h3, .section--night h4 { color: #fff; }

.sec-head { max-width: 60ch; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.sec-head p { color: var(--muted); font-size: var(--t-lead); margin-bottom: 0; }
.section--night .sec-head p { color: var(--n-muted); }
.sec-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: .8rem;
}
.section--night .eyebrow { color: var(--n-faint); }
/* the bindu, reused as a marker */
.eyebrow--dot::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber); margin-right: .55rem; vertical-align: middle;
}

.grid { display: grid; gap: clamp(.9rem, 1.8vw, 1.4rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* ---------- 4. Logo lockup ----------
   Built in Archivo, not the PNG: the brand book notes the rendered wordmark
   stands in Segoe UI Black and should be re-cut. Three strokes and a dot. */
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark .bindu { fill: var(--amber); }
.brand-mark .stroke { stroke: var(--deep); stroke-width: 5.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -.05em; line-height: 1; color: var(--deep); white-space: nowrap;
}
.brand-word .ai { color: var(--indigo); }
.brand-word .deva { font-family: var(--font-deva); font-weight: 700; font-size: .85em; letter-spacing: 0; margin-left: .32em; opacity: .7; }
.on-night .brand-mark .stroke { stroke: #fff; }
.on-night .brand-word { color: #fff; }
.on-night .brand-word .ai { color: var(--amber); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .9375rem; line-height: 1;
  padding: .9rem 1.5rem; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; text-align: center;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* the one amber element per view */
.btn--accent { background: var(--amber); color: var(--night); box-shadow: 0 4px 16px rgba(255, 176, 46, .34); }
.btn--accent:hover { background: #FFBE52; color: var(--night); box-shadow: 0 8px 24px rgba(255, 176, 46, .44); }

.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-700); color: #fff; }
.btn--outline { background: transparent; color: var(--indigo); border-color: rgba(67, 39, 217, .28); }
.btn--outline:hover { background: var(--indigo-050); color: var(--indigo-700); border-color: var(--indigo); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .09); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: .6rem 1.1rem; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-row--center { justify-content: center; }

/* ---------- 6. Header ---------- */
.topbar {
  background: #0E0B24; color: var(--n-muted);
  font-size: var(--t-caption); text-align: center; padding: .5rem var(--gutter);
}
.topbar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.topbar a:hover { color: var(--indigo-300); }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(170%) blur(12px);
  -webkit-backdrop-filter: saturate(170%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.nav .brand { margin-right: auto; }

.nav-links { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .5rem .8rem; border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 500; color: var(--ink);
}
.nav-links a:hover { background: var(--indigo-050); color: var(--indigo); }
.nav-links a.is-active { color: var(--indigo); font-weight: 600; }
.nav-cta { flex: none; }
.nav-links .m-cta { display: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center; flex: none;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--deep); border-radius: 2px; position: relative; transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--deep); border-radius: 2px; transition: .2s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: .7rem var(--gutter) 1.2rem; display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .78rem .55rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links .m-cta { display: block; margin-top: .7rem; }
  .nav-links .m-cta a { border-bottom: 0; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--n-text);
  background: var(--night);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
/* aurora */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%; pointer-events: none;
  background:
    radial-gradient(58% 48% at 76% 12%, rgba(67, 39, 217, .62), transparent 62%),
    radial-gradient(46% 40% at 18% 88%, rgba(91, 65, 230, .32), transparent 65%),
    radial-gradient(30% 28% at 92% 78%, rgba(255, 176, 46, .10), transparent 70%);
}
/* grid + grain */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grid), var(--grain);
  background-size: 46px 46px, 140px 140px;
  opacity: .5;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid { display: grid; gap: clamp(2.2rem, 5vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }

.hero h1 { font-size: var(--t-display); color: #fff; letter-spacing: -.04em; margin-bottom: .4em; }
.hero h1 .hl { color: var(--indigo-300); }
.hero-lead { font-size: var(--t-lead); color: var(--n-muted); max-width: 44ch; margin-bottom: 2rem; }
.hero .eyebrow { color: var(--n-faint); }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 1.3rem 1.6rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--n-line);
}
.hero-stats strong {
  display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-weight: 600; font-size: 1.65rem; color: #fff; line-height: 1; margin-bottom: .35rem; letter-spacing: -.02em;
}
.hero-stats span { font-size: var(--t-caption); color: var(--n-faint); }

/* ---------- 8. Strip ---------- */
.strip { background: #0E0B24; color: var(--n-muted); padding: .95rem 0; font-size: var(--t-caption); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; text-align: center; }
.strip span { display: inline-flex; align-items: center; gap: .5rem; }
.strip span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--indigo-300); flex: none; }

/* ---------- 9. Path cards — "where are you?" ---------- */
.paths { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: p; }
.path {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 1.5rem 1.4rem 1.35rem; border-radius: var(--r-lg);
  background: var(--n-fill); border: 1px solid var(--n-line); color: var(--n-text);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.path:hover { transform: translateY(-4px); border-color: var(--indigo-300); background: rgba(255, 255, 255, .08); color: var(--n-text); }
.path-n {
  counter-increment: p; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--n-faint); margin-bottom: .9rem; display: block;
}
.path-n::before { content: counter(p, decimal-leading-zero); }
.path h3 { font-size: 1.15rem; color: #fff; margin-bottom: .4rem; letter-spacing: -.025em; }
.path p { font-size: .9063rem; color: var(--n-muted); margin-bottom: 1rem; }
.path-first {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--n-line);
  font-size: var(--t-caption); color: var(--n-muted);
}
.path-first b { color: #fff; font-weight: 600; display: block; margin-bottom: .2rem; font-size: 10.5px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.path-go { margin-top: .9rem; font-size: .875rem; font-weight: 600; color: var(--indigo-300); display: inline-flex; align-items: center; gap: .35rem; }
.path-go::after { content: "→"; transition: transform .18s ease; }
.path:hover .path-go::after { transform: translateX(4px); }

/* ---------- 10. Coverage map ---------- */
.map { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.map-row {
  display: block; padding: 1.15rem 1.3rem; border-radius: var(--r-md);
  background: var(--n-fill); border: 1px solid var(--n-line); color: var(--n-text);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.map-row:hover { border-color: var(--indigo-300); background: rgba(255, 255, 255, .08); color: var(--n-text); transform: translateY(-2px); }
.map-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.map-name { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: #fff; letter-spacing: -.02em; }
.map-n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .8125rem; color: var(--indigo-300); white-space: nowrap; }
.map-blurb { font-size: var(--t-caption); color: var(--n-faint); margin: 0 0 .8rem; }
.map-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .09); overflow: hidden; display: flex; }
.map-bar i { display: block; height: 100%; background: var(--indigo-500); }
.map-bar i + i { margin-left: 1px; }
.map-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .7rem; }
.map-legend span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--n-faint); display: inline-flex; align-items: center; gap: .3rem; }
.map-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-500); display: inline-block; }

.map-total {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .6rem 1.2rem;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--n-line);
  font-family: var(--font-mono); font-size: .8125rem; color: var(--n-faint); text-align: center;
}
.map-total b { color: #fff; font-weight: 600; }

/* ---------- 11. Method rail ---------- */
.rail { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: r; }
.rail-item { position: relative; padding-top: 2.6rem; }
.rail-item::before {
  counter-increment: r; content: counter(r);
  position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: .75rem; font-weight: 600;
  background: var(--indigo-050); color: var(--indigo); border: 1px solid var(--indigo-100);
}
.rail-item::after {
  content: ""; position: absolute; top: 15px; left: 40px; right: -1rem; height: 1px;
  background: var(--line);
}
.rail-item:last-child::after { display: none; }
@media (max-width: 700px) { .rail-item::after { display: none; } }
.rail-item h3 { margin-bottom: .3rem; }
.rail-item p { font-size: .9063rem; color: var(--muted); margin: 0; }
.rail-n { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); letter-spacing: .1em; display: block; margin-top: .5rem; }

/* ---------- 12. Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(1.3rem, 2.2vw, 1.7rem);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--indigo-300); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .9375rem; margin-bottom: 0; }
.card-link { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: .9rem; color: var(--indigo); display: inline-flex; align-items: center; gap: .35rem; }
.card-link::after { content: "→"; transition: transform .18s ease; }
.card:hover .card-link::after { transform: translateX(3px); }

.icon-badge {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--indigo-050); border: 1px solid var(--indigo-100); margin-bottom: 1rem; flex: none;
}
.icon-badge svg { width: 20px; height: 20px; stroke: var(--indigo); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section--night .icon-badge { background: var(--n-fill); border-color: var(--n-line); }
.section--night .icon-badge svg { stroke: var(--indigo-300); }

/* ---------- 13. Playlist browser ---------- */
.pl-toolbar { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.pl-search { position: relative; flex: 1 1 260px; max-width: 400px; }
.pl-search input {
  width: 100%; font: inherit; font-size: .9375rem; color: var(--ink);
  padding: .68rem .9rem .68rem 2.4rem;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.pl-search input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(67, 39, 217, .14); }
.pl-search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--faint); fill: none; stroke-width: 2; pointer-events: none; }
#pl-count { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--faint); white-space: nowrap; }

.pl-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.pl-filters + .pl-filters { margin-bottom: 1.7rem; }
.pl-chip {
  font: inherit; font-size: .8438rem; font-weight: 500; cursor: pointer;
  padding: .42rem .8rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.pl-chip i { font-style: normal; font-family: var(--font-mono); font-size: 10px; opacity: .6; }
.pl-chip:hover { border-color: var(--indigo-300); color: var(--indigo); }
.pl-chip.is-on { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.pl-chip.is-on i { opacity: .85; }
.pl-filters-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); align-self: center; margin-right: .35rem; }

.pl-grid { display: grid; gap: clamp(.9rem, 1.8vw, 1.35rem); grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); }

.pl-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--indigo-300); color: var(--ink); }
.pl-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--night); overflow: hidden; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.pl-card:hover .pl-thumb img { transform: scale(1.045); }
.pl-count {
  position: absolute; right: .5rem; bottom: .5rem;
  background: rgba(20, 16, 51, .9); color: #fff;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .03em;
  padding: .22rem .45rem; border-radius: 5px;
}
.pl-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 16, 51, .3); opacity: 0; transition: opacity .18s ease; }
.pl-card:hover .pl-play { opacity: 1; }
.pl-play svg { width: 40px; height: 40px; fill: #fff; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); }
.pl-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.pl-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .1rem; }
.pl-tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--indigo); background: var(--indigo-050); border: 1px solid var(--indigo-100);
  padding: .15rem .4rem; border-radius: 4px;
}
.pl-tag--stage { color: var(--muted); background: var(--sunk); border-color: var(--line); }
.pl-title { font-family: var(--font-display); font-weight: 700; font-size: .9688rem; letter-spacing: -.02em; line-height: 1.3; color: var(--deep); }
.pl-note { font-size: var(--t-caption); color: var(--muted); line-height: 1.5; }
.pl-empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }

/* ---------- 14. Featured playlist (hero) ---------- */
.hero-pl {
  display: block; overflow: hidden; border-radius: var(--r-lg);
  background: var(--n-fill); border: 1px solid var(--n-line);
  backdrop-filter: blur(8px); color: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hero-pl:hover { transform: translateY(-3px); color: #fff; border-color: var(--indigo-300); box-shadow: var(--shadow-lg); }
.hero-pl-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0E0B24; overflow: hidden; }
.hero-pl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.hero-pl:hover .hero-pl-thumb img { transform: scale(1.04); }
.hero-pl-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 16, 51, .3); }
.hero-pl-play svg { width: 46px; height: 46px; fill: #fff; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5)); }
.hero-pl-badge {
  position: absolute; right: .6rem; bottom: .6rem; background: rgba(20, 16, 51, .92); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; padding: .25rem .5rem; border-radius: 5px;
}
.hero-pl-body { display: flex; flex-direction: column; gap: .28rem; padding: 1rem 1.15rem 1.15rem; }
.hero-pl-cat { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--indigo-300); }
.hero-pl-title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.025em; line-height: 1.25; color: #fff; }
.hero-pl-note { font-size: var(--t-caption); color: var(--n-muted); }
.hero-pl-foot { margin: .8rem 0 0; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--n-faint); }

/* ---------- 15. Pricing ---------- */
.price-grid { display: grid; gap: clamp(1rem, 2vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.price {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.6vw, 2rem);
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price--feature { border: 2px solid var(--indigo); box-shadow: var(--shadow-md); }
.price-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--indigo); color: #fff; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; padding: .35rem .85rem; border-radius: var(--r-pill); white-space: nowrap;
}
.price h3 { font-size: 1.1875rem; margin-bottom: .25rem; }
.price-note { font-size: var(--t-caption); color: var(--muted); margin-bottom: 1rem; }
.price-amt { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 1.2rem; }
.price-amt .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--deep); line-height: 1; letter-spacing: -.045em; }
.price-amt .per { font-size: var(--t-caption); color: var(--muted); }
.price-amt .was { font-size: .9375rem; color: var(--faint); text-decoration: line-through; }
.price ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.price ul li { position: relative; padding-left: 1.6rem; font-size: .9375rem; margin-bottom: .55rem; color: #33333B; }
.price ul li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 15px; height: 15px; border-radius: 50%;
  background: var(--indigo-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234327D9' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}
.price .btn { margin-top: auto; }
.price-foot { font-size: 11.5px; color: var(--faint); text-align: center; margin: .75rem 0 0; font-family: var(--font-mono); }

/* ---------- 16. Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step { position: relative; padding-top: 3.1rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 600; letter-spacing: .08em;
  color: var(--indigo); background: var(--indigo-050); border: 1px solid var(--indigo-100);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
}
.section--night .step::before { color: var(--indigo-300); background: var(--n-fill); border-color: var(--n-line); }
.step h3 { margin-bottom: .3rem; }
.section--night .step h3 { color: #fff; }
.step p { color: var(--muted); font-size: .9375rem; margin-bottom: 0; }
.section--night .step p { color: var(--n-muted); }

/* ---------- 17. Feature rows ---------- */
.feat { display: flex; gap: .9rem; align-items: flex-start; }
.feat .icon-badge { margin-bottom: 0; }
.feat h3 { margin-bottom: .25rem; }
.section--night .feat h3 { color: #fff; }
.feat p { color: var(--muted); font-size: .9375rem; margin: 0; }
.section--night .feat p { color: var(--n-muted); }

/* ---------- 18. FAQ ---------- */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: .65rem; overflow: hidden; }
.faq details[open] { border-color: var(--indigo-300); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 2.75rem 1rem 1.2rem; font-weight: 600; font-size: .9688rem; position: relative; color: var(--deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%); font-size: 1.35rem; font-weight: 400; color: var(--indigo); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 1.2rem 1.2rem; color: var(--muted); font-size: .9375rem; }
.faq .faq-body :last-child { margin-bottom: 0; }

/* ---------- 19. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff;
  padding: clamp(2.25rem, 5vw, 3.75rem); text-align: center; background: var(--night);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 60% at 22% 0%, rgba(67, 39, 217, .6), transparent 62%),
    radial-gradient(40% 50% at 88% 100%, rgba(91, 65, 230, .3), transparent 66%);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grid); background-size: 40px 40px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--n-muted); max-width: 46ch; margin-inline: auto; font-size: var(--t-lead); }

/* ---------- 20. Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.1rem); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .35rem; color: var(--deep); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .9375rem; color: var(--ink);
  padding: .72rem .85rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 125px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(67, 39, 217, .14); }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .icon-badge { margin: 0; }
.info-list strong { display: block; font-size: var(--t-caption); color: var(--muted); font-weight: 500; }
.info-list a, .info-list span.val { font-size: .9375rem; font-weight: 600; color: var(--indigo); }
.info-list span.val { color: var(--deep); }

/* ---------- 21. Prose ---------- */
.prose { max-width: 44rem; margin-inline: auto; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.prose p, .prose li { color: #33333B; font-size: .9688rem; }
.prose .updated { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.notice {
  background: var(--warn-soft); border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: var(--r-sm); padding: .95rem 1.15rem; font-size: .9375rem; color: #4A3A16;
}
.notice :last-child { margin-bottom: 0; }
.notice--plain { background: var(--indigo-050); border-left-color: var(--indigo); color: #2A2140; }

/* ---------- 22. Page header ---------- */
.page-head {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding-block: clamp(2.75rem, 5.5vw, 4.25rem); background: var(--night);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(56% 70% at 50% 0%, rgba(67, 39, 217, .58), transparent 64%);
}
.page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grid); background-size: 44px 44px;
}
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: var(--t-h1); margin-bottom: .35em; }
.page-head p { color: var(--n-muted); max-width: 54ch; margin: 0 auto; font-size: var(--t-lead); }
.crumb { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--n-faint); margin-bottom: .8rem; }
.crumb a { color: var(--indigo-300); }

/* ---------- 23. Footer ---------- */
.site-footer { position: relative; background: #0E0B24; color: var(--n-muted); padding-block: clamp(2.75rem, 5vw, 4rem) 0; font-size: .9375rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grid); background-size: 46px 46px; }
.site-footer > * { position: relative; z-index: 1; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: var(--n-muted); }
.site-footer a:hover { color: #fff; }
.footer-about { font-size: .9063rem; line-height: 1.6; margin: 1rem 0 1.1rem; max-width: 34ch; }
.social { display: flex; gap: .5rem; }
.social a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--n-fill); border: 1px solid var(--n-line); transition: .16s; }
.social a:hover { background: var(--indigo); border-color: var(--indigo); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; fill: #C9C5DE; }
.social a:hover svg { fill: #fff; }
.footer-bottom {
  margin-top: 2.2rem; padding: 1.2rem 0; border-top: 1px solid var(--n-line);
  display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; justify-content: space-between;
  font-size: var(--t-caption); color: #71717D;
}

/* ---------- 24. Utilities & motion ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .price:hover, .pl-card:hover, .path:hover, .map-row:hover, .hero-pl:hover { transform: none; }
}

/* ---------- 25. Print ----------
   Backgrounds are not printed by default, so force everything dark-on-white.
   Blanket rule so no future component can print light-on-white. */
@media print {
  .topbar, .nav-links, .nav-toggle, .nav-cta, .social, .pl-play, .hero-pl-play, .strip,
  .pl-toolbar, .pl-filters { display: none !important; }

  body, body * { color: #111 !important; }
  body { background: #fff !important; font-size: 11pt; }
  .wrap { max-width: none; padding-inline: 0; }
  .section { padding-block: 1.3rem !important; }

  .hero, .page-head, .section--night, .section--surface, .section--ground, .section--sunk,
  .cta-band, .site-footer, .card, .price, .faq details, .form-card, .notice,
  .path, .map-row, .pl-card, .hero-pl {
    background: #fff !important; box-shadow: none !important;
  }
  .hero::before, .hero::after, .page-head::before, .page-head::after,
  .cta-band::before, .cta-band::after, .section--night::before, .site-footer::before { display: none !important; }
  .card, .price, .faq details, .form-card, .notice, .cta-band, .path, .map-row, .pl-card { border: 1px solid #CCC !important; }

  .eyebrow, .crumb, .pl-tag, .map-n, .rail-n { color: #555 !important; }
  .site-header { position: static !important; border-bottom: 1px solid #CCC; }
  .brand-mark .stroke { stroke: #111 !important; }
  .brand-mark .bindu { fill: #111 !important; }

  .btn { background: none !important; border: 1px solid #999 !important; padding: .28rem .55rem !important; }
  .btn svg { display: none; }

  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555 !important; word-break: break-all; }

  .card, .price, .step, .feat, .faq details, .path, .map-row, .pl-card { break-inside: avoid; page-break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  .faq .faq-body { display: block !important; }
  .faq summary::after { display: none; }
  img { max-width: 40mm !important; }
}

/* ---------- 26. Centred hero (homepage) ---------- */
.hero--center { text-align: center; padding-block: clamp(4rem, 9vw, 8rem); }
.hero--center .wrap { max-width: 900px; }
.hero--center .eyebrow { text-align: center; }
.hero--center .hero-lead { margin-inline: auto; max-width: 56ch; }

/* ---------- 27. Coverage map, qualitative variant ----------
   Used where a stale count would be worse than no count. */
.map--plain { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.map--plain .map-row { padding: 1.15rem 1.25rem; }
.map--plain .map-top { margin-bottom: .35rem; align-items: center; }
.map-go {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--indigo-300); white-space: nowrap; opacity: 0; transition: opacity .18s ease;
}
.map-row:hover .map-go { opacity: 1; }
@media (hover: none) { .map-go { opacity: .7; } }

/* the computed summary under the library page title */
.lib-summary {
  display: inline-block; margin-top: .55rem;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 11.5px; letter-spacing: .08em; color: var(--indigo-300);
}

/* ---------- 28. Filter chips: unavailable combinations ---------- */
.pl-chip.is-off {
  opacity: .38; cursor: not-allowed; border-style: dashed;
}
.pl-chip.is-off:hover { border-color: var(--line); color: var(--muted); }
.pl-filters-label { align-self: center; }

/* empty state, with a way out */
.pl-empty { text-align: center; padding: 2.75rem 1rem; color: var(--muted); }
.pl-empty strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--deep); margin-bottom: .35rem; letter-spacing: -.02em; }

/* ---------- 29. Clearing filters ---------- */
.pl-search input { padding-right: 2.5rem; }
/* suppress the native one so there is only ever a single, styled control */
.pl-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.pl-clear {
  position: absolute; right: .45rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: var(--sunk); color: var(--muted);
  font-size: 15px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  transition: background .14s ease, color .14s ease;
}
.pl-clear:hover { background: var(--line); color: var(--ink); }

.pl-status { display: inline-flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

.pl-clear-all {
  font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer;
  padding: .4rem .8rem .4rem .65rem; border-radius: var(--r-pill);
  border: 1px solid rgba(67, 39, 217, .3); background: var(--indigo-050); color: var(--indigo);
  display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.pl-clear-all svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.pl-clear-all:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); }

@media print { .pl-clear, .pl-clear-all { display: none !important; } }

/* ---------- 30. Motto ---------- */
.motto {
  display: flex; flex-direction: column; gap: .2rem; margin: .9rem 0 0;
}
.motto-sa {
  font-family: var(--font-deva); font-weight: 700; font-size: 1.05rem;
  line-height: 1.35; color: var(--deep);
}
.motto-en {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.motto-ia { font-style: italic; font-size: .8125rem; color: var(--muted); }

/* every dark ground the motto can sit on — page-head and hero included,
   or the Devanagari renders deep indigo on near-black and disappears */
.on-night .motto-sa, .section--night .motto-sa, .page-head .motto-sa, .hero .motto-sa, .cta-band .motto-sa { color: #fff; }
.on-night .motto-en, .section--night .motto-en, .page-head .motto-en, .hero .motto-en, .cta-band .motto-en { color: var(--n-faint); }
.on-night .motto-ia, .section--night .motto-ia, .page-head .motto-ia, .hero .motto-ia, .cta-band .motto-ia { color: var(--n-muted); }

/* the amber bindu separates the two halves, echoing the mark */
.motto-sa::after {
  content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--amber); vertical-align: middle; margin-left: .5rem; opacity: .85;
}

/* centred variant, used under the About page title */
.motto--center { align-items: center; text-align: center; margin-top: 1.1rem; }
