/* =====================================================================
   TempNote — landing styles
   Warm paper ground, grey chrome, and the app's eight light hues as the
   page's accents. Sibling of fin.nikhco.in and mantra.nikhco.in.
   ===================================================================== */

:root {
  color-scheme: light;

  /* App palette (docs/HANDOFF.md §4.5, §4.6) */
  --paper: #FFFDF8;
  --ink: #1D1D1F;
  --icon: #6E6E73;
  --muted: #8E8E93;
  --placeholder: #C7C7CC;
  --hairline: #0000000F;
  --border: #00000024;
  --link: #007AFF;
  --check: #34A853;
  --heart: #FF3B30;

  --sand: #FAF3E4;      --sand-solid: #D9B878;
  --mint: #E7F4EC;      --mint-solid: #7FC39A;
  --sky: #E8F2FA;       --sky-solid: #7DB4E0;
  --lavender: #EFEAFA;  --lavender-solid: #A58EE0;
  --pink: #FBECF4;      --pink-solid: #DD94BB;
  --teal: #E7F5F5;      --teal-solid: #82C7C7;
  --coral: #FCEEEA;     --coral-solid: #E39A86;
  --white-solid: #8C94A0;

  --shadow-pop: 0 12px 32px #0000001F, 0 2px 6px #0000000F;
  --shadow-soft: 0 1px 0 #00000005, 0 8px 20px -12px #00000026;

  --radius: 12px;
  --content: 1120px;
  --gutter: 16px;

  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-note: "Nunito", "SF Pro Rounded", ui-rounded, "Inter", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

.section-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.muted { color: var(--muted); font-weight: 400; }

kbd {
  display: inline-block;
  min-width: 24px;
  padding: 1px 7px;
  margin: 0 1px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid #0000001A;
  border-bottom-width: 2px;
  border-radius: 6px;
  vertical-align: middle;
}

/* ---------- Top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #FFFDF8E6;
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.top.is-scrolled { border-bottom-color: var(--hairline); }

.top-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.brand-name {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s ease, transform .25s ease;
}
.top.is-past-hero .brand-name { opacity: 1; transform: none; }

.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a { color: var(--icon); font-size: 14px; font-weight: 500; }
.top-nav a:hover { color: var(--ink); text-decoration: none; }
.top-cta {
  color: var(--ink) !important;
  background: #fff;
  border: 1px solid #0000001A;
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 1px 2px #0000000A;
}
.top-cta:hover { border-color: #00000030; }

@media (max-width: 640px) {
  .top-nav a:not(.top-cta) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 20px -10px #1D1D1F80, 0 1px 2px #0000001A;
}
.btn-primary:hover { background: #2C2C2E; box-shadow: 0 12px 28px -12px #1D1D1F99, 0 1px 2px #0000001A; }

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid #0000001A;
  box-shadow: 0 1px 2px #0000000A;
}
.btn-secondary:hover { background: var(--sky); border-color: var(--sky-solid); }
.btn-secondary[aria-disabled="true"] { cursor: default; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 28px;
  margin-top: 30px;
}
.cta-row.centered { justify-content: center; }
.cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cta-row.centered .cta { align-items: center; }
.cta .btn { width: 100%; }
.cta-meta { font-size: 13px; color: var(--muted); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 80px;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .9;
}
.blob-sand { background: var(--sand); left: -180px; top: -200px; }
.blob-mint { background: var(--mint); left: 22%; top: -300px; }
.blob-sky { background: var(--sky); right: -120px; top: -240px; }
.blob-lavender { background: var(--lavender); right: 18%; top: 240px; width: 420px; height: 420px; }
.blob-pink { background: var(--pink); left: 36%; top: 300px; width: 360px; height: 360px; }

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-brand img { width: 52px; height: 52px; border-radius: 13px; box-shadow: var(--shadow-soft); }

.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero h1 em {
  display: inline-block;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  font-family: var(--font-note);
  font-weight: 700;
  color: var(--icon);
}

.hero-sub {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.5;
  color: #3A3A3C;
  max-width: 40ch;
}
.hero .cta-row { margin-top: 36px; }
.hero .btn-primary { font-size: 17px; padding: 16px 26px; }

.hero-shot { margin: 0; display: flex; justify-content: center; }
.hero-shot img { width: 364px; max-width: 100%; }

@media (max-width: 880px) {
  .hero { padding: 40px 0 56px; min-height: 0; display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-brand { font-size: 20px; margin-bottom: 20px; }
  .hero-brand img { width: 44px; height: 44px; border-radius: 11px; }
  .hero-sub { font-size: 17px; }
  .hero-shot { order: -1; }
  .hero-shot img { width: 320px; }
  .blob { width: 360px; height: 360px; }
}

/* ---------- Three beats ---------- */

.beats { padding: 80px 0 0; }
.beats h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; text-align: center; }
.beats .beats-grid { margin-top: 36px; }
.beats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.beat {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}
.beat-sand { background: var(--sand); }
.beat-mint { background: var(--mint); }
.beat-coral { background: var(--coral); }
.beat-num {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.beat-sand .beat-num { background: var(--sand-solid); }
.beat-mint .beat-num { background: var(--mint-solid); }
.beat-coral .beat-num { background: var(--coral-solid); }
.beat h3 { font-size: 22px; font-family: var(--font-note); font-weight: 700; }
.beat p { margin-top: 8px; font-size: 15px; color: #3A3A3C; }
.beat kbd { background: #FFFFFFB3; }

@media (max-width: 760px) {
  .beats-grid { grid-template-columns: 1fr; }
  .beats, .gallery, .features, .grid-section, .keyboard, .chrome, .faq, .changelog { padding-top: 56px; }
  .download-end { padding: 64px 0 56px; }
}

/* ---------- Features ---------- */

.features { padding: 80px 0 0; }
.features h2, .keyboard h2, .download-end h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
}
.section-lede {
  margin: 14px auto 0;
  text-align: center;
  font-size: 17px;
  color: var(--icon);
  max-width: 58ch;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 24px;
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
}
.feature.flip .feature-media { order: 2; }
.features .section-lede + .feature { margin-top: 40px; }
.feature-sand { background: var(--sand); }
.feature-lavender { background: var(--lavender); }
.feature-mint { background: var(--mint); }
.feature-sky { background: var(--sky); }
.feature-teal { background: var(--teal); }
.feature-pink { background: var(--pink); }
.feature-coral { background: var(--coral); }

.feature-media { display: flex; justify-content: center; }
.feature-media img { width: 340px; max-width: 100%; }

.feature-body h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature-body p:not(.eyebrow) { margin-top: 12px; font-size: 16px; color: #3A3A3C; max-width: 44ch; }
.feature-body .eyebrow { margin-bottom: 8px; }

.swatches { display: flex; gap: 10px; margin-top: 18px; }
.swatches span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sw);
  border: 1.5px solid var(--sw-ring);
}

.keycap-hero {
  display: flex;
  gap: 12px;
  padding: 36px 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--hairline);
}
.keycap-hero kbd {
  min-width: 64px;
  height: 64px;
  line-height: 60px;
  font-size: 28px;
  font-weight: 500;
  border-radius: 14px;
  padding: 0 14px;
  border: 1px solid #0000001A;
  border-bottom-width: 4px;
  background: #F7F7F9;
}

.private-card {
  width: 320px;
  max-width: 100%;
  padding: 20px 22px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
}
.private-row { display: flex; align-items: center; gap: 12px; }
.private-icon {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  flex: none;
}
.private-icon svg { width: 18px; height: 18px; }
.private-icon-mint { background: var(--mint); color: #3F8F60; }
.private-icon-sky { background: var(--sky); color: #3F7DB3; }
.private-icon-lavender { background: var(--lavender); color: #6D54B8; }
.private-icon-coral { background: var(--coral); color: #B9654C; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; margin-top: 28px; }
  .feature.flip .feature-media { order: 0; }
  .feature-media img { width: 300px; }
  .keycap-hero { padding: 24px; gap: 8px; }
  .keycap-hero kbd { min-width: 54px; height: 54px; line-height: 50px; font-size: 24px; }
}

/* ---------- Keyboard ---------- */

.keyboard { padding: 80px 0 0; }
.shortcuts {
  width: 100%;
  max-width: 680px;
  margin: 32px auto 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  font-size: 15px;
}
.shortcuts td {
  padding: 13px 18px;
  border-top: 1px solid var(--hairline);
  vertical-align: middle;
}
.shortcuts tr:first-child td { border-top: 0; }
.shortcuts td:last-child { text-align: right; white-space: nowrap; }
.shortcuts kbd { background: #F2F2F7; border-color: #0000000F; }

@media (max-width: 520px) {
  .shortcuts { font-size: 14px; }
  .shortcuts td { padding: 11px 12px; }
  .shortcuts .muted { display: block; font-size: 12px; }
}

/* ---------- Chrome ---------- */

.chrome { padding: 80px 0 0; }
.chrome-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 40px 36px;
  border-radius: 20px;
  background: var(--pink);
  border: 1px solid var(--hairline);
}
.chrome-copy h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; }
.chrome-copy p:not(.eyebrow) { margin: 14px 0 22px; color: #3A3A3C; }
.cws-badge { display: inline-block; line-height: 0; border-radius: 8px; transition: transform .15s ease; }
.cws-badge:hover { transform: translateY(-1px); }
.cws-badge img { width: 248px; max-width: 100%; height: auto; }
.chrome-copy p.cws-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.chrome-shot { margin: 0; display: flex; justify-content: center; }
.chrome-shot img { width: 340px; max-width: 100%; }

@media (max-width: 820px) {
  .chrome-inner { grid-template-columns: 1fr; padding: 24px 20px; }
  .chrome-shot { order: -1; }
  .chrome-shot img { width: 300px; }
}

/* ---------- Download ---------- */

.download-end { padding: 96px 0 80px; text-align: center; }
.download-icon { margin: 0 auto 20px; border-radius: 20px; box-shadow: var(--shadow-pop); }
.download-end .cta-row { margin-top: 28px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 40px;
  background: #FAF8F2;
}
.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--icon);
}
.made-with { display: flex; align-items: center; gap: 4px; }
.made-with a { color: var(--icon); }
.made-with strong { font-weight: 600; color: var(--icon); }
.heart { width: 13px; height: 13px; fill: var(--heart); margin: 0 2px; }
.footer-mail { display: inline-block; margin-top: 2px; }
.footer-right { display: flex; align-items: center; gap: 10px; }
.footer-right a { color: var(--icon); }
.footer-divider { color: var(--placeholder); }

/* ---------- Privacy page ---------- */

.doc { max-width: 680px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.doc h1 { font-size: 36px; font-weight: 700; }
.doc .lede { margin-top: 12px; font-size: 18px; color: var(--icon); }
.doc h2 { font-size: 20px; font-weight: 700; margin-top: 36px; }
.doc p, .doc li { margin-top: 10px; color: #3A3A3C; }
.doc ul { padding-left: 20px; margin: 6px 0 0; }
.doc .back { display: inline-block; margin-bottom: 20px; font-size: 14px; }
.doc .updated { margin-top: 40px; font-size: 13px; color: var(--muted); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .top { transition: none; }
}

/* =====================================================================
   Round 3 — video hero, gallery, feature grid, settings, FAQ, changelog
   ===================================================================== */

/* ---------- Hero: video ---------- */

.hero-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.hero-shot { flex-direction: column; align-items: center; gap: 10px; }
.hero-video,
.hero-fallback {
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--hairline);
}
.hero-shot .hero-fallback { width: 100%; max-width: 420px; box-shadow: none; border: 0; background: transparent; }
.hero-video[hidden], .hero-fallback[hidden] { display: none; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-video { max-width: 100%; }
  .hero-shot .hero-fallback { max-width: 360px; }
}

/* ---------- Section headings shared by the new sections ---------- */

.gallery h2, .grid-section h2, .faq h2, .changelog h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
}

/* ---------- Gallery ---------- */

.gallery { padding: 80px 0 0; }
.gallery-strip {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  padding: 8px var(--gutter) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.gallery-strip::after { content: ""; flex: 0 0 1px; }
.shot {
  flex: 0 0 auto;
  width: 360px;
  margin: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 16px;
}
.shot-btn:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.shot-btn img {
  width: 100%;
  height: 297px;
  object-fit: contain;
  object-position: center;
}
.shot-tall .shot-btn img { object-position: top; }
.shot figcaption { font-size: 13.5px; color: var(--icon); text-align: center; }

@media (max-width: 640px) {
  .shot { width: 300px; }
  .shot-btn img { height: 248px; }
}

/* ---------- Features: real screenshots ---------- */

.feature-media img { width: 380px; }
@media (max-width: 820px) { .feature-media img { width: 320px; } }

/* ---------- Everything in it ---------- */

.grid-section { padding: 80px 0 0; }
.feature-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.feature-grid li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 3px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  color: #3A3A3C;
}
.fg-icon {
  grid-row: 1 / span 2;
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
  text-align: center;
}
.feature-grid strong { font-weight: 600; color: var(--ink); font-size: 15px; }

/* ---------- FAQ ---------- */

.faq { padding: 80px 0 0; }
.faq-list {
  max-width: 760px;
  margin: 32px auto 0;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq-list details { border-top: 1px solid var(--hairline); }
.faq-list details:first-child { border-top: 0; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .18s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { background: #FAF8F2; }
.faq-list details p {
  padding: 0 20px 18px;
  font-size: 15.5px;
  color: #3A3A3C;
}
.faq-list code {
  font-size: 13px;
  background: #F2F2F7;
  padding: 1px 6px;
  border-radius: 5px;
}

/* ---------- What's new ---------- */

.changelog { padding: 80px 0 0; }
.changelog-list { max-width: 760px; margin: 32px auto 0; }
.changelog-list details {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  margin-top: 12px;
}
.changelog-list summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.changelog-list summary::-webkit-details-marker { display: none; }
.changelog-list .ver { font-weight: 700; font-size: 18px; color: var(--ink); }
.changelog-list .tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3F8F60;
  background: var(--mint);
  border-radius: 999px;
  padding: 2px 9px;
}
.changelog-list .when { margin-left: auto; font-size: 13px; color: var(--muted); }
.changelog-list ul { margin: 0; padding: 0 20px 18px 38px; font-size: 15px; color: #3A3A3C; }
.changelog-list li + li { margin-top: 6px; }

/* ---------- Download, footer extras ---------- */

.download-note { margin-top: 24px; font-size: 13.5px; color: var(--muted); }
.footer-small { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.footer-small a { color: var(--icon); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  background: #1D1D1FE6;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 24px 8px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lb-figure img {
  max-width: min(92vw, 900px);
  max-height: 80vh;
  width: auto;
  object-fit: contain;
}
.lb-figure figcaption { color: #FFFFFFCC; font-size: 14px; text-align: center; }
.lb-close, .lb-nav {
  appearance: none;
  border: 0;
  background: #FFFFFF1F;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  justify-self: center;
}
.lb-close { position: absolute; top: 16px; right: 16px; font-size: 26px; }
.lb-close:hover, .lb-nav:hover { background: #FFFFFF33; }

@media (max-width: 640px) {
  .lightbox { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .lb-nav { width: 36px; height: 36px; line-height: 36px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-list summary::after { transition: none; }
}
