/* DCM public website — single stylesheet, no build step.
   Edit colours and spacing in :root; sections use the tokens below. */

:root {
  --ink-900: #0b0c0e;   /* hero / footer black */
  --ink-800: #121417;   /* charcoal panels */
  --ink-700: #1a1d21;   /* cards on dark */
  --ink-600: #2a2e34;   /* borders on dark */
  --silver-100: #f2f3f4;
  --silver-200: #d9dcdf;
  --silver-400: #a6abb1;
  --silver-500: #7c838b;
  --paper: #f6f7f8;     /* light sections */
  --paper-2: #ffffff;
  --text-light: #1a1d21;
  --text-light-2: #4a5057;
  --teal: #2ee6d6;      /* on dark */
  --teal-deep: #0b7f76; /* on light, AA contrast */
  --teal-dim: rgba(46, 230, 214, 0.16);
  --emerald: #19b78b;
  --amber: #e2b85a;
  --red: #e36b6b;
  --focus: #7df3e7;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 10px;
  --container: 1120px;
  --gutter: 20px;
  --section-y: clamp(64px, 9vw, 120px);
}

* { 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;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--silver-100);
  background: var(--ink-900);
}

img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 650; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 620; }
h3 { font-size: 1.15rem; font-weight: 620; }
.h-small { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--silver-400); font-weight: 600; }
.h-medium { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1em; }
.muted { color: var(--silver-400); font-size: 0.95rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.section-light :focus-visible { outline-color: var(--teal-deep); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal); color: var(--ink-900); padding: 10px 14px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 14, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand img { width: 150px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--silver-200); font-size: 0.95rem; padding: 6px 0; }
.site-nav a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--ink-600); background: transparent;
  border-radius: 8px; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--silver-100); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .brand img { width: 110px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink-900); border-bottom: 1px solid var(--ink-600); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav li { border-top: 1px solid rgba(255,255,255,0.06); }
  .site-nav a:not(.btn) { display: block; padding: 14px 0; font-size: 1.05rem; }
  .site-nav .btn { margin-top: 12px; width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; font-size: 1rem; line-height: 1.2; transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: var(--ink-900); box-shadow: 0 0 0 1px rgba(46,230,214,.35), 0 8px 28px rgba(46,230,214,.12); }
.btn-primary:hover { background: #4df0e2; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--silver-100); border-color: var(--ink-600); }
.btn-ghost:hover { border-color: var(--silver-400); background: rgba(255,255,255,0.04); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-900); padding: clamp(72px, 11vw, 150px) 0 clamp(64px, 9vw, 120px); }
.hero-glow {
  position: absolute; inset: auto 0 -30% 0; height: 70%; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 100%, rgba(46,230,214,0.14), rgba(46,230,214,0) 70%);
}
.hero-inner { position: relative; max-width: 860px; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 18px;
}
.section-light .eyebrow { color: var(--teal-deep); }
.hero h1 { color: #fff; max-width: 16ch; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--silver-200); max-width: 60ch; margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.brand-line {
  font-size: 0.8rem; letter-spacing: 0.26em; color: var(--silver-400); margin: 0;
  display: flex; flex-wrap: wrap; gap: 0 10px;
}
.brand-line span { color: var(--teal); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; scroll-margin-top: 72px; }
.section-tight { padding: clamp(52px, 7vw, 90px) 0; }
.section-light { background: var(--paper); color: var(--text-light); }
.section-light h2, .section-light h3 { color: #101214; }
.section-light p { color: var(--text-light-2); }
.section-light .muted { color: var(--text-light-2); }
.section-dark { background: var(--ink-800); }
.section-charcoal { background: var(--ink-900); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.section-intro { max-width: 70ch; font-size: 1.05rem; margin-bottom: 40px; }
.section-dark .section-intro, .section-dark p { color: var(--silver-200); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 32px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; gap: 28px; } }

.card { background: var(--paper-2); border: 1px solid #e3e6e9; border-radius: var(--radius); padding: 26px 24px; }
.card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.card p { margin: 0; font-size: 0.98rem; }

/* ---------- Product screenshots ---------- */
.shot { margin: 0 0 36px; }
.shot picture, .shot img { border-radius: var(--radius); border: 1px solid var(--ink-600); background: #000; }
.shot figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--silver-400); max-width: 80ch; }
.shot figcaption strong { color: var(--silver-100); font-weight: 600; }
.shot-pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .shot-pair { grid-template-columns: 1fr; } }

/* Illustrative Monthly R / calendar preview (synthetic data) */
.illus { background: #0d0f12; border: 1px solid var(--ink-600); border-radius: var(--radius); padding: 18px 18px 16px; font-family: var(--font); }
.illus-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--silver-500); margin-bottom: 10px; }
.illus-title { font-size: 1.25rem; font-weight: 620; color: #fff; margin-bottom: 14px; }
.illus-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; align-items: end; border-bottom: 1px solid var(--ink-600); padding-bottom: 6px; margin-bottom: 16px; }
.illus-bars .bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.illus-bars .bar i { display: block; width: 100%; max-width: 38px; height: calc(var(--v) * 1.1px); background: var(--teal); border-radius: 3px 3px 0 0; }
.illus-bars .bar.neg i { background: var(--red); }
.illus-bars .bar b { font-size: 0.66rem; font-weight: 500; color: var(--teal); margin-bottom: 4px; font-family: var(--mono); }
.illus-bars .bar.neg b { color: var(--red); }
.illus-bars .bar.sel::after { content: ""; position: absolute; inset: -6px -3px -8px; border: 1px solid var(--teal); border-radius: 4px; }
.illus-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.illus-cal .d { aspect-ratio: 1.35; border: 1px solid var(--ink-600); border-radius: 4px; font-size: 0.66rem; font-family: var(--mono); display: flex; align-items: center; justify-content: center; color: var(--silver-200); }
.illus-cal .d.h { border: 0; aspect-ratio: auto; color: var(--silver-500); font-family: var(--font); font-size: 0.68rem; }
.illus-cal .d.pos { border-color: rgba(46,230,214,.5); color: var(--teal); background: rgba(46,230,214,.06); }
.illus-cal .d.neg { border-color: rgba(227,107,107,.5); color: var(--red); background: rgba(227,107,107,.06); }
.illus-cal .d.off { border-style: dashed; opacity: .5; }

/* ---------- Pills / legend ---------- */
.pill { display: inline-block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid; line-height: 1.3; }
.pill-teal { color: var(--teal-deep); border-color: rgba(11,127,118,.45); background: rgba(11,127,118,.08); }
.section-dark .pill-teal { color: var(--teal); border-color: rgba(46,230,214,.5); background: var(--teal-dim); }
.pill-grey { color: #5a6169; border-color: #c9ced3; background: #eef0f2; }
.pill-amber { color: var(--amber); border-color: rgba(226,184,90,.5); background: rgba(226,184,90,.08); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }
.feature { background: var(--paper-2); border: 1px solid #e3e6e9; border-radius: var(--radius); padding: 24px; }
.feature .pill { margin-bottom: 12px; }
.feature h3 { font-size: 1.06rem; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 0.97rem; }

/* ---------- Who it's for ---------- */
.check-list, .cross-list, .plain-list { list-style: none; padding: 0; margin: 0; }
.check-list li, .cross-list li, .plain-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--silver-200); }
.check-list li::before, .cross-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.check-list li::before { content: "✓"; color: var(--teal); }
.cross-list li::before { content: "–"; color: var(--silver-500); }
.plain-list li { padding-left: 0; }
.plain-list li strong { color: #fff; }

/* ---------- Early access ---------- */
.ea-grid { align-items: start; margin-top: 0; gap: 56px; }
.ea-copy h2 { color: #fff; }
.steps { padding-left: 1.2em; margin: 0 0 20px; color: var(--silver-200); }
.steps li { margin-bottom: 12px; padding-left: 6px; }
.steps strong { color: #fff; }

.ea-form-wrap { background: var(--ink-800); border: 1px solid var(--ink-600); border-radius: 14px; padding: 28px; }
@media (max-width: 480px) { .ea-form-wrap { padding: 20px 16px; } }
.form-title { color: #fff; margin-bottom: 18px; font-size: 1.25rem; }
.preview-banner { border: 1px dashed var(--amber); color: var(--amber); background: rgba(226,184,90,.06); padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 18px; }
.preview-banner strong { color: var(--amber); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--silver-100); margin-bottom: 6px; }
.req { color: var(--teal); }
.opt { color: var(--silver-500); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: #fff; background: var(--ink-900);
  border: 1px solid var(--ink-600); border-radius: 8px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--teal); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: #ff9c9c; font-size: 0.86rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { color: var(--silver-500); font-size: 0.86rem; margin: 6px 0 0; }

.btn-busy { display: none; }
.is-submitting .btn-label { display: none; }
.is-submitting .btn-busy { display: inline; }

.form-status { margin-top: 14px; font-size: 0.93rem; }
.form-status:empty { display: none; }
.form-status.error { color: #ffb3b3; border: 1px solid rgba(227,107,107,.5); background: rgba(227,107,107,.08); border-radius: 8px; padding: 12px 14px; }
.form-status.error strong { color: #fff; }
.form-status.error a { color: #fff; }
.plain-list a { color: var(--teal); }
.form-privacy { color: var(--silver-500); font-size: 0.84rem; margin: 14px 0 0; }
.form-privacy a { color: var(--silver-200); }

.ea-success { background: var(--ink-800); border: 1px solid rgba(46,230,214,.5); border-radius: 14px; padding: 28px; }
.ea-success h3 { color: var(--teal); }
.ea-success p { color: var(--silver-200); margin: 0; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid #dfe2e6; }
.faq details:last-child { border-bottom: 1px solid #dfe2e6; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; color: #101214; position: relative; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--teal-deep); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); border-top: 1px solid rgba(255,255,255,0.06); padding: 56px 0 36px; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer-logo { width: 300px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--silver-200); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.disclaimer { color: var(--silver-500); font-size: 0.86rem; max-width: 70ch; margin: 0; }
.copyright { color: var(--silver-400); font-size: 0.9rem; margin: 0; }
@media (max-width: 640px) { .footer-logo { width: 220px; } }

/* ---------- Motion (subtle, opt-out) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
