:root {
  --background: hsl(0, 0%, 98%);
  --foreground: hsl(220, 13%, 6%);
  --card: hsl(0, 0%, 98%);
  --card-foreground: hsl(220, 13%, 6%);
  --popover: hsl(0, 0%, 96%);
  --popover-foreground: hsl(220, 13%, 6%);
  --primary: hsl(215, 60%, 45%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(220, 8%, 92%);
  --secondary-foreground: hsl(220, 13%, 6%);
  --muted: hsl(0, 0%, 94%);
  --muted-foreground: hsl(0, 0%, 45%);
  --accent: hsl(215, 60%, 45%);
  --accent-foreground: hsl(0, 0%, 98%);
  --destructive: hsl(0, 70%, 42%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(220, 8%, 88%);
  --input: hsl(0, 0%, 92%);
  --ring: hsl(215, 60%, 45%);
  --overlay: hsl(0, 0%, 0% / 0.4);
  --chart-1: hsl(215, 60%, 45%);
  --chart-2: hsl(160, 50%, 38%);
  --chart-3: hsl(45, 60%, 42%);
  --chart-4: hsl(280, 50%, 38%);
  --chart-5: hsl(0, 0%, 42%);
  --sidebar: hsl(220, 8%, 96%);
  --sidebar-foreground: hsl(220, 13%, 6%);
  --sidebar-primary: hsl(215, 60%, 45%);
  --sidebar-primary-foreground: hsl(0, 0%, 98%);
  --sidebar-accent: hsl(220, 8%, 92%);
  --sidebar-accent-foreground: hsl(215, 60%, 45%);
  --sidebar-border: hsl(220, 8%, 88%);
  --sidebar-ring: hsl(215, 60%, 45%);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Georgia", Cambria, serif;
  --font-mono: "Dank Mono", ui-monospace, SFMono-Regular, monospace;
  --radius: 0.375rem;
  --shadow-2xs: 0px 2px 3px 0px hsl(0 0% 10.1961% / 0.08);
  --shadow-xs: 0px 2px 3px 0px hsl(0 0% 10.1961% / 0.08);
  --shadow-sm: 0px 2px 3px 0px hsl(0 0% 10.1961% / 0.16), 0px 1px 2px -1px hsl(0 0% 10.1961% / 0.16);
  --shadow: 0px 2px 3px 0px hsl(0 0% 10.1961% / 0.16), 0px 1px 2px -1px hsl(0 0% 10.1961% / 0.16);
  --shadow-md: 0px 2px 3px 0px hsl(0 0% 10.1961% / 0.16), 0px 2px 4px -1px hsl(0 0% 10.1961% / 0.16);
  --shadow-lg: 0px 2px 3px 0px hsl(0 0% 10.1961% / 0.16), 0px 4px 6px -1px hsl(0 0% 10.1961% / 0.16);
  --shadow-xl: 0px 2px 3px 0px hsl(0 0% 10.1961% / 0.16), 0px 8px 10px -1px hsl(0 0% 10.1961% / 0.16);
  --shadow-2xl: 0px 2px 3px 0px hsl(0 0% 10.1961% / 0.40);
  --tracking-normal: -0.025em;
  --spacing: 0.25rem;
}

.dark {
  --background: hsl(220, 13%, 9%);
  --foreground: hsl(0, 0%, 93%);
  --card: hsl(220, 10%, 14%);
  --card-foreground: hsl(0, 0%, 93%);
  --popover: hsl(220, 10%, 14%);
  --popover-foreground: hsl(0, 0%, 93%);
  --primary: hsl(215, 60%, 55%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(220, 10%, 16%);
  --secondary-foreground: hsl(0, 0%, 85%);
  --muted: hsl(220, 8%, 16%);
  --muted-foreground: hsl(0, 0%, 55%);
  --accent: hsl(215, 60%, 55%);
  --accent-foreground: hsl(0, 0%, 98%);
  --destructive: hsl(0, 70%, 50%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(220, 8%, 20%);
  --input: hsl(220, 8%, 20%);
  --ring: hsl(215, 60%, 55%);
  --overlay: hsl(0, 0%, 0% / 0.6);
  --chart-1: hsl(215, 60%, 55%);
  --chart-2: hsl(160, 50%, 45%);
  --chart-3: hsl(45, 60%, 50%);
  --chart-4: hsl(280, 50%, 45%);
  --chart-5: hsl(0, 0%, 50%);
  --sidebar: hsl(220, 13%, 4%);
  --sidebar-foreground: hsl(0, 0%, 93%);
  --sidebar-primary: hsl(215, 60%, 55%);
  --sidebar-primary-foreground: hsl(0, 0%, 98%);
  --sidebar-accent: hsl(220, 8%, 16%);
  --sidebar-accent-foreground: hsl(215, 60%, 55%);
  --sidebar-border: hsl(220, 8%, 20%);
  --sidebar-ring: hsl(215, 60%, 55%);
}

body {
  letter-spacing: var(--tracking-normal);
}
/* Dank Mono web font */
@font-face {
  font-family: "Dank Mono";
  src: url("/fonts/DankMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Dank Mono";
  src: url("/fonts/DankMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Dank Mono";
  src: url("/fonts/DankMono-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Viewport flex layout */
html { height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
}
main { flex: 1; }

/* Studio layout utilities */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 1.5rem; }
}

/* Typography */
.prose { max-width: 65ch; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.5625rem; }
.text-2xl { font-size: 1.953rem; }
.text-3xl { font-size: 2.441rem; }
.text-4xl { font-size: 3.052rem; }

/* Section spacing */
.section {
  padding-block: 2.5rem;
}
@media (min-width: 768px) {
  .section { padding-block: 4rem; }
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
}
@media (min-width: 768px) {
  .nav-inner { padding-inline: 1.5rem; }
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
  text-decoration: none;
  margin-right: auto;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.nav-mark { display: block; width: 24px; height: 24px; }
nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
  white-space: nowrap;
}
nav a:hover, nav a.nav-active {
  color: var(--foreground);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer-hardware {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.footer-hardware a {
  color: var(--primary);
  text-decoration: none;
  margin-left: 0.5rem;
}
.footer-hardware a:hover { text-decoration: underline; }

/* Hero */
.hero {
  height: clamp(600px, 100vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.hero h1 {
  font-size: 3.052rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 18ch;
  margin-inline: auto;
}
.hero p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 65ch;
  margin-inline: auto;
  margin-top: 1.5rem;
  line-height: 1.65;
}

/* Cards */
.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Proof metrics (Total Ownership section) */
.proof-grid { margin-top: 2rem; }
.proof-metric {
  text-align: center;
  padding: 1.5rem;
}
.proof-value {
  display: block;
  font-size: 2.441rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.proof-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
}

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 1rem;
  font-family: inherit;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.form-textarea { min-height: 8rem; resize: vertical; }
.form-error { color: var(--destructive); font-size: 0.875rem; margin-top: 0.75rem; }
.form-success { color: hsl(142, 60%, 50%); font-size: 0.875rem; }

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* Hero CTA row */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Eliminate list (× markers) */
.eliminate-list { list-style: none; padding: 0; }
.eliminate-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.eliminate-list li::before {
  content: "\00d7";
  position: absolute;
  left: 0;
  color: var(--destructive);
  font-weight: bold;
}

/* Appliance Model spec list */
.spec-list {
  padding: 1.5rem;
  list-style: none;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spec-row dd {
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding-block: 4rem;
}

/* Contact info bar */
.contact-info {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.contact-info a:hover { text-decoration: underline; }

/* Glass Box inspector tooltip */
.gb-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 0;
  gap: 0.75rem;
}
.gb-label {
  font-size: 10px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.gb-value {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}
.gb-explainer {
  font-size: 10px;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin: 0;
}
