/* ─────────────────────────────────────────────────────────────────
   BOOPSTER — editorial tear-sheet
   Fraunces (display) + IBM Plex Sans (body) + IBM Plex Mono (folio)
   Dark charcoal + electric orange accent + deep teal counterpoint
   ───────────────────────────────────────────────────────────────── */

:root {
  --bg:           #0f0f10;
  --bg-soft:      #131315;
  --bg-card:      #161618;
  --line:         #1f1f22;
  --line-soft:    #18181b;
  --fg:           #ecebe8;
  --muted:        #8c8a85;
  --dim:          #5e5d59;

  --accent:       #ff7a3d;
  --accent-soft:  #ffae84;
  --teal:         #6cb6b4;
  --good:         #5fc97a;
  --soon:         #f0c45a;
  --later:        #6aa1ff;
  --dream:        #c98bff;

  --col-text:     720px;     /* readable text column */
  --col-wide:    1080px;     /* hero / wide-grid column */

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --ease:         cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv02", "cv11";
}
body { overflow-x: hidden; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
a:hover { border-bottom-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
abbr { text-decoration: underline dotted var(--muted); cursor: help; }

/* ── film-grain overlay (sits above everything) ──────────────────── */
.grain {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.07;
  mix-blend-mode: overlay;
}

/* ── topnav ──────────────────────────────────────────────────────── */
.topnav {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  border-bottom: none;
}
.brand svg, .brand .brand-mark { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; border-radius: 50%; display: block; }

.topnav-right { display: flex; align-items: center; gap: 18px; }
.topnav-right a { color: var(--muted); }
.topnav-right a:hover { color: var(--accent); }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 100px;
  color: var(--muted);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 122, 61, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
.dot.orange { background: var(--accent); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,122,61,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(255,122,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,122,61,0); }
}

/* ─────────────────────────────────────────────────────────────────
   SINGLE-COLUMN PAGE
   Everything left-anchored to one 720px text column.
   The only thing that bleeds beyond it is the marquee strip.
   ───────────────────────────────────────────────────────────────── */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
section, header.hero, footer { padding: 72px 0; }
header.hero { padding-top: 24px; padding-bottom: 96px; }
footer { padding: 36px 0 56px; text-align: left; border-top: 1px solid var(--line-soft); margin-top: 24px; }

/* topnav lives inside .page already, just kill its inner margin */
.page > .topnav { max-width: none; margin: 0; padding: 22px 0; }

.section-head {
  display: flex; align-items: baseline; gap: 14px;
  margin: 0 0 36px;
}
.sec-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.01em;
  color: var(--accent-soft);
}

/* ─────────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────────── */

header.hero {
  border-bottom: 1px solid var(--line-soft);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 8px 0 24px;
  display: flex; align-items: center; gap: 12px;
}
.kicker .rule {
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--muted);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  max-width: 14ch;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.hero .lead {
  font-size: 19px;
  line-height: 1.5;
  max-width: 46ch;
  margin: 0 0 24px;
  color: var(--fg);
}

.hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 100px;
}
.hero-meta .sep { color: var(--dim); }

.hero-figure {
  margin: 56px 0 0;
  padding: 0;
  width: 100%;
}
.figure-frame {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0c;
  border: 1px solid var(--line);
}
.frame-label {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 4px 8px;
  background: rgba(15,15,16,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 828;
  object-fit: cover;
  object-position: center;
  background: #0a0a0c;
}
.figure-caption {
  display: flex; gap: 12px; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  margin: 14px 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cap-num { color: var(--accent); font-weight: 500; }

/* ─────────────────────────────────────────────────────────────────
   MARQUEE — full-bleed escape from the .page column
   ───────────────────────────────────────────────────────────────── */

.marquee {
  /* Break out of .page max-width to span full viewport */
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
  overflow: hidden;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  padding-left: 28px;
}
.marquee-track span { display: inline-block; }
.marquee-track .dot-sep { color: var(--accent); font-size: 8px; opacity: 0.6; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ─────────────────────────────────────────────────────────────────
   HOW — list with full-width rows, breathing room
   ───────────────────────────────────────────────────────────────── */

.steps { list-style: none; padding: 0; margin: 0; }
.steps li {
  padding: 28px 0;
  border-top: 1px dashed var(--line);
}
.steps li:first-child { border-top: none; padding-top: 8px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.steps h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--fg);
}
.steps h3.boop-step em {
  color: var(--accent);
  font-style: italic;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  line-height: 1;
}
.steps .step-body {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 56ch;
}

/* ─────────────────────────────────────────────────────────────────
   WHY — body prose
   ───────────────────────────────────────────────────────────────── */

.prose p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
}
.prose p:last-child { margin-bottom: 0; }
.prose p.small { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose a { color: var(--accent); }

/* ─────────────────────────────────────────────────────────────────
   ROADMAP phases
   ───────────────────────────────────────────────────────────────── */

.phases { list-style: none; padding: 0; margin: 0; }
.ph {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px; row-gap: 4px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.ph:first-child { border-top: none; padding-top: 4px; }
.ph-tag {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 3px;
  text-align: center; letter-spacing: 0.04em;
  align-self: start; margin-top: 2px;
}
.ph.done   .ph-tag { background: rgba(95,201,122,0.14);  color: var(--good); }
.ph.soon   .ph-tag { background: rgba(240,196,90,0.14);  color: var(--soon); }
.ph.later  .ph-tag { background: rgba(106,161,255,0.12); color: var(--later); }
.ph.dream  .ph-tag { background: rgba(201,139,255,0.12); color: var(--dream); }
.ph h3 {
  grid-column: 2;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
}
.ph p {
  grid-column: 2;
  margin: 0; color: var(--muted); font-size: 15px;
}
.ph p em { font-style: italic; color: var(--accent-soft); }

/* ─────────────────────────────────────────────────────────────────
   ADAPTERS — 3 cards in row, fits the 720 column
   ───────────────────────────────────────────────────────────────── */

.adapter-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .adapter-grid { grid-template-columns: 1fr 1fr 1fr; } }
.adapter-grid article {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.adapter-grid article:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.adapter-icon {
  width: 40px; height: 40px;
  color: var(--teal);
  margin-bottom: 10px;
  display: block;
}
.adapter-grid h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.adapter-grid p { margin: 0; color: var(--muted); font-size: 13px; }

/* ─────────────────────────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────────────────────────── */

.faq details {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.faq details:first-of-type { border-top: none; padding-top: 4px; }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500; font-size: 18px;
  list-style: none;
  position: relative;
  padding-left: 28px;
  color: var(--fg);
  transition: color .15s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-weight: 400;
  color: var(--accent); font-size: 22px; line-height: 1;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::before { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-soft); }
.faq details p { margin: 10px 0 4px 28px; color: var(--muted); font-size: 15px; }
.orange { color: var(--accent); font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────
   CTA
   ───────────────────────────────────────────────────────────────── */

.cta-lead { font-size: 18px; margin: 0 0 22px; color: var(--fg); max-width: 50ch; }
.signup {
  display: flex; gap: 10px;
  margin: 0 0 8px;
  flex-wrap: wrap;
}
.signup input {
  flex: 1 1 240px;
  max-width: 360px;
  padding: 13px 16px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--fg); background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .15s var(--ease);
}
.signup input:focus { outline: none; border-color: var(--accent); }
.signup button {
  padding: 13px 26px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: #0f0f10; background: var(--accent);
  border: none; border-radius: 6px;
  cursor: pointer;
  transition: background .15s var(--ease), transform .1s var(--ease);
}
.signup button:hover:not(:disabled) { background: var(--accent-soft); }
.signup button:active:not(:disabled) { transform: translateY(1px); }
.signup button:disabled { opacity: 0.55; cursor: progress; }
.form-msg {
  min-height: 1.4em;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--muted); margin: 8px 0 0;
}
.form-msg.ok { color: var(--good); }
.form-msg.err { color: #ff6b6b; }
.muted { color: var(--muted); }
.small { font-size: 13px; margin-top: 12px; }

/* ─────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────── */

footer {
  color: var(--muted);
  font-size: 13px;
}
footer p { margin: 0 0 6px; }
footer em { color: var(--accent-soft); font-style: italic; }
.micro {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
  margin-top: 12px;
}

/* ── language switcher — globe-icon dropdown, opens upward ──── */
.lang-dropdown {
  position: relative;
  display: inline-block;
  margin-top: 18px;
}
.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 10px 7px 9px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 140px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--fg); }
.lang-dropdown[data-open="true"] .lang-toggle {
  border-color: var(--accent); color: var(--fg);
}
.lang-toggle .lang-globe { flex-shrink: 0; opacity: 0.75; }
.lang-toggle:hover .lang-globe,
.lang-dropdown[data-open="true"] .lang-globe { opacity: 1; color: var(--accent); }
.lang-toggle .lang-toggle-label { flex: 1; text-align: left; }
.lang-toggle .lang-chev { flex-shrink: 0; opacity: 0.6; transition: transform .18s var(--ease); }
.lang-dropdown[data-open="true"] .lang-chev { transform: rotate(180deg); opacity: 0.9; }

.lang-menu {
  position: absolute;
  /* opens UPWARD — footer is at page bottom */
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  list-style: none;
  padding: 4px 0;
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.5);
  z-index: 50;
  /* display:none when closed to keep Chrome's translate detector from
     reading "Deutsch / Français / 中文" as page content */
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.lang-dropdown[data-open="true"] .lang-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.lang-menu li {
  display: flex; align-items: center;
  padding: 8px 14px 8px 28px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.lang-menu li:hover,
.lang-menu li:focus-visible {
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  outline: none;
}
.lang-menu li[aria-selected="true"] { color: var(--fg); }
/* Accent checkmark on active item */
.lang-menu li[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
}

/* CJK font support: switch body to Noto Sans SC when html.lang=zh */
html[lang="zh"] body { font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", var(--font-body); }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3,
html[lang="zh"] .pull, html[lang="zh"] .greeting-quip {
  /* keep Fraunces for any Latin we have (brand name etc.), but Noto SC will be picked for CJK glyphs via font-stack fallback */
  font-family: var(--font-display), "Noto Sans SC", serif;
}

/* ─────────────────────────────────────────────────────────────────
   SCROLL-REVEAL — opt-in
   ───────────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease) var(--d, 0s),
              transform .7s var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────────────────────────────────────────
   SUB-PAGES (auth, account, pricing, admin) shared bits
   Kept verbatim from prior — no breaking changes.
   ───────────────────────────────────────────────────────────────── */

.admin-pill {
  display: inline-block; margin-left: 6px; padding: 2px 8px;
  background: var(--accent); color: #0f0f10;
  border-radius: 3px; font-family: var(--font-mono); font-size: 10px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  vertical-align: middle;
}
.back-link { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.back-link:hover { color: var(--accent); }

.single-card .card {
  max-width: 520px; margin: 64px auto;
  padding: 56px 40px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.single-card h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px; line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.single-card h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.single-card .lead { font-size: 16px; color: var(--muted); margin: 0 0 28px; }
.single-card .signup { margin-top: 8px; }
.single-card .plugin-help { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.single-card summary { font-family: var(--font-display); font-weight: 500; cursor: pointer; padding: 4px 0; color: var(--fg); }
.single-card summary:hover { color: var(--accent-soft); }
.single-card details p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.container-narrow { max-width: 720px; margin: 0 auto; padding: 32px 24px 80px; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 32px 24px 80px; }

.page-head { margin: 16px 0 48px; }
.page-head h1 {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 6px 0 14px;
  color: var(--fg);
}
.page-head h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.page-head .lead { color: var(--muted); font-size: 17px; margin: 0; }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 28px 24px;
  margin: 0 0 22px;
}
.panel.danger { border-color: rgba(255, 122, 61, 0.25); }
.panel .panel-body { font-size: 15px; margin: 0 0 16px; }
.panel .panel-cta { margin: 0; }
.panel .section-head { margin-bottom: 16px; }
.panel .section-head h2 { font-size: 20px; }

.row-list { list-style: none; padding: 0; margin: 12px 0 0; }
.row-list li {
  padding: 12px 0; border-top: 1px dashed var(--line);
  font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.row-list li:first-child { border-top: none; padding-top: 4px; }
.row-list strong { color: var(--fg); }

.btn-primary, .btn-secondary, .btn-link {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  border-radius: 6px; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease);
  padding: 10px 18px; display: inline-block; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #0f0f10; border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-link { background: none; border: none; color: var(--muted); padding: 4px 8px; }
.btn-link:hover { color: #ff6b6b; }

.hero-thin { padding-top: 32px; padding-bottom: 32px; }
.pricing-grid {
  max-width: 1080px; margin: 32px auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 720px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }
.tier {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 22px; position: relative; display: flex; flex-direction: column; gap: 12px;
}
.tier.recommended { border-color: var(--accent); }
.tier .badge {
  position: absolute; top: -10px; left: 22px;
  background: var(--accent); color: #0f0f10;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 4px 10px; border-radius: 3px; letter-spacing: 0.05em; text-transform: uppercase;
}
.tier h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.tier .price { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1; }
.tier .price .amount { font-size: 38px; color: var(--fg); }
.tier .price .cadence { font-size: 14px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.tier .alt-price { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tier .features { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; flex: 1; }
.tier .features li { padding: 6px 0; border-top: 1px dashed var(--line); color: var(--muted); }
.tier .features li:first-child { border-top: none; }
.tier .features strong { color: var(--fg); }
.tier button { margin-top: 12px; }
.signed-out-cta {
  max-width: 720px; margin: 24px auto; padding: 18px 24px;
  background: rgba(255,122,61,0.08); border: 1px solid var(--accent);
  border-radius: 8px; text-align: center;
}

dialog {
  background: var(--bg-card); color: var(--fg); border: 1px solid var(--line);
  border-radius: 12px; padding: 32px; max-width: 420px;
  font-family: var(--font-body);
}
dialog::backdrop { background: rgba(15, 15, 16, 0.7); backdrop-filter: blur(4px); }
dialog h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 22px; color: var(--accent); }
dialog p { margin: 0 0 18px; color: var(--muted); }

.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px; margin: 0 0 28px;
}
.kpi {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 8px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.kpi-num { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--fg); }
.kpi-lbl { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.admin-toolbar { display: flex; gap: 12px; margin: 12px 0 16px; align-items: center; flex-wrap: wrap; }
.admin-toolbar input[type="search"], #grantForm input, #grantForm select, .panel input[type="search"] {
  flex: 1 1 220px; max-width: 360px; padding: 10px 12px;
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px;
}
.data-table {
  width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px;
}
.data-table th {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
}
.data-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.data-table tr:hover td { background: rgba(255, 122, 61, 0.03); }
.tag-mono {
  display: inline-block; padding: 2px 6px;
  background: rgba(106, 161, 255, 0.12); color: var(--later);
  font-family: var(--font-mono); font-size: 11px; border-radius: 3px;
}
#grantForm { display: flex; gap: 10px; margin: 14px 0 8px; flex-wrap: wrap; }
#grantForm select {
  flex: 0 0 160px; padding: 10px 12px;
  font: inherit; background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 6px;
}

/* Inline "Hi, [Type your name] !" — input is part of the heading line */
.inline-name-form { display: inline; margin: 0; padding: 0; }
.inline-name-form input {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  font-size: inherit;
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--accent);
  background: transparent;
  border: none; outline: none;
  border-bottom: 2px dashed var(--accent);
  padding: 0 2px; margin: 0;
  caret-color: var(--accent);
  vertical-align: baseline;
  min-width: 12ch;
}
.inline-name-form input::placeholder { color: var(--accent); opacity: 0.55; font-style: italic; }
.inline-name-form input:focus { border-bottom-color: var(--accent-soft); }

#nameEdit {
  font-style: italic; font-weight: 500; color: var(--accent);
  cursor: text;
  border-bottom: 1px dashed transparent;
  transition: border-color .15s var(--ease);
}
#nameEdit:hover { border-bottom-color: var(--accent); }

.greeting-quip {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--accent-soft);
  margin: 4px 0 18px;
  opacity: 0.85;
}
