/* ============================================================
   acemate blog — v3 "Clean Notebook"
   Modern AI-SaaS surface with quiet academic warmth.
   Inter throughout, JetBrains Mono used sparingly for meta.
   Brand blue is a precise accent — no saturated fields,
   no decorative numbering, lots of air.
   ============================================================ */

:root {
  --paper:    var(--neutral-25);
  --surface:  var(--neutral-0);
  --surface-2: var(--neutral-50);
  --ink:      var(--neutral-1000);
  --ink-1:    var(--neutral-600);
  --ink-2:    var(--neutral-500);
  --line:     var(--neutral-200);
  --line-2:   var(--neutral-300);
  --accent:   var(--brand-500);
  --accent-hover: var(--brand-600);
  --accent-soft: var(--brand-50);
  --accent-line: color-mix(in srgb, var(--brand-500) 26%, transparent);
  --hl:       rgba(1,93,228,0.14);

  /* one warm "paper" tone — the academic cue */
  --warm:     #F7F5F0;
  --warm-line: #ECE8DF;

  /* category accents — desaturated, calm */
  --c-research: var(--brand-500);
  --c-how-to:   #1F9D55;
  --c-stories:  #C77A0A;
  --c-updates:  #7A5AE0;
  --c-educators: #0E8C94;
  --c-danger:   #D64545;

  --maxw: 1180px;
  --shadow-card: 0 1px 2px rgba(11,15,25,.04);
  --shadow-hover: 0 14px 36px rgba(11,15,25,.08), 0 2px 6px rgba(11,15,25,.04);
}

[data-theme="dark"] {
  --paper:    var(--neutral-1000);
  --surface:  var(--neutral-900);
  --surface-2: var(--neutral-800);
  --ink:      #F4F5F7;
  --ink-1:    var(--neutral-300);
  --ink-2:    var(--neutral-400);
  --line:     #1E2430;
  --line-2:   #2A3140;
  --accent:   var(--brand-400);
  --accent-hover: var(--brand-300);
  --accent-soft: rgba(37,117,239,.16);
  --accent-line: rgba(37,117,239,.34);
  --hl:       rgba(37,117,239,0.26);
  --warm:     #16191F;
  --warm-line: #242a33;
  --c-how-to:   #4ECF8D;
  --c-stories:  #E0A85E;
  --c-updates:  #A18BF0;
  --c-educators: #3FC2CB;
  --c-danger:   #E76B6B;
  --shadow-card: 0 1px 2px rgba(0,0,0,.4);
  --shadow-hover: 0 18px 44px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.4);
}

/* density tweak */
.blog[data-density="spacious"] { --row: 104px; }
.blog[data-density="compact"]  { --row: 68px; }

/* highlight strength tweak */
.blog[data-accent="subtle"] { --hl: rgba(1,93,228,0.07); }
.blog[data-accent="medium"] { --hl: rgba(1,93,228,0.14); }
.blog[data-accent="bold"]   { --hl: rgba(1,93,228,0.28); }
[data-theme="dark"] .blog[data-accent="subtle"] { --hl: rgba(37,117,239,.16); }
[data-theme="dark"] .blog[data-accent="bold"]   { --hl: rgba(37,117,239,.40); }

/* ============================================================ reset ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--ink); }

.blog { min-height: 100vh; background: var(--paper); }

/* ============================================================ primitives ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-read { max-width: 720px; margin: 0 auto; padding: 0 28px; }

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  white-space: nowrap;
}
.kicker .tick { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

.cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink-1);
}
.cat .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ink-2); }
.cat .dot.research { background: var(--c-research); }
.cat .dot.how-to   { background: var(--c-how-to); }
.cat .dot.stories  { background: var(--c-stories); }
.cat .dot.updates  { background: var(--c-updates); }
.cat .dot.educators { background: var(--c-educators); }

.dotsep { color: var(--ink-2); opacity: .5; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-state),
              border-color var(--dur-fast) var(--ease-state),
              color var(--dur-fast) var(--ease-state),
              transform var(--dur-fast) var(--ease-state);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn-quiet { color: var(--ink-1); padding: 9px 10px; }
.btn-quiet:hover { color: var(--ink); }
.btn-sm { padding: 8px 13px; font-size: 12.5px; border-radius: 9px; }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-1);
  cursor: pointer; transition: color var(--dur-fast), gap var(--dur-fast);
}
.link-arrow:hover { color: var(--accent); gap: 9px; }

/* ============================================================ top nav ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 13px 28px;
}
.brand { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; }
.brand .word { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--ink); }
.brand .tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 5px;
  padding: 2px 6px; margin-left: 2px;
}
.nav-links { display: flex; gap: 1px; margin-left: 14px; }
.nav-link {
  padding: 7px 11px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-1);
  cursor: pointer; white-space: nowrap;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-spacer { flex: 1; }
.nav-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-1); border: 1px solid transparent;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.nav-burger { display: none; }
.nav-mobile { display: none; }

@media (max-width: 1080px) { .nav-link.opt { display: none; } }
@media (max-width: 760px)  {
  .nav-links { display: none; }
  .nav-cta { display: none; }            /* header CTA lives in the menu on mobile */
  .nav-burger { display: inline-flex; }
  .nav-mobile {
    display: flex; flex-direction: column;
    padding: 6px 16px 14px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
  }
  .nav-mobile-link {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 10px; border-radius: 10px;
    font-size: 16px; font-weight: 500; color: var(--ink-1);
    cursor: pointer;
    transition: color var(--dur-fast), background var(--dur-fast);
  }
  .nav-mobile-link:hover { color: var(--ink); background: var(--surface-2); }
  .nav-mobile-link.active { color: var(--ink); font-weight: 600; }
  .nav-mobile-cta { width: 100%; justify-content: center; margin-top: 10px; }
}
@media (max-width: 560px) {
  .nav-inner { padding: 11px 16px; gap: 10px; }
  .brand .tag { display: none; }
  .nav-tools { gap: 4px; }
}

/* ============================================================ reading progress (article) ============================================================ */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70;
  background: transparent;
}
.read-progress > div {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--brand-300));
  transition: width 80ms linear;
}

/* ============================================================ masthead (home) ============================================================ */
.masthead { padding: 64px 0 8px; }
.masthead h1 {
  margin: 16px 0 0;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.03;
  color: var(--ink); max-width: 17ch; text-wrap: balance;
}
.masthead h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, var(--hl) 62%);
  padding: 0 2px;
}
.masthead .lead {
  margin-top: 20px;
  font-size: 18px; color: var(--ink-1); line-height: 1.55;
  max-width: 56ch;
}
.masthead-meta {
  margin-top: 26px; display: flex; align-items: center; gap: 12px;
  color: var(--ink-2);
}

/* ============================================================ featured ============================================================ */
.featured {
  margin-top: 34px;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--dur-med), box-shadow var(--dur-med), transform var(--dur-med);
}
.featured:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.featured.flip { grid-template-columns: 0.95fr 1.05fr; }
.featured.flip .featured-text { order: 2; }
.featured.flip .featured-art  { order: 1; border-left: none; border-right: 1px solid var(--line); }
.featured-text {
  padding: 40px;
  display: flex; flex-direction: column; gap: 22px;
}
.featured-top { display: flex; align-items: center; gap: 12px; }
.featured-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
}
.featured h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--ink); text-wrap: balance;
}
.featured:hover h2 { color: var(--accent); }
.featured .dek {
  font-size: 16px; color: var(--ink-1); line-height: 1.55; max-width: 52ch;
}
.featured-foot {
  margin-top: auto; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 11px;
}
.featured-foot .avatar { width: 34px; height: 34px; font-size: 12px; }
.featured-foot .who { display: flex; flex-direction: column; line-height: 1.3; }
.featured-foot .who .name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.featured-foot .who .role { font-size: 12px; color: var(--ink-2); }
.featured-foot .tail { margin-left: auto; }
.featured-art {
  position: relative; background: var(--surface-2);
  border-left: 1px solid var(--line);
  min-height: 380px;
}
.featured-art image-slot { width: 100%; height: 100%; }

@media (max-width: 860px) {
  .featured, .featured.flip { grid-template-columns: 1fr; }
  .featured.flip .featured-text { order: 1; }
  .featured.flip .featured-art  { order: 2; border-right: none; }
  .featured-art { border-left: none; border-top: 1px solid var(--line); min-height: 240px; }
}

/* ============================================================ blog hero (index) ============================================================ */
.blog-hero { position: relative; overflow: hidden; padding: 66px 0 58px; }
.blog-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 52px; align-items: center; }
.blog-hero-copy { max-width: 620px; }
.blog-hero h1 { margin: 16px 0 0; font-size: clamp(38px, 5vw, 62px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.0; color: var(--ink); text-wrap: balance; }
.blog-hero h1 em { font-style: normal; background: linear-gradient(180deg, transparent 62%, var(--hl) 62%); padding: 0 3px; }
.blog-hero .lead { margin-top: 22px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-1); max-width: 52ch; text-wrap: pretty; }
.blog-hero-cta { margin-top: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.blog-hero-cta .btn { display: inline-flex; align-items: center; gap: 8px; }
.blog-hero-meta { margin-top: 26px; display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 12.5px; }
.blog-hero-meta b { color: var(--ink-1); }

/* aurora tint for the blog (research + guides), distinct from educators green */
.blog-hero .aurora .b1 { background: radial-gradient(circle at 30% 30%, var(--accent), transparent 68%); opacity: .42; }
.blog-hero .aurora .b2 { background: radial-gradient(circle at 50% 50%, var(--c-research), transparent 66%); opacity: .3; }
.blog-hero .aurora .b3 { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c-how-to) 82%, var(--accent)), transparent 68%); opacity: .3; }

/* floating featured "issue" card — the designed cover, in place of a photo */
.blog-hero-figure { position: relative; perspective: 1500px; }
.hero-issue {
  display: block; cursor: pointer; text-align: left; position: relative;
  border-radius: 20px; padding: 24px 24px 22px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: 0 30px 64px -24px rgba(11,15,25,.30), 0 10px 26px -12px rgba(11,15,25,.14);
  transform-style: preserve-3d;
  transition: box-shadow var(--dur-med), border-color var(--dur-med), transform var(--dur-med);
}
[data-theme="dark"] .hero-issue { background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: 0 30px 64px -24px rgba(0,0,0,.6), 0 10px 26px -12px rgba(0,0,0,.4); }
@media (prefers-reduced-motion: no-preference) { .hero-issue { animation: heroFloat 8s ease-in-out infinite; } }
@keyframes heroFloat {
  0%,100% { transform: rotateY(-7deg) rotateX(4deg) translateY(0); }
  50%     { transform: rotateY(-4deg) rotateX(2deg) translateY(-14px); }
}
.hero-issue:hover { border-color: var(--accent-line); box-shadow: 0 40px 82px -22px rgba(11,15,25,.38), 0 12px 30px -12px rgba(11,15,25,.18); }
.hero-issue-top { display: flex; align-items: center; gap: 10px; }
.hero-issue-title { margin: 15px 0 0; font-size: 20px; font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; transition: color var(--dur-fast); }
.hero-issue:hover .hero-issue-title { color: var(--accent); }
.hero-issue-dek { margin: 9px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-curve { margin-top: 16px; width: 100%; height: 108px; display: block; }
.hero-curve .cx { stroke: var(--line); stroke-width: 1; }
.hero-curve .decay { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 5; opacity: .55; }
.hero-curve .spaced { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-curve .dot-end { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .blog-hero .hero-curve .spaced { stroke-dasharray: 1; stroke-dashoffset: 1; animation: heroDraw 1.7s var(--ease-out) .25s forwards; }
  .blog-hero .hero-curve .decay  { opacity: 0; animation: heroFade .8s var(--ease-out) 1.15s forwards; }
  .blog-hero .hero-curve .dot-end { opacity: 0; animation: heroFade .5s var(--ease-out) 1.65s forwards; }
}
@keyframes heroDraw { to { stroke-dashoffset: 0; } }
@keyframes heroFade { to { opacity: .55; } }
.hero-issue-legend { margin-top: 12px; display: flex; gap: 16px; font-size: 10.5px; color: var(--ink-2); }
.hero-issue-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hero-issue-legend i { width: 14px; height: 0; border-top: 2px solid; display: inline-block; }
.hero-issue-legend i.spaced { border-top-color: var(--accent); }
.hero-issue-legend i.decay { border-top-color: var(--ink-2); border-top-style: dashed; }
.hero-issue-foot { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.hero-issue-foot .avatar { width: 28px; height: 28px; font-size: 10.5px; }
.hero-issue-foot .who { display: flex; flex-direction: column; line-height: 1.3; }
.hero-issue-foot .who .name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.hero-issue-foot .who .role { font-size: 11px; color: var(--ink-2); }
.hero-issue-foot .tail { margin-left: auto; font-size: 11.5px; color: var(--ink-2); }
.hero-issue-chip {
  position: absolute; left: -34px; bottom: 30px; z-index: 3;
  padding: 9px 13px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow-hover);
  display: inline-flex; align-items: center; gap: 7px;
}
@media (prefers-reduced-motion: no-preference) { .hero-issue-chip { animation: chipBob 6s ease-in-out .4s infinite; } }
@keyframes chipBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-issue-chip .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--c-how-to); }

@media (max-width: 980px) {
  .blog-hero { padding: 44px 0 40px; }
  .blog-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .blog-hero-figure { max-width: 460px; }
  .hero-issue { animation: none; transform: none; }
  .hero-issue-chip { left: auto; right: 14px; bottom: -14px; }
}

/* ============================================================ section header ============================================================ */
/* padding-top only — a shorthand here would reset the horizontal gutter
   on elements that are both .wrap and .sec, letting content hit the edges. */
.sec { padding-top: var(--row, 88px); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 26px;
}
.sec-head h3 {
  margin-top: 8px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--ink);
}

/* ============================================================ filter row ============================================================ */
.filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-1);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer; white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-state);
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.chip.active .count { color: var(--paper); opacity: .6; }
.chip .count { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.filters-spacer { flex: 1; }

/* ============================================================ post grid + card ============================================================ */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; gap: 32px; } }

.card { display: flex; flex-direction: column; cursor: pointer; }
.card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px; overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  transition: border-color var(--dur-med), box-shadow var(--dur-med);
}
.card:hover .card-img { border-color: var(--line-2); box-shadow: var(--shadow-hover); }
.card-img image-slot { width: 100%; height: 100%; }
.card-meta {
  display: flex; align-items: center; gap: 9px; margin-bottom: 9px;
}
.card-title {
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.25; color: var(--ink);
  transition: color var(--dur-fast);
}
.card:hover .card-title { color: var(--accent); }
.card-dek {
  margin-top: 8px; font-size: 14px; color: var(--ink-1); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  margin-top: 14px; padding-top: 0;
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--ink-2);
}
.card-foot .avatar { width: 22px; height: 22px; font-size: 9.5px; }
.card-foot .author { color: var(--ink-1); font-weight: 500; }
.card-foot .tail { margin-left: auto; }

/* wide list variant (archive secondary rows) */
.rowcard {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center;
  padding: 22px 0; border-top: 1px solid var(--line); cursor: pointer;
}
.rowcard:hover .rowcard-title { color: var(--accent); }
.rowcard-thumb { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.rowcard-thumb image-slot { width: 100%; height: 100%; }
.rowcard-body { display: flex; flex-direction: column; gap: 8px; }
.rowcard-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); transition: color var(--dur-fast); }
.rowcard-dek { font-size: 14px; color: var(--ink-1); line-height: 1.5; max-width: 60ch; }
.rowcard-side { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
@media (max-width: 720px) {
  .rowcard { grid-template-columns: 1fr; gap: 14px; }
  .rowcard-side { text-align: left; align-items: flex-start; flex-direction: row; gap: 10px; }
}

/* ============================================================ newsletter (warm band) ============================================================ */
.newsletter {
  margin-top: var(--row, 88px);
  background: var(--warm);
  border: 1px solid var(--warm-line);
  border-radius: 22px;
  padding: 48px 52px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.newsletter h3 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700; letter-spacing: -0.028em; line-height: 1.1; color: var(--ink);
  max-width: 20ch;
}
.newsletter p { margin-top: 14px; font-size: 15px; color: var(--ink-1); max-width: 46ch; line-height: 1.55; }
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input {
  flex: 1; padding: 13px 15px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-size: 14.5px; outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.nl-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nl-row .btn { padding: 13px 20px; }
.nl-fine { font-size: 12.5px; color: var(--ink-2); display: inline-flex; gap: 7px; align-items: center; }
.nl-fine .check { color: var(--c-how-to); }
.nl-success {
  font-size: 14px; color: var(--ink);
  padding: 14px 16px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; gap: 9px;
}
.nl-success .check { color: var(--c-how-to); }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; gap: 26px; padding: 36px 28px; } }

/* ============================================================ footer ============================================================ */
.footer { margin-top: var(--row, 88px); border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px;
}
.footer-brand { max-width: 300px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .row { display: flex; align-items: center; gap: 9px; }
.footer-brand .mark { width: 26px; height: 26px; border-radius: 7px; }
.footer-brand h4 { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--ink); }
.footer-brand p { font-size: 13.5px; color: var(--ink-1); line-height: 1.55; }
.footer-brand .socials { display: flex; gap: 8px; margin-top: 6px; }
.footer-brand .socials a {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-1);
  transition: all var(--dur-fast);
}
.footer-brand .socials a:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.footer-col h5 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--ink-1); cursor: pointer; }
.footer-col a:hover { color: var(--accent); }
.footer-rule {
  max-width: var(--maxw); margin: 36px auto 0; padding: 22px 28px 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-2);
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand { grid-column: span 2; } }

/* ============================================================ archive ============================================================ */
.archive-head { padding: 56px 0 26px; }
.archive-head h1 {
  margin: 16px 0 0; font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.03; color: var(--ink);
  max-width: 16ch; text-wrap: balance;
}
.archive-head h1 em { font-style: normal; background: linear-gradient(180deg, transparent 62%, var(--hl) 62%); padding: 0 2px; }
.archive-head .desc { margin-top: 18px; font-size: 17px; color: var(--ink-1); line-height: 1.55; max-width: 60ch; }
.archive-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.archive-count { margin-left: auto; }
.archive-count b { color: var(--ink); font-weight: 600; }
.no-results { padding: 72px 0; text-align: center; color: var(--ink-2); }
.no-results .big { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px; }

/* ============================================================ article ============================================================ */
.article { padding: 40px 0 0; }
.article-back { max-width: 820px; margin: 0 auto 22px; padding: 0 28px; }
.article-back a {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 13.5px; color: var(--ink-2); padding: 7px 11px; border-radius: 8px;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.article-back a:hover { color: var(--ink); background: var(--surface-2); }

.article-head { max-width: 820px; margin: 0 auto; padding: 0 28px; }
.article-eyebrow { display: flex; align-items: center; gap: 10px; }
.article-title {
  margin-top: 18px; font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: var(--ink);
  text-wrap: balance;
}
.article-title em { font-style: normal; background: linear-gradient(180deg, transparent 64%, var(--hl) 64%); padding: 0 2px; }
.article-dek { margin-top: 18px; font-size: 19px; color: var(--ink-1); line-height: 1.5; max-width: 60ch; }
.article-byline {
  margin-top: 26px; padding: 16px 0; display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.article-byline .avatar { width: 38px; height: 38px; font-size: 13px; }
.article-byline .who { display: flex; flex-direction: column; line-height: 1.3; }
.article-byline .who .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.article-byline .who .role { font-size: 12px; color: var(--ink-2); }
.article-byline .tail { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.article-hero { max-width: var(--maxw); margin: 40px auto 0; padding: 0 28px; }
.article-hero .frame {
  aspect-ratio: 16 / 8.2; border-radius: 18px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.article-hero image-slot { width: 100%; height: 100%; }
.article-hero .cap { margin-top: 12px; padding: 0 2px; color: var(--ink-2); }

.article-grid {
  max-width: var(--maxw); margin: 48px auto 0; padding: 0 28px;
  display: grid; grid-template-columns: 200px minmax(0,1fr) 56px; gap: 48px; align-items: start;
}
@media (max-width: 1040px) {
  .article-grid { grid-template-columns: 1fr; gap: 28px; max-width: 760px; }
  .article-toc { display: none; }
}

.article-toc { position: sticky; top: 84px; }
.article-toc h6 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 14px;
}
.article-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.article-toc a {
  display: block; padding: 7px 12px; font-size: 13px; color: var(--ink-1); cursor: pointer;
  line-height: 1.4; border-left: 2px solid var(--line); margin-left: 0;
  transition: all var(--dur-fast);
}
.article-toc a:hover { color: var(--ink); border-left-color: var(--line-2); }
.article-toc a.current { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.article-rail { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.article-rail .rail-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 4px;
}
.share-btn {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-1);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast);
}
.share-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.share-btn.copied { color: var(--c-how-to); border-color: color-mix(in srgb, var(--c-how-to) 40%, transparent); }

/* On mobile the rail drops into the content flow — lay it out as a
   horizontal row (declared after the base rules so it wins the cascade). */
@media (max-width: 1040px) {
  .article-rail {
    position: static;
    flex-direction: row; align-items: center; gap: 10px;
    margin-top: 8px; padding-top: 22px;
    border-top: 1px solid var(--line);
  }
  .article-rail .rail-label {
    writing-mode: horizontal-tb; transform: none; margin: 0 2px 0 0;
  }
}

/* article body type */
.article-body { max-width: 680px; font-size: 18px; line-height: 1.75; }
.article-body > p { margin: 0 0 24px; color: var(--ink-1); }
.article-body > p mark { background: linear-gradient(180deg, transparent 64%, var(--hl) 64%); color: var(--ink); padding: 0 1px; }
.article-body .lede {
  font-size: 21px; font-weight: 500; color: var(--ink); line-height: 1.5;
  margin: 0 0 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.article-body h2 {
  font-size: 25px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--ink); margin: 46px 0 16px; scroll-margin-top: 96px;
}
.article-body ul {
  list-style: none; padding: 4px 0 4px 4px; margin: 18px 0 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.article-body ul li {
  position: relative; padding-left: 24px;
  font-size: 17px; color: var(--ink); line-height: 1.55;
}
.article-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}

/* click-to-tweet pull quote */
.ctt {
  margin: 38px 0; padding: 28px 30px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; position: relative;
  cursor: pointer; transition: border-color var(--dur-med), box-shadow var(--dur-med);
}
.ctt:hover { border-color: var(--accent-line); box-shadow: var(--shadow-hover); }
.ctt .quote {
  font-size: 22px; font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink);
}
.ctt .ctt-foot {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: var(--ink-2);
}
.ctt .ctt-action {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--accent);
}

/* inline mid-article CTA */
.inline-cta {
  margin: 40px 0; padding: 26px 28px; border-radius: 16px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: flex; align-items: center; gap: 22px;
}
.inline-cta .body { flex: 1; }
.inline-cta .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); margin-bottom: 7px; white-space: nowrap; }
.inline-cta h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.inline-cta p { margin: 6px 0 0; font-size: 14px; color: var(--ink-1); line-height: 1.5; max-width: 48ch; }
@media (max-width: 560px) { .inline-cta { flex-direction: column; align-items: flex-start; gap: 16px; } }

/* end-of-article product callout */
.end-cta {
  max-width: 820px; margin: 56px auto 0; padding: 0 28px;
}
.end-cta-inner {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  border-radius: 22px; padding: 44px 44px;
  display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center;
}
[data-theme="dark"] .end-cta-inner { background: var(--surface); border: 1px solid var(--line-2); }
.end-cta-inner .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--brand-300); margin-bottom: 12px; white-space: nowrap; }
.end-cta-inner h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.12; color: #fff; max-width: 22ch; }
[data-theme="dark"] .end-cta-inner h3 { color: var(--ink); }
.end-cta-inner p { margin-top: 12px; font-size: 14.5px; color: rgba(255,255,255,.7); max-width: 44ch; line-height: 1.55; }
[data-theme="dark"] .end-cta-inner p { color: var(--ink-1); }
.end-cta-inner .actions { display: flex; flex-direction: column; gap: 10px; }
.end-cta-inner .btn-primary { background: #fff; color: var(--brand-700); }
.end-cta-inner .btn-primary:hover { background: var(--brand-50); }
.end-cta-inner .btn-line { border: 1px solid rgba(255,255,255,.24); color: #fff; background: transparent; }
.end-cta-inner .btn-line:hover { background: rgba(255,255,255,.08); }
[data-theme="dark"] .end-cta-inner .btn-primary { background: var(--accent); color: #fff; }
[data-theme="dark"] .end-cta-inner .btn-line { border-color: var(--line-2); color: var(--ink); }
.end-cta-inner .glow {
  position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(37,117,239,.5), transparent 70%); pointer-events: none;
}
@media (max-width: 620px) { .end-cta-inner { grid-template-columns: 1fr; gap: 22px; padding: 32px 26px; } }

/* author card */
.author-card {
  max-width: 820px; margin: 40px auto 0; padding: 0 28px;
}
.author-card-inner {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.author-card .av { width: 52px; height: 52px; border-radius: 999px; font-size: 17px; }
.author-card .who { font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.author-card .role { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.author-card .blurb { font-size: 14px; color: var(--ink-1); margin-top: 10px; max-width: 52ch; line-height: 1.55; }
.author-card .acts { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 620px) { .author-card .acts { display: none; } }

/* related */
.related { max-width: var(--maxw); margin: 64px auto 0; padding: 0 28px; }
.related-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line);
}
.related-head h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }

/* tags inline (article footer) */
.article-tags { max-width: 680px; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags .tag {
  font-size: 12.5px; color: var(--ink-1); padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer;
  transition: all var(--dur-fast);
}
.article-tags .tag:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ============================================================ toast ============================================================ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px);
  z-index: 200; background: var(--ink); color: var(--paper);
  padding: 11px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 9px;
  box-shadow: var(--shadow-hover);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .check { color: var(--brand-300); }

/* ============================================================ premium button ============================================================ */
.btn-premium {
  position: relative; overflow: hidden; color: #fff; border: none;
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, var(--c-educators)) 100%);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 60%, transparent),
              inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.btn-premium::after {
  content: ""; position: absolute; top: 0; left: -140%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease-out);
}
.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px color-mix(in srgb, var(--accent) 70%, transparent),
              inset 0 1px 0 rgba(255,255,255,.34);
}
.btn-premium:hover::after { left: 140%; }
.btn-premium svg { transition: transform var(--dur-fast) var(--ease-out); }
.btn-premium:hover svg { transform: translate(2px, -2px); }

/* ============================================================ scroll reveal ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================ educators page ============================================================ */
.edu-page { position: relative; }

.edu-hero2 { position: relative; overflow: hidden; padding: 78px 0 70px; }
/* Spans the full wrap (like the index blog hero) instead of a centred 900px
   column — otherwise the hero reads as shifted right against the other pages. */
.edu-hero2-inner { position: relative; z-index: 2; }
.edu-hero2 h1 {
  margin-top: 16px;
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; color: var(--ink);
  /* Keep the headline in a left column clear of the floating stats card
     (which is docked right and only shown above 1080px). */
  max-width: 15ch; text-wrap: balance;
}
.edu-hero2 .edu-hero2-cta, .edu-hero2 .edu-trust { max-width: 640px; }
.edu-hero2 h1 em { font-style: normal; color: var(--c-educators); }
.edu-hero2 .lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-1); max-width: 620px; text-wrap: pretty; }
.edu-hero2-cta { margin-top: 32px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.edu-trust { margin-top: 30px; font-size: 12px; color: var(--ink-2); letter-spacing: 0.02em; }
.edu-trust b { color: var(--ink-1); }

/* ambient aurora + grid */
.aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; mix-blend-mode: normal; }
[data-theme="dark"] .aurora .blob { opacity: .42; filter: blur(90px); }
.aurora .b1 { width: 560px; height: 560px; top: -180px; right: -80px; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 68%); }
.aurora .b2 { width: 480px; height: 480px; top: 40px; right: 220px; background: radial-gradient(circle at 50% 50%, var(--c-educators), transparent 66%); opacity: .38; }
.aurora .b3 { width: 420px; height: 420px; top: 160px; left: -120px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c-updates) 80%, var(--accent)), transparent 68%); opacity: .28; }
.aurora .mesh {
  position: absolute; inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 72%);
}
@media (prefers-reduced-motion: no-preference) {
  .aurora .b1 { animation: drift1 20s ease-in-out infinite alternate; }
  .aurora .b2 { animation: drift2 26s ease-in-out infinite alternate; }
  .aurora .b3 { animation: drift3 30s ease-in-out infinite alternate; }
}
@keyframes drift1 { to { transform: translate(-60px, 50px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(70px, 30px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(50px, -40px) scale(1.14); } }

/* floating hero preview */
.edu-hero2-float {
  position: absolute; z-index: 1; right: max(4vw, 20px); top: 96px;
  width: 300px; perspective: 1400px; pointer-events: none;
}
@media (max-width: 1080px) { .edu-hero2-float { display: none; } }
.edu-float-card {
  position: relative; border-radius: 18px; padding: 22px 20px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -24px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow-card);
  transform: rotateY(-16deg) rotateX(7deg);
  transform-style: preserve-3d;
}
@media (prefers-reduced-motion: no-preference) { .edu-float-card { animation: floaty 6s ease-in-out infinite; } }
@keyframes floaty { 0%,100% { transform: rotateY(-16deg) rotateX(7deg) translateY(0); } 50% { transform: rotateY(-13deg) rotateX(5deg) translateY(-14px); } }
.edu-float-card .fl-tag { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-educators); font-family: var(--font-mono); }
.edu-float-card .fl-q { margin-top: 12px; font-size: 18px; font-weight: 650; line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); }
.edu-float-card .fl-wave { margin-top: 18px; display: flex; align-items: center; gap: 3px; height: 26px; }
.edu-float-card .fl-wave span { flex: 1; border-radius: 2px; background: color-mix(in srgb, var(--accent) 55%, var(--c-educators)); }
.edu-float-chip {
  position: absolute; left: -46px; bottom: 44px;
  padding: 9px 13px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-card);
  display: inline-flex; align-items: center; gap: 7px; transform: translateZ(60px);
}
.edu-float-chip .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--c-how-to); }

/* ============================================================ feature theatre (3D deck) ============================================================ */
.feat-theatre { padding-top: 40px; }
.deck { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 44px; align-items: center; }
@media (max-width: 940px) { .deck { grid-template-columns: 1fr; gap: 30px; } }

.deck-steps { display: flex; flex-direction: column; gap: 8px; }
.deck-step {
  position: relative; display: flex; align-items: flex-start; gap: 14px; text-align: left;
  padding: 16px 16px 16px 18px; border-radius: 14px; cursor: pointer;
  border: 1px solid transparent; background: transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.deck-step::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform var(--dur-med) var(--ease-out);
}
.deck-step:hover { background: var(--surface-2); }
.deck-step.active { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-card); }
.deck-step.active::before { transform: scaleY(1); }
.step-no { font-size: 12px; color: var(--ink-2); font-weight: 600; padding-top: 2px; }
.deck-step.active .step-no { color: var(--accent); }
.step-body { display: flex; flex-direction: column; gap: 3px; }
.step-title { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.step-desc { font-size: 12.8px; line-height: 1.45; color: var(--ink-1); }
.deck-step-cta { margin-top: 18px; display: flex; }

/* 3D stage */
.deck-stage3d { position: relative; perspective: 1700px; min-height: 430px; display: flex; align-items: center; justify-content: center; }
.deck-3d { position: relative; width: 100%; max-width: 380px; height: 430px; transform-style: preserve-3d; transition: transform .2s var(--ease-out); }
.deck-card {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4,.05,.2,1), opacity .5s var(--ease-out), filter .5s var(--ease-out);
  will-change: transform;
}
.deck-card:not([data-active="true"]) { pointer-events: none; }
.deck-card .demo-card { height: 100%; box-shadow: 0 26px 60px -26px color-mix(in srgb, var(--accent) 40%, transparent), var(--shadow-card); }
.deck-card[data-active="true"] .demo-card { border-color: var(--line-2); }

/* legacy 3-up grid (still used inside deck as single) */
.demo-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 18px 16px;
  box-shadow: var(--shadow-card);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.demo-kicker { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; max-width: 55%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-foot { margin-top: auto; padding-top: 15px; }
.demo-blurb { font-size: 12.8px; line-height: 1.5; color: var(--ink-1); margin-bottom: 13px; text-wrap: pretty; }
.demo-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* flashcard */
.flashcard { position: relative; perspective: 1200px; cursor: pointer; margin-bottom: 2px; }
.flashcard::before, .flashcard::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%;
  border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-2); z-index: 0;
  transition: transform var(--dur-med) var(--ease-out);
}
.flashcard::before { transform: translateY(9px) scaleX(.955); opacity: .7; }
.flashcard::after  { transform: translateY(18px) scaleX(.9); opacity: .4; }
.flashcard:hover::before { transform: translateY(12px) scaleX(.955); }
.flashcard:hover::after  { transform: translateY(24px) scaleX(.9); }
.flashcard-inner {
  position: relative; z-index: 1; width: 100%; min-height: 190px;
  transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(.4,.1,.2,1);
}
.flashcard.flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: 13px; padding: 18px 17px;
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line-2);
}
.flashcard-face.front { background: var(--surface-2); }
.flashcard-face.back {
  transform: rotateY(180deg);
  background: color-mix(in srgb, var(--c-educators) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--c-educators) 34%, transparent);
}
.fc-tag { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.flashcard-face.back .fc-tag { color: var(--c-educators); }
.flashcard-face p { font-size: 16px; font-weight: 600; line-height: 1.42; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.fc-hint { margin-top: auto; font-size: 11.5px; color: var(--ink-2); }

/* exam */
.exam-q { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; text-wrap: pretty; }
.exam-opts { display: flex; flex-direction: column; gap: 8px; }
.exam-opt {
  display: flex; align-items: center; gap: 11px; text-align: left;
  padding: 11px 13px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: all var(--dur-fast) var(--ease-state);
}
.exam-opt:not(:disabled):hover { border-color: var(--accent-line); background: var(--accent-soft); }
.exam-mark {
  flex: none; width: 24px; height: 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--ink-1);
  font-size: 12px; font-weight: 700; font-family: var(--font-mono, monospace);
}
.exam-opt.correct { border-color: color-mix(in srgb, var(--c-how-to) 55%, transparent); background: color-mix(in srgb, var(--c-how-to) 12%, var(--surface)); }
.exam-opt.correct .exam-mark { background: var(--c-how-to); color: #fff; }
.exam-opt.wrong { border-color: color-mix(in srgb, #D64545 50%, transparent); background: color-mix(in srgb, #D64545 10%, var(--surface)); }
.exam-opt.wrong .exam-mark { background: #D64545; color: #fff; }
.exam-opt.dim { opacity: 0.5; }
.exam-feedback {
  margin-top: 12px; padding: 12px 14px; border-radius: 11px;
  font-size: 12.8px; line-height: 1.5; color: var(--ink-1);
  border: 1px solid var(--line); background: var(--surface-2);
}
.exam-feedback b { color: var(--ink); }
.exam-feedback.ok { border-color: color-mix(in srgb, var(--c-how-to) 30%, transparent); }
.exam-feedback.no { border-color: var(--line-2); }

/* podcast */
.podcast-player { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.pod-play {
  flex: none; width: 48px; height: 48px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-updates); color: #fff; cursor: pointer;
  border: none; transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--c-updates) 40%, transparent);
}
.pod-play:hover { transform: scale(1.05); }
.pod-play.playing { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-updates) 20%, transparent); }
.pod-body { flex: 1; min-width: 0; }
.pod-wave { display: flex; align-items: center; gap: 2px; height: 34px; }
.pod-wave span {
  flex: 1; min-width: 2px; border-radius: 2px; background: var(--line-2);
  transition: background var(--dur-fast);
}
.pod-wave span.on { background: var(--c-updates); }
.pod-time { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); margin-top: 6px; }
.pod-transcript { display: flex; flex-direction: column; gap: 9px; padding: 4px 0 2px; }
.pod-line {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.8px; line-height: 1.45; color: var(--ink-2);
  transition: color var(--dur-fast); opacity: 0.7;
}
.pod-line.active { color: var(--ink); opacity: 1; }
.pod-who {
  flex: none; width: 19px; height: 19px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; margin-top: 1px;
}
.pod-who.who-A { background: var(--c-updates); }
.pod-who.who-B { background: var(--c-educators); }

/* ============================================================ glossary ============================================================ */
.gloss-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.gloss-search {
  display: flex; align-items: center; gap: 9px; flex: 1; min-width: 240px;
  padding: 11px 15px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.gloss-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--accent); }
.gloss-search input { flex: 1; border: none; background: none; outline: none; font-size: 14.5px; color: var(--ink); font-family: inherit; }
.gloss-search input::placeholder { color: var(--ink-2); }
.gloss-themes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gloss-count { font-size: 12.5px; color: var(--ink-2); margin-bottom: 20px; }
.gloss-count b { color: var(--ink); }

.gloss-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 820px) { .gloss-grid { grid-template-columns: 1fr; } }

.gloss-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 15px; padding: 20px; cursor: pointer;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.gloss-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-card); }
.gloss-card.open { border-color: var(--accent-line); box-shadow: var(--shadow-card); }
.gloss-top { display: flex; align-items: flex-start; gap: 14px; }
.gloss-letter {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c-educators) 13%, var(--surface));
  color: var(--c-educators); font-weight: 700; font-size: 19px;
  font-family: var(--font-mono, monospace);
}
.gloss-heads { flex: 1; min-width: 0; }
.gloss-heads h4 { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); }
.gloss-theme { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; }
.gloss-chev { color: var(--ink-2); transition: transform var(--dur-med) var(--ease-out); flex: none; }
.gloss-card.open .gloss-chev { transform: rotate(180deg); }
.gloss-short { margin-top: 12px; font-size: 13.8px; line-height: 1.55; color: var(--ink-1); text-wrap: pretty; }
.gloss-more {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.gloss-card.open .gloss-more { grid-template-rows: 1fr; }
.gloss-more-inner { overflow: hidden; min-height: 0; }
.gloss-def { padding-top: 14px; font-size: 13.5px; line-height: 1.6; color: var(--ink-1); text-wrap: pretty; }
.gloss-cta {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.gloss-see { font-size: 12px; color: var(--ink-2); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

.gloss-demos-band { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--line); }

/* ============================================================ educators — misc ============================================================ */
.nav-link.edu {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); font-weight: 600;
}
.nav-link.edu:hover { background: var(--accent-soft); color: var(--accent); }
.nav-link.edu.active { color: var(--accent); }
.nav-link.edu svg { opacity: .8; }

/* step dots */
.step-title { display: inline-flex; align-items: center; gap: 8px; }
.step-title .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ink-2); flex: none; }
.step-title .dot.educators { background: var(--c-educators); }
.step-title .dot.research  { background: var(--c-research); }
.step-title .dot.updates   { background: var(--c-updates); }

/* active step reveal */
.step-reveal { animation: stepIn .4s var(--ease-out); overflow: hidden; }
@keyframes stepIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.step-reveal .step-desc { margin-top: 8px; }
.btn-step-cta { margin-top: 16px; padding: 11px 18px; font-size: 13px; }

.edu-posts { padding-top: 88px; }
.feat-theatre .sec-head, .edu-posts .sec-head { margin-bottom: 34px; }

/* ============================================================ educators v2 — sections ============================================================ */
.edu-section { padding-top: 92px; }
.edu-section-head { max-width: 720px; margin-bottom: 40px; }
.edu-section-head h2 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.edu-section-head h2 em { font-style: normal; color: var(--c-educators); }
.edu-section-lead { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink-1); text-wrap: pretty; }

/* deck idle motion */
@media (prefers-reduced-motion: no-preference) { .deck-stage3d { animation: deckBob 7s ease-in-out infinite; } }
@keyframes deckBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.deck-card { transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .5s var(--ease-out), filter .5s var(--ease-out); }
.deck-card[data-active="true"] .demo-card { box-shadow: 0 34px 70px -26px color-mix(in srgb, var(--accent) 52%, transparent), var(--shadow-card); }

/* hero float — bars variant */
.fl-bars { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.fl-bar { display: grid; grid-template-columns: 1fr 84px; align-items: center; gap: 10px; }
.fl-bar-n { font-size: 11.5px; color: var(--ink-1); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-bar-track { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.fl-bar-track i { display: block; height: 100%; border-radius: 999px; }
.fl-bar-track i.t-weak { background: var(--c-danger); }
.fl-bar-track i.t-dev { background: var(--accent); }
.fl-bar-track i.t-strong { background: var(--c-how-to); }

/* ============================================================ knowledge map ============================================================ */
.kmap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: stretch; }
@media (max-width: 940px) { .kmap { grid-template-columns: 1fr; } }
.kmap-stage {
  position: relative; perspective: 1600px; border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 60% at 40% 20%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-card); overflow: hidden; min-height: 420px;
}
.kmap-tilt { transition: transform .25s var(--ease-out); transform-style: preserve-3d; }
.kmap-svg { display: block; width: 100%; height: auto; padding: 14px; }

.kmap-edge { stroke: var(--line-2); stroke-width: 1.5; transition: stroke .3s, stroke-width .3s, opacity .3s; }
.kmap-edge.off { opacity: .5; }
.kmap-edge.lit { stroke: var(--accent); stroke-width: 2.5; opacity: 1; }

.kmap-node { cursor: pointer; transition: opacity .3s; }
.kmap .kmap-node { opacity: 0; transform-box: fill-box; }
.kmap.in .kmap-node { animation: nodeIn .5s var(--ease-out) forwards; }
@keyframes nodeIn { from { opacity: 0; } to { opacity: 1; } }
.kmap-node .disc { fill: currentColor; transition: r .3s var(--ease-out); }
.kmap-node .halo { fill: none; stroke: currentColor; stroke-width: 2; opacity: 0; transition: opacity .3s; }
.kmap-node .pct { fill: #fff; font-family: var(--font-mono); font-size: 15px; font-weight: 700; }
.kmap-node .lbl { fill: var(--ink-1); font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; }
.kmap-node.s-active .halo { opacity: .4; }
.kmap-node.s-active .lbl { fill: var(--ink); }
.kmap-node.s-dim { opacity: .34; }
.kmap-node.s-neighbor { opacity: .92; }
.kmap-node .pulse { fill: currentColor; opacity: .28; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .kmap-node .pulse { animation: nodePulse 2.4s ease-out infinite; } }
@keyframes nodePulse { 0% { transform: scale(1); opacity: .3; } 70% { transform: scale(1.9); opacity: 0; } 100% { opacity: 0; } }

.kmap-legend {
  position: absolute; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(8px); border: 1px solid var(--line);
}
.kl-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.kl-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-1); }
.kl-item .sw { width: 10px; height: 10px; border-radius: 3px; }
.sw.weak { background: var(--c-danger); } .sw.dev { background: var(--accent); } .sw.strong { background: var(--c-how-to); }

.kmap-inspector {
  display: flex; flex-direction: column; padding: 24px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  animation: kiIn .35s var(--ease-out);
}
@keyframes kiIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ki-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); }
.ki-title { margin-top: 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ki-tier { align-self: flex-start; margin-top: 8px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.ki-tier.t-weak { background: color-mix(in srgb, var(--c-danger) 14%, var(--surface)); color: var(--c-danger); }
.ki-tier.t-dev { background: var(--accent-soft); color: var(--accent); }
.ki-tier.t-strong { background: color-mix(in srgb, var(--c-how-to) 14%, var(--surface)); color: var(--c-how-to); }
.ki-mastery { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.ki-ring {
  --val: 0; flex: none; width: 78px; height: 78px; border-radius: 999px;
  display: grid; place-items: center;
  background: conic-gradient(currentColor calc(var(--val) * 1%), var(--surface-2) 0);
  color: var(--accent);
}
.ki-ring span { width: 60px; height: 60px; border-radius: 999px; background: var(--surface); display: grid; place-items: center; font-size: 20px; font-weight: 700; color: var(--ink); font-family: var(--font-mono); }
.ki-ring span b { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ki-metric { display: block; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.ki-metric-lbl { font-size: 12.5px; color: var(--ink-1); line-height: 1.4; }
.ki-note { margin-top: 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink-1); text-wrap: pretty; }
.ki-linked { margin-top: 18px; }
.ki-linked-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); }
.ki-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.ki-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; font-weight: 500; color: var(--ink); cursor: pointer; transition: all var(--dur-fast); }
.ki-chip:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.ki-chip .dot { width: 7px; height: 7px; border-radius: 999px; }
.ki-actions { margin-top: auto; padding-top: 20px; display: flex; gap: 9px; flex-wrap: wrap; }

/* ============================================================ class insights ============================================================ */
.insights { margin-top: 4px; }
.in-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 720px) { .in-kpis { grid-template-columns: 1fr; } }
.kpi { padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.kpi-val { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-family: var(--font-mono); }
.kpi-val b { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.kpi-lbl { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-1); }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.kpi-delta.up { color: var(--c-how-to); }

.in-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .in-grid { grid-template-columns: 1fr; } }
.in-panel { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.in-panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.in-panel-head h4 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.in-panel-head .mono { font-size: 11px; color: var(--ink-2); }

.stuck-list { display: flex; flex-direction: column; gap: 16px; }
.stuck-top { display: flex; justify-content: space-between; align-items: baseline; }
.stuck-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.stuck-pct { font-size: 14px; font-weight: 700; font-family: var(--font-mono); }
.stuck-bar { margin-top: 7px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.stuck-bar i { display: block; height: 100%; border-radius: 999px; width: 0; transition: width .9s cubic-bezier(.22,1,.36,1); }
.stuck-bar i.t-weak { background: var(--c-danger); } .stuck-bar i.t-dev { background: var(--accent); } .stuck-bar i.t-strong { background: var(--c-how-to); }
.stuck-sub { display: block; margin-top: 6px; font-size: 11.5px; color: var(--ink-2); }

.trend-figure { position: relative; }
.trend-headline { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.th-val { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-family: var(--font-mono); }
.th-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; }
.th-delta.up { color: var(--c-how-to); }
.spark { width: 100%; height: 96px; display: block; }
.spark-line { stroke-dasharray: 640; stroke-dashoffset: 640; }
.spark-area { opacity: 0; }
.spark-dot { fill: var(--accent); opacity: 0; }
.spark.in .spark-line { transition: stroke-dashoffset 1.4s var(--ease-out); stroke-dashoffset: 0; }
.spark.in .spark-area { transition: opacity .8s var(--ease-out) .3s; opacity: 1; }
.spark.in .spark-dot { transition: opacity .3s var(--ease-out) 1.2s; opacity: 1; }
.trend-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: var(--ink-2); }
.in-ask { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: flex-start; gap: 9px; font-size: 12.8px; line-height: 1.45; color: var(--ink-1); }
.in-ask svg { color: var(--accent); flex: none; margin-top: 1px; }
.in-trust { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.in-trust svg { color: var(--c-how-to); flex: none; }

/* ============================================================ trust band ============================================================ */
.trust-band { padding: 44px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.trust-head { max-width: 620px; margin-bottom: 30px; }
.trust-head h3 { margin-top: 12px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 30px; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: 13px; }
.trust-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c-how-to) 15%, var(--surface)); color: var(--c-how-to); }
.trust-t { font-size: 15px; font-weight: 650; color: var(--ink); }
.trust-d { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--ink-1); text-wrap: pretty; }
.trust-logos { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); letter-spacing: 0.02em; }

/* ============================================================ site footer (acemate brand block) ============================================================ */
.site-footer {
  --f-fg: #0B1225; --f-muted: #6a7180; --f-primary: var(--brand-500);
  background: var(--bg); padding: 8px;
}
@media (min-width: 640px) { .site-footer { padding: 12px; } }
.site-footer-card { position: relative; overflow: hidden; border-radius: 26px; background: #F6F5F1; }
@media (min-width: 640px) { .site-footer-card { border-radius: 40px; } }
.site-footer-content { position: relative; z-index: 2; max-width: 1360px; margin: 0 auto; padding: 56px 24px max(92px, 16vw); }
@media (min-width: 640px) { .site-footer-content { padding: 80px 40px max(150px, 14vw); } }
.site-footer-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .site-footer-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr); gap: 64px; } }

.foot-voice { max-width: 300px; margin: 0; font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; color: var(--f-fg); }
@media (min-width: 640px) { .foot-voice { font-size: 24px; } }
.foot-trust { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.foot-trust li { display: flex; align-items: center; gap: 12px; }
.foot-trust-ic { flex: none; width: 36px; height: 36px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(11,29,77,.08), 0 1px 2px rgba(11,29,77,.05); display: inline-flex; align-items: center; justify-content: center; color: var(--f-primary); }
.foot-trust-ic svg { width: 18px; height: 18px; }
.foot-trust span { font-size: 13.5px; font-weight: 500; color: rgba(11,18,37,.82); }
.foot-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-size: 13.5px; font-weight: 500; color: var(--f-fg); }
.foot-more:hover { color: var(--f-primary); text-decoration: none; }
.foot-more svg { transition: transform .2s var(--ease-out); }
.foot-more:hover svg { transform: translateX(2px); }
.foot-address { margin: 32px 0 0; font-size: 12.5px; line-height: 1.6; color: rgba(106,113,128,.9); }

.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
@media (min-width: 640px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot-col-h { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: rgba(11,18,37,.45); }
.foot-col ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--f-muted); transition: color .15s; }
.foot-col a:hover { color: var(--f-fg); text-decoration: none; }

.site-footer-bar { position: relative; z-index: 2; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(11,29,77,.1); display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) { .site-footer-bar { margin-top: 64px; flex-direction: row; align-items: center; justify-content: space-between; } }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: var(--f-muted); }
.foot-legal a, .foot-legal button { color: var(--f-muted); font: inherit; background: none; border: none; padding: 0; cursor: pointer; transition: color .15s; }
.foot-legal a:hover, .foot-legal button:hover { color: var(--f-fg); text-decoration: none; }
.foot-social { display: flex; align-items: center; gap: 18px; }
.foot-social a { color: rgba(11,18,37,.7); display: inline-flex; transition: color .15s; }
.foot-social a:hover { color: var(--f-primary); }
.foot-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--f-fg); }

/* monumental gradient-masked wordmark, bleeding off the bottom edge */
.foot-wordmark-wrap { pointer-events: none; position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 0 8px; }
@media (min-width: 640px) { .foot-wordmark-wrap { padding: 0 20px; } }
.foot-wordmark {
  width: 100%; aspect-ratio: 115 / 19; transform: translateY(20%);
  background-image:
    linear-gradient(180deg, rgba(2,8,30,.55) 0%, rgba(2,8,30,0) 40%),
    linear-gradient(0deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 42%),
    radial-gradient(80% 170% at 60% 26%, rgba(233,242,255,.92) 0%, rgba(233,242,255,0) 24%),
    linear-gradient(115deg, #0a1a5e 0%, #1a41c8 42%, #3f7bff 66%, #0b2a86 100%);
  background-size: 100% 100%, 100% 100%, cover, cover;
  background-position: center, center, center 42%, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-blend-mode: multiply, screen, screen, normal;
  -webkit-mask-image: url(../assets/acemate-wordmark.svg); mask-image: url(../assets/acemate-wordmark.svg);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  filter: drop-shadow(0 1.5px 0 rgba(255,255,255,.8)) drop-shadow(0 -1px 1px rgba(11,29,77,.16));
}
