/* ══════════════════════════════════════════════════════════════════════════
   DOT Ready Now — Global Styles
   Light theme. Inherits color/typography from tokens.css.
   ══════════════════════════════════════════════════════════════════════════ */

@import url('./tokens.css');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }

/* ── Layout primitives ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  width: 100%;
}

.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-7) 0; }
.section-alt { background: var(--surface-2); }
.section-blue { background: var(--blue-faint); }

.divider { height: 1px; background: var(--border); margin: 0; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); margin-bottom: var(--space-5); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: var(--space-4); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: var(--space-3); }
h4 { font-size: 1.125rem; margin-bottom: var(--space-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 64ch;
}

p { color: var(--text-2); }
p + p { margin-top: var(--space-3); }

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--font-mono); }

/* ── Header ── */
.topbar {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; gap: var(--space-5);
  height: 68px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.brand {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--border-blue);
  box-shadow: 0 0 16px oklch(0.52 0.22 255 / 0.15);
  overflow: hidden; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.brand:hover { text-decoration: none; }
.brand:hover .brand-text { color: var(--blue); }

.nav {
  display: flex; gap: var(--space-1); margin-left: auto; align-items: center;
}
.nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-2);
  transition: all 0.15s ease;
}
.nav a:hover { color: var(--blue); background: var(--blue-faint); text-decoration: none; }
.nav a.active { color: var(--blue); }

.nav-divider { width: 1px; height: 22px; background: var(--border); margin: 0 8px; }

.mobile-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border);
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text-2);
}

@media (max-width: 880px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 68px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    padding: var(--space-3) var(--container-px);
    box-shadow: var(--shadow);
  }
  .nav.open a { width: 100%; padding: 12px var(--space-3); }
  .nav-divider { display: none; }
  .mobile-toggle { display: inline-flex; margin-left: auto; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  color: var(--text-on-blue);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--text-on-blue);
  box-shadow: 0 12px 28px oklch(0.52 0.22 255 / 0.28);
  transform: translateY(-1px);
}

.btn-outline {
  background: white;
  color: var(--blue);
  border-color: var(--border-blue);
}
.btn-outline:hover {
  background: var(--blue-faint);
  color: var(--blue-hover);
  border-color: var(--blue);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-8);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, var(--blue-light) 0%, transparent 55%),
    var(--surface);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, oklch(0.52 0.22 255 / 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 70%);
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 span {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.18rem; line-height: 1.6;
  color: var(--text-2);
  margin: 0 auto var(--space-6);
  max-width: 620px;
}
.hero-cta {
  display: inline-flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center;
  margin-bottom: var(--space-5);
}
.hero-trust {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted);
}
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-green); }

/* ── Hero visual: status preview cards ── */
.hero-preview {
  margin-top: var(--space-7);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
  max-width: 880px; margin-left: auto; margin-right: auto;
}
.preview-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.preview-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.preview-card .pc-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.preview-card .pc-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text);
}
.preview-card .pc-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .hero-preview { grid-template-columns: 1fr; max-width: 360px; }
}

/* ── Status pills ── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.04em;
}
.pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
}
.pill-red    { background: var(--status-red-bg);   color: var(--status-red); }
.pill-red::before    { background: var(--status-red); }
.pill-amber  { background: var(--status-amber-bg); color: var(--status-amber); }
.pill-amber::before  { background: var(--status-amber); }
.pill-green  { background: var(--status-green-bg); color: var(--status-green); }
.pill-green::before  { background: var(--status-green); }
.pill-blue   { background: var(--blue-light);      color: var(--blue); }
.pill-blue::before   { background: var(--blue); }

/* ── Section headers ── */
.section-head { text-align: center; max-width: 700px; margin: 0 auto var(--space-7); }

/* ── Step list (How it works) ── */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.step {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { border-color: var(--border-blue); box-shadow: var(--shadow); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
}
.step h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.step p { font-size: 0.95rem; line-height: 1.6; color: var(--text-2); }

/* ── Track chips (What we track) ── */
.chips {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  justify-content: center;
  max-width: 900px; margin: 0 auto;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--border-blue); background: var(--blue-faint); }
.chip-more {
  background: var(--blue-faint);
  color: var(--blue);
  border-color: transparent;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ── Persona cards (Who it's for) ── */
.personas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.persona {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.persona-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue);
  background: var(--blue-faint);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.persona h3 { font-size: 1.18rem; margin-bottom: var(--space-3); }
.persona p { font-size: 0.95rem; line-height: 1.6; }

/* ── Pricing cards ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  max-width: 1080px; margin: 0 auto;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 12px 36px oklch(0.52 0.22 255 / 0.12);
}
.price-card.featured::before {
  content: 'Most popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.price-card h3 {
  font-size: 1.25rem; margin-bottom: 4px;
  font-family: var(--font-display);
}
.price-card .price-tagline {
  font-size: 0.9rem; color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.price-card .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-card .price-unit {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}
.price-card .price-tier-meta {
  font-size: 0.85rem; color: var(--text-muted);
  margin-top: 8px; margin-bottom: var(--space-5);
}
.price-card ul {
  list-style: none; padding: 0; margin: 0 0 var(--space-5);
  display: grid; gap: 10px;
  flex-grow: 1;
}
.price-card ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; line-height: 1.5;
  color: var(--text-2);
}
.price-card ul li::before {
  content: ''; flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a5fd6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}

/* ── Comparison block (full-service vs self-serve) ── */
.compare {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 880px; margin: var(--space-7) auto 0;
}
.compare h3 { margin-bottom: var(--space-3); font-size: 1.25rem; }
.compare p { color: var(--text-2); }
.compare .compare-cta {
  display: inline-flex; gap: var(--space-3); margin-top: var(--space-4);
}

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: var(--space-3);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-body {
  padding: 0 var(--space-5) var(--space-4);
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Footer ── */
.footer {
  background: oklch(0.18 0.04 250);
  color: oklch(0.85 0.02 250);
  padding: var(--space-7) 0 var(--space-5);
  margin-top: var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.footer .brand-text { color: white; }
.footer .brand-sub { color: oklch(0.75 0.04 250); }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer ul a {
  color: oklch(0.78 0.03 250);
  font-size: 0.9rem;
  text-decoration: none;
}
.footer ul a:hover { color: white; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid oklch(0.30 0.04 250);
  padding-top: var(--space-4);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-3);
  font-size: 0.85rem;
  color: oklch(0.65 0.03 250);
}
.footer-parent {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-hover) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.4;
}
.cta-banner h2 { color: white; font-size: 2rem; position: relative; }
.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto var(--space-5);
  position: relative;
}
.cta-banner .btn-outline {
  background: white;
  color: var(--blue);
  border-color: transparent;
}
.cta-banner .btn-outline:hover {
  background: oklch(0.96 0.01 240);
  color: var(--blue-hover);
}

/* ── Utility ── */
.center { text-align: center; }
.stack > * + * { margin-top: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.text-muted { color: var(--text-muted); }

/* ── Print-friendly ── */
@media print {
  .topbar, .footer, .cta-banner, .hero-cta { display: none; }
  body { background: white; }
  .hero, .section, .section-alt { padding: 16px 0; background: white; }
}

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; top: -40px; left: 16px;
  background: var(--blue); color: white;
  padding: 8px 16px; border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }
