/* Mentorfolio — marketing site.
   Design tokens first, then layout, then components. No framework, no CDN:
   the whole page is served from the binary. */

:root {
  /* palette — SaaS trust violet with a warm call to action */
  --violet-50:  #f4f2ff;
  --violet-100: #e8e4ff;
  --violet-200: #d4cdff;
  --violet-400: #8b7cf6;
  --violet-500: #6d5ce7;
  --violet-600: #5b4be0;
  --violet-700: #4a3bc2;
  --amber-400:  #fbbf24;
  --amber-500:  #f59e0b;
  --amber-600:  #d97706;
  --slate-50:   #f8fafc;
  --slate-100:  #f1f5f9;
  --slate-200:  #e2e8f0;
  --slate-300:  #cbd5e1;
  --slate-400:  #94a3b8;
  --slate-500:  #64748b;
  --slate-600:  #475569;
  --slate-700:  #334155;
  --slate-800:  #1e293b;
  --slate-900:  #0f172a;
  --green-500:  #22c55e;
  --green-600:  #16a34a;
  --red-500:    #ef4444;

  --ink:        var(--slate-800);
  --ink-soft:   var(--slate-600);
  --ink-mute:   var(--slate-500);
  --line:       var(--slate-200);
  --surface:    #ffffff;
  --surface-2:  var(--slate-50);
  --brand:      var(--violet-600);
  --brand-ink:  var(--violet-700);
  --cta:        var(--amber-500);
  --cta-ink:    #231704;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow:    0 12px 32px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 32px 64px -24px rgba(15, 23, 42, .28);

  --font-head: "Plus Jakarta Sans", "Noto Sans Devanagari", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Noto Sans Devanagari", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section: 88px;
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --section: 60px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.landing-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--slate-900);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; }

img, svg, canvas { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------- layout */

.l-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.l-section { padding-block: var(--section); }
.l-section--tight { padding-block: calc(var(--section) * .55); }
.l-section--soft { background: var(--surface-2); }
.l-section--ink {
  background: var(--slate-900);
  color: var(--slate-300);
}
.l-section--ink h2, .l-section--ink h3 { color: #fff; }

.l-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.l-eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--cta);
}

.l-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.l-center { text-align: center; margin-inline: auto; }
.l-center .l-lead { margin-inline: auto; }

.l-grid { display: grid; gap: 24px; }
.l-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.l-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.l-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .l-grid--3, .l-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .l-grid--3, .l-grid--4, .l-grid--2 { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------- header */

.l-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.l-header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 72px;
}

.l-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--slate-900); font-weight: 800; }
.l-brand:hover { text-decoration: none; }
.l-brand__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(140deg, var(--violet-500), var(--violet-700));
  color: #fff; box-shadow: 0 6px 16px -6px rgba(91, 75, 224, .7);
}
.l-brand__text { font-family: var(--font-head); font-size: 1.12rem; letter-spacing: -.02em; }

.l-nav { display: flex; gap: 26px; margin-inline-start: 18px; }
.l-nav a {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem; padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.l-nav a:hover { color: var(--slate-900); text-decoration: none; border-bottom-color: var(--violet-200); }

.l-header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.l-locale select {
  appearance: none;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 9px 30px 9px 14px; font: inherit; font-size: .88rem;
  color: var(--ink-soft); cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 16px;
}

.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease, color .16s ease;
}
.l-btn:hover { text-decoration: none; }
.l-btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(91, 75, 224, .9); }
.l-btn--primary:hover { background: var(--violet-700); color: #fff; transform: translateY(-1px); }
.l-btn--cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 10px 24px -12px rgba(245, 158, 11, .9); }
.l-btn--cta:hover { background: var(--amber-400); color: var(--cta-ink); transform: translateY(-1px); }
.l-btn--sm {
  padding: 9px 16px;
  font-size: 0.82rem;
}

.l-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.l-btn--ghost:hover { background: var(--slate-50); color: var(--slate-900); border-color: var(--slate-300); }
.l-btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); }
.l-btn--light:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.l-btn--block { width: 100%; }

.l-burger {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}

.l-mobile-nav { display: none; flex-direction: column; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); }
.l-mobile-nav a { padding: 12px 0; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--slate-100); }
.l-mobile-nav[hidden] { display: none; }

@media (max-width: 900px) {
  .l-nav { display: none; }
  .l-burger { display: inline-flex; }
  .l-mobile-nav { display: flex; }
  .l-mobile-nav[hidden] { display: none; }
  .l-header__actions .l-btn--ghost { display: none; }
}

/* On a phone the header only keeps the language and the menu: the buttons
   live in the menu, so the row never overflows. */
@media (max-width: 700px) {
  .l-header__actions .l-btn { display: none; }
  .l-burger { flex: none; }
  .l-locale select { max-width: 130px; }
}

/* ------------------------------------------------------------- hero */

.l-hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 88px);
  background:
    radial-gradient(1100px 520px at 82% -12%, rgba(139, 124, 246, .22), transparent 62%),
    radial-gradient(760px 420px at 4% 8%, rgba(245, 158, 11, .16), transparent 60%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 74%);
  overflow: hidden;
}

.l-hero__grid {
  display: grid; gap: 48px;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 1040px) { .l-hero__grid { grid-template-columns: minmax(0, 1fr); } }

.l-hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 22px;
}
.l-hero__badge span {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  background: var(--violet-100); color: var(--violet-700);
}

.l-hero h1 { margin-bottom: 18px; }
.l-hero h1 em { font-style: normal; color: var(--brand); }

.l-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }

.l-hero__note { display: flex; align-items: center; gap: 8px; color: var(--ink-mute); font-size: .9rem; }
.l-hero__note svg { color: var(--green-500); flex: none; }

.l-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.l-stat__value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--slate-900); line-height: 1.1; }
.l-stat__label { font-size: .85rem; color: var(--ink-mute); }

.l-canvas-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #fbfaff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 14px;
}
.l-canvas-frame canvas { display: block; width: 100%; height: auto; border-radius: 12px; }

/* ------------------------------------------------------------- facts strip */

.l-facts {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 26px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (max-width: 980px) { .l-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .l-facts { grid-template-columns: minmax(0, 1fr); padding: 22px; } }
.l-fact { display: flex; gap: 12px; align-items: flex-start; }
.l-fact__icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--violet-50); color: var(--brand);
}
.l-fact p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.l-fact strong { color: var(--slate-900); display: block; font-size: .98rem; }

/* ------------------------------------------------------------- cards */

.l-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
}
.l-card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--violet-200); }
.l-card h3 { margin-bottom: 8px; }
.l-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.l-icon-badge {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--violet-100), var(--violet-50));
  color: var(--brand); margin-bottom: 16px;
}
.l-icon-badge--amber { background: linear-gradient(140deg, #fef3c7, #fffbeb); color: var(--amber-600); }
.l-icon-badge--green { background: linear-gradient(140deg, #dcfce7, #f0fdf4); color: var(--green-600); }

.l-step { position: relative; padding-left: 0; }
.l-step__num {
  font-family: var(--font-head); font-size: .8rem; font-weight: 800; color: var(--violet-400);
  letter-spacing: .1em; margin-bottom: 10px; display: block;
}

/* ------------------------------------------------------------- tutors */

.l-tutor {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.l-tutor:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.l-tutor__head { display: flex; gap: 12px; align-items: center; }
.l-avatar {
  width: 48px; height: 48px; border-radius: 999px; flex: none;
  display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--violet-500), var(--violet-700));
  font-family: var(--font-head); font-size: 1rem;
}
.l-tutor__name { font-weight: 700; color: var(--slate-900); text-decoration: none; display: block; }
.l-tutor__name:hover { color: var(--brand); }
.l-tutor__role { font-size: .85rem; color: var(--ink-mute); }
.l-tutor__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.l-tag {
  font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: var(--slate-100); color: var(--ink-soft);
}
.l-tag--ok { background: #dcfce7; color: var(--green-600); }
.l-tutor__foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--slate-100);
}
.l-rating { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; font-weight: 600; color: var(--slate-700); }
.l-rating svg { color: var(--amber-500); }
.l-alert {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.l-alert.is-success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.l-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.l-price { font-family: var(--font-head); font-weight: 800; color: var(--slate-900); }
.l-price small { font-family: var(--font-body); font-weight: 500; color: var(--ink-mute); }

/* ------------------------------------------------------------- free reader */

.l-free {
  display: grid; gap: 44px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 980px) { .l-free { grid-template-columns: minmax(0, 1fr); } }

.l-free__list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.l-free__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.l-free__list svg { flex: none; margin-top: 3px; color: var(--green-500); }

.l-reader-frame {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.l-reader-frame__bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--slate-50);
}
.l-reader-frame__dots { display: flex; gap: 6px; }
.l-reader-frame__dots i { width: 10px; height: 10px; border-radius: 999px; background: var(--slate-300); display: block; }
.l-reader-frame__title { font-size: .85rem; color: var(--ink-mute); margin-inline-start: auto; }
.l-reader-frame__page {
  padding: 26px 28px 30px; min-height: 210px;
  background:
    linear-gradient(90deg, rgba(91, 75, 224, .05) 0 22px, transparent 22px),
    repeating-linear-gradient(#fff 0 27px, #f1f5f9 27px 28px);
  border-left: 1px solid var(--slate-100);
}
.l-reader-frame__h { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--slate-900); margin-bottom: 14px; }
.l-reader-frame__line { height: 9px; border-radius: 5px; background: var(--slate-200); margin-bottom: 11px; }
.l-reader-frame__line--short { width: 62%; }

/* ------------------------------------------------------------- pricing */

.l-plans { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1080px) { .l-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .l-plans { grid-template-columns: minmax(0, 1fr); } }

.l-plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; height: 100%; display: flex; flex-direction: column; position: relative;
}
.l-plan--featured { border-color: var(--violet-400); box-shadow: var(--shadow-lg); }
.l-plan--featured::before {
  content: attr(data-badge); position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.l-plan__name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; }
.l-plan__tagline { font-size: .88rem; color: var(--ink-mute); min-height: 2.6em; margin-bottom: 16px; }
.l-plan__price { font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: var(--slate-900); line-height: 1; }
.l-plan__price small { font-size: .9rem; font-family: var(--font-body); font-weight: 500; color: var(--ink-mute); }
.l-plan__yearly { font-size: .82rem; color: var(--ink-mute); margin-top: 6px; }
.l-plan__features { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 9px; flex: 1; }
.l-plan__features li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.l-plan__features svg { flex: none; margin-top: 3px; color: var(--green-500); }
.l-plan__features li[data-off="true"] { color: var(--slate-400); }
.l-plan__features li[data-off="true"] svg { color: var(--slate-300); }

.l-compare { width: 100%; border-collapse: collapse; font-size: .92rem; }
.l-compare th, .l-compare td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.l-compare thead th { font-family: var(--font-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); }
.l-compare tbody th { font-weight: 600; color: var(--ink); }
.l-compare td { color: var(--ink-soft); }
.l-compare .is-plan { background: var(--violet-50); color: var(--slate-900); font-weight: 600; }
.l-compare .is-free { color: var(--green-600); }
.l-compare tr:last-child th, .l-compare tr:last-child td { border-bottom: 0; }
.l-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------- documents */

.l-doc {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; height: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.l-doc:hover { border-color: var(--violet-200); box-shadow: var(--shadow); }
.l-doc__icon {
  flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: #fee2e2; color: #b91c1c;
}
.l-doc h3 { font-size: 1rem; margin-bottom: 4px; }
.l-doc p { font-size: .87rem; color: var(--ink-mute); margin: 0 0 8px; }
.l-doc__meta { font-size: .78rem; color: var(--ink-mute); display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------- quote / faq */

.l-quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; height: 100%;
}
.l-quote p { font-size: .97rem; color: var(--ink); }
.l-quote footer { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.l-quote cite { font-style: normal; font-size: .86rem; color: var(--ink-mute); }
.l-quote__stars { color: var(--amber-500); letter-spacing: 2px; }

.l-faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.l-faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 20px;
}
.l-faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--slate-900);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px;
}
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--slate-400); border-bottom: 2px solid var(--slate-400);
  transform: rotate(45deg); transition: transform .18s ease;
}
.l-faq details[open] summary::after { transform: rotate(-135deg); }
.l-faq details p { margin: 0 0 18px; color: var(--ink-soft); font-size: .95rem; }

/* ------------------------------------------------------------- cta */

.l-cta {
  background: radial-gradient(700px 340px at 18% 0%, rgba(139, 124, 246, .35), transparent 60%),
              linear-gradient(120deg, var(--slate-900), #241f4d);
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
  color: #e2e8f0; text-align: center;
}
.l-cta h2 { color: #fff; }
.l-cta p { color: #cbd5e1; max-width: 60ch; margin-inline: auto; }
.l-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ------------------------------------------------------------- footer */

.l-footer { background: var(--slate-900); color: var(--slate-400); padding-block: 64px 28px; }
.l-footer__inner { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .l-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .l-footer__inner { grid-template-columns: minmax(0, 1fr); } }
.l-footer__brand .l-brand { color: #fff; margin-bottom: 14px; }
.l-footer__blurb { font-size: .9rem; max-width: 38ch; }
.l-footer__title { font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: 12px; }
.l-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.l-footer__list a { color: var(--slate-300); font-size: .9rem; }
.l-footer__list a:hover { color: #fff; }
.l-social { display: flex; gap: 8px; margin-top: 16px; }
.l-social__link {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #cbd5e1;
}
.l-social__link:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.l-footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .82rem; color: var(--slate-500);
}
.l-footer__bottom p { margin: 0; }

/* ------------------------------------------------------------- reader page */

.l-viewer {
  display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}
@media (max-width: 980px) { .l-viewer { grid-template-columns: minmax(0, 1fr); } }
.l-viewer__frame {
  background: var(--slate-100); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; min-height: 70vh;
}
.l-viewer__frame object, .l-viewer__frame iframe { width: 100%; height: 70vh; border: 0; display: block; }
.l-viewer__meta { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.l-viewer__meta dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0 0; font-size: .9rem; }
.l-viewer__meta dt { color: var(--ink-mute); }
.l-viewer__meta dd { margin: 0; color: var(--ink); }

/* ------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* The content is visible by default: the animation is added by the script, so
   a visitor without JavaScript — and every search engine — sees the page. */
.l-reveal { transition: opacity .5s ease, transform .5s ease; }
html.has-js .l-reveal:not(.is-visible) { opacity: 0; transform: translateY(14px); }
html.has-js .l-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.has-js .l-reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- extras */

.l-toolbar { display: flex; gap: 10px; }
.l-input {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink);
  min-width: min(320px, 100%);
}
.l-input:focus { border-color: var(--violet-400); outline: 2px solid var(--violet-200); outline-offset: 1px; }

.l-empty {
  background: #fff; border: 1px dashed var(--slate-300); border-radius: var(--radius);
  padding: 40px 24px; text-align: center;
}
.l-empty h3 { margin-bottom: 6px; }
.l-empty p { color: var(--ink-mute); margin: 0; }

.l-back { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink-soft); }
.l-back:hover { color: var(--brand); text-decoration: none; }
