/* Typeface system, matched to the main site (home page style.css). The compare
   pages previously set no font-family at all and rendered in the browser
   default serif; pulling in the same display/body pair is the single biggest
   reason these pages now read as the same product as the landing page. The
   web fonts themselves are loaded per-page; pages that don't load them fall
   back cleanly to the system stack below. */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-1a1a2e);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Animations
   ======================================== */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Section Label & Header
   ======================================== */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: var(--text-md);
  color: var(--black);
  line-height: 1.7;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  background: var(--hero-gradient-start);
  color: var(--white);
  overflow: hidden;
}

.hero h1 {
  font-size: var(--text-6xl);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero .hero-subtitle {
  font-size: var(--text-lg);
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Hero: split layout for comparison pages.
   Scoped under .compare-page (set on the <body> of every comparison page)
   so these rules never leak into other pages that share this stylesheet.
   ======================================== */
/* The framed app window sits fully inside the dark band. Bottom padding must
   exceed the frame shadow's reach (~75px) or .hero's overflow clips it.
   The hub page (.compare-hub-page) overrides this further down. */
.compare-page .hero {
  padding: 148px 0 112px;
  text-align: left;
  background: var(--white);
}

.compare-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 60% at 74% 44%, rgba(120, 150, 220, 0.18), transparent 72%),
    linear-gradient(160deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
}

.compare-page .hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 64px;
  align-items: center;
}

/* Runs past the content edge on wide screens; .hero clips it at the viewport. */
.compare-page .hero-visual {
  margin-right: -150px;
}

.compare-page .hero h1 {
  font-size: var(--text-6xl);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 20px;
}

.compare-page .hero .hero-subtitle {
  font-size: var(--text-lg);
  max-width: 520px;
  margin: 0 0 32px;
  color: var(--white-alpha-90);
}

.compare-page .hero-ctas {
  justify-content: flex-start;
}

/* The homepage's slate device frame. */
.compare-page .hero-device {
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--white-alpha-10);
  background: linear-gradient(150deg, var(--gray-800) 0%, var(--gray-700) 100%);
  box-shadow: var(--elevation-frame-dark);
}

.compare-page .hero-device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ========================================
   Differences: narrative + product visual
   ======================================== */
.differences {
  padding: 100px 0;
}

.diff-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  align-items: center;
}

.diff-copy h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 26px;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.why-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--black);
}

.why-list li strong {
  color: var(--gray-900);
  font-weight: 600;
}

.why-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-round);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: var(--white);
  /* Flat brand blue. This was a blue-to-violet 135deg wash, which put a third
     hue on the page for no reason: the bullets are not related to the chart's
     blue-and-red, so the violet read as decoration rather than meaning. */
  background: var(--primary-blue);
}

.why-check svg {
  color: var(--white);
}

/* Bespoke dashboard mockup (inline SVG), echoing the landing page's product
   framing. Purely decorative (aria-hidden in the markup). */
.diff-mockup {
  border-radius: var(--radius-lg);
  box-shadow:
    var(--elevation-frame);
}

.diff-mockup svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* ========================================
   CTA Buttons (hero + footer)
   ======================================== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-cta-primary {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-cta-primary:hover {
  background: var(--blue-700);
}

.btn-cta-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white-alpha-30);
}

.btn-cta-outline:hover {
  border-color: var(--white-alpha-60);
  background: var(--white-alpha-05);
}

.btn-cta-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white-alpha-20);
}

.btn-cta-ghost:hover {
  border-color: var(--white-alpha-40);
  color: var(--white);
}

/* ========================================
   Key Differences Section
   ======================================== */
.key-differences {
  padding: 100px 0;
}

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

.diff-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  justify-items: center;
}

.diff-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.diff-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-blue);
}

.diff-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.diff-card p {
  font-size: var(--text-sm);
  color: var(--black);
  line-height: 1.7;
  text-align: center;
}

/* ========================================
   Feature Comparison Table
   The centerpiece of a "vs" page. Argo Premium is the highlighted rail;
   the competitor column is deliberately muted so the eye reads Argo as the
   winner before it reads a single row. Column order is identical on every
   compare page (Feature / Argo Free / Argo Premium / Competitor), so the
   nth-child highlighting below is safe to apply globally.
   ======================================== */
.comparison-table-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--elevation-md);
}

.comparison-table thead {
  background: var(--gray-900);
  color: var(--white);
}

.comparison-table th {
  padding: 22px 24px;
  font-weight: 600;
  font-size: var(--text-sm);
  text-align: center;
  vertical-align: top;
}

/* Marks which column is ours, so the table is scannable. Deliberately a flat
   brand fill rather than a gradient: a 135deg blue-to-violet wash is the single
   most recognisable generated-UI signature, and a comparison table only works
   if the reader believes it. Solid separates the column just as clearly. */
.comparison-table thead th:nth-child(3) {
  background: var(--primary-blue);
}

.th-sub {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  opacity: 0.75;
  margin-top: 6px;
}

.comparison-table th.feature-col {
  text-align: left;
  width: 34%;
}

.comparison-table th.brand-col {
  width: 22%;
}

.comparison-table td {
  padding: 15px 24px;
  border-bottom: 1px solid var(--gray-100);
  font-size: var(--text-sm);
  color: var(--gray-900);
}

.comparison-table td:first-child {
  font-weight: 500;
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

/* Argo Premium column rail */
.comparison-table td:nth-child(3) {
  background: var(--blue-50);
}

/* Competitor column, visually receded */
.comparison-table td:nth-child(4) {
  color: var(--gray-500);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr {
  transition: background 0.15s ease;
}

.comparison-table tbody tr:hover td {
  background: var(--gray-50);
}

.comparison-table tbody tr:hover td:nth-child(3) {
  background: var(--blue-100);
}

.check-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-round);
  background: var(--green-100);
}

.check-yes svg {
  color: var(--green-800);
}

.check-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-round);
  background: var(--gray-200);
}

.check-no svg {
  color: var(--gray-700);
}

/* argo_compare_cell() in compare-lib.php renders any value that is not 'yes' or
   'no' through this class, and it had no rule anywhere, so a qualified answer
   ("Worksheet", "Add-on", "Paid tiers") rendered as bare text in a column of
   icons and read as a table someone forgot to finish. */
.check-partial {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill, 999px);
  background: var(--gray-200);
  color: var(--gray-700);
  font-size: var(--text-2xs);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

/* The comparison table header used to stick under the site header while
   scrolling. Two problems: the plan and price followed you down the page,
   and making it work meant overriding .table-wrapper's overflow-x: auto,
   which took the table's sideways scroll away on narrow screens. Both go;
   the corner radii below stay because they are still what rounds the table. */

.compare-page .comparison-table thead th:first-child {
  border-top-left-radius: 16px;
}

.compare-page .comparison-table thead th:last-child {
  border-top-right-radius: 16px;
}

.compare-page .comparison-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}

.compare-page .comparison-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
}

/* ========================================
   Pricing Comparison
   ======================================== */
.pricing-comparison {
  padding: 100px 0;
}

/* ========================================
   Honest Take
   ======================================== */
.honest-take {
  padding: 60px 0 100px;
}

.honest-card {
  max-width: 750px;
  margin: 0 auto;
  padding: 36px 40px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-lg);
  text-align: center;
}

.honest-icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.honest-icon svg {
  color: var(--primary-blue);
}

.honest-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.honest-card p {
  font-size: var(--text-sm);
  color: var(--black);
  line-height: 1.7;
  margin: 0 0 12px;
}

.honest-card p:last-of-type {
  margin-bottom: 0;
}

.honest-take-cta {
  margin-top: 24px;
}

.honest-take-alt .honest-take-cta {
  margin-top: 28px;
}

/* ========================================
   Honest Take Alt (text-only variant)
   ======================================== */
.honest-take-alt {
  padding: 0 0 100px;
}

/* ========================================
   FAQ Section (override padding)
   ======================================== */
section.faq {
  padding: 40px 0 60px;
}

/* ========================================
   Dark Section Wrapper (CTA + Footer)
   ======================================== */
.dark-section-wrapper {
  position: relative;
  background: var(--hero-gradient-start);
  overflow: hidden;
}

.dark-section-wrapper .footer {
  background: transparent;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 100px 0;
  background: transparent;
}

.cta-card {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-card p {
  font-size: var(--text-md);
  color: var(--white);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Pros & Cons
   ======================================== */
.pros-cons-section {
  padding: 100px 0;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.pc-card {
  padding: 34px 34px 38px;
  border-radius: var(--radius-lg);
}

.pc-argo {
  border: 1.5px solid var(--blue-200);
  background: var(--white);
  box-shadow: var(--elevation-md);
}

.pc-competitor {
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.pc-block + .pc-block {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--gray-100);
}

.pc-block h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 18px;
}

.pc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.pc-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--black);
}

.pc-list li strong {
  color: var(--gray-900);
  font-weight: 600;
}

.pc-ico {
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
}

.pc-ico.pc-pro {
  color: var(--green-700);
}

.pc-ico.pc-con {
  color: var(--gray-500);
}

/* ========================================
   Other comparisons (links to sibling vs pages)
   ======================================== */
/* Top padding intentionally 0: the preceding section already supplies its
   100px bottom padding, so a top value here would double the gap. */
.other-comparisons {
  padding: 0 0 100px;
}

.compare-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.compare-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex: 0 1 190px;
  min-width: 160px;
  padding: 20px 22px;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
  color: var(--primary-blue);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.35;
  text-decoration: none;
  background: var(--white);
  transition: border-color 0.18s ease;
}

.compare-card:hover {
  border-color: var(--primary-blue);
}

.compare-card svg {
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.18s ease;
}

.compare-card:hover svg {
  transform: translate(2px, -2px);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
  .compare-page .hero .container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }

  .compare-page .hero-visual {
    margin-right: 0;
  }
}

@media (max-width: 900px) {
  .diff-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .pros-cons-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .diff-split {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 560px;
    margin: 0 auto;
  }

  /* Split hero stacks: text over product shot, both centered */
  .compare-page .hero {
    padding: 128px 0 96px;
    text-align: center;
  }

  .compare-page .hero .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    max-width: 640px;
  }

  .compare-page .hero-visual {
    margin-right: 0;
  }

  .compare-page .hero .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .compare-page .hero-ctas {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
    font-size: var(--text-xs);
  }

  .comparison-table th.feature-col {
    width: 40%;
  }

  /* Restore horizontal scroll on narrow screens for the rework page */
  .compare-page .table-wrapper {
    overflow-x: auto;
  }

  .compare-page .comparison-table thead th {
    position: static;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero h1,
  .compare-page .hero h1 {
    font-size: var(--text-4xl);
  }

  .hero .hero-subtitle {
    font-size: var(--text-md);
  }

  .differences,
  .key-differences,
  .comparison-table-section,
  .pricing-comparison,
  .honest-take,
  .faq,
  .cta-section {
    padding: 60px 0;
  }

  .section-header h2,
  .cta-card h2 {
    font-size: var(--text-2xl);
  }

  .section-header {
    margin-bottom: 40px;
  }

  .honest-card {
    padding: 28px 24px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    font-size: var(--text-2xs);
  }

  .check-yes,
  .check-no {
    width: 26px;
    height: 26px;
  }

  .check-yes svg,
  .check-no svg {
    width: 14px;
    height: 14px;
  }

  .hero-ctas,
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas .btn-cta,
  .cta-buttons .btn-cta {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: var(--text-2xl);
  }

  .comparison-table th.feature-col {
    min-width: 120px;
  }

  .comparison-table th.brand-col {
    min-width: 80px;
  }
}

/* ========================================
   Comparison hub page (compare/index.php)
   ======================================== */
/* Lit slate like the pricing hero. The first row of comparison cards rises
   into the bottom of the band, so it never reads as an empty bar. */
.compare-hub-page .hero {
  text-align: center;
  padding: 148px 0 176px;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(120, 150, 220, 0.16), transparent 70%),
    linear-gradient(160deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
}

.compare-hub-page .hero::before {
  content: none;
}

.compare-hub-page .hero .container {
  display: block;
}

.compare-hub-page .hero-content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 0;
}

.compare-hub > .container {
  position: relative;
  margin-top: -112px;
}

.compare-hub-page .hub-card {
  box-shadow: var(--elevation-md);
}

.compare-hub-page .hero .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}

.compare-hub-page .hero-ctas {
  justify-content: center;
}

.compare-hub {
  padding: 0 0 110px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 26px 22px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.18s ease;
}

.hub-card:hover {
  border-color: var(--primary-blue);
}

.hub-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.hub-card-hook {
  font-size: var(--text-sm);
  color: var(--black);
  line-height: 1.55;
  flex: 1;
}

.hub-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: var(--text-xs);
}

.hub-card:hover .hub-card-cta svg {
  transform: translateX(3px);
}

.hub-card-cta svg {
  transition: transform 0.18s ease;
}

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

@media (max-width: 600px) {
  .hub-grid { grid-template-columns: 1fr; max-width: 420px; }
  .compare-hub-page .hero { padding: 120px 0 128px; }
  .compare-hub { padding: 0 0 80px; }
  .compare-hub > .container { margin-top: -80px; }
}
