/* frontend/site/growth.css — Comparison and guide pages built directly on
 * OneInvite's main-site design system (tokens.css, kit.css, site.css).
 *
 * Uses native .site-header, .site-footer, .action-bar, .site-closing, .reveal,
 * and .faq-item from site.css/site.js. Only page-specific layout primitives
 * (underline tabs, 12-col splits, pricing-sheet-style matrix, product proof
 * strip, and cost breakdown) live here.
 */

/* ── Open editorial hero directly on var(--bg) ───────────────────────────── */

.gr-hero {
  padding-top: calc(var(--header-h) + clamp(32px, 5.5vw, 76px));
  padding-bottom: clamp(44px, 6vw, 84px);
}

.gr-hero-inner {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gr-hero h1 {
  font-size: var(--text-3xl);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.gr-hero .lede {
  max-width: 62ch;
}

.gr-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.gr-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 14px;
  font-size: var(--text-xs);
  color: var(--muted);
}

/* ── Horizontal underline competitor switcher ────────────────────────────── */

.gr-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.gr-tabs a {
  flex: none;
  padding: 12px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur-hover) ease, border-color var(--dur-hover) ease;
}

.gr-tabs a:hover {
  color: var(--ink);
}

.gr-tabs a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--home-wine, var(--primary));
}

/* ── Editorial sections (hairline separated, open on var(--bg)) ──────────── */

.gr-section {
  padding-block: clamp(44px, 6.5vw, 88px);
  border-top: 1px solid var(--line);
}

.gr-split {
  display: grid;
  gap: 28px 36px;
}

.gr-split-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gr-split-head h2 {
  font-size: var(--text-2xl);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.gr-split-head p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--ink2);
  max-width: 44ch;
}

@media (min-width: 960px) {
  .gr-split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }
  .gr-split-head {
    grid-column: 1 / span 4;
  }
  .gr-split-body {
    grid-column: 6 / span 7;
  }
}

/* ── Real Product Proof Strip (uses real /site/img/ visuals) ─────────────── */

.gr-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.gr-proof-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gr-proof-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg2);
  outline: 1px solid var(--imgline);
  outline-offset: -1px;
}

.gr-proof-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gr-proof-card h3 {
  font-size: var(--text-md);
  line-height: 1.25;
}

.gr-proof-card p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink2);
}

.gr-proof-link {
  align-self: flex-start;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ── Verdict columns (clean editorial rules, no boxes) ───────────────────── */

.gr-verdicts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.gr-verdict {
  padding-top: 18px;
  border-top: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gr-verdict.is-oi {
  border-top-color: var(--home-wine, var(--primary));
}

.gr-verdict h3 {
  font-size: var(--text-lg);
  line-height: 1.2;
}

.gr-verdict ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gr-verdict li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink2);
}

.gr-verdict li svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex: none;
}

.gr-verdict.is-oi li svg {
  color: var(--success);
}

.gr-verdict:not(.is-oi) li svg {
  color: var(--muted);
}

/* ── Comparison Matrix (exact pricing.css .pricing-sheet signature) ──────── */

.gr-sheet-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 680px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.gr-sheet-head h2 {
  font-size: var(--text-2xl);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.gr-sheet-head p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink2);
}

.gr-sheet {
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow:
    0 0 0 1px var(--line),
    0 30px 60px -40px color-mix(in srgb, var(--night) 35%, transparent);
  overflow: hidden;
}

.gr-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.gr-table col.col-feature { width: 28%; }
.gr-table col.col-oi      { width: 37%; }
.gr-table col.col-comp    { width: 35%; }

.gr-table thead th {
  padding: 24px;
  text-align: left;
  vertical-align: bottom;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}

/* Signature inverted header for OneInvite column — matches pricing.css featured column */
.gr-table thead th.is-oi {
  background: var(--ink);
  color: var(--bg);
  border-bottom-color: var(--ink);
}

.gr-th-name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: inherit;
  letter-spacing: -0.02em;
}

.gr-th-meta {
  display: block;
  margin-top: 4px;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--muted);
}

.gr-table thead th.is-oi .gr-th-meta {
  color: color-mix(in srgb, var(--bg) 74%, transparent);
}

.gr-table tr.gr-group th {
  padding: 12px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}

.gr-table tbody tr:not(.gr-group) td {
  padding: 16px 24px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink2);
}

.gr-table tbody tr:last-child td {
  border-bottom: 0;
}

.gr-table tbody td.is-feature {
  color: var(--ink);
  font-weight: 500;
}

.gr-table tbody td.is-oi {
  background: color-mix(in srgb, var(--ink) 2.2%, var(--surface-raised));
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
}

.gr-cell {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.gr-mark {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
}

.gr-mark.is-yes     { color: var(--success); }
.gr-mark.is-partial { color: var(--warning); }
.gr-mark.is-no      { color: var(--danger); }

.gr-cell-col-label {
  display: none;
}

/* ── Real 150-Guest Cost Breakdown Table ─────────────────────────────────── */

.gr-cost-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.gr-cost-table th,
.gr-cost-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  line-height: 1.5;
  vertical-align: top;
}

.gr-cost-table thead th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  padding-top: 0;
}

.gr-cost-table tbody td:first-child {
  font-weight: 500;
  color: var(--ink);
}

.gr-cost-table tbody td:nth-child(2) {
  color: var(--ink);
}

.gr-cost-table tbody td:nth-child(3) {
  color: var(--ink2);
}

.gr-cost-table tfoot td {
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  padding-top: 18px;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--ink);
}

.gr-cost-note {
  margin-top: 14px;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--muted);
}

/* ── Editorial points & 3-step switching guide ───────────────────────────── */

.gr-points {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.gr-points > li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gr-points h3 {
  font-size: var(--text-md);
  line-height: 1.25;
}

.gr-points p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--ink2);
}

@media (min-width: 760px) {
  .gr-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(28px, 4vw, 56px);
  }
}

.gr-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  counter-reset: step;
}

.gr-steps > li {
  counter-increment: step;
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.gr-steps > li::before {
  content: "0" counter(step);
  flex: none;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gr-steps h3 {
  font-size: var(--text-base);
  margin-bottom: 4px;
}

.gr-steps p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink2);
}

/* ── Quiet editorial cross-links index ───────────────────────────────────── */

.gr-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--line);
}

.gr-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink2);
  transition: color var(--dur-hover) ease;
}

.gr-index a:hover {
  color: var(--ink);
}

.gr-index svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex: none;
}

/* ── Responsive (mobile stacked comparison cards — zero horizontal scroll) ── */

@media (max-width: 900px) {
  .gr-proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .gr-verdicts {
    grid-template-columns: 1fr;
  }
  .gr-table,
  .gr-table tbody,
  .gr-table tr,
  .gr-table td,
  .gr-table th {
    display: block;
    width: 100%;
  }
  .gr-table colgroup,
  .gr-table thead {
    display: none;
  }
  .gr-table tr.gr-group th {
    padding: 12px 16px;
  }
  .gr-table tbody tr:not(.gr-group) {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .gr-table tbody tr:not(.gr-group) td {
    padding: 0;
    border: 0;
    background: transparent;
  }
  .gr-table tbody td.is-feature {
    font-size: var(--text-base);
    font-weight: 600;
  }
  .gr-cell-col-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .gr-cost-table th,
  .gr-cost-table td {
    padding: 12px 8px;
    font-size: var(--text-xs);
  }
}
