/* =========================================================================
   YourLegal.app Global styles
   Design language: soft modern fintech-app aesthetic (Appfly-inspired)
   Signature: vivid blue on airy white, deep ink-navy, gentle layered shadows
   ========================================================================= */

:root {
  --primary: #384cff;
  --primary-deep: #2536e8;
  --tint: #f2f1ff;
  --ink: #050229;
  --navy: #050229;
  --navy-soft: #100b3a;
  --paper: #f9f9fb;
  --line: #e4e4eb;
  --muted: #676788;

  /* Secondary accents (feature icons, highlights) */
  --violet: #893ffc;
  --pink: #f853a2;
  --yellow: #ffd234;
  --red: #ea3843;

  /* Legacy aliases (older markup still references these) */
  --lime: #384cff;
  --lime-deep: #2536e8;
  --branddeep: #2536e8;
}

* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

h1, h2, h3, h4, .font-display {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

/* ---- Layout helpers ---------------------------------------------------- */
.container-x { max-width: 1400px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container-x { padding-inline: 2rem; } }

.section { padding-block: 5rem; }
@media (min-width: 768px) { .section { padding-block: 7rem; } }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem; line-height: 1;
  padding: 1rem 1.6rem; border-radius: 999px;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap; cursor: pointer; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0d0740; box-shadow: 0 12px 30px -12px rgba(5,2,41,.5); }
/* Primary action button. (Class name kept from the lime era; now vivid blue.) */
.btn-lime { background: var(--primary); color: #fff; }
.btn-lime:hover { background: var(--primary-deep); box-shadow: 0 12px 30px -10px rgba(56,76,255,.55); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: rgba(5,2,41,.22); }
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

/* ---- App store badges -------------------------------------------------- */
.store-badge {
  display: inline-flex; align-items: center; gap: .65rem;
  background: var(--ink); color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: .9rem; padding: .6rem 1.15rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(5,2,41,.55); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.store-badge__top { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; opacity: .82; }
.store-badge__big { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.18rem; font-weight: 700; margin-top: 3px; }

/* ---- Eyebrow / labels -------------------------------------------------- */
.eyebrow {
  font-family: "Plus Jakarta Sans", sans-serif;
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .72rem; font-weight: 700;
}

/* ---- Pill chips -------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500;
}

/* ---- Cards ------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 1.5rem; padding: 2rem;
  box-shadow: 0 2px 6px rgba(5,2,41,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -18px rgba(5,2,41,.18); border-color: #d6d6e2; }

/* ---- Feature icon chips (Appfly-style colored squares) ----------------- */
.icon-chip {
  display: inline-grid; place-content: center;
  width: 3.25rem; height: 3.25rem; border-radius: 1rem;
  color: #fff;
}
.icon-chip--blue   { background: var(--primary); box-shadow: 0 8px 20px -8px rgba(56,76,255,.55); }
.icon-chip--violet { background: var(--violet);  box-shadow: 0 8px 20px -8px rgba(137,63,252,.55); }
.icon-chip--pink   { background: var(--pink);    box-shadow: 0 8px 20px -8px rgba(248,83,162,.55); }
.icon-chip--yellow { background: var(--yellow);  color: var(--ink); box-shadow: 0 8px 20px -8px rgba(255,210,52,.6); }

/* ---- Nav --------------------------------------------------------------- */
.nav-link { font-size: .95rem; font-weight: 500; color: #3b3b4e; transition: color .15s ease; }
.nav-link:hover { color: var(--primary); }
.nav-shadow { box-shadow: 0 1px 0 rgba(5,2,41,.06); }

/* ---- Phone mockup ------------------------------------------------------ */
.phone {
  position: relative;
  width: 300px; height: 620px;
  background: var(--ink);
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(5,2,41,.55), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px; background: var(--ink); border-radius: 999px; z-index: 5;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(180deg, #11161f 0%, #0a0e15 100%);
  position: relative;
}
.panic-btn {
  width: 150px; height: 150px; border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #6d7dff, var(--primary) 55%, var(--primary-deep));
  color: #fff; display: grid; place-content: center; text-align: center;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700;
  box-shadow: 0 0 0 0 rgba(56,76,255,.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56,76,255,.55); }
  70%  { box-shadow: 0 0 0 28px rgba(56,76,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,76,255,0); }
}

/* ---- Real app screenshots (framed device PNGs) ------------------------ */
.app-shot {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 12px 46px rgba(5, 2, 41, .30));
}
.app-shot--flat { filter: drop-shadow(0 12px 34px rgba(5, 2, 41, .14)); }

/* ---- Appfly-style mesh gradient panels ---------------------------------
   Rounded panels that hold phone mockups, like the template's hero and
   alternating feature blocks. Layered radial gradients fake the mesh look. */
.g-panel {
  border-radius: 1.75rem;
  overflow: hidden;
  position: relative;
}
.g-hero {
  background-color: #f26bb8;
  background-image:
    radial-gradient(42rem 32rem at 12% 8%, #cdb4ff 0%, rgba(205,180,255,0) 60%),
    radial-gradient(34rem 26rem at 92% 95%, #ffb36b 0%, rgba(255,179,107,0) 55%),
    radial-gradient(38rem 30rem at 70% 30%, #ff5aa2 0%, rgba(255,90,162,0) 62%);
}
.g-soft {
  background-color: #f6c6e2;
  background-image:
    radial-gradient(36rem 28rem at 15% 15%, #b8ccff 0%, rgba(184,204,255,0) 60%),
    radial-gradient(30rem 24rem at 90% 20%, #dfb8ff 0%, rgba(223,184,255,0) 55%),
    radial-gradient(34rem 26rem at 80% 95%, #ffc09a 0%, rgba(255,192,154,0) 58%);
}
.g-cool {
  background-color: #cfe6ff;
  background-image:
    radial-gradient(36rem 28rem at 15% 10%, #b6f0ff 0%, rgba(182,240,255,0) 60%),
    radial-gradient(32rem 26rem at 85% 30%, #cabdff 0%, rgba(202,189,255,0) 58%),
    radial-gradient(30rem 24rem at 60% 100%, #a8d4ff 0%, rgba(168,212,255,0) 55%);
}
.g-warm {
  background-color: #b06bf0;
  background-image:
    radial-gradient(36rem 30rem at 10% 30%, #8a4df5 0%, rgba(138,77,245,0) 62%),
    radial-gradient(30rem 24rem at 90% 8%, #ffd234 0%, rgba(255,210,52,0) 55%),
    radial-gradient(36rem 28rem at 70% 80%, #f0508a 0%, rgba(240,80,138,0) 60%);
}

/* Gradient icon chips (template feature icons) */
.icon-grad {
  display: inline-grid; place-content: center;
  width: 3.25rem; height: 3.25rem; border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #f853a2 0%, #893ffc 100%);
  box-shadow: 0 8px 20px -8px rgba(137,63,252,.45);
}
.icon-grad--sm { width: 2.75rem; height: 2.75rem; border-radius: .85rem; }

/* Feature / list cards on the gray band */
.feature-card {
  background: #fff; border-radius: 1.5rem; padding: 2.25rem 2rem;
  box-shadow: 0 2px 6px rgba(5,2,41,.04), 0 12px 34px -18px rgba(5,2,41,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px -20px rgba(5,2,41,.18); }

/* Stat cards (template "used and trusted" block) */
.stat-card {
  background: #fff; border-radius: 1.25rem; padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 6px rgba(5,2,41,.05), 0 14px 34px -20px rgba(5,2,41,.10);
  text-align: center;
}
.stat-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800; font-size: 2.6rem; line-height: 1.1;
  background: linear-gradient(135deg, #893ffc 0%, #f853a2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Article cards (template Articles & News) */
.article-card {
  background: #fff; border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 2px 6px rgba(5,2,41,.04), 0 12px 34px -18px rgba(5,2,41,.08);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -22px rgba(5,2,41,.20); }

/* ---- Soft hero / glow backgrounds -------------------------------------- */
.hero-soft {
  background:
    radial-gradient(48rem 30rem at 85% 0%, rgba(56,76,255,.10), transparent 60%),
    radial-gradient(40rem 26rem at 0% 100%, rgba(137,63,252,.08), transparent 60%),
    var(--paper);
}
.blob-glow { position: relative; }
.blob-glow::before {
  content: ""; position: absolute; inset: 8% 0 0 12%;
  background: radial-gradient(closest-side, rgba(56,76,255,.22), transparent 70%);
  filter: blur(12px); z-index: -1;
}

/* ---- App store publishing page --------------------------------------- */
.stores-hero {
  color: #fff;
  overflow: hidden;
  position: relative;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(148,157,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,157,255,.035) 1px, transparent 1px),
    radial-gradient(48rem 32rem at 78% 18%, rgba(56,76,255,.27), transparent 68%),
    radial-gradient(38rem 28rem at 4% 95%, rgba(137,63,252,.2), transparent 70%);
  background-size: 64px 64px, 64px 64px, auto, auto;
}
.stores-hero__grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(420px,.82fr);
  align-items: center;
  gap: clamp(3rem,7vw,7rem);
  padding-block: clamp(5rem,9vw,8rem);
}
.stores-hero__copy h1 {
  max-width: 760px;
  margin-top: 1.6rem;
  font-size: clamp(3rem,5.6vw,5.7rem);
  line-height: .96;
  font-weight: 800;
}
.stores-hero__copy > p {
  max-width: 700px;
  margin-top: 1.8rem;
  color: rgba(255,255,255,.68);
  font-size: clamp(1.05rem,1.4vw,1.28rem);
  line-height: 1.7;
}
.stores-hero__badges, .stores-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
.stores-hero__badges { margin-top: 2.1rem; }
.stores-hero__actions { margin-top: 2.2rem; }
.store-badge--hero {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}
.stores-marketplace {
  position: relative;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 2rem;
  background: rgba(255,255,255,.07);
  box-shadow: 0 40px 90px -35px rgba(0,0,0,.72);
  backdrop-filter: blur(18px);
}
.stores-marketplace::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  background: radial-gradient(circle, rgba(56,76,255,.3), transparent 65%);
  filter: blur(10px);
}
.stores-marketplace__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .35rem 1rem;
  color: rgba(255,255,255,.55);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
}
.stores-marketplace__live {
  color: #9cf0c9;
  letter-spacing: .04em;
}
.stores-listing {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 1.35rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 34px -24px rgba(0,0,0,.7);
}
.stores-listing + .stores-listing { margin-top: .9rem; }
.stores-listing__icon {
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-content: center;
  border-radius: 1.1rem;
  color: #fff;
  background: linear-gradient(145deg,#384cff,#893ffc);
  box-shadow: 0 12px 22px -12px rgba(56,76,255,.7);
}
.stores-listing__icon--play { background: linear-gradient(145deg,#20b9ff,#384cff 55%,#893ffc); }
.stores-listing__icon svg { width: 2.1rem; height: 2.1rem; }
.stores-listing__copy > span {
  color: var(--primary);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .11em;
}
.stores-listing__copy strong {
  display: block;
  margin-top: .15rem;
  font-size: 1.08rem;
}
.stores-listing__copy p {
  margin-top: .28rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
.stores-listing__status {
  padding: .42rem .65rem;
  border-radius: 999px;
  color: #087a4b;
  background: #e8fff4;
  font-size: .62rem;
  font-weight: 800;
}
.stores-marketplace__ownership {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .65rem;
  margin-top: .9rem;
}
.stores-marketplace__ownership span {
  padding: .75rem .35rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .9rem;
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}
.stores-section-heading { max-width: 820px; }
.stores-section-heading h2,
.stores-publishing__intro h2 {
  margin-top: 1.1rem;
  font-size: clamp(2.35rem,4.2vw,4.5rem);
  line-height: 1.02;
  font-weight: 800;
}
.stores-section-heading > p,
.stores-publishing__intro > p {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}
.stores-authority { background: var(--paper); }
.stores-authority__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.2rem;
  margin-top: 3.5rem;
}
.stores-authority__card {
  min-height: 300px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: #fff;
  box-shadow: 0 18px 50px -36px rgba(5,2,41,.35);
}
.stores-card-number {
  color: var(--primary);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.stores-authority__card h3 {
  margin-top: 4rem;
  font-size: 1.55rem;
  font-weight: 800;
}
.stores-authority__card p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
}
.stores-publishing {
  color: #fff;
  background:
    radial-gradient(46rem 30rem at 88% 12%, rgba(56,76,255,.24), transparent 70%),
    radial-gradient(36rem 28rem at 5% 92%, rgba(137,63,252,.16), transparent 70%),
    var(--navy);
}
.stores-publishing__grid {
  display: grid;
  grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
  gap: clamp(3rem,7vw,7rem);
  align-items: center;
}
.stores-publishing__intro > p { color: rgba(255,255,255,.66); }
.stores-publishing__intro .btn { margin-top: 2rem; }
.stores-publishing__cards { display: grid; gap: 1rem; }
.stores-platform-card {
  padding: 1.7rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1.6rem;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
}
.stores-platform-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stores-platform-card__head .stores-platform-card__mark {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-content: center;
  border-radius: 1rem;
  color: var(--ink);
  background: #fff;
}
.stores-platform-card__head .stores-platform-card__mark--play { color: #fff; background: linear-gradient(145deg,#20b9ff,#384cff 60%,#893ffc); }
.stores-platform-card__mark svg { width: 1.65rem; height: 1.65rem; }
.stores-platform-card__head span {
  color: rgba(255,255,255,.48);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stores-platform-card__head h3 { margin-top: .2rem; font-size: 1.4rem; font-weight: 800; }
.stores-platform-card ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .75rem 1.25rem;
  margin-top: 1.45rem;
}
.stores-platform-card li {
  position: relative;
  padding-left: 1rem;
  color: rgba(255,255,255,.7);
  font-size: .86rem;
  line-height: 1.5;
}
.stores-platform-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: .36rem;
  height: .36rem;
  border-radius: 50%;
  background: #6f7dff;
}
.stores-managed { background: #fff; }
.stores-managed__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 3.5rem;
}
.stores-managed__item {
  min-height: 210px;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stores-managed__item strong { display: block; font-size: 1.16rem; font-weight: 800; }
.stores-managed__item span { display: block; margin-top: .9rem; color: var(--muted); line-height: 1.65; }
.stores-process { background: var(--paper); }
.stores-section-heading--center { margin-inline: auto; text-align: center; }
.stores-process__steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem;
  margin-top: 3.5rem;
}
.stores-process__steps article {
  position: relative;
  min-height: 270px;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: #fff;
}
.stores-process__steps article > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-content: center;
  border-radius: .8rem;
  background: var(--tint);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
}
.stores-process__steps strong { display: block; margin-top: 3.4rem; font-size: 1.22rem; font-weight: 800; }
.stores-process__steps p { margin-top: .8rem; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.stores-process__note {
  max-width: 850px;
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 1050px) {
  .stores-hero__grid,
  .stores-publishing__grid { grid-template-columns: 1fr; }
  .stores-hero__grid { min-height: auto; }
  .stores-marketplace { max-width: 680px; }
  .stores-authority__grid,
  .stores-managed__grid { grid-template-columns: repeat(2,1fr); }
  .stores-process__steps { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  .stores-hero__grid { padding-block: 4.5rem; }
  .stores-hero__copy h1 { font-size: clamp(2.65rem,13vw,4rem); }
  .stores-hero__badges,
  .stores-hero__actions { align-items: stretch; flex-direction: column; }
  .stores-hero__badges .store-badge,
  .stores-hero__actions .btn { justify-content: center; width: 100%; }
  .stores-listing { grid-template-columns: auto minmax(0,1fr); }
  .stores-listing__status { display: none; }
  .stores-listing__icon { width: 3.5rem; height: 3.5rem; }
  .stores-listing__copy p { font-size: .72rem; }
  .stores-marketplace__ownership { grid-template-columns: 1fr; }
  .stores-authority__grid,
  .stores-managed__grid,
  .stores-process__steps,
  .stores-platform-card ul { grid-template-columns: 1fr; }
  .stores-authority__card { min-height: 250px; }
  .stores-managed__grid { border-left: 0; }
  .stores-managed__item { min-height: auto; border-left: 1px solid var(--line); }
}

/* ---- Marquee / trust bar ---------------------------------------------- */
.dashed-path { stroke-dasharray: 6 8; }

/* ---- Step accordions (details/summary) -------------------------------- */
details.acc { padding: 1.25rem 1.5rem; }
details.acc > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1.25rem;
  outline: none;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::marker { content: ""; }
.acc__chevron { transition: transform .25s ease; flex: none; color: var(--muted); }
details.acc[open] .acc__chevron { transform: rotate(180deg); color: var(--ink); }
.acc__title { transition: color .15s ease; }
details.acc:hover .acc__title { color: var(--primary); }
.acc__body {
  overflow: hidden;
  animation: accOpen .28s ease;
}
@keyframes accOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.why-callout {
  border-left: 3px solid var(--primary);
  background: var(--tint);
  border-radius: .75rem;
  padding: 1rem 1.15rem;
}

/* ---- Journal filter tabs ---------------------------------------------- */
[data-filter] {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); border-radius: 9999px;
  padding: .55rem 1.1rem; font-weight: 600; font-size: .9rem;
  background: #fff; color: var(--ink); cursor: pointer;
  transition: all .18s ease; white-space: nowrap;
}
[data-filter]:hover { border-color: var(--primary); color: var(--primary); }
[data-filter].is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- Reveal on scroll -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Misc -------------------------------------------------------------- */
.bg-paper { background: var(--paper); }
.bg-navy  { background: var(--navy); }
.text-muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); }

/* Legacy texture blocks: pages not yet redesigned still pair `bg-brand`
   with `.grid-texture` and dark text. Render those as soft periwinkle
   panels (on-palette + legible) until each page gets its redesign pass. */
.grid-texture {
  background-image:
    linear-gradient(rgba(5,2,41,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5,2,41,.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-brand.grid-texture {
  background-color: var(--tint) !important;
  background-image:
    radial-gradient(36rem 22rem at 85% 0%, rgba(56,76,255,.12), transparent 60%),
    linear-gradient(rgba(5,2,41,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5,2,41,.03) 1px, transparent 1px);
}
.grid-texture-dark {
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Legacy numbered dots: `bg-branddeep text-ink` needs white text on blue. */
.bg-branddeep.text-ink { color: #fff !important; }
