/* Luces Umbrarum — pale-blue landing (FLAGSHIP re-theme 2026-07-13, STYLE-BIBLE §3; was warm cream). Per-page tint via --surface override. */

:root {
  --surface: #E5F2F5;
  --header-surface: #E5F2F5;
  --surface-card: #D2EAEE;
  --surface-card-hover: #CCE3E4;
  --border: #BCDBE1;
  --border-strong: #A5C9D1;
  --ink: #1A1A1E;
  --ink-muted: #63686B;
  --ink-soft: #868C90;
  --accent: #D9846A;
  --accent-soft: #F0C9B8;
  --ghost: rgba(26, 26, 30, 0.06);

  /* App tier hints (free / paid) */
  --tier-free-ink: #3F7A4B;
  --tier-free-soft: #DCE9D5;
  --tier-free-border: #BCD3B0;
  --tier-paid-ink: #A66A1C;
  --tier-paid-soft: #F1DEBE;
  --tier-paid-border: #E0C394;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(26, 26, 30, 0.04), 0 8px 24px rgba(26, 26, 30, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
}

a { color: inherit; text-decoration: none; }

/* Header — always linen, independent of per-page --surface tint */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-surface);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--surface);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
}
.nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav a { color: var(--ink-muted); transition: color 0.15s ease; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 96px 32px 72px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero h1 .highlight {
  position: relative;
  white-space: nowrap;
}
.hero h1 .highlight::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: 8%;
  height: 38%;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-6deg);
}
.hero h1 .apple {
  display: inline-block;
  vertical-align: -0.08em;
  margin: 0 0.08em;
}
.hero p.lede {
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-muted);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero .scroll-hint {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.hero .scroll-hint .dot { width: 6px; height: 6px; border-radius: 50%; background: #3BA55D; box-shadow: 0 0 0 4px rgba(59, 165, 93, 0.18); }

/* Floating-icon hero stage — wraps .hero, scatters app icons in the negative space around the centered text */
.hero-stage {
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-stage .hero {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 56px;
}
.float-icon {
  position: absolute;
  display: block;
  border-radius: 22%;
  filter:
    drop-shadow(0 2px 4px rgba(26, 26, 30, 0.08))
    drop-shadow(0 14px 32px rgba(26, 26, 30, 0.16));
  pointer-events: none;
  user-select: none;
  z-index: 1;
  will-change: transform;
}
.float-1 {
  width: clamp(64px, 7vw, 92px);
  top: 22%;
  left: 11%;
  transform: rotate(-9deg);
  animation: float-drift-a 7s ease-in-out infinite;
}
.float-2 {
  width: clamp(64px, 7.5vw, 100px);
  top: 14%;
  right: 12%;
  transform: rotate(8deg);
  animation: float-drift-b 8s ease-in-out infinite;
}
.float-3 {
  width: clamp(56px, 6vw, 80px);
  bottom: 10%;
  left: 24%;
  transform: rotate(-5deg);
  animation: float-drift-c 9s ease-in-out infinite;
  opacity: 0.92;
}
@keyframes float-drift-a {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50%      { transform: rotate(-9deg) translateY(-10px); }
}
@keyframes float-drift-b {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50%      { transform: rotate(8deg) translateY(-8px); }
}
@keyframes float-drift-c {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50%      { transform: rotate(-5deg) translateY(-6px); }
}
@media (max-width: 820px) {
  .float-icon { display: none; }
  .hero-stage .hero { padding-top: 64px; padding-bottom: 48px; }
}

/* Apps grid */
.apps {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 32px 96px;
}
.apps-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.apps-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.app-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.app-card:hover {
  transform: translateY(-3px);
  background: var(--surface-card-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.app-card .icon {
  width: 76px; height: 76px;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 1px 2px rgba(26, 26, 30, 0.08), 0 6px 18px rgba(26, 26, 30, 0.08);
}
.app-card .icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.app-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.app-card p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}
.app-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.app-card .meta .arrow {
  transition: transform 0.2s ease;
}
.app-card:hover .meta .arrow { transform: translateX(3px); }

/* Coming-soon treatment */
.app-card.soon { opacity: 0.78; }
.app-card.soon .badge {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* Tier hint badges (free / paid) — visual scaffold; all apps free for now */
.tier-badge {
  position: absolute;
  top: 18px; right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.tier-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.app-card.tier-free .tier-badge {
  color: var(--tier-free-ink);
  background: var(--tier-free-soft);
  border-color: var(--tier-free-border);
}
.app-card.tier-paid .tier-badge {
  color: var(--tier-paid-ink);
  background: var(--tier-paid-soft);
  border-color: var(--tier-paid-border);
}

/* Section divider for coming-soon */
.apps-label.soon-label::before {
  content: '';
  flex: 0 0 auto;
  width: 0;
}

/* Footer with ghost wordmark */
.ghost-wordmark {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 280px);
  line-height: 0.9;
  color: var(--ghost);
  letter-spacing: -0.04em;
  margin: 64px 0 -40px;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
}

.site-footer {
  margin-top: auto;
  padding: 32px 32px 48px;
}
.site-footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 64px 24px 48px; }
  .apps { padding: 16px 20px 64px; }
  .site-header .inner { padding: 14px 20px; }
  .app-card { padding: 24px 22px 20px; }
  .brand { font-size: 12px; letter-spacing: 0.12em; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; font-size: 15px; }
  .nav { gap: 18px; font-size: 13px; }
  .nav a.nav-secondary { display: none; }
}

/* Phone: the header can't fit the section links on a narrow screen. Drop the
   plain section/cross links here (the page is short, they're reachable by
   scrolling, and "All apps" is in the footer); keep just the wordmark. Hides
   by exclusion so it holds whatever links a site lists.
   NO `.nav-cta` exemption here, deliberately (removed 2026-07-19): STYLE-BIBLE
   §2.2 makes the rule strip the sole download/purchase path, so no site has a
   nav CTA any more. Keeping the exemption meant a reinstated one would survive
   on phones ONLY — the hardest place to notice it. That is how Aloft's pre-rule
   leftover shipped a second BUY button unseen. Do not re-add. */
@media (max-width: 560px) {
  .nav a:not(.nav-secondary) { display: none; }
}

/* ---------- Per-app detail pages ---------- */

/* Tinted page surfaces (header stays linen via --header-surface) */
body.tint-clay  { --surface: #E9DAC9; --surface-card: #E2D0BC; --border: #D0BDA4; --border-strong: #B8A487; }
body.tint-sky   { --surface: #DCE3E6; --surface-card: #D2DBE0; --border: #B9C4CB; --border-strong: #9FAEB7; }
body.tint-sage  { --surface: #DBE2D4; --surface-card: #D1D9C9; --border: #B6C2A9; --border-strong: #9CAB8C; }
body.tint-rose  { --surface: #E7D8D4; --surface-card: #DECDC8; --border: #C7B3AD; --border-strong: #AE978F; }
body.tint-stone { --surface: #DCD8D2; --surface-card: #D2CEC7; --border: #B8B4AD; --border-strong: #9F9B94; }
body.tint-ochre { --surface: #E8DCBE; --surface-card: #DFD2B0; --border: #C8B98E; --border-strong: #B0A275; }
body.tint-lilac { --surface: #DED9E3; --surface-card: #D4CFDB; --border: #BAB3C5; --border-strong: #A29BB0; }
body.tint-mint  { --surface: #D5E0D9; --surface-card: #CBD7CF; --border: #ABBDB1; --border-strong: #91A498; }
body.tint-dusk  { --surface: #D1D6DC; --surface-card: #C7CCD3; --border: #ADB4BD; --border-strong: #939BA5; }
body.tint-plum  { --surface: #E2D5DA; --surface-card: #D8CAD0; --border: #C0AAB3; --border-strong: #A89099; }
body.tint-teal  { --surface: #D2DEDB; --surface-card: #C8D4D1; --border: #A9BCB8; --border-strong: #8FA39F; }

/* Back link */
.back-link {
  max-width: 1080px;
  margin: 32px auto 0;
  padding: 0 32px;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.back-link a { color: var(--ink-muted); transition: color 0.15s ease; }
.back-link a:hover { color: var(--ink); }

/* App hero (two-column on wide, stacked on mobile) */
.app-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 32px 32px;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 36px;
  align-items: start;
}
.app-hero .app-icon {
  width: 128px; height: 128px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(26,26,30,0.08), 0 14px 40px rgba(26,26,30,0.12);
}
.app-hero .app-icon img { width: 100%; height: 100%; display: block; }
.app-hero .app-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.app-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.app-hero h1 .highlight {
  position: relative;
  white-space: nowrap;
}
.app-hero h1 .highlight::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: 8%;
  height: 34%;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-6deg);
}
.app-hero .tagline {
  margin-top: 18px;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-muted);
  max-width: 620px;
}
.app-hero .hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.app-hero .hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-soft); }
.app-hero .actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-download:hover { transform: translateY(-1px); background: #2A2A30; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  border: 1px solid var(--border-strong);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

/* Download-count line under the hero actions. Count is injected by
   /js/download-stats.js from /downloads/counts.json; the version string
   is static so the line reads correctly even if the fetch fails. */
.download-stats {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 1.2em;
}
.download-stats .dl-count[hidden] { display: none; }
.soon-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.5em;
  color: var(--accent);
  display: inline-block;
  margin-left: 10px;
  vertical-align: 0.35em;
  letter-spacing: 0;
}

/* Big showcase screenshot */
.app-showcase {
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 0 32px;
}
.app-showcase .frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(26,26,30,0.06), 0 24px 60px rgba(26,26,30,0.10);
}
.app-showcase .frame img { width: 100%; display: block; }
/* Inset variant: for native-resolution screenshots (e.g. small HUD panels)
   that would blur if stretched edge-to-edge. Centers the shot at its true
   size on a padded backdrop instead of upscaling it. */
.app-showcase .frame--inset {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 56px 40px;
  background:
    radial-gradient(120% 120% at 50% 0%, var(--surface) 0%, var(--surface-card) 100%);
}
.app-showcase .frame--inset img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(26,26,30,0.10), 0 22px 50px rgba(26,26,30,0.18);
}
@media (max-width: 640px) {
  .app-showcase .frame--inset { padding: 28px 18px; }
}

/* Features */
.app-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 32px 0;
}
.app-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 28px;
}
.app-section h2 .highlight {
  position: relative;
  white-space: nowrap;
}
.app-section h2 .highlight::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: 8%;
  height: 32%;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-6deg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 28px;
}
.feature {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
}
.feature h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.feature p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Screenshot gallery */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.shot {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(26,26,30,0.04), 0 10px 28px rgba(26,26,30,0.06);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shot:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(26,26,30,0.06), 0 14px 36px rgba(26,26,30,0.10);
}
.shot:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.shot img { width: 100%; display: block; }
.shot-caption {
  padding: 12px 16px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
}

/* Lightbox — native <dialog> overlay for screenshot enlargement */
.lightbox {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-in 0.2s ease-out;
}
.lightbox::backdrop {
  background: rgba(26, 26, 30, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox[open]::backdrop {
  animation: lightbox-backdrop-in 0.2s ease-out;
}
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 30px 80px rgba(0,0,0,0.45);
  cursor: zoom-out;
}
@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes lightbox-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Fact strip (requirements / privacy) */
.fact-strip {
  max-width: 1080px;
  margin: 72px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.fact {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-card);
}
.fact h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-weight: 500;
}
.fact p { font-size: 14px; color: var(--ink); line-height: 1.5; }

/* Legal / imprint page */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 0;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 10px;
}
.legal p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 12px;
}
.legal p.legal-intro {
  font-size: 17px;
  color: var(--ink-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.legal a:hover { text-decoration-color: var(--ink); }
.legal p.legal-updated {
  margin-top: 56px;
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
}
@media (max-width: 640px) {
  .legal { padding: 32px 24px 0; }
}

/* Responsive for detail pages */
@media (max-width: 640px) {
  .app-hero {
    grid-template-columns: 1fr;
    padding: 32px 24px 24px;
    gap: 18px;
    justify-items: center;
    text-align: center;
  }
  .app-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; }
  .app-hero .tagline { max-width: none; }
  .app-hero .hero-meta { justify-content: center; }
  .app-hero .actions { justify-content: center; }
  .app-section { padding: 56px 24px 0; }
  .app-section h2 { text-align: center; }
  .app-showcase { padding: 0 24px; }
  .back-link { padding: 0 24px; margin-top: 20px; justify-content: center; }
  .fact-strip { padding: 0 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =============================================================
   Feedback page
   ============================================================= */

.fb-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 8px;
  text-align: center;
}
.fb-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.fb-hero .lede {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 auto 16px;
}

.fb-toast {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  border: 1px solid var(--border);
}

.fb-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 32px 0;
}
.fb-section h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
}

/* Form */
.fb-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.fb-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.fb-form label em {
  font-style: normal;
  color: var(--ink-soft);
  font-weight: 400;
}
.fb-form input[type="text"],
.fb-form input[type="email"],
.fb-form select,
.fb-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.fb-form input:focus,
.fb-form select:focus,
.fb-form textarea:focus {
  outline: none;
  border-color: var(--ink-muted);
  background: #fff;
}
.fb-form textarea { resize: vertical; min-height: 140px; font-family: inherit; }

.fb-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) {
  .fb-row.two { grid-template-columns: 1fr; }
}

/* Non-label field wrapper (e.g. the radio group) — mirrors the flex-column
   shape of .fb-form label so adjacent rows align on the same baseline. */
.fb-form .fb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fb-form .fb-field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.fb-radios {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  min-height: 44px;  /* matches the select's computed height */
}
.fb-radios label {
  /* Override .fb-form label's column layout for inline radios */
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  letter-spacing: 0;
}
.fb-radios input[type="radio"] {
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
}

.fb-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fb-consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--ink) !important;
  line-height: 1.5;
}
.fb-consent input { margin-top: 3px; }

.fb-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.fb-actions .fb-meta {
  font-size: 13px;
  color: var(--ink-soft);
}
.fb-actions .fb-meta a { color: var(--ink-muted); text-decoration: underline; }

/* List */
.fb-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.fb-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fb-pill {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.fb-pill:hover { color: var(--ink); border-color: var(--border-strong); }
.fb-pill.is-on {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.fb-status-key {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  opacity: 0.6;
  font-size: 11px;
}
.fb-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  white-space: nowrap;
}
.fb-status--open     { background: #FEF3C7; color: #92400E; border-color: #FCD34D; }
.fb-status--wip      { background: #DBEAFE; color: #1E40AF; border-color: #93C5FD; }
.fb-status--fixed    { background: #D1FAE5; color: #065F46; border-color: #6EE7B7; }
.fb-status--wontfix  { background: var(--ghost); color: var(--ink-muted); }
.fb-status--duplicate{ background: var(--ghost); color: var(--ink-muted); }

.fb-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fb-empty {
  color: var(--ink-soft);
  font-style: italic;
  padding: 24px 0;
}
.fb-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 100px;
}
.fb-item-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.fb-item-app {
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
}
.fb-item-type {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--ghost);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fb-type--bug      { color: #9A3412; }
.fb-type--feature  { color: #1E40AF; }
.fb-type--question { color: var(--ink-muted); }

.fb-item-date {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.fb-item-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--ink);
}
.fb-item-body {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.fb-item-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
}
.fb-item-resolution {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink);
}
.fb-item-resolution strong { color: var(--ink-muted); font-weight: 500; }

@media (max-width: 640px) {
  .fb-hero { padding: 32px 24px 8px; }
  .fb-section { padding: 40px 24px 0; }
  .fb-form { padding: 20px; }
  .fb-item { padding: 18px 20px; }
}

/* =============================================================
   Admin (/admin/) — triage UI. Not linked from public pages.
   ============================================================= */

.admin-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 32px 0;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.admin-head h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-filters .fb-pill { display: inline-flex; align-items: center; gap: 8px; }
.admin-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--ghost);
  font-size: 11px;
  color: inherit;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fb-pill.is-on .admin-count { background: rgba(255,255,255,0.2); }

.admin-list { display: flex; flex-direction: column; gap: 14px; }

.admin-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.admin-item-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.admin-item-date {
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.admin-item-id {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--ink-soft);
}
.admin-item-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 8px;
}
.admin-item-body {
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-item-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
}
.admin-item-email { color: var(--ink-muted); text-decoration: underline; }

.admin-controls {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 14px;
  align-items: end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
@media (max-width: 640px) {
  .admin-controls { grid-template-columns: 1fr; }
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.admin-field-label {
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.admin-field select,
.admin-field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
}
.admin-field textarea { resize: vertical; min-height: 44px; font-family: inherit; }

.admin-actions { display: flex; gap: 8px; }
.admin-btn {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-btn:hover { background: var(--ghost); }
.admin-btn-primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.admin-btn-primary:hover { background: #000; }
.admin-btn-danger { color: #9A3412; border-color: #FCA5A5; }
.admin-btn-danger:hover { background: #FEE2E2; }

#adminToast.is-error { background: #FEE2E2; border-color: #FCA5A5; color: #7F1D1D; }
#adminToast {
  margin-bottom: 16px;
  text-align: center;
}

/* The HTML `hidden` attribute has browser-default `display: none`, but author
   rules like `.fb-toast { display: inline-block }` have equal specificity and
   win ties — so "hidden" elements were showing as empty styled bars. This
   override keeps author display rules in effect when visible, but respects
   `hidden` when the JS sets it. */
[hidden] { display: none !important; }
