/* Exact product chrome: drehev.com / stevejmartin.com */
:root {
  --bg: #f8fafc;
  --fg: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --border: #e2e8f0;
  --card: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --read: 42rem;
  --sans: Figtree, system-ui, sans-serif;
  --danger: #dc2626;
  --ok: #059669;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(37, 99, 235, 0.2); color: var(--fg); }

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

/* Light frosted top nav — same as drehev.com */
.topbar,
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
  padding: 12px 28px;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.brand-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.nav-panel {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 6px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
  background: #eef2f7;
}
.top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.menu-toggle {
  display: none;
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* No dark sidebar — Drehev marketing shell */
.shell { display: block; min-height: calc(100vh - var(--nav-h)); }
.sidebar { display: none !important; }
.nav-backdrop { display: none !important; }

.main {
  min-width: 0;
  padding: 0 0 80px;
}
.main-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 28px 0;
}

.page-kicker {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.page-title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--fg);
}
.page-lead {
  margin: 0 0 24px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46rem;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
a.card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 30px -18px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .card-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.section { margin: 36px 0 0; }
.section > h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.section > p,
.prose p {
  margin: 0 0 1em;
  color: var(--muted);
  max-width: var(--read);
  font-size: 1.02rem;
}
.prose { max-width: var(--read); }
.prose strong, .section strong { color: var(--fg); }

.item {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.item:last-child { border-bottom: 1px solid var(--border); }
.item-num {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.item h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.item .luma-name {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 10px;
}
.item p, .item li { color: var(--muted); max-width: var(--read); }
.item ul { margin: 8px 0 0; padding-left: 1.15rem; }
.item li { margin: 0 0 6px; }
.field-label {
  margin: 14px 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.callout {
  margin: 20px 0;
  padding: 16px 18px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  border-left: 3px solid var(--primary);
  color: var(--fg);
}
.callout p { margin: 0; color: inherit; max-width: none; }
.callout a { color: var(--primary); font-weight: 700; text-decoration: none; }
.callout a:hover { text-decoration: underline; }

.strength {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fg);
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 70% -20%, #dbeafe 0%, transparent 58%),
    radial-gradient(800px 420px at 10% 10%, #e2e8f0 0%, transparent 52%),
    var(--bg);
  color: var(--fg);
  padding: clamp(40px, 7vw, 72px) 28px clamp(40px, 6vw, 64px);
  margin: -28px -28px 32px;
  border-bottom: 1px solid var(--border);
}
.home-hero-inner { max-width: var(--max); margin: 0 auto; }
.home-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.home-hero .lead {
  margin: 0 0 24px;
  font-size: 1.1rem;
  max-width: 40rem;
  color: var(--muted);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-luma,
.btn-primary { background: var(--primary); color: #fff; }
.btn-luma:hover,
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { background: #fff; }
.btn-moss,
.btn-dark { background: var(--fg); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: #bfdbfe;
}
.btn-outline:hover { background: #eff6ff; }
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: #fecaca;
}

.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer a { color: var(--primary); text-decoration: none; font-weight: 600; }

.timeline {
  border-left: 2px solid var(--border);
  margin: 8px 0 0;
  padding: 0 0 0 18px;
}
.timeline-item { position: relative; padding: 0 0 28px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.timeline-date {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.table-wrap { overflow-x: auto; margin: 16px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f8fafc;
}

.tool-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin: 0 0 16px;
}
.tool-panel h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .form-grid.two { grid-template-columns: 1fr; }
}
label.field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
}
label.field span.hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="range"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--fg);
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: #93c5fd;
}
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row output {
  min-width: 2ch;
  font-weight: 800;
  color: var(--primary);
}
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}
.choice.is-on {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--primary);
}
.entry-list { display: grid; gap: 10px; }
.entry {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
}
.entry-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.entry-head strong { font-size: 0.95rem; color: var(--fg); }
.entry-meta { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.entry p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: #fff;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 720px) {
  .stat-row { grid-template-columns: 1fr; }
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.stat .n {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.stat .l {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.result-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--fg);
}
.result-box.warn { background: #fff7ed; border-color: #fed7aa; }
.result-box.bad { background: #fef2f2; border-color: #fecaca; }

.auth-gate {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 18px;
}
.auth-gate p { margin: 0 0 12px; color: var(--fg); }
.user-chip {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-panel {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(var(--nav-h) + 6px);
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  }
  body.nav-open .nav-panel { display: flex; }
  .nav-links { flex-direction: column; width: 100%; }
  .top-meta { width: 100%; }
  .home-hero { margin-left: -28px; margin-right: -28px; }
}

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