/* Dinged marketing site. One stylesheet, no build step. */

:root {
  /* Brand colors come from tokens.css (brand kit, loaded first); light/dark values live there. */
  --ink: var(--dg-ink);
  --paper: var(--dg-paper);
  --amber: var(--dg-amber);
  --new: var(--dg-new);
  --prior: var(--dg-prior);
  --sealed: var(--dg-sealed);
  --muted: var(--dg-muted);

  /* Derived */
  --on-amber: #111418;            /* text on amber fills, both themes */
  --surface: #FFFFFF;
  --line: rgba(17, 20, 24, 0.10);
  --line-strong: rgba(17, 20, 24, 0.18);
  --wall: #EFEEE8;
  --wall-edge: #E2E0D7;
  --amber-wash: rgba(255, 179, 0, 0.16);
  --band-bg: #111418;
  --band-ink: #F2F3F5;
  --band-muted: #9CA3AF;
  --band-line: rgba(242, 243, 245, 0.12);
  --shadow: 0 1px 2px rgba(17, 20, 24, 0.04), 0 8px 24px rgba(17, 20, 24, 0.06);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: var(--dg-radius-card);
  --radius-sm: 10px;
  --gutter: 16px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #16191E;
    --line: rgba(242, 243, 245, 0.10);
    --line-strong: rgba(242, 243, 245, 0.20);
    --wall: #22262D;
    --wall-edge: #2C313A;
    --amber-wash: rgba(255, 194, 51, 0.12);
    --band-bg: #171A20;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* Base ------------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(1.875rem, 5vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.15s ease;
}

a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--prior);
  outline-offset: 3px;
  border-radius: 4px;
}

code, .mono {
  font-family: var(--mono);
  font-size: 0.875em;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus { top: 8px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header ---------------------------------------------------------------- */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand picture { display: block; }

/* Brand-kit wordmark (outlined SVG, ink in light mode, white in dark mode via <picture>). */
.brand-logo {
  display: block;
  height: 26px;
  width: auto;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover { color: var(--ink); background: var(--line); }
.site-nav a[aria-current="page"] { color: var(--ink); }

.nav-wide { display: none; }

@media (min-width: 720px) {
  .nav-wide { display: list-item; }
}

/* Buttons and chips ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-amber { background: var(--amber); color: var(--on-amber); }
.btn-amber:hover { background: #F2A900; }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-ink { background: var(--on-amber); color: #FAFAF7; }
.btn-ink:hover { background: #2A2F37; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--amber);
}

.dot-new { background: var(--new); }
.dot-prior { background: var(--prior); }
.dot-sealed { background: var(--sealed); }
.dot-muted { background: var(--muted); }

.badge-draft {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--amber);
  color: var(--on-amber);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  padding-block: clamp(40px, 8vw, 96px) clamp(56px, 9vw, 112px);
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(3.25rem, 13vw, 5.75rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero .lede {
  margin-top: 20px;
  max-width: 34ch;
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
}

.hero .lede strong { color: var(--ink); font-weight: 600; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Before / after illustration */

.compare {
  margin: 0;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.compare-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.wall {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--wall);
}

.wall svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wall-trim { fill: var(--wall-edge); }
.wall-floor { fill: var(--line-strong); }
.wall-switch { fill: var(--surface); stroke: var(--line-strong); }

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.pin-prior { background: var(--prior); left: 30%; top: 30%; }

.pin-new {
  left: 64%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  background: transparent;
  border: 2.5px dashed var(--new);
  box-shadow: none;
}

.pin-new::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--new);
}

.measure {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

.compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.compare-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compare figcaption {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Sections -------------------------------------------------------------- */

.section {
  padding-block: clamp(56px, 9vw, 104px);
  border-top: 1px solid var(--line);
}

.section:last-child { padding-bottom: 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head p {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--muted);
}

/* Steps */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 900;
  font-size: 1.125rem;
}

.card h3 + p { margin-top: 8px; color: var(--muted); }

/* Modes */

.modes {
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .modes { grid-template-columns: 1fr 1fr; }
}

.mode-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 12px;
  background: var(--amber-wash);
  color: var(--ink);
}

.mode-icon svg { width: 100%; height: 100%; display: block; }

.ticks {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 28px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
}

.modes .card {
  display: flex;
  flex-direction: column;
}

.modes .ticks { margin-bottom: 20px; }

.mode-for {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

/* Verify band */

.band {
  background: var(--band-bg);
  color: var(--band-ink);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 64px);
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .band { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
}

.band .eyebrow,
.band p { color: var(--band-muted); }

.band h2 { color: var(--band-ink); }
.band p { margin-top: 16px; font-size: 1.0625rem; }
.band a { text-decoration-color: rgba(242, 243, 245, 0.4); }
.band a:hover { text-decoration-color: currentColor; }

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.checks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 16px 20px;
  border-top: 1px solid var(--band-line);
}

.checks li:first-child { border-top: 0; }

.checks .dot { margin-top: 8px; grid-row: span 2; }
.checks strong { color: var(--band-ink); font-weight: 600; }
.checks .mono { color: var(--band-muted); font-size: 0.8125rem; }

/* Fair Charge */

.split {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
}

.formula {
  margin: 0;
  padding: 0;
  list-style: none;
}

.formula li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.formula li:first-child { border-top: 0; padding-top: 0; }

.formula .op {
  display: inline-block;
  width: 1.25em;
  font-family: var(--mono);
  color: var(--muted);
}

.formula .src {
  font-size: 0.8125rem;
  color: var(--muted);
}

.formula .total {
  font-weight: 700;
}

.fine {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Coming soon */

.soon {
  margin-top: clamp(56px, 9vw, 104px);
  background: var(--amber);
  color: var(--on-amber);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 56px);
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .soon { grid-template-columns: 1fr auto; align-items: center; }
}

.soon h2 { color: var(--on-amber); font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
.soon p { margin-top: 12px; max-width: 52ch; color: var(--on-amber); }

/* Footer ---------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(56px, 9vw, 104px);
  padding-block: 40px 48px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}

.site-footer .tag { margin-top: 8px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a { text-decoration: none; color: var(--ink); font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }

.footer-fine {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

/* Text pages ------------------------------------------------------------ */

.page {
  padding-block: clamp(40px, 7vw, 80px) 0;
}

.prose {
  max-width: 680px;
}

.prose h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.prose .meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.prose .intro {
  margin-top: 24px;
  font-size: 1.1875rem;
  color: var(--muted);
}

.prose h2 {
  margin-top: 48px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.prose h3 { margin-top: 28px; font-size: 1.125rem; }

.prose p,
.prose ul,
.prose ol { margin-top: 14px; }

.prose ul,
.prose ol { padding-left: 1.25em; }

.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--muted); }

.prose a { text-decoration-color: var(--muted); }

.callout {
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.callout-amber {
  border-color: transparent;
  background: var(--amber-wash);
  box-shadow: inset 4px 0 0 var(--amber);
}

.callout strong { font-weight: 700; }
.callout p:first-child { margin-top: 0; }

/* Tables (accuracy) */

.table-scroll {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

thead th {
  border-top: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

td.pending {
  color: var(--muted);
  font-style: italic;
  white-space: nowrap;
}

@media (max-width: 599px) {
  table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  table.stack tr {
    display: block;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }

  table.stack tbody tr:first-child { border-top: 0; }

  table.stack td {
    display: block;
    padding: 0;
    border: 0;
  }

  table.stack td + td { margin-top: 8px; }

  table.stack td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* FAQ */

.faq {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details > p { margin: 0 0 18px; color: var(--muted); }

.contact-card {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-card .addr {
  font-size: 1.25rem;
  font-weight: 700;
  word-break: break-all;
}

/* Verify placeholder */

.verify-status {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line-strong);
  background: var(--surface);
}

.verify-status .dot { margin-top: 9px; }
.verify-status strong { display: block; }
.verify-status p { margin-top: 2px; color: var(--muted); }

.check-list {
  margin: 20px 0 0;
  padding: 0 !important;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.check-list li {
  margin: 0 !important;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
}

.check-list li:first-child { border-top: 0; }
.check-list .what { font-weight: 600; }
.check-list .how { grid-column: 1 / -1; color: var(--muted); font-size: 0.9375rem; }

.not-run {
  align-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

pre {
  margin-top: 14px;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: var(--band-bg);
  color: var(--band-ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* 404 */

.lost {
  padding-block: clamp(64px, 14vw, 160px) 0;
  text-align: center;
}

.lost .big {
  font-size: clamp(4.5rem, 20vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--ink);
}

.lost .big span {
  display: inline-block;
  padding: 0 0.12em;
  border-radius: 0.14em;
  background: var(--amber);
  color: var(--on-amber);
}

.lost h1 { margin-top: 16px; font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; }
.lost p { margin: 12px auto 0; max-width: 40ch; color: var(--muted); }
.lost .actions { justify-content: center; }
