/* Collie site stylesheet.
   Shared by /, /blog/*, /privacy and /terms. Tokens are the product's own
   (BRAND.md), layout conventions carry over from the a/b/c/f variants, and the
   header and footer reproduce the structure of collie.so's Navbar and Footer
   modules in the site typeface. */

:root {
  --n0:   #FFFFFF;
  --n50:  #FAFAFA;
  --n100: #F5F5F5;
  --n150: #EBEBEB;
  --n200: #E5E5E5;
  --n400: #A3A3A3;
  --n500: #737373;
  --n600: #525252;
  --n900: #0A0A0A;

  --blue:      #2563EB;
  --blue-bg:   #EFF6FF;
  --blue-lift: #93C5FD;
  --green:     #059669;
  --green-bg:  #DCFCE7;
  --amber-text: #92400E;
  --amber-bg:  #FEF3C7;

  --radius: 8px;
  --border: 1px solid var(--n200);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 150ms;
  --t-base: 220ms;
  --t-slow: 300ms;
  --t-reveal: 560ms;

  --shell: 60rem;
  --gutter: 1.25rem;
  --band-y: 4.5rem;

  --measure-title: 24ch;
  --measure-body: 52ch;

  --space-1: 0.75rem;
  --space-2: 1.25rem;
  --space-3: 1.75rem;
  --space-4: 2.5rem;

  font-size: clamp(16px, 0.83vw + 0.15rem, 22px);
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--n0);
  color: var(--n900);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.band-dark :focus-visible { outline-color: var(--blue-lift); }

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

/* ---------- reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-reveal) var(--ease),
              transform var(--t-reveal) var(--ease);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- layout primitives ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band { padding: var(--band-y) 0; }
.band-n50 { background: var(--n50); border-top: var(--border); border-bottom: var(--border); }
.band-dark { background: var(--n900); color: var(--n50); }
.band-dark .section-sub,
.band-dark .body-copy p { color: #C4C4C4; }
.band-dark .eyebrow { color: var(--n400); }

.band-n50 + .band-n50 { border-top: 0; }
.band-n50:has(+ .band-dark) { border-bottom: 0; }
.band-dark + .band-n50 { border-top: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.btn-primary { background: var(--n900); color: var(--n0); }
@media (hover: hover) { .btn-primary:hover { background: #262626; } }
.btn-primary:active { background: #333333; transform: translateY(1px); }

.btn-inverse { background: var(--n0); color: var(--n900); }
@media (hover: hover) { .btn-inverse:hover { background: var(--n150); } }
.btn-inverse:active { background: var(--n200); transform: translateY(1px); }

.btn-ghost { border-color: var(--n200); background: var(--n0); color: var(--n900); }
@media (hover: hover) { .btn-ghost:hover { background: var(--n50); } }

/* A text link that sits beside a button and shares its height. */
.link-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--n900);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--n200);
  transition: border-color var(--t-fast) var(--ease);
}

@media (hover: hover) { .link-cta:hover { border-color: var(--n900); } }

/* ---------- labels ---------- */

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n500);
}

.section-title {
  font-size: 1.625rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: var(--measure-title);
}

.section-sub {
  margin: var(--space-1) 0 0;
  max-width: var(--measure-body);
  color: var(--n500);
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.body-copy { margin-top: var(--space-3); }

.body-copy p {
  margin: 0;
  max-width: var(--measure-body);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.body-copy p + p { margin-top: var(--space-2); }

.body-copy .emphasis { font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.5rem;
  margin-top: var(--space-3);
}

.cta-note {
  margin: var(--space-2) 0 0;
  max-width: var(--measure-body);
  color: var(--n500);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ---------- header (collie.so Navbar structure) ---------- */

.nav {
  background: var(--n0);
  border-bottom: var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo { flex: none; display: block; }
.nav-logo img { width: 280px; height: auto; }

.nav-links {
  display: flex;
  align-items: flex-start;
  gap: 100px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.nav-link {
  padding: 2px 0;
  color: var(--n900);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover { text-decoration: underline; }

.nav-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.nav-info span {
  padding: 2px 0;
  color: var(--n900);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.nav-clock:empty::before { content: "\00a0"; }

.nav-menu-btn, .nav-mobile { display: none; }

@media (max-width: 900px) {
  .nav-links { gap: 0; }
  .nav-info { display: none; }
  .nav-group { align-items: flex-end; }
}

@media (max-width: 768px) {
  .nav-logo img { width: 200px; }
}

@media (max-width: 599px) {
  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
    align-items: center;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top));
  }

  .nav-logo img { width: 80px; }
  .nav-links { display: none; }

  .nav-menu-btn {
    position: relative;
    z-index: 102;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: -10px -10px -10px 0;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .nav-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: var(--n900);
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav.is-open .nav-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-menu-btn span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-mobile {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 80px 20px 32px;
    background: var(--n0);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  }

  .nav.is-open .nav-mobile {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-mobile a {
    padding: 14px 0;
    border-bottom: var(--border);
    color: var(--n900);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-align: left;
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav-mobile a:last-child { border-bottom: 0; }
  .nav-mobile a:hover { color: var(--n500); }

  .nav-mobile .nav-mobile-meta {
    margin-top: auto;
    color: var(--n500);
    font-size: 0.875rem;
  }
}

/* ---------- footer (collie.so Footer structure) ---------- */

.footer {
  background: var(--n0);
  border-top: var(--border);
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.footer-brand img { position: relative; top: -2px; width: 86px; height: auto; }

.footer-copy-desktop { display: none; color: var(--n400); font-size: 14px; }
.footer-copy-mobile { display: block; order: 2; color: var(--n400); font-size: 12px; }

.footer-middle {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  order: 1;
}

.footer-sep { color: var(--n400); font-size: 12px; }

.footer-location,
.footer-link {
  color: var(--n400);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.footer-link:hover { color: var(--n900); text-decoration: underline; }

.footer-legal { display: inline-flex; align-items: center; gap: 12px; }

.footer-legal a {
  color: var(--n400);
  opacity: 0.7;
  font-size: 11px;
  text-decoration: none;
}

.footer-legal a:hover { color: var(--n900); opacity: 1; text-decoration: underline; }

@media (max-width: 599px) {
  .footer { padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
  .footer-inner { gap: 12px; }
  .footer-brand { gap: 16px; }
  .footer-brand img { width: 50px; }
  .footer-copy-mobile, .footer-sep, .footer-location, .footer-link { font-size: 10px; }
  .footer-middle { gap: 6px; }
  .footer-legal a { font-size: 10px; }
}

@media (min-width: 480px) { .footer { padding-left: 24px; padding-right: 24px; } }

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
  }
  .footer-copy-desktop { display: inline; position: relative; top: 6px; }
  .footer-copy-mobile { display: none; }
  .footer-middle { order: 0; gap: 24px; }
  .footer-sep { display: none; }
}

@media (min-width: 768px) { .footer { padding: 48px 32px calc(48px + env(safe-area-inset-bottom)); } }

/* ---------- hero ---------- */

.hero { padding-top: 3.5rem; padding-bottom: 3.5rem; }

.hero-grid { display: grid; gap: 2.5rem; align-items: center; }

.hero h1 {
  max-width: 15ch;
  font-size: 2.25rem;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero-price { display: block; }

.lede {
  margin: var(--space-2) 0 0;
  max-width: 36ch;
  color: var(--n500);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* The clip frames the dog small in a lot of studio air. Cropping square and
   scaling from the floor keeps the contact shadow and brings the dog up to the
   size of the copy beside it; the wrapper clips the overflow. */
.hero-media {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-dog {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 100%;
  transform: scale(1.3);
  transform-origin: 50% 100%;
  /* Lifts the clip's studio white to the page white. */
  filter: brightness(1.2);
}

/* ---------- copy beside a clip ---------- */

.media-grid { display: grid; gap: 2rem; align-items: center; }

/* The clips frame the dog small in a lot of studio air. Cropping square and
   scaling from the floor keeps the contact shadow and brings the dog up to the
   size of the copy beside it; the wrapper clips the overflow. The n50 band is
   within a couple of points of the clips' cyclorama, so no brightness lift. */
.media {
  width: 100%;
  max-width: 22rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.slot {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 0;
  background: transparent;
  object-fit: cover;
  object-position: 50% 100%;
  transform: scale(1.15);
  transform-origin: 50% 100%;
}

.band:not(.band-n50) .slot { filter: brightness(1.2); }

/* ---------- flows (pipelines of chips) ---------- */

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.375rem;
  margin-top: var(--space-3);
  max-width: 44rem;
}

.flow li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.flow li > span {
  display: inline-flex;
  align-items: center;
  padding: 0.4375rem 0.75rem;
  border: var(--border);
  border-radius: 999px;
  background: var(--n0);
}

.flow li + li::before {
  content: "\2192";
  color: var(--n400);
  font-weight: 400;
}

.flow .is-collie > span { background: var(--blue-bg); border-color: transparent; color: var(--blue); }
.flow .is-end > span { background: var(--n900); border-color: var(--n900); color: var(--n0); }

/* site.js walks a highlight through the chips while the row is on screen, so
   the pipeline reads as a lead moving rather than a list of labels. The arrow
   ahead of the active chip darkens with it. Rest state above is the finished
   state, so a row that never gets armed still reads correctly. */
.flow li > span {
  transition: background-color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}

.flow li::before { transition: color var(--t-base) var(--ease); }

.flow li.is-active > span,
.flow li.is-active.is-collie > span,
.flow li.is-active.is-end > span {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--n0);
  transform: translateY(-1px);
}

.flow li.is-active::before { color: var(--n900); }
.band-dark .flow li.is-active::before { color: var(--n50); }

.band-dark .flow li > span { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.band-dark .flow li + li::before { color: var(--n500); }

/* Bare labels, no chips. For a row of outcomes separated by dots. */
.outcomes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0;
  margin-top: var(--space-3);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.outcomes li + li::before {
  content: "\00b7";
  margin: 0 0.625rem;
  color: var(--n400);
  font-weight: 400;
}

/* ---------- card grids ---------- */

.cap-grid {
  display: grid;
  gap: 0.875rem;
  margin-top: var(--space-4);
}

.cap-card {
  padding: 1.375rem 1.5rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--n0);
}

.cap-icon {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
  margin-bottom: 0.875rem;
  color: var(--blue);
}

.cap-icon svg { width: 100%; height: 100%; }

.cap-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.cap-card p {
  margin: 0.4375rem 0 0;
  color: var(--n500);
  font-size: 0.875rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.cap-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.875rem;
  border-radius: 50%;
  background: var(--n900);
  color: var(--n0);
  font-size: 0.75rem;
  font-weight: 700;
}

.cap-tag {
  display: inline-block;
  margin-bottom: 0.875rem;
  padding: 0.25rem 0.5625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-green { background: var(--green-bg); color: var(--green); }
.tag-amber { background: var(--amber-bg); color: var(--amber-text); }
.tag-blue  { background: var(--blue-bg);  color: var(--blue); }

.js .cap-grid .cap-card {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.js .cap-grid.is-in .cap-card { opacity: 1; transform: none; }
.js .cap-grid.is-in .cap-card:nth-child(1) { transition-delay: 40ms; }
.js .cap-grid.is-in .cap-card:nth-child(2) { transition-delay: 80ms; }
.js .cap-grid.is-in .cap-card:nth-child(3) { transition-delay: 120ms; }
.js .cap-grid.is-in .cap-card:nth-child(4) { transition-delay: 160ms; }
.js .cap-grid.is-in .cap-card:nth-child(5) { transition-delay: 200ms; }
.js .cap-grid.is-in .cap-card:nth-child(6) { transition-delay: 240ms; }

.grid-note {
  margin: var(--space-2) 0 0;
  max-width: var(--measure-body);
  color: var(--n500);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ---------- forms compare ---------- */

.compare {
  display: grid;
  gap: 0.875rem;
  margin-top: var(--space-4);
}

.compare-row {
  padding: 1.25rem 1.5rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--n0);
}

.compare-row h3 {
  margin: 0;
  color: var(--n500);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compare-row .flow { margin-top: 0.875rem; }
.compare-row.is-collie h3 { color: var(--blue); }

/* ---------- CRM flow ---------- */

.crm-flow {
  display: grid;
  gap: 0.5rem;
  margin-top: var(--space-4);
  max-width: 44rem;
}

.crm-node {
  padding: 1.125rem 1.25rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--n0);
}

.crm-node strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.crm-node span {
  display: block;
  margin-top: 0.25rem;
  color: var(--n500);
  font-size: 0.875rem;
}

.crm-node.is-collie { background: var(--blue-bg); border-color: transparent; }
.crm-node.is-collie strong { color: var(--blue); }

.crm-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--n400);
  font-size: 1.125rem;
}

.crm-arrow::before { content: "\2193"; }

/* ---------- works with your stack ---------- */

.int-intro {
  margin: var(--space-4) 0 0;
  max-width: var(--measure-body);
  color: var(--n500);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.int-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: var(--space-2);
}

.int-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1.25rem 0.75rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--n0);
}

/* Marks are monochrome on purpose. Six brand palettes in one grid fights the
   page, and the row is about reach, not about any one logo. */
.int-mark { width: 1.5rem; height: 1.5rem; color: var(--n600); }
.int-mark svg { width: 100%; height: 100%; }

.int-name {
  color: var(--n500);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
}

.js .int-grid .int-cell {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.js .int-grid.is-in .int-cell { opacity: 1; transform: none; }
.js .int-grid.is-in .int-cell:nth-child(1) { transition-delay: 40ms; }
.js .int-grid.is-in .int-cell:nth-child(2) { transition-delay: 80ms; }
.js .int-grid.is-in .int-cell:nth-child(3) { transition-delay: 120ms; }
.js .int-grid.is-in .int-cell:nth-child(4) { transition-delay: 160ms; }
.js .int-grid.is-in .int-cell:nth-child(5) { transition-delay: 200ms; }
.js .int-grid.is-in .int-cell:nth-child(6) { transition-delay: 240ms; }

@media (min-width: 34rem) {
  .int-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

@media (min-width: 56rem) {
  .int-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .int-cell { padding: 1.5rem 0.75rem; }
}

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

.faq { margin-top: var(--space-4); border-top: var(--border); max-width: 48rem; }

.faq details { border-bottom: var(--border); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  background:
    linear-gradient(var(--n500), var(--n500)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--n500), var(--n500)) center / 1.5px 100% no-repeat;
  transition: transform var(--t-base) var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .faq-a {
  margin: 0;
  padding: 0 0 1.25rem;
  max-width: var(--measure-body);
  color: var(--n500);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- close ---------- */

.close .shell { text-align: center; }
.close .section-title { max-width: 20ch; margin: 0 auto; }
.close .section-sub { margin-left: auto; margin-right: auto; }
.close .cta-row { justify-content: center; }

/* ---------- article ---------- */

.article-head { padding: 3rem 0 2.5rem; border-bottom: var(--border); }

.article-head .shell, .article .shell { max-width: 46rem; }

.article-head h1 {
  font-size: 2rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.article-meta {
  margin: 1rem 0 0;
  color: var(--n500);
  font-size: 0.875rem;
}

.article-intro {
  margin: var(--space-3) 0 0;
  color: var(--n500);
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.article { padding: 2.5rem 0 4.5rem; }

.prose { font-size: 1rem; line-height: 1.7; }

.prose > * + * { margin-top: 1.125rem; }

.prose h2 {
  margin-top: 3rem;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  scroll-margin-top: 1rem;
}

.prose h3 {
  margin-top: 2.25rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  scroll-margin-top: 1rem;
}

.prose h2 + *, .prose h3 + * { margin-top: 0.875rem; }

.prose p { margin-bottom: 0; text-wrap: pretty; }

.prose a { color: var(--n900); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--n500); }

.prose ul, .prose ol { padding-left: 1.375rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 0.375rem; padding-left: 0.25rem; }
.prose li::marker { color: var(--n500); }

.prose hr { margin: 3rem 0; border: 0; border-top: var(--border); }

.prose .lead { color: var(--n500); font-size: 1.125rem; }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: var(--border);
  border-radius: var(--radius);
}

.prose table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.45;
}

.prose th, .prose td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: var(--border);
}

.prose th {
  background: var(--n50);
  color: var(--n500);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; letter-spacing: -0.01em; }

.prose .faq-block p { margin-top: 1.125rem; }
.prose .faq-block p strong { display: block; margin-bottom: 0.25rem; }

.article-cta {
  margin-top: 3rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--n900);
  color: var(--n50);
}

.article-cta p { margin: 0; max-width: 46ch; color: #C4C4C4; text-wrap: pretty; }
.article-cta h2 { margin: 0 0 0.5rem; font-size: 1.375rem; }
.article-cta .cta-row { margin-top: 1.25rem; }

.article-aside {
  padding: 1rem 1.25rem;
  border: var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--n50);
  font-size: 0.9375rem;
}

.article-aside p { margin: 0 0 0.5rem; }

.toc { padding-left: 1.25rem; list-style: decimal; columns: 1; }
.toc li { margin-top: 0.25rem; color: var(--n500); font-size: 0.875rem; }
.toc a { color: var(--n900); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.link-cta-dark { color: var(--n50); border-color: rgba(255,255,255,0.25); }
@media (hover: hover) { .link-cta-dark:hover { border-color: var(--n50); } }

@media (min-width: 34rem) { .toc { columns: 2; column-gap: 2rem; } }

/* ---------- legal ---------- */

.legal { padding: 3.5rem 0 6rem; }
.legal .shell { max-width: 45rem; }
.legal h1 { font-size: 2.125rem; line-height: 1.15; }
.legal .updated { margin: 0.75rem 0 2.5rem; color: var(--n400); font-size: 0.8125rem; }
.legal section { margin-top: 2rem; }
.legal h2 { margin: 0 0 0.625rem; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.legal p, .legal li { margin: 0 0 0.75rem; color: var(--n600); font-size: 0.9375rem; line-height: 1.7; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 0.75rem; padding-left: 1.25rem; list-style: disc; }
.legal li { margin-bottom: 0.375rem; }
.legal a { color: var(--n900); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--n500); }

/* ---------- wider screens ---------- */

@media (min-width: 34rem) {
  :root { --gutter: 2rem; --band-y: 5.5rem; }

  .hero { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .hero h1 { font-size: 3rem; }
  .lede { font-size: 1.125rem; max-width: 42ch; }

  .section-title { font-size: 2rem; }

  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .cap-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .crm-flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
  .crm-arrow { padding: 0 0.25rem; }
  .crm-arrow::before { content: "\2192"; }

  .article-head { padding: 4rem 0 3rem; }
  .article-head h1 { font-size: 2.5rem; }
  .article { padding: 3rem 0 6rem; }
  .prose { font-size: 1.0625rem; }
  .prose h2 { font-size: 1.75rem; }
  .prose h3 { font-size: 1.25rem; }
  .article-cta { padding: 2.25rem; }

  .legal h1 { font-size: 2.5rem; }
}

@media (min-width: 56rem) {
  :root { --shell: 66rem; --band-y: 7rem; }

  .hero { padding-top: 6rem; padding-bottom: 5.5rem; }
  .hero h1 { font-size: 3.5rem; letter-spacing: -0.04em; }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }

  .hero-media { justify-self: end; margin: 0; max-width: 26rem; }
  .lede { max-width: var(--measure-body); }

  .section-title { font-size: 2.25rem; }

  .cap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cap-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .compare { grid-template-columns: minmax(0, 1fr); }

  /* Copy left, dog right. Asymmetric so the body copy keeps a readable
     measure rather than stretching to half. */
  .media-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3.5rem; }
  .media { max-width: 20rem; justify-self: end; }
}

/* ---------- reduced motion ---------- */

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal],
  .js .cap-grid .cap-card,
  .js .int-grid .int-cell {
    opacity: 1;
    transform: none;
  }
}
