/* orionbdm.com — one stylesheet for every page. Light theme only at launch. */

:root {
  --navy: #0B1A2C;
  --paper: #F6F3EC;
  --white: #FFFFFF;
  --amber: #FFB020;
  --coral: #FF5A4E;
  --survey: #8A9BA8;
  --green: #1FB58F;
  --muted: #55687A;

  --line: rgba(11, 26, 44, 0.14);
  --line-strong: rgba(11, 26, 44, 0.2);

  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --copy: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --max: 1120px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --section: 56px;
}

@media (min-width: 800px) {
  :root { --section: 80px; }
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--copy);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

/* A layout class (.stack is display: grid) must never un-hide a hidden element. */
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
h3 { font-size: 22px; }

p { margin: 0; }

a { color: inherit; text-underline-offset: 0.18em; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.on-navy :focus-visible { outline-color: var(--amber); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--navy);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section + .section:not(.on-navy) { padding-top: 0; }
/* After a navy band, a pale section needs its top space back. Written with the
   same weight as the rule above (plus .section.on-navy) so it wins over it. */
.section.on-navy + .section:not(.on-navy) { padding-top: var(--section); }

.stack { display: grid; gap: 20px; align-content: start; }
.stack-lg { display: grid; gap: 40px; align-content: start; }

.measure { max-width: 65ch; }

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split-top { align-items: start; }
}

.card-row {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.center { text-align: center; justify-items: center; }

/* ---------- Motifs ---------- */

.grid-bg {
  background-image:
    linear-gradient(rgba(11, 26, 44, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 26, 44, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}
.on-navy.grid-bg {
  background-image:
    linear-gradient(rgba(138, 155, 168, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 155, 168, 0.1) 1px, transparent 1px);
}

.on-navy { background-color: var(--navy); color: var(--paper); }

.eyebrow, .label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.on-navy .eyebrow, .on-navy .label { color: var(--survey); }

.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.on-navy .lede { color: var(--survey); }

.muted { color: var(--muted); }

/* ---------- Wordmark ---------- */

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark b {
  font-weight: 700;
  background: var(--navy);
  color: var(--paper);
  padding: 0 0.16em;
  margin-left: 0.04em;
  border-radius: 2px;
}
.on-navy .wordmark { color: var(--paper); }
.on-navy .wordmark b { background: var(--paper); color: var(--navy); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--copy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #F2A107; }
.btn-primary[disabled] { opacity: 0.7; cursor: progress; }

.btn-secondary { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--navy); }
.on-navy .btn-secondary { color: var(--paper); border-color: var(--survey); }
.on-navy .btn-secondary:hover { border-color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ---------- Header ---------- */

.site-header { padding-block: 18px; }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.nav-toggle {
  display: none;
  font: 600 15px/1 var(--copy);
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 10px 14px;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}
.site-nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav .btn { font-size: 15px; padding: 10px 16px; }

/* With JS on small screens the nav folds behind the menu button.
   Without JS the class is never added, and the nav shows as a wrapped row. */
@media (max-width: 799px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; flex-basis: 100%; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .js .site-nav li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .js .site-nav li:last-child { padding-top: 16px; }
  .js .site-nav .btn { width: 100%; }
}

/* ---------- Footer ---------- */

.site-footer { padding-block: 56px 40px; }
.footer-inner { display: grid; gap: 28px; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.footer-links a { color: var(--paper); text-decoration: none; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { font-size: 14px; color: var(--survey); display: grid; gap: 4px; }

/* ---------- Hero ---------- */

.hero { padding-block: 56px var(--section); }
@media (min-width: 800px) { .hero { padding-top: 72px; } }
.hero .lede { font-size: 19px; }

.card-stack { display: grid; gap: 16px; }
@media (min-width: 800px) {
  .card-stack { padding-right: 32px; }
  .card-stack > :nth-child(2) { transform: translateX(32px); }
}

/* ---------- Opportunity card ---------- */

.opp {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  display: grid;
  gap: 12px;
  align-content: start;
  box-shadow: 0 1px 2px rgba(11, 26, 44, 0.05);
}
.opp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.opp-top .label { color: var(--muted); }
.opp h3 { font-size: 20px; font-weight: 600; }
.opp p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.opp dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.opp dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; }
.opp dd { margin: 0; }
/* Amber text on white fails contrast, so the score sits on an amber chip in navy. */
.opp .score { justify-self: start; background: var(--amber); color: var(--navy); font-weight: 600; padding: 0 6px; border-radius: 3px; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 3px;
  border: 1px solid transparent;
}
/* The spec asks for white on coral; that pair measures 3.0:1 and fails AA at 12px.
   Navy on coral measures 5.8:1, so the tag keeps the brand coral with navy text. */
.tag-new { background: var(--coral); color: var(--navy); }
.tag-watching { background: transparent; color: var(--navy); border-color: var(--survey); }
.tag-won { background: var(--green); color: var(--navy); }

.examples-note { font-size: 14px; }
.on-navy .examples-note { color: var(--survey); }

/* ---------- Three-step strip ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
  counter-reset: none;
}
.step { position: relative; display: grid; gap: 8px; align-content: start; }
.step .label { color: var(--navy); font-weight: 500; }
.step h3 { font-size: 22px; }
.step p { color: var(--muted); }

/* Mobile: a vertical line down the left joins the steps. */
@media (max-width: 799px) {
  .steps { padding-left: 24px; border-left: 1px solid var(--line-strong); }
  .step::before {
    content: "";
    position: absolute;
    left: -29px;
    top: 4px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--navy);
  }
}

/* Desktop: a row, joined by a thin line ending in an arrow. */
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step { padding-top: 28px; }
  .step::before {
    content: "";
    position: absolute;
    top: 6px; left: 0; right: -40px;
    height: 1px;
    background: var(--line-strong);
  }
  .step:last-child::before { right: 24px; }
  .step:last-child::after {
    content: "";
    position: absolute;
    top: 2px; right: 24px;
    width: 8px; height: 8px;
    border-top: 1px solid var(--navy);
    border-right: 1px solid var(--navy);
    transform: rotate(45deg);
  }
}

/* ---------- Signal types ---------- */

.signal-types { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.signal-types li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border: 1px solid rgba(138, 155, 168, 0.5);
  border-radius: 3px;
  color: var(--paper);
}

/* ---------- Panels ---------- */

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.panel-quiet { background: transparent; border-style: dashed; border-color: var(--line-strong); }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { padding-left: 26px; position: relative; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.55em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg);
}

/* ---------- Screenshot placeholder ---------- */

.shot {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #E7E3DA;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.plan { gap: 20px; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-price .figure {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price .per { color: var(--muted); font-size: 15px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.plan-table th, .plan-table td { text-align: left; padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.plan-table th { font-weight: 400; color: var(--muted); padding-right: 12px; }
.plan-table td { font-family: var(--mono); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan .btn { justify-self: start; }

.agency-block { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }

/* ---------- FAQ ---------- */

.faq { display: grid; border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 65ch; }

/* ---------- Form ---------- */

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label, .consent label { font-weight: 600; font-size: 15px; }
.field input, .field textarea {
  font: 400 16px/1.5 var(--copy);
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field-hint { font-size: 14px; color: var(--muted); }
.field-error { font-size: 14px; color: #B3261E; font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
.is-invalid input, .is-invalid textarea { border-color: #B3261E; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.consent label { font-weight: 400; }
.consent .field-error { grid-column: 2; }

/* The honeypot: off-screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error {
  background: #FDECEA;
  border: 1px solid #F3B8B2;
  color: #7A1A13;
  border-radius: 4px;
  padding: 12px 14px;
}

/* ---------- Legal / prose ---------- */

.prose { display: grid; gap: 16px; max-width: 70ch; }
.prose h2 { font-size: 26px; margin-top: 16px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

.draft-note {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  background: var(--white);
  border: 1px dashed var(--muted);
  border-radius: 4px;
  padding: 10px 14px;
  justify-self: start;
}

/* Formerly inline style attributes, which the site's Content-Security-Policy refuses. */
.h1-page { font-size: clamp(36px, 6vw, 56px); }
.h2-small { font-size: 24px; }
.stack.gap-6 { gap: 6px; }
.stack.gap-12 { gap: 12px; }
.plan-note { font-size: 13px; margin: 12px 0 0; }

/* A real screenshot in a .shot frame: the frame keeps its 16:10 shape and border. */
.shot-img { display: block; overflow: hidden; background: var(--white); }
.shot-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
