/* DiamondAudit marketing site: shared design system.
   Every page links this file. Page-specific layout lives in the page's own
   <style>. Tokens are also mirrored in index.html's :root so build.mjs keeps
   working for pages that haven't moved to this file yet. */

:root {
  --bg: #08090b;
  --bg-soft: #0e1013;
  --surface: #131519;
  --surface-2: #1a1d22;
  --border: #23262c;
  --border-strong: #2f333a;
  --text: #f2f3f5;
  --muted: #9aa1ab;
  --faint: #6a717c;
  --accent: #e5322d;
  --accent-strong: #c92621;
  --accent-soft: rgba(229, 50, 45, 0.1);
  --good: #3ecf8e;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1160px;
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; }
.num, .tabular { font-variant-numeric: tabular-nums; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Type helpers */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); line-height: 1.55; }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--body); letter-spacing: -0.005em;
  border-radius: 999px; padding: 14px 22px; border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(229, 50, 45, 0.7); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-text { color: var(--muted); font-weight: 500; font-size: 14.5px; transition: color 0.15s ease; }
.btn-text:hover { color: var(--text); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: -0.02em; }
.brand img { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right .btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 940px) { .nav-links { display: none; } }
@media (max-width: 480px) {
  .brand span { display: none; }
  .nav-right .btn-text { display: none; }
}

/* Sections */
section { padding: 112px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 18px 0 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.rule { border-top: 1px solid var(--border); }
@media (max-width: 760px) { section { padding: 76px 0; } .section-head { margin-bottom: 40px; } }

/* Product frames */
.frame {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 50px 100px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(0,0,0,0.6);
}
.frame-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: #0f1114; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2e35; }
.phone {
  border-radius: 34px; overflow: hidden; background: #000;
  border: 6px solid #1c1f24; box-shadow: 0 40px 80px -24px rgba(0,0,0,0.9), 0 0 0 1px #2c3038;
}

/* Cards */
.card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 19px; letter-spacing: -0.015em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font: 600 18px/1.35 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 20px; font: 400 26px/1 var(--body); color: var(--muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 26px 0; max-width: 720px; }

/* CTA band */
.cta-band {
  border-radius: 28px; padding: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(229,50,45,0.22), transparent 55%),
    linear-gradient(180deg, #121418, #0c0d10);
  border: 1px solid var(--border-strong); text-align: center;
}
.cta-band h2 { font-size: clamp(32px, 4.6vw, 56px); margin-bottom: 18px; }
.cta-band .lede { max-width: 560px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .cta-row { justify-content: center; }
.fine { font-size: 13px; color: var(--faint); margin-top: 18px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font: 600 12px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.foot ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot-blurb { color: var(--muted); font-size: 14.5px; max-width: 300px; margin-top: 14px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--faint); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ---- Shared page components (rows, ticks, plans, details) ---- */
/* Feature rows */
.row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.row + .row { margin-top: 128px; }
.row.flip .row-copy { order: 2; }
.row-copy h3 { font-size: clamp(28px, 3.4vw, 40px); margin: 16px 0 16px; }
.row-copy > p { color: var(--muted); font-size: 17px; margin-bottom: 24px; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 10px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(0.8); }
.pair { display: grid; grid-template-columns: 1fr 0.42fr; gap: 20px; align-items: end; }
@media (max-width: 900px) {
  .row, .pair { grid-template-columns: 1fr; gap: 36px; }
  .row.flip .row-copy { order: 0; }
  .row + .row { margin-top: 96px; }
  .pair .phone { max-width: 240px; margin: 0 auto; }
}

/* Detail grid */
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.details .card h3 { font-size: 17px; }
@media (max-width: 900px) { .details { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; } }

/* Pricing teaser */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { padding: 32px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--border); display: flex; flex-direction: column; }
.plan.feature { border-color: rgba(229, 50, 45, 0.55); background: linear-gradient(180deg, rgba(229, 50, 45, 0.08), var(--bg-soft) 55%); }
.plan h3 { font-size: 18px; }
.plan .price { font: 800 44px/1 var(--display); letter-spacing: -0.03em; margin: 22px 0 6px; }
.plan .price small { font: 500 15px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.plan p { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }


/* Page hero (inner pages) */
.page-hero { padding: 96px 0 72px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 620px; pointer-events: none;
  background: radial-gradient(50% 55% at 50% 0%, rgba(229, 50, 45, 0.14), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(42px, 6.6vw, 80px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; margin: 22px 0 22px; max-width: 900px; }
.page-hero .lede { max-width: 640px; margin-bottom: 32px; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lede { margin-left: auto; margin-right: auto; }
.page-hero.center .kicker, .page-hero.center .cta-row { justify-content: center; }
@media (max-width: 760px) { .page-hero { padding: 64px 0 48px; } }

.plan ul { list-style: none; display: grid; gap: 10px; margin: 0 0 28px; font-size: 14.5px; }
.plan li { position: relative; padding-left: 26px; color: var(--text); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 13px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(0.8); }
.badge { display: inline-block; font: 600 11px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 6px 10px; border-radius: 999px; margin-bottom: 14px; align-self: flex-start; }

.math { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.math-box { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-soft); }
.math-box div { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 15.5px; }
.math-box div + div { border-top: 1px solid var(--border); }
.math-box b { font-family: var(--display); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .math { grid-template-columns: 1fr; gap: 28px; } }

/* Mobile menu (CSS only) */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-strong); display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ""; }
.menu summary span::before { position: absolute; top: -5px; }
.menu summary span::after { position: absolute; top: 5px; }
.menu-panel { position: absolute; right: 0; top: 52px; min-width: 220px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 24px 48px -16px rgba(0,0,0,0.8); display: grid; }
.menu-panel a { padding: 12px 14px; border-radius: 10px; font-size: 15px; color: var(--text); }
.menu-panel a:hover { background: var(--surface-2); }
@media (max-width: 940px) { .menu { display: block; } }

/* Founder note */
.note { display: grid; grid-template-columns: 0.35fr 1fr; gap: 56px; align-items: start; }
.note blockquote { font: 600 clamp(22px, 2.6vw, 30px)/1.35 var(--display); letter-spacing: -0.015em; }
.note cite { display: block; margin-top: 22px; font-style: normal; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .note { grid-template-columns: 1fr; gap: 20px; } }
