/* DMARCo website. Colors are the dashboard's dark theme tokens. Fonts are
   served from this site, so visiting it asks no third party for anything. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/space-mono-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/space-mono-latin-700-normal.woff2) format('woff2');
}

:root {
  --background: #0f0f0f;
  --sidebar: #171717;
  --card: #1f1f1f;
  --sidebar-accent: #333333;
  --foreground: #fafafa;
  --text: #e5e5e5;
  --muted: #cac8d0;
  --dim: #a3a3a3;
  --border: rgba(255, 255, 255, 0.18);
  --divider: rgba(255, 255, 255, 0.14);
  --primary: #c2540a;
  --brand: #da5e0b;
  --orange-text: #f08a3e;
  --orange-hover: #f7ae76;
  --orange-tint: #2a1c12;
  --orange-line: #5a3418;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wide: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--orange-text); }
a:hover { color: var(--orange-hover); }
:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 2px; border-radius: 4px; }

code, pre { font-family: var(--mono); }
img, svg { display: block; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 8px; background: var(--primary); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.band { background: var(--sidebar); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section { padding: 96px 0; }

.eyebrow {
  margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange-text);
}
.section-head { max-width: 720px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
h1, h2, h3 { margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* ---- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 8px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-lg { min-height: 48px; padding: 0 22px; border-radius: 10px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #a64708; color: #fff; }
.btn-outline { border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--card); color: var(--foreground); }
.btn-current { background: var(--orange-tint); border-color: var(--orange-line); color: var(--orange-text); cursor: default; }
.btn-current::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-text); }

/* ---- Header */

.site-header { border-bottom: 1px solid var(--divider); background: var(--background); }
.site-nav {
  max-width: var(--wide); margin: 0 auto; padding: 14px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.nav-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--foreground); text-decoration: none; }
.brand:hover { color: var(--foreground); }
.brand img { width: 32px; height: 32px; }
.brand span { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: inline-block; padding: 12px 10px; color: var(--muted);
  text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--foreground); }

/* ---- Hero */

.hero { position: relative; overflow: hidden; }
.ascii {
  position: absolute; inset: 0; display: flex; justify-content: center; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.55) 55%, #000 85%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.55) 55%, #000 85%);
}
.ascii-grid { position: relative; flex: 0 0 auto; font: 13px/16px var(--mono); white-space: pre; user-select: none; margin: 0; }
.ascii-base { color: #3a3a3a; margin: 0; font: inherit; }
.ascii-glow { position: absolute; inset: 0; color: var(--primary); margin: 0; font: inherit; }
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15, 15, 15, 0), var(--background));
}
.hero-inner {
  position: relative; z-index: 1; max-width: var(--wide); margin: 0 auto; padding: 96px 24px 56px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.hero h1 {
  max-width: 880px; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.04;
  letter-spacing: -0.035em; font-weight: 800;
}
.hero-text { margin: 0; max-width: 680px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.hero-install { width: 100%; max-width: 760px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.hero-note { margin: 0; font-size: 14px; color: var(--dim); }
.checks {
  list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 28px; font-size: 14px; color: var(--muted);
}
.checks li, .need li { display: flex; align-items: center; gap: 8px; }
.checks svg, .need svg { flex: 0 0 auto; }

/* ---- Command box */

.command {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px 8px 8px 20px;
}
.command .prompt { font-family: var(--mono); font-size: 14px; color: var(--orange-text); }
.command code {
  flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap;
  font-size: 14px; color: var(--foreground); padding: 12px 0;
}
.command button {
  flex: 0 0 auto; min-height: 44px; min-width: 76px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--primary); color: #fff; font: 600 14px/1 var(--sans); cursor: pointer;
}
.command button:hover { background: #a64708; }

pre.code {
  margin: 0; overflow-x: auto; padding: 16px 20px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--foreground); font-size: 14px; line-height: 1.7;
}

.code-wrap { position: relative; }
.code-wrap pre.code { padding-right: 104px; }
.code-wrap button {
  position: absolute; top: 8px; right: 8px; min-height: 44px; min-width: 76px; padding: 0 16px;
  box-shadow: -16px 0 16px var(--card);
  border: 0; border-radius: 8px; background: var(--primary); color: #fff; font: 600 14px/1 var(--sans); cursor: pointer;
}
.code-wrap button:hover { background: #a64708; }

/* ---- Dashboard preview */

.preview { max-width: var(--wide); margin: 0 auto; padding: 0 24px 104px; }
.browser {
  margin: 0; border-radius: 14px; background: var(--background); overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.browser-bar {
  height: 48px; padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}
.browser-dots { display: flex; gap: 8px; width: 52px; }
.browser-dots span { width: 12px; height: 12px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1 1 auto; max-width: 440px; margin: 0 auto; height: 30px; border-radius: 8px;
  background: var(--background); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted);
}
.browser-spacer { width: 52px; }
.browser-shot { display: block; width: 100%; height: auto; }
.browser figcaption {
  padding: 12px 20px; background: var(--sidebar); border-top: 1px solid var(--border);
  font-size: 13px; color: var(--dim);
}

/* ---- Cards and lists */

.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.card {
  flex: 1 1 320px; background: var(--sidebar); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.band .card { background: var(--card); }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.steps .card { flex-basis: 280px; }
.steps .card h3 { font-size: 20px; }
.steps .card p { font-size: 16px; }
.num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--orange-tint); color: var(--orange-text);
  display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--mono);
}
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 14px; color: var(--text); }

.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 420px; }
.split .section-head { margin-bottom: 0; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 20px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.facts li:last-child { border-bottom: 1px solid var(--border); }
.facts strong { font-size: 17px; }
.facts span { font-size: 15px; line-height: 1.6; color: var(--muted); }

.policies .card code { font-size: 16px; font-weight: 700; color: var(--foreground); }
.policies .card.mid { background: var(--orange-tint); border-color: var(--orange-line); }
.policies .card.mid p { color: var(--text); }
.policies .card.end { background: var(--primary); border-color: var(--primary); }
.policies .card.end code, .policies .card.end p { color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.need { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--text); }
.need li { align-items: flex-start; gap: 10px; }
.need svg { margin-top: 3px; }
.panel-lg { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.panel-lg h3 { font-size: 17px; }

/* ---- FAQ */

.faq { max-width: 880px; margin: 0 auto; padding: 96px 24px; }
.faq h2 { margin-bottom: 32px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; min-height: 44px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--orange-text); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.faq code, .prose code { font-size: 0.875em; }

/* ---- Closing call */

.cta-wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px 96px; }
.cta {
  border-radius: 20px; background: var(--primary); padding: 64px 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.cta h2 { max-width: 720px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; }
.cta p { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.55; }
.cta .actions { justify-content: center; }
.btn-white { background: #fff; color: #0f0f0f; font-weight: 700; }
.btn-white:hover { background: #f3f3f3; color: #0f0f0f; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---- Footer */

.site-footer { background: var(--sidebar); border-top: 1px solid var(--divider); }
.footer-inner {
  max-width: var(--wide); margin: 0 auto; padding: 36px 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; color: var(--foreground); text-decoration: none; }
.footer-brand:hover { color: var(--foreground); }
.footer-brand .row { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand .motto { font-size: 14px; color: var(--dim); }
.footer-help { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Install guide */

.guide { max-width: var(--wide); margin: 0 auto; padding: 72px 24px 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.toc { flex: 1 1 240px; max-width: 300px; display: flex; flex-direction: column; gap: 4px; }
.toc p { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.toc a { padding: 10px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; }
.toc a:hover, .toc a[aria-current='true'] { background: var(--card); color: var(--foreground); }
.prose { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.prose h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.prose .intro { display: flex; flex-direction: column; gap: 16px; }
.prose .intro p:last-child { margin: 0; max-width: 640px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.prose section { display: flex; flex-direction: column; gap: 20px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; }
.prose section > p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.prose .small { font-size: 15px; color: var(--muted); }
.req { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.req li { background: var(--sidebar); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.req li.optional { background: none; border-style: dashed; border-color: rgba(255, 255, 255, 0.22); }
.req strong { display: block; color: var(--foreground); margin-bottom: 4px; }
.box { border-radius: 12px; background: var(--sidebar); border: 1px solid var(--border); padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.box.warm { background: var(--orange-tint); border-color: var(--orange-line); }
.box.warm pre.code { background: var(--background); border-color: var(--orange-line); font-size: 13px; }
.box p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.box .title { font-weight: 700; color: var(--foreground); }
.box .note { font-size: 14px; color: var(--muted); }
.box.note-box { flex-direction: row; gap: 14px; align-items: flex-start; }
.note-box > div { display: flex; flex-direction: column; gap: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
th { background: var(--card); text-align: left; font-weight: 600; padding: 12px 16px; }
td { padding: 14px 16px; border-top: 1px solid var(--border); }
td.mono { font-family: var(--mono); }
td.muted { color: var(--muted); }
.upgrade { padding-top: 32px; border-top: 1px solid var(--border); }

/* ---- Not found */

.notfound { max-width: 720px; margin: 0 auto; padding: 120px 24px; display: flex; flex-direction: column; gap: 20px; }
.notfound h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
.notfound p { margin: 0; font-size: 18px; color: var(--muted); }

/* Phones: brand and actions share the first row, the section links scroll
   sideways on a row of their own, and the GitHub button keeps only its icon. */
@media (max-width: 640px) {
  .site-nav { padding: 10px 16px 0; gap: 0; }
  .nav-left { display: contents; }
  .brand { order: 1; }
  .nav-right { order: 2; gap: 8px; }
  .nav-links {
    order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 4px -16px 0; padding: 0 6px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .gh-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn { padding: 0 14px; }
  .wrap, .hero-inner, .preview, .cta-wrap, .faq, .guide, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .section, .faq { padding-top: 72px; padding-bottom: 72px; }
  .hero-inner { gap: 20px; }
  .section-head { margin-bottom: 32px; }
  .card, .panel-lg { padding: 22px; }
  .split { gap: 40px; }
  .command { padding-left: 14px; }
  .code-wrap pre.code { padding-right: 20px; padding-top: 60px; }
  .guide { padding-top: 48px; gap: 40px; }
  .toc { display: none; }
  table { min-width: 0; }
  th, td { padding: 12px; }
  td { overflow-wrap: anywhere; }
  .prose { gap: 48px; }
  .box { padding: 18px; }
  .hero-inner { padding-top: 64px; }
  .hero-text { font-size: 18px; }
  .cta { padding: 48px 24px; }
}
