/* =====================================================================
   ArmadilloVM marketing site — light theme, Inter + mono accents.
   Covers the pages this site ships: landing, products, product,
   pricing, docs.
   ===================================================================== */

@font-face {
  font-family: "akkurat-mono";
  src: url("/static/fonts/akkurat-mono.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:          #ffffff;
  --bg-soft:     #f6f8fb;
  --panel:       #ffffff;
  --panel-2:     #f5f8fc;
  --raised:      #eef2f8;
  --hover:       #eef2f7;
  --text:        #0f172a;
  --text-muted:  #4f5d75;
  --text-dim:    #93a0b4;
  --border:      #e3e8ef;
  --border-soft: #eef1f6;

  --brand:       #2b6cb0;
  --brand-dark:  #245d93;
  --brand-tint:  #eaf2fb;
  --brand-dim:   #a6c2dd;

  --success:     #2e9e5b;
  --success-bg:  #e6f6ec;
  --error:       #d4504e;
  --error-bg:    #fdecea;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow:    0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 32px -16px rgba(16, 24, 40, 0.22);

  --radius-sm: 5px;
  --radius:    9px;
  --radius-lg: 14px;

  --mono: "akkurat-mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
body { display: flex; flex-direction: column; }

main {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

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

h1, h2, h3 { color: var(--text); }
h2 { font-size: 20px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.2px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 12px; }

.mono { font-family: var(--mono); }
.muted { color: var(--text-muted); }

/* ---- Topbar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 30px; height: 30px; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; color: var(--text); }
.brand-vm { color: var(--brand); }

.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.12s, color 0.12s;
}
.topnav a:hover, .topnav a.active {
  color: var(--text);
  background: var(--hover);
  text-decoration: none;
}
.topnav-sep { width: 1px; height: 18px; background: var(--border); margin: 0 6px; }

/* ---- Footer ---- */
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12.5px;
}
.footer-dim { color: var(--text-dim); }

/* ---- Buttons ---- */
.btn, .btn-primary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: background-color 0.12s, border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.btn:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; text-decoration: none; }
.btn-large { padding: 13px 24px; font-size: 15px; }
.btn-block { display: block; width: 100%; }

/* ---- Hero ---- */
.hero { text-align: center; padding: 84px 0 48px; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20px 0 auto 50%;
  transform: translateX(-50%);
  width: 760px;
  max-width: 96%;
  height: 380px;
  background: radial-gradient(ellipse at top, var(--brand-tint), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
}
.hero-title {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}
.hero-lead {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-strip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.hero-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--brand-dim); display: inline-block; }

@media (max-width: 640px) {
  .hero-title { font-size: 38px; letter-spacing: -1px; }
  .hero-strip { flex-wrap: wrap; justify-content: center; border-radius: var(--radius); }
}

/* ---- Section scaffolding ---- */
.section { padding: 60px 0; border-top: 1px solid var(--border-soft); }
.section-top { padding-top: 44px; border-top: none; }
.section-kicker {
  color: var(--brand);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin: 0 0 10px;
}
.section-title { font-size: 30px; letter-spacing: -0.6px; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.section-sub { max-width: 640px; font-size: 16px; color: var(--text-muted); margin: 0 0 8px; }

/* ---- Feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.feature-card:hover { border-color: var(--brand-dim); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-title { font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.feature-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.step-n { font-family: var(--mono); font-size: 13px; color: var(--brand); margin-bottom: 14px; letter-spacing: 1px; }
.step-title { font-size: 17px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ---- Supported-functionality checklist ---- */
.cap-grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px 32px;
}
.cap {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
  color: var(--text);
}
.cap::before { content: "\2713"; position: absolute; left: 2px; top: 12px; color: var(--brand); font-weight: 700; }

/* ---- CTA band ---- */
.cta-band {
  margin: 60px 0 24px;
  padding: 52px 28px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--brand-tint), #ffffff);
  border: 1px solid var(--border);
}
.cta-band h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.4px; margin: 0 0 22px; color: var(--text); }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 28px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative;
  padding: 28px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, var(--shadow); }
.plan-tag {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--mono);
}
.plan .name { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.plan .price { font-size: 34px; font-weight: 700; margin: 10px 0 2px; color: var(--text); letter-spacing: -1px; }
.plan .period { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 13.5px; color: var(--text-muted); text-align: left; }
.plan ul li { padding: 6px 0 6px 22px; position: relative; }
.plan ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ---- Status pills ---- */
.pill { display: inline-block; padding: 3px 10px; font-size: 11px; border-radius: 999px; font-weight: 600; letter-spacing: 0.3px; }
.pill.ok { background: var(--success-bg); color: var(--success); }
.pill.muted { background: var(--raised); color: var(--text-muted); }
.pill.warn { background: var(--error-bg); color: var(--error); }

/* ---- Products listing ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 460px));
  justify-content: start;
  gap: 18px;
  margin-top: 28px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.product-card:hover { border-color: var(--brand-dim); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.product-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product-logo { width: 40px; height: 40px; flex-shrink: 0; }
.product-card-titles { flex: 1; min-width: 0; }
.product-name { font-size: 18px; font-weight: 700; color: var(--text); }
.product-tagline { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.product-summary { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0 0 16px; }
.product-caps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; }
.product-caps li { position: relative; padding-left: 20px; font-size: 13px; color: var(--text-muted); }
.product-caps li::before { content: "\2713"; position: absolute; left: 2px; color: var(--brand); font-weight: 700; }
.product-more { margin-top: auto; font-size: 14px; color: var(--brand); font-weight: 600; }

/* ---- Product detail ---- */
.back-link { display: inline-block; font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.back-link:hover { color: var(--brand); text-decoration: none; }
.product-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.product-hero-logo { width: 56px; height: 56px; flex-shrink: 0; }
.product-hero-name { font-size: 36px; font-weight: 700; letter-spacing: -1px; margin: 0; }
.product-hero-tagline { font-size: 16px; color: var(--text-muted); margin: 4px 0 0; }
.product-hero .pill { margin-left: auto; }
.product-hero-summary { max-width: 720px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.product-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; font-size: 13px; color: var(--text); }
.product-meta em { color: var(--text-dim); font-style: normal; text-transform: uppercase; letter-spacing: 0.5px; margin-right: 8px; font-size: 11px; }

.includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.include-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.include-logo { width: 34px; height: 34px; flex-shrink: 0; margin-top: 2px; }
.include-name { font-size: 16px; font-weight: 600; color: var(--text); }
.include-desc { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin: 6px 0 0; }

@media (max-width: 560px) {
  .product-hero { flex-wrap: wrap; }
  .product-hero .pill { margin-left: 0; }
  .product-hero-name { font-size: 28px; }
}

/* ---- Products nav dropdown ---- */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd-trigger {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.12s, color 0.12s;
}
.nav-dd-trigger:hover, .nav-dd-trigger.active { color: var(--text); background: var(--hover); text-decoration: none; }
.nav-dd-trigger .caret { font-size: 10px; color: var(--text-dim); }

.nav-dd-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 284px;
  margin-top: 10px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.14s, transform 0.14s, visibility 0.14s;
  z-index: 120;
}
.nav-dd-panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dd-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-sm); }
.nav-dd-item:hover { background: var(--hover); text-decoration: none; }
.nav-dd-logo { width: 30px; height: 30px; flex-shrink: 0; }
.nav-dd-text { display: flex; flex-direction: column; }
.nav-dd-name { font-size: 14px; font-weight: 600; color: var(--text); }
.nav-dd-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.nav-dd-all {
  display: block;
  margin-top: 4px;
  padding: 10px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--brand);
  font-weight: 500;
}
.nav-dd-all:hover { background: var(--bg-soft); text-decoration: none; border-radius: var(--radius-sm); }

/* ---- Docs ---- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.card h2 { margin-bottom: 14px; }
.code-block {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
}
.code-block .c { color: var(--text-dim); }

/* Screen-reader-only. */
.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;
}

/* ---- Anchor offset for the sticky header ---- */
.section, .pricing-section { scroll-margin-top: 84px; }

/* ---- Single flat license (on the product page) ---- */
.pricing-section { margin-top: 56px; }
.license-card {
  max-width: 420px;
  margin-top: 28px;
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.license-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.license-price .amount { font-size: 46px; font-weight: 700; letter-spacing: -1.5px; color: var(--text); }
.license-price .per { font-size: 15px; color: var(--text-muted); }
.license-feats { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.license-feats li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text); }
.license-feats li::before { content: "\2713"; position: absolute; left: 0; top: 1px; color: var(--brand); font-weight: 700; }
.license-note { margin: 14px 0 0; font-size: 12px; color: var(--text-dim); text-align: center; }

/* The topbar's "Get started" is a primary button, not a nav link — keep its
   text white (a bare `.topnav a` color rule would otherwise win on specificity). */
.topnav a.btn-primary { color: #fff; }
.topnav a.btn-primary:hover { color: #fff; background: var(--brand-dark); }

/* ---- Blog listing ---- */
.blog-list { display: grid; gap: 16px; margin-top: 28px; }
.blog-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.blog-card:hover { border-color: var(--brand-dim); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.blog-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.blog-tag { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-title { font-size: 19px; font-weight: 700; color: var(--text); margin: 0 0 8px; letter-spacing: -0.3px; }
.blog-excerpt { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.blog-more { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--brand); font-weight: 600; }

/* ---- Blog post ---- */
.post { max-width: 720px; }
.post-head { margin-bottom: 26px; }
.post-title { font-size: 34px; font-weight: 700; letter-spacing: -1px; margin: 10px 0 0; line-height: 1.15; }
.post-body p { font-size: 16px; line-height: 1.75; color: var(--text); margin: 0 0 18px; }

/* ---- Forms (contact + sign in) ---- */
.auth-wrap { max-width: 400px; margin: 0 auto; }
.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.field textarea { resize: vertical; min-height: 120px; }
.auth-card .btn-primary { margin-top: 4px; }
.form-note { margin: 14px 0 0; font-size: 12px; color: var(--text-dim); }
.auth-alt { margin-top: 18px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* ---- Contact layout ---- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; margin-top: 28px; align-items: start; }
.contact-aside { font-size: 14px; color: var(--text-muted); }
.contact-aside h3 { color: var(--text); margin-bottom: 10px; }
.contact-aside p { line-height: 1.6; }
.contact-aside a { font-weight: 600; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- Topbar sign-out (text button) ---- */
.logout-form { display: inline; margin: 0; }
.topnav .btn-link {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.12s, color 0.12s;
}
.topnav .btn-link:hover { color: var(--text); background: var(--hover); }

/* ---- Form feedback ---- */
.form-error {
  background: var(--error-bg);
  border: 1px solid #f3c6c4;
  color: var(--error);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.form-success {
  background: var(--success-bg);
  border: 1px solid #bfe6cc;
  color: var(--success);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

/* ---- Dashboard ---- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.dash-grid .card h2 { font-size: 16px; margin-bottom: 16px; }
.kv { display: flex; flex-direction: column; gap: 12px; }
.kv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.kv-row .k { color: var(--text-muted); font-size: 13px; }
.kv-row .v { color: var(--text); font-size: 14px; text-align: right; }

/* ---- Inline notice (e.g. billing not configured) ---- */
.notice {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---- Admin: stat tiles ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.stat-value { font-size: 30px; font-weight: 700; color: var(--text); letter-spacing: -1px; margin-top: 6px; }
.stat-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.admin-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- Tables ---- */
.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; background: var(--bg-soft); }
.table tr:last-child td { border-bottom: none; }
.table td.mono { font-size: 12.5px; color: var(--text-muted); }
.row-actions { display: flex; gap: 8px; }
.row-actions form { margin: 0; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ---- Download / release list ---- */
.rel-list { margin-top: 24px; display: grid; gap: 12px; }
.rel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.rel-name { font-size: 15px; font-weight: 600; color: var(--text); }
.rel-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
}
.rel-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.rel-locked { opacity: 0.5; pointer-events: none; }

/* ---- Admin blog form ---- */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-form { max-width: 720px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 16px; height: 16px; }
.post-form-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Contact: single-column form (the "other ways to reach us" aside was removed). */
.contact-form-wrap { max-width: 540px; margin-top: 28px; }

/* ---- Admin: contact messages ---- */
.msg-list { margin-top: 24px; display: grid; gap: 14px; }
.msg-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.msg-name { font-weight: 600; color: var(--text); }
.msg-email { font-size: 13px; margin-left: 8px; }
.msg-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.msg-meta form { margin: 0; }
.msg-body { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
