/* ===========================
   microver.ch — Dark Glass Theme
   =========================== */

:root {
  /* Background: anthracite -> deep blue */
  --bg: linear-gradient(135deg, #1a202c 0%, #0f274d 45%, #1e3a8a 100%);

  /* Text */
  --ink: #ffffff;        /* main text */
  --muted: #cbd5e1;      /* secondary text */

  /* Lines & panels on dark */
  --line: rgba(255, 255, 255, 0.18);
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.10);

  /* Accents */
  --accent: #ef4444;     /* CTA red */
  --ok: #22c55e;
  --edu: #60a5fa;        /* brighter for contrast on dark */
  --maker: #34d399;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  background-attachment: fixed;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); }

/* Layout wrapper */
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 14px 30px; }

/* ===========================
   Topbar with logo + nav
   =========================== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px; padding: 0px 10px 0px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img.logo {
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
}
.brand span { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; style="font-family: 'Roboto', sans-serif;" }

/* Icon buttons (Home / Docs / Shop) */
.nav { display: flex; align-items: center; gap: 8px; }

.iconbtn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.iconbtn:hover {
  transform: translateY(-1px);
  background: var(--panel-strong);
  border-color: rgba(255,255,255,0.28);
}
.iconbtn svg { width: 18px; height: 18px; }

/* ===========================
   Header
   =========================== */
header { display: grid; gap: 4px; margin-bottom: 16px; }
header h1 { font-size: clamp(20px, 3.2vw, 30px); margin: 0; letter-spacing: -0.02em; }
header p { margin: 0; color: var(--muted); }

/* ===========================
   Desktop table (perfectly aligned rows)
   =========================== */
.cmp-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  background: transparent;
}

table.cmp {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

/* Sticky header row */
.cmp thead th {
  position: sticky; top: 0; z-index: 5;
  background: var(--panel-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Cells */
.cmp th, .cmp td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: center;
  vertical-align: center;
  background: var(--panel);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Last row border cleanup */
.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td { border-bottom: 0; }

/* First column (labels) width + sticky */
.cmp colgroup col:first-child { width: 28%; }
.cmp th.label {
  color: var(--muted);
  font-weight: 700;
  position: sticky; left: 0; z-index: 6;
  background: var(--panel-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--line);
}

/* Product head blocks inside sticky header */
.prodhead { display: grid; gap: 6px; text-align: center; }
.prodhead .name { font-weight: 800; letter-spacing: -0.01em; }
.prodhead .age { font-size: 12px; color: var(--muted); }

/* Badges */
.badge {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); background: transparent;
}
.seg {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 8px; border-radius: 999px; color: #0b1020;
  /* Put text dark on light chips for pop */
  background: rgba(255,255,255,0.9);
}
.seg.maker { box-shadow: inset 0 0 0 999px rgba(34,197,94,0.5); }
.seg.edu { box-shadow: inset 0 0 0 999px rgba(59,130,246,0.5); }

/* ===========================
   CTA buttons
   =========================== */
.price { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }

.price + span { display: block; margin-bottom: 0px; }

.cta {
  display: inline-block; text-decoration: none; color: #fff; font-weight: 800; letter-spacing: .01em;
  padding: 12px 16px; border-radius: 12px; position: relative; isolation: isolate;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  box-shadow: 0 10px 24px rgba(239, 68, 68, .35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  white-space: nowrap;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(239, 68, 68, .45), inset 0 1px 0 rgba(255,255,255,0.3); filter: saturate(1.05); }
.cta:active { transform: translateY(0); }
.cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ===========================
   Details / parts tables
   =========================== */
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
summary { cursor: pointer; font-weight: 600; }
.parts { font-size: 14px; }
.parts table { width: 100%; border-collapse: collapse; }
.parts th, .parts td {
  text-align: left; padding: 6px 4px; border-bottom: 1px dashed var(--line);
}
.parts th { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ===========================
   Mobile cards
   =========================== */
.cards { display: none; }

@media (max-width: 819px) {
  .cmp-wrap { display: none; }
  .cards { display: grid; gap: 12px; }

  .topbar {
    padding: 10px 8px;
  }
  .brand span {
    gap: 4px;
    font-size: 22px;       /* smaller text */
  }
  .brand img {
    height: 42px;          /* smaller logo */
  }

  .nav .iconbtn {
    display: none; /* hide all links by default */
  }

  .nav .iconbtn[aria-label="Home"] {
    display: inline-flex; /* show only Home */
  }

  .card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
  }

  .card .head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-strong);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .card .title { display: grid; gap: 4px; }
  .title .name { font-weight: 800; }
  .title .age { font-size: 12px; color: var(--muted); }

  .features { padding: 12px; display: grid; gap: 8px; }
  .features .row { display: grid; gap: 4px; }
  .features .label { font-size: 12px; color: var(--muted); }

  .foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px; border-top: 1px solid var(--line);
  }
}

/* ===========================
   Reduced transparency fallback
   =========================== */
@media (prefers-reduced-transparency: reduce) {
  .iconbtn,
  .cmp th, .cmp td, .cmp thead th,
  details,
  .card, .card .head {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(20, 27, 40, 0.85); /* solid dark fallback */
  }
}




/* ===========================
   Clickable Elements
   =========================== */
a.clickable {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

a.clickable:hover {
  color: var(--accent);
  transform: translateY(-1px);
  filter: brightness(1.15);
}

a.clickable svg {
  transition: stroke 0.2s ease, transform 0.2s ease;
}

a.clickable:hover svg {
  stroke: var(--accent);
  transform: scale(1.05);
}

