/* BinaryCanary marketing site
   Editorial SaaS direction: warm paper, deep navy, canary-lime signal accent. */

:root {
  color-scheme: light dark;

  --ink: #102126;
  --muted: #53676c;
  --paper: #f6f7f2;
  --panel: #ffffff;
  --line: #d9dfd9;

  --lime: #cbed66;
  --lime-deep: #52701a;
  --navy: #0f2d35;
  --navy-soft: #153943;
  --navy-line: #31545c;
  --orange: #ff7b54;

  --shadow: 0 24px 60px rgba(15, 45, 53, 0.12);
  --radius: 22px;
  --radius-lg: 32px;

  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef5ef;
    --muted: #aabbb8;
    --paper: #0a2026;
    --panel: #113039;
    --line: #31515a;
    --lime: #bde75d;
    --lime-deep: #cfe9a0;
    --navy: #061a20;
    --navy-soft: #0e2a32;
    --navy-line: #2a4a53;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:where(a, button, summary, input, textarea):focus-visible {
  outline: 3px solid var(--lime-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

img,
svg {
  max-width: 100%;
}

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

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

/* The header is sticky, so the skip link's target must clear it — otherwise
   "Skip to content" lands the top of <main> underneath the header. */
#main {
  scroll-margin-top: 90px;
}

#main:focus {
  outline: none;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 30;
  background: var(--panel);
  color: var(--ink);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header[data-scrolled] {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand-logo { display: block; width: 166px; height: auto; }
.brand-name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50% 50% 45% 55%;
  background: var(--lime);
  color: #0f2d35;
  font-size: 18px;
  flex: none;
}

.links {
  display: flex;
  align-items: center;
  gap: 8px 25px;
  flex-wrap: wrap;
}

.links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 6px 0;
}

.links a:not(.button):hover {
  color: var(--lime-deep);
}

.links a[aria-current="page"]:not(.button) {
  box-shadow: inset 0 -3px 0 0 var(--lime);
}

.utility-links { display: flex; align-items: center; gap: 14px; font-size: 0.84rem; font-weight: 700; }
.utility-links a { text-decoration: none; }
/* The header CTA is the one loud thing in the utility row; Help and Log in
   stay plain text beside it. */
.utility-links .button { min-height: 40px; padding: 0 17px; font-size: 0.86rem; }
.capability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.capability-list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.network-nodes { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.network-nodes li { padding: 8px 13px; border-radius: 999px; background: var(--lime); color: #0f2d35; font-weight: 750; }
@media (max-width: 760px) { .capability-list { grid-template-columns: 1fr; } .brand-logo { width: 148px; } }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  text-decoration: none;
  font-weight: 750;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  color: var(--navy);
}

.dark .button,
.section.dark .button {
  background: var(--lime);
  border-color: var(--lime);
  color: #0f2d35;
}

@media (prefers-color-scheme: dark) {
  .button {
    background: var(--lime);
    border-color: var(--lime);
    color: #0f2d35;
  }

  .button.secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
  }
}

/* ---------- Typography ---------- */

h1 {
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 18px 0 26px;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0 0 20px;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 850;
  color: var(--lime-deep);
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 62ch;
}

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

.section.dark .eyebrow {
  color: var(--lime);
}

.section.dark .lede,
.section.dark .muted {
  color: #c1cfd2;
}

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

.hero {
  padding: 74px 0 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.signal-card {
  position: relative;
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.signal-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  top: -110px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.95;
}

.signal-card .eyebrow {
  color: var(--lime);
  position: relative;
  z-index: 1;
}

.status {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--navy-line);
}

/* Pill treatment keeps the label readable where it overlaps the lime
   circle in the card's corner, as well as on the navy card itself. */
.status b {
  color: #0f2d35;
  background: var(--lime);
  border-radius: 999px;
  padding: 1px 12px;
  font-size: 0.9rem;
}

.pulse {
  height: 150px;
  margin-top: 20px;
  position: relative;
  background: linear-gradient(
    180deg,
    transparent 49%,
    #29454d 50%,
    transparent 51%
  );
}

.pulse svg {
  width: 100%;
  height: 100%;
}

.strip {
  background: var(--lime);
  color: #0f2d35;
  padding: 16px 0;
  font-weight: 800;
  text-align: center;
}

/* ---------- Sections ---------- */

.section {
  padding: 90px 0;
}

.section.tint {
  background: color-mix(in srgb, var(--lime) 12%, var(--paper));
}

.section.dark {
  background: var(--navy);
  color: #ffffff;
}

.section-head {
  max-width: 740px;
  margin-bottom: 44px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.card .num {
  display: block;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime-deep);
  margin-bottom: 14px;
}

.section.dark .card {
  background: var(--navy-soft);
  border-color: var(--navy-line);
}

.section.dark .card p {
  color: #c1cfd2;
}

.section.dark .card .num {
  color: var(--lime);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps .step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
  color: #0f2d35;
  font-weight: 850;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

.quote {
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-top: 0;
}

.cta {
  background: var(--lime);
  color: #0f2d35;
  border-radius: var(--radius-lg);
  padding: clamp(30px, 6vw, 68px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.cta h2 {
  max-width: 20ch;
}

.cta .eyebrow {
  color: #3f5714;
}

.cta .button {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  flex: none;
}

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

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime-deep);
}

.plan .price {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.plan .amount {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan .per {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.plan-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-specs li {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* The plan CTAs line up with each other regardless of copy length. */
.plan .button {
  margin-top: auto;
}

.trial-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 52ch;
}

.cta-note {
  margin: 0;
  font-size: 0.95rem;
  color: #3f5714;
  max-width: 44ch;
}

.cta-note a {
  font-weight: 750;
}

/* ---------- Interior pages ---------- */

.page-hero {
  padding: 66px 0 46px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  max-width: 18ch;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 56px;
}

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

.faq {
  display: grid;
  gap: 12px;
  max-width: 68ch;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.faq p {
  color: var(--muted);
  margin-bottom: 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  color: var(--muted);
}

.checklist li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lime);
  color: #0f2d35;
  font-size: 13px;
  font-weight: 850;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  padding: 50px 0;
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 40ch;
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--lime-deep);
}

.footer-legal {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 30px;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-legal p {
  margin: 0;
}

.footer-legal a {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Legal pages ---------- */

.legal-section {
  padding-top: 0;
}

.legal p {
  color: var(--ink);
}

.legal h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 40px 0 10px;
}

.legal h3 {
  font-size: 1.08rem;
  margin: 30px 0 6px;
}

.legal a {
  color: var(--lime-deep);
  font-weight: 650;
}

/* ---------- Proof, testimonial, capabilities, compare ---------- */

.proof-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 1rem;
}

.proof-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: baseline;
}

.proof-points li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: #0f2d35;
  font-size: 12px;
  font-weight: 850;
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  max-width: 13ch;
}

.testimonial-section {
  padding-top: 20px;
}

.testimonial {
  margin: 0 auto;
  max-width: 900px;
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.testimonial .eyebrow {
  color: var(--lime);
}

.testimonial blockquote {
  margin: 16px 0 20px;
}

.testimonial blockquote p {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.testimonial blockquote strong {
  color: var(--lime);
}

.testimonial figcaption {
  color: #c1cfd2;
}

.testimonial figcaption strong {
  color: #ffffff;
}

.plans-note {
  margin: 28px 0 0;
  color: var(--muted);
}

.plans-note a,
.card p a,
.faq p a,
.page-hero .lede a {
  color: var(--lime-deep);
  font-weight: 700;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cap-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.cap-card ul {
  margin: 12px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.faq-page {
  max-width: 820px;
}

.table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime-deep);
}

.compare-table tbody th {
  width: 30%;
  font-weight: 750;
}

.compare-table td {
  color: var(--muted);
}

.note-inline {
  border-left: 4px solid var(--orange);
  padding-left: 14px;
  font-size: 0.95rem;
}

@media (max-width: 1000px) {
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .grid.four,
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid,
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .wrap {
    width: min(1120px, 100% - 28px);
  }

  .site-header {
    position: static;
  }

  /* Nothing overlaps the content once the header stops being sticky. */
  #main {
    scroll-margin-top: 0;
  }

  .nav {
    padding: 14px 0;
    gap: 12px;
  }

  /* The primary links wrap onto their own row instead of disappearing. */
  .links {
    width: 100%;
    gap: 6px 18px;
  }

  /* The trial CTA keeps its own row and stays the last, largest target. */
  .utility-links {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
  }

  .utility-links .button {
    margin-left: auto;
  }

  .grid,
  .grid.two,
  .plans {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 38px;
  }

  .section {
    padding: 60px 0;
  }

  .split {
    gap: 36px;
  }

  .cta,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
