/* DirectDOPE - directdope.app
   Family: cardmom / parolejo / jointeffort shared shape (plain static HTML+CSS,
   one stylesheet, hairline trace, mono numbers). Identity here: cool-to-warm
   trace reads muzzle to downrange. Dark only, precision-instrument palette. */

:root {
  color-scheme: dark;

  --field:     #101316;
  --plate:     #171b1f;
  --plate-2:   #1e2429;
  --line:      #2c3439;
  --ink:       #e9ecee;
  --muted:     #9aa5ab;
  --brass:     #d8a657;
  --brass-hi:  #e9bd7c;
  --verdigris: #6fb3a0;
  --ink-on-accent: #14100a;

  --max: 1020px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 24px;
  --space-lg: 52px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brass-hi); }
:focus-visible { outline: 3px solid var(--verdigris); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- family signature hairline ---------- */
.trace {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--verdigris) 22%, var(--brass) 78%, transparent);
  opacity: 0.85;
}

/* ---------- type ---------- */
h1 { font-size: clamp(2.2rem, 5.5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 18px; }
section h2, .page h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.01em; font-weight: 800; margin: 0 0 16px; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
h4 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
p { margin: 0 0 16px; }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted);
  margin: 0 0 12px;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.body-copy { max-width: 68ch; }
.caption, .fine { max-width: 62ch; color: var(--muted); font-size: 0.98rem; }
.fine { font-family: var(--mono); font-size: 0.85rem; }
[class*="tabular"], .tile__value, .tile__ref, .audit__value { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site-head { padding: 18px 0; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { border-radius: 6px; flex: none; }
.site-nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 10px 0; color: var(--ink); }
.site-nav a:hover { color: var(--brass); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--brass); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 22px; min-height: 48px; border-radius: 12px;
  transition: transform 0.06s ease, background-color 0.15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn--primary { background: var(--brass); color: var(--ink-on-accent); }
.btn--primary:hover:not(:disabled) { background: var(--brass-hi); }
.btn--ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  min-height: 44px; padding: 11px 20px;
}
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.doors { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.doors a.secondary { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sections ---------- */
section { padding: var(--space-lg) 0; }
section + section { border-top: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { padding: 52px 0 var(--space-lg); border-top: none; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.hero__gloss { color: var(--muted); font-size: 0.95rem; max-width: 40em; margin-top: -6px; }
.highlight {
  background: var(--plate); border: 1px solid var(--line); border-left: 3px solid var(--brass);
  border-radius: 12px; padding: 18px 20px; margin: 22px 0; max-width: 60ch;
  color: var(--ink);
}
.hero__visual { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mockup-caption { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); text-align: center; max-width: 30ch; }

.phone {
  width: 100%; max-width: 270px; background: var(--plate); border: 1px solid var(--line);
  border-radius: 26px; padding: 22px 16px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.phone__fov {
  aspect-ratio: 1 / 1; border-radius: 50%; background: var(--plate-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.phone__row {
  font-family: var(--mono); font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 14px;
}

/* ---------- proof / verification ---------- */
.proof .wrap { max-width: var(--max); }
.tiles {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.tile {
  background: var(--plate-2); border: 1px solid var(--line); border-left: 3px solid var(--brass);
  border-radius: 12px; padding: 22px 20px;
}
.tile__label { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin: 0 0 6px; }
.tile__value {
  font-family: var(--mono); font-size: clamp(2rem, 6vw, 2.75rem); letter-spacing: -0.01em;
  color: var(--ink); line-height: 1.1; margin: 0 0 6px;
}
.tile__unit { font-size: 0.42em; margin-left: 0.4em; color: var(--muted); }
.tile__ref { font-family: var(--mono); font-size: 0.9rem; color: var(--muted); margin: 0 0 4px; }
.tile__delta { font-family: var(--mono); font-size: 0.95rem; font-weight: 600; color: var(--verdigris); margin: 0; }

.findings { margin-top: 30px; }
.findings h3 { margin-bottom: 18px; }
.findings__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.finding { border-top: 1px solid var(--line); padding-top: 18px; }
.finding p { color: var(--muted); font-size: 0.98rem; max-width: 66ch; margin: 0; }

/* ---------- problem ---------- */
.problem p { color: var(--muted); max-width: 68ch; }

/* ---------- price ---------- */
.price-card {
  background: var(--plate); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px; max-width: 60ch;
}

/* ---------- offline cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 18px; }
.card { background: var(--plate); border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px; }
.card p { color: var(--muted); margin: 0; }

/* ---------- sight picture ---------- */
.pull-line {
  font-size: 1.15rem; font-weight: 700; color: var(--ink); max-width: 50ch;
  border-left: 3px solid var(--verdigris); padding-left: 16px; margin: 22px 0 0;
}

/* ---------- audit panel ---------- */
.audit-wrap { overflow-x: auto; }
.audit-panel {
  background: var(--plate-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 20px; min-width: 420px; font-family: var(--mono); font-size: 0.92rem;
  margin: 18px 0 8px;
}
.audit-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.audit-row:first-child { border-top: none; }
.audit-key { color: var(--muted); white-space: nowrap; }
.audit-value { color: var(--ink); text-align: right; white-space: nowrap; }

/* ---------- limits ---------- */
.limits-list { display: flex; flex-direction: column; gap: 24px; }
.limits-list article p { color: var(--muted); margin: 0; max-width: 68ch; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 26px; }
.faq-item h3 { margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin: 0; max-width: 68ch; }

/* ---------- waitlist ---------- */
.waitlist__label { display: block; font-weight: 700; margin-bottom: 8px; }
.waitlist__row { display: flex; gap: 10px; align-items: stretch; }
.waitlist input[type="email"], .waitlist input[type="text"] {
  min-width: 0; flex: 1; font: inherit; font-size: 1rem;
  background: var(--plate); color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px; min-height: 48px;
}
.waitlist input[type="email"]:focus { border-color: var(--verdigris); }
.waitlist__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.waitlist__status { min-height: 1.2em; margin: 10px 0 0; font-family: var(--mono); font-size: 0.9rem; }
.waitlist__status[data-state="error"] { color: #e0a458; }
.waitlist__status[data-state="ok"] { color: var(--verdigris); }
#waitlist-fine { margin-top: 12px; }
.thanks {
  background: var(--plate); border: 1px solid var(--line); border-left: 3px solid var(--verdigris);
  border-radius: 12px; padding: 22px 20px;
}
.thanks h1, .thanks h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; color: var(--verdigris); }
.thanks p { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- footer ---------- */
.site-foot { padding: var(--space-lg) 0 40px; }
.site-foot__links { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 4px -4px; }
.site-foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 600; text-decoration: none; }
.site-foot__links a:hover { text-decoration: underline; }
.site-foot p { color: var(--muted); font-size: 0.85rem; max-width: 72ch; margin: 0 0 10px; }

/* ---------- simple content pages (privacy / support) ---------- */
.page { padding: var(--space-lg) 0; max-width: 68ch; }
.page .wrap { max-width: 68ch; }
.page h2 { margin-top: 34px; }
.page p { color: var(--muted); }
.summary-card {
  background: var(--plate); border: 1px solid var(--line); border-left: 3px solid var(--brass);
  border-radius: 12px; padding: 20px; margin: 20px 0;
}
.summary-card p { color: var(--ink); margin: 0; }
.contact-card {
  background: var(--plate); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 20px; margin: 18px 0;
}
.contact-card p { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__visual { align-items: flex-start; }
  .phone { margin: 0 auto; }
  .tiles { grid-template-columns: 1fr; }
  .findings__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  section { padding: 34px 0; }
  .hero { padding-top: 34px; }
  .site-nav { gap: 14px; }
  .waitlist__row { flex-direction: column; }
  .waitlist__row input, .waitlist__row button { width: 100%; }
  .doors { flex-direction: column; align-items: stretch; }
  .doors .btn, .doors a.secondary { width: 100%; text-align: center; }
  .site-foot__links { gap: 14px; }
}
