/* =====================================================================
   NIMBENT — PAGE-LEVEL PATTERNS
   Shared styles used across pricing, features, compare, use-case pages.
   In the "Technical" direction: mono-grid hero, dual columns, panels,
   tables, tickers, ship logs.
   ===================================================================== */

/* Subtle grid backdrop reused across hero sections */
:root { --grid-line: oklch(0.93 0.005 285); }

.page-hero {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-hero__inner { padding: 80px 0 64px; }
.page-hero__bar {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
  padding: 12px 0; margin-bottom: 48px;
  font-family: var(--font-mono); font-size: var(--t-mono); color: var(--ink-3);
  flex-wrap: wrap; gap: 12px;
}
.page-hero__bar strong { color: var(--ink); font-weight: 500; }
.page-hero__title {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 0.98;
  margin: 0 0 24px;
  max-width: 22ch;
  text-wrap: balance;
}
.page-hero__title .underline {
  background-image: linear-gradient(transparent 65%, var(--cyan-100) 65%);
}
.page-hero__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--indigo-700);
}
.page-hero__lede { max-width: 56ch; margin: 0 0 32px; font-size: var(--t-lg); color: var(--ink-2); }
.page-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Section header used on most page interiors */
.sect { padding: 96px 0; }
.sect--alt { background: var(--paper-2); }
.sect--ink { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sect--ink h2, .sect--ink h3 { color: var(--paper); }
.sect--ink p { color: oklch(0.78 0.02 280); }

.sect__head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 48px; margin-bottom: 56px; flex-wrap: wrap;
}
.sect__head--center { flex-direction: column; align-items: center; text-align: center; max-width: 60ch; margin-left: auto; margin-right: auto; }
.sect__lead { max-width: 28ch; }
.sect__title-sans {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  margin: 12px 0 0;
  text-wrap: balance;
}

/* Tile grid — 3- or 4-up panels of .tile cards */
.grid-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* Generic panel — used everywhere there's a "feature box" */
.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
}
.tile--row { display: flex; align-items: start; gap: 16px; }
.tile h3 { margin: 0 0 8px; }
.tile p { margin: 0; color: var(--ink-2); }
.tile__icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--violet-100); color: var(--indigo-700);
  border-radius: 8px;
  flex-shrink: 0;
}
.tile__icon svg { width: 18px; height: 18px; }

/* CTA strip used at bottom of every page */
.cta-strip {
  padding: 96px 0;
}
.cta-strip__inner {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 64px 56px;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 48px; align-items: end;
}
@media (max-width: 900px) { .cta-strip__inner { grid-template-columns: 1fr; padding: 48px 32px; } }
.cta-strip h2 { color: var(--paper); margin: 12px 0 0; max-width: 18ch; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.04em; font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.05; }
.cta-strip p { color: oklch(0.78 0.02 280); margin: 16px 0 0; }
.cta-strip .btn--ghost { color: var(--paper); border-color: oklch(0.30 0.04 285); }
.cta-strip .btn--ghost:hover { background: oklch(0.22 0.03 280); }

/* Comparison table — used on /compare and /pricing */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
}
.cmp-table th, .cmp-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
  vertical-align: top;
}
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table thead th {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.cmp-table thead th.is-us { color: var(--ink); }
.cmp-table th:first-child { width: 32%; }
.cmp-table .row-head { font-weight: 500; color: var(--ink); }
.cmp-table .row-head small { display: block; color: var(--ink-3); font-weight: 400; margin-top: 2px; font-size: var(--t-xs); }
.cmp-yes { color: var(--ok); font-family: var(--font-mono); font-size: var(--t-mono); }
.cmp-no { color: var(--ink-4); font-family: var(--font-mono); font-size: var(--t-mono); }
.cmp-note { color: var(--ink-2); font-size: var(--t-xs); display: block; margin-top: 2px; }
.cmp-table td.is-us-col { background: oklch(0.97 0.015 290); }

/* FAQ — accordion-ish, click handled in nimbent.js */
.faq { display: flex; flex-direction: column; }
.faq__item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--t-lg);
  color: var(--ink);
  margin: 0 0 8px;
  display: flex; justify-content: space-between; gap: 24px;
  cursor: pointer;
}
.faq__q::after { content: '+'; color: var(--ink-3); font-family: var(--font-mono); font-weight: 400; }
.faq__item.is-open .faq__q::after { content: '−'; }
.faq__a { color: var(--ink-2); margin: 0; max-width: 64ch; display: none; }
.faq__item.is-open .faq__a { display: block; }

/* Use case hero variant */
.uc-hero { background: var(--paper-2); padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.uc-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .uc-hero__grid { grid-template-columns: 1fr; gap: 32px; } }
.uc-hero__media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--violet-100), oklch(0.95 0.04 215));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.uc-hero__media::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 12px, oklch(1 0 0 / 0.4) 12px, oklch(1 0 0 / 0.4) 13px);
  opacity: 0.5;
}
.uc-hero__media-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  color: var(--ink-2);
  background: var(--white);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
