/* ═══════════════════════════════════════════════════════
   WISE APPLE — HOMEPAGE VARIANT G
   Angle: COMPARISON / "VS CLOUD PLATFORMS" MATRIX
   Layered ON TOP of shared styles.css (tokens, nav, modal,
   .btn, .reveal, .section-*). Only new/overridden rules live
   here. Uniquely namespaced to avoid collisions.
   ═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   Local tokens reused from styles.css :root
   (--accent #7bff82, --accent-2 #4ecda0, etc.)
───────────────────────────────────────────── */
:root {
  --g-warn: #ffb454;
  --g-danger: rgba(255, 110, 110, .9);
  --g-faint: rgba(255, 255, 255, .55);
  --g-edge: rgba(123, 255, 130, .42);   /* spotlight-column frame line */
  --g-stripe: rgba(255, 255, 255, .025); /* zebra row tint */
}

/* ── Screen-reader-only (not provided by shared styles.css) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Generic eyebrow / kicker used across G sections ── */
.g-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent-mid);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.g-kicker svg { width: 15px; height: 15px; }

/* ════════════════════════════════════════════
   HERO (spear) — tighter, claim-led
════════════════════════════════════════════ */
.g-hero {
  position: relative;
  padding-top: calc(64px + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}
.g-hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  max-width: 900px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(123, 255, 130, .16), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.g-hero .container { position: relative; z-index: 1; }

.g-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -2px;
  margin: 18px auto 0;
  max-width: 17ch;
}
.g-hero__sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-2);
  max-width: 640px;
  margin: 22px auto 0;
  line-height: 1.55;
}
.g-hero__sub strong { color: var(--text); font-weight: 600; }

/* Mandatory data-gated qualifier line near the spear */
.g-qualifier {
  display: block;
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-3);
}

.g-hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.g-hero__microtrust {
  margin-top: 16px;
  font-size: 13px;
  color: var(--g-faint);
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.g-hero__microtrust svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* ── Qualification strip (who it's for) ── */
.g-qualstrip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .015);
}
.g-qualstrip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  justify-content: center;
  align-items: center;
  padding: 22px 0;
}
.g-qualstrip__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--text-2);
}
.g-qualstrip__item svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ════════════════════════════════════════════
   THE COMPARISON MATRIX (centerpiece)
════════════════════════════════════════════ */
.g-matrix {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.g-matrix__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
  margin: 0 0 30px;
  font-size: 13.5px;
  color: var(--text-2);
}
.g-matrix__legend span { display: inline-flex; align-items: center; gap: 7px; }
.g-yes,
.g-no,
.g-partial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  flex: none;
}
.g-yes { background: var(--accent-dim); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(123, 255, 130, .32); }
.g-no { background: rgba(255, 110, 110, .1); color: var(--g-danger); box-shadow: inset 0 0 0 1px rgba(255, 110, 110, .28); }
.g-partial { background: rgba(255, 180, 84, .12); color: var(--g-warn); box-shadow: inset 0 0 0 1px rgba(255, 180, 84, .3); }
.g-yes svg,
.g-no svg,
.g-partial svg { width: 15px; height: 15px; }

/* Scroll wrapper so the wide table never breaks layout */
.g-matrix__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(22, 22, 31, .9), rgba(16, 16, 24, .9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.g-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.g-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px 20px;
  text-align: center;
  vertical-align: bottom;
  background: rgba(13, 13, 19, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-display);
}
.g-table thead th:first-child { text-align: left; }
.g-col-head__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.25;
}
.g-col-head__tag {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
}
/* The Wise Apple column — one continuous highlighted "spotlight" */
.g-col--us { position: relative; }
/* Header: top-weighted glow, framed on top + sides */
.g-table thead th.g-col--us {
  background: linear-gradient(180deg, rgba(123, 255, 130, .22), rgba(123, 255, 130, .06)) !important;
  box-shadow:
    inset 2px 0 0 var(--g-edge),
    inset -2px 0 0 var(--g-edge),
    inset 0 2px 0 var(--g-edge);
}
/* Body cells: flat, even tint so the column reads uniform top-to-bottom */
.g-table tbody td.g-col--us {
  background: rgba(123, 255, 130, .07) !important;
  box-shadow:
    inset 2px 0 0 var(--g-edge),
    inset -2px 0 0 var(--g-edge);
}
/* Close the frame on the final cell */
.g-table tbody tr:last-child td.g-col--us {
  box-shadow:
    inset 2px 0 0 var(--g-edge),
    inset -2px 0 0 var(--g-edge),
    inset 0 -2px 0 var(--g-edge);
}
.g-col--us .g-col-head__name {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}
.g-col--us .g-col-head__tag { color: var(--accent-2); }
/* Emphasize the winning check so the eye tracks down the column */
.g-col--us .g-yes {
  width: 30px;
  height: 30px;
  box-shadow: inset 0 0 0 1px rgba(123, 255, 130, .45), 0 0 16px rgba(123, 255, 130, .22);
}
.g-col--us .g-yes svg { width: 16px; height: 16px; }
.g-col-head__crown {
  display: inline-block;
  margin-bottom: 6px;
}
.g-col-head__crown img { width: 30px; height: 30px; margin: 0 auto; }

.g-table tbody td {
  padding: 18px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  transition: background var(--t-fast) var(--ease);
}
.g-table tbody tr:last-child td { border-bottom: none; }
/* Zebra striping so the eye holds a row across all five columns */
.g-table tbody tr:nth-child(odd) td { background: var(--g-stripe); }
.g-table tbody tr:hover td { background: rgba(255, 255, 255, .05); }
.g-table tbody td.g-col--us { vertical-align: middle; }

.g-row-label {
  text-align: left !important;
  max-width: 320px;
}
.g-row-label strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.3;
}
.g-row-label small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .5);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 400;
}
.g-cell-note {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .52);
  line-height: 1.3;
}
.g-col--us .g-cell-note { color: var(--accent-2); }

/* Bundle / "5 of 5" summary callout under the table */
.g-bundle {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: center;
  padding: 30px 32px;
  border-radius: var(--r-xl);
  border: 1px solid var(--accent-mid);
  background:
    radial-gradient(circle at 0% 0%, rgba(123, 255, 130, .1), transparent 55%),
    rgba(22, 22, 31, .7);
}
.g-bundle__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.5px;
}
.g-bundle__desc {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
}
.g-bundle__five {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.g-bundle__pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  background: rgba(123, 255, 130, .07);
  border: 1px solid var(--accent-dim);
  font-size: 14.5px;
  font-weight: 500;
}
.g-bundle__pill .g-yes { width: 24px; height: 24px; }
.g-bundle__pill .g-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

.g-table-disclaimer {
  margin: 18px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-3);
}

/* ════════════════════════════════════════════
   PROBLEM FRAMING (two cards)
════════════════════════════════════════════ */
.g-problem { padding-top: var(--section-pad); padding-bottom: 0; }
.g-problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.g-pcard {
  padding: 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
}
.g-pcard__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.g-pcard__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 180, 84, .1);
  color: var(--g-warn);
  flex: none;
}
.g-pcard__icon svg { width: 24px; height: 24px; }
.g-pcard__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}
.g-pcard__body { color: var(--text-2); font-size: 15px; line-height: 1.65; }
.g-pcard__body strong { color: var(--text); }
.g-pcard__resolve {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text);
}
.g-pcard__resolve svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }

/* ════════════════════════════════════════════
   METERING CONTRAST (data vs compute)
════════════════════════════════════════════ */
.g-meter { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.g-meter__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}
.g-mcard {
  position: relative;
  padding: 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
}
.g-mcard--them { opacity: .96; }
.g-mcard--us {
  border-color: var(--accent-mid);
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 255, 130, .1), transparent 55%),
    var(--bg-card);
}
.g-mcard__tag {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.g-mcard--us .g-mcard__tag { color: var(--accent); }
.g-mcard__h {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.g-mcard__list { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.g-mcard__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.g-mcard__list svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.g-mcard--them .g-mcard__list svg { color: var(--g-danger); }
.g-mcard--us .g-mcard__list svg { color: var(--accent); }
.g-mcard--us .g-mcard__list li { color: var(--text); }
.g-meter__line {
  text-align: center;
  max-width: 720px;
  margin: 28px auto 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.g-meter__line .gradient-text { font-weight: 700; }

/* ════════════════════════════════════════════
   PRODUCT PROOF (build → train → report)
════════════════════════════════════════════ */
.g-proof { padding-top: 0; padding-bottom: var(--section-pad); }
.g-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.g-flowcard {
  position: relative;
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  overflow: hidden;
}
.g-flowcard__img {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  aspect-ratio: 16 / 10;
  background: #0d0d13;
}
.g-flowcard__img img { width: 100%; height: 100%; object-fit: cover; }
.g-flowcard__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .12em;
}
.g-flowcard__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}
.g-flowcard__desc { margin-top: 9px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

.g-guardrails {
  margin-top: 24px;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .02);
}
.g-guardrails__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.g-guardrails__head svg { width: 22px; height: 22px; color: var(--accent); }
.g-guardrails__head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.g-guardrails__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 26px;
}
.g-guardrails__grid li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.g-guardrails__grid svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 2px; }
.g-guardrails__grid strong { color: var(--text); font-weight: 600; }

/* ════════════════════════════════════════════
   PRICING (data-metered ladder)
════════════════════════════════════════════ */
.g-pricing { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.g-pricing__note {
  text-align: center;
  margin: -28px auto 40px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
}
.g-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
.g-tier {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
}
.g-tier--featured {
  border-color: var(--accent-mid);
  background:
    radial-gradient(circle at 50% 0%, rgba(123, 255, 130, .1), transparent 60%),
    var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 24px 60px rgba(0, 0, 0, .4);
}
.g-tier__badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #0a0a0f;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.g-tier__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.g-tier__price { display: flex; align-items: baseline; gap: 5px; margin-top: 10px; }
.g-tier__amount {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
}
.g-tier__period { color: var(--text-3); font-size: 15px; }
.g-tier__annual {
  margin-top: 6px;
  font-size: 13px;
  color: var(--g-faint);
  min-height: 18px;
}
.g-tier__data {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-2);
}
.g-tier__data strong { color: var(--accent); font-weight: 600; }
.g-tier__features {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.g-tier__features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.g-tier__features svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 2px; }
.g-tier__cta { margin-top: 22px; }

.g-pricing__caption {
  text-align: center;
  margin: 30px auto 0;
  max-width: 600px;
  font-size: 14.5px;
  color: var(--text-2);
}
.g-pricing__caption strong { color: var(--text); }

/* ════════════════════════════════════════════
   FAQ
════════════════════════════════════════════ */
.g-faq { padding-top: 0; padding-bottom: var(--section-pad); }
.g-faq__list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.g-faq__item {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg-card);
  overflow: hidden;
}
.g-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
}
.g-faq__item summary::-webkit-details-marker { display: none; }
.g-faq__item summary .g-faq__chev {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform var(--t-fast) var(--ease);
}
.g-faq__item[open] summary .g-faq__chev { transform: rotate(180deg); }
.g-faq__answer {
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}
.g-faq__answer strong { color: var(--text); }

/* ════════════════════════════════════════════
   FINAL CTA
════════════════════════════════════════════ */
.g-final {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0;
  text-align: center;
  overflow: hidden;
}
.g-final__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(123, 255, 130, .14), transparent 60%);
  pointer-events: none;
}
.g-final .container { position: relative; z-index: 1; }
.g-final__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.g-final__desc {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--text-2);
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 1.6;
}
.g-final__actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.g-final__disclaimer {
  margin: 26px auto 0;
  max-width: 640px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-3);
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 980px) {
  .g-bundle { grid-template-columns: 1fr; }
  .g-meter__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .g-problem__grid { grid-template-columns: 1fr; }
  .g-flow { grid-template-columns: 1fr; }
  .g-tiers { grid-template-columns: 1fr; max-width: 460px; }
  .g-guardrails__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g-matrix__scroll {
    /* hint that the table scrolls horizontally on small screens */
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset -22px 0 18px -18px rgba(123, 255, 130, .25);
  }
  .g-table { font-size: 13px; min-width: 620px; }
  .g-table thead th,
  .g-table tbody td { padding: 13px 12px; }
  .g-bundle { padding: 24px; }
  .g-pcard,
  .g-mcard,
  .g-tier { padding: 24px; }
  .g-hero__actions .btn,
  .g-final__actions .btn { width: 100%; justify-content: center; }
}

/* A tiny "scroll →" hint shown only on narrow screens */
.g-scroll-hint {
  display: none;
  text-align: center;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--text-3);
}
.g-scroll-hint svg { width: 14px; height: 14px; vertical-align: -2px; }
@media (max-width: 760px) {
  .g-scroll-hint { display: block; }
}
