/* ============================================================
   AI Growth Intelligence — landing page + free analyser styles.
   Extends the shared tokens/components in styles.css (colors,
   .shell, .btn, .input, .nav, .footer, .section-heading, .chip).
   Everything new here is namespaced "gi-" to avoid any collision
   with the archived SmartSwipe-for-Travel-Agents page's ag-* CSS.

   Phase 3.1: redesigned for a scan-first, analyser-forward layout
   (lead-gated hero form, hidden-until-real-result results section,
   "your 3 next moves" as the strongest visual block, a shorter page).

   Phase 3.2: premium UI/UX pass — presentation only, no analysis
   content changed. This page now uses its own wider desktop
   container (.gi-shell, ~1400px) instead of the shared 1120px
   .shell, so results use the screen properly on large desktops
   without stretching prose edge to edge. The real result renders as
   an executive intelligence dashboard: a snapshot header, a 3-card
   "Intelligence" row, a 3-card "Your 3 next moves" row (the visual
   centerpiece), and a single grouped "Premium Intelligence" panel.
   The illustrative example is now a small compact preview, visually
   and structurally distinct from a real result.

   Motion here is restrained by design and is additionally hard-capped
   by the global `prefers-reduced-motion` rule in styles.css, which
   zeroes all transition/animation durations for every element.
   ============================================================ */

/* ---------- wide desktop container (this page only — does not
   touch the shared .shell/--shell-width used elsewhere on the site) ---------- */

.gi-shell {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .gi-shell { padding: 0 32px; }
}
@media (min-width: 1280px) {
  .gi-shell { padding: 0 48px; }
}

/* ---------- nav ---------- */

.gi-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.gi-nav-link {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: rgba(245, 242, 233, 0.75);
}
.gi-nav-link:hover { color: var(--cream-100); }
@media (min-width: 900px) {
  .gi-nav-link { display: inline-block; }
}

.gi-nav-cta-full { display: none; }
@media (min-width: 480px) {
  .gi-nav-cta-short { display: none; }
  .gi-nav-cta-full { display: inline; }
}

.gi-section { padding: 36px 0; }
/* Warm off-white — one of the three alternating surface treatments
   (deep navy / warm off-white / subtle tinted navy). Used on #example
   and #pricing so their white cards read as a deliberate layered
   surface rather than blending into the page's own light background. */
.gi-section--alt { background: var(--cream-100); }
/* Subtle tinted navy surface — the third alternating treatment, used on
   #areas. Built from the existing navy-900 token at low opacity rather
   than a new colour, so white cards sitting on it get real contrast
   instead of disappearing into the page background. */
.gi-section--tint { background: rgba(18, 22, 63, 0.045); }
/* Strong dark/navy section — used on #how ("From guesswork to
   evidence"). navy-950 (already an existing, previously-unused token)
   instead of the hero's navy-900 gives the two stacked dark sections a
   distinct tonal step, with thin gold hairlines marking the seam. */
.gi-section--dark {
  background: var(--navy-950);
  border-top: 1px solid rgba(231, 185, 76, 0.14);
  border-bottom: 1px solid rgba(231, 185, 76, 0.14);
}
.gi-section--dark .section-heading { color: var(--cream-100); }
.gi-section--dark .gi-section__kicker { color: var(--gold-300); }
.gi-section--dark .gi-section__lede { color: rgba(245, 242, 233, 0.75); }
.gi-section__kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-700);
  margin-bottom: 10px;
}
.gi-section__lede {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-700);
  max-width: 62ch;
}

/* ---------- stage kicker — a small numbered "chapter" marker reused at
   the top of each major section (hero, how-it-works, example, areas,
   pricing, unlock) so the existing section order visibly reads as one
   continuous progression: input → understand → competitors →
   opportunities → action → unlock. No new marketing copy, just a
   numeral plus 2-3 words already implied by that section's own
   heading/nav label. ---------- */
.gi-stage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-500);
  margin-bottom: 12px;
}
.gi-stage-kicker__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(18, 22, 63, 0.07);
  color: var(--navy-700);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
}
.gi-stage-kicker--on-dark { color: rgba(245, 242, 233, 0.55); }
.gi-stage-kicker--on-dark .gi-stage-kicker__num {
  background: rgba(231, 185, 76, 0.16);
  color: var(--gold-300);
}

/* ---------- ambient depth: soft, restrained radial glows layered behind
   the dark/navy surfaces (hero, #how, unlock section) — brand navy/gold
   tones only, at low opacity, never a loud multicolour gradient. Glass
   panels placed on these surfaces (backdrop-filter blur) pick up the
   glow behind them for genuine layered depth rather than a flat block
   of colour. ---------- */
.gi-hero,
.gi-section--dark,
.gi-lead-section {
  position: relative;
  overflow: hidden;
}
.gi-hero::before,
.gi-section--dark::before,
.gi-lead-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 75% at 10% -15%, rgba(231, 185, 76, 0.10), transparent 60%),
    radial-gradient(65% 85% at 108% 120%, rgba(56, 63, 130, 0.4), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.gi-hero > .gi-shell,
.gi-section--dark > .gi-shell,
.gi-lead-section > .gi-shell {
  position: relative;
  z-index: 1;
}

/* ---------- hero / lead-gated analyser ---------- */

.gi-hero {
  background: var(--navy-900);
  padding: 36px 0 40px;
}
.gi-hero__layout {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .gi-hero__layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }
}
.gi-hero__kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-300);
  margin-bottom: 14px;
}
.gi-hero__headline {
  font-size: clamp(28px, 5.6vw, 46px);
  font-weight: 700;
  color: var(--cream-100);
  max-width: 16ch;
}
.gi-hero__subhead {
  margin-top: 16px;
  font-size: 17px;
  color: rgba(245, 242, 233, 0.8);
  max-width: 46ch;
}

/* The analyser card reads as a tool, not a contact form: a primary,
   larger "search-style" URL row up top, then a visually quieter
   "your details" sub-panel for the lead-gate contact fields. */
.gi-analyser {
  background: rgba(27, 32, 80, 0.62);
  border: 1px solid rgba(245, 242, 233, 0.14);
  border-radius: 14px;
  padding: 20px;
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(5, 6, 20, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
@media (min-width: 900px) {
  .gi-analyser { max-width: none; padding: 24px; }
}

.gi-analyser__url-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
@media (min-width: 560px) {
  .gi-analyser__url-row { flex-direction: row; }
}
.gi-analyser__url-field { position: relative; flex: 1 1 auto; }
.gi-analyser__url-field .gi-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(245, 242, 233, 0.45);
  pointer-events: none;
}
.gi-analyser__url-field .input {
  padding-left: 42px;
  font-size: 17px;
  font-weight: 600;
  height: 52px;
}
.gi-analyser__select {
  min-width: 190px;
  height: 52px;
}
@media (min-width: 560px) {
  /* Desktop only: the website field is the primary input and should read
     as substantially wider than the business-type dropdown, so a full
     domain/URL stays practically readable as it's typed. min-width: 0
     lets the flex item actually shrink/grow within the row instead of
     being held to its content's intrinsic width (the classic flexbox
     overflow trap that left long URLs effectively hidden). The dropdown
     gets a small fixed width instead of an unbounded content-based one,
     so it never competes with the URL field for space. Mobile (below
     560px, where the row stacks into a column) is untouched. */
  .gi-analyser__url-field { flex: 1 1 0%; min-width: 0; }
  .gi-analyser__select { flex: 0 0 168px; width: 168px; min-width: 0; }
}

.gi-analyser__details {
  background: rgba(10, 12, 36, 0.35);
  border: 1px solid rgba(245, 242, 233, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 4px;
}
.gi-analyser__details-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(245, 242, 233, 0.45);
  margin-bottom: 10px;
}
.gi-analyser__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.gi-analyser__row:last-child { margin-bottom: 0; }
@media (min-width: 560px) {
  .gi-analyser__row { flex-direction: row; }
  .gi-analyser__row .input { flex: 1 1 auto; }
}
.gi-analyser__row--contact .input { flex: 1 1 50%; }
.gi-analyser__consent {
  flex-direction: row;
  align-items: flex-start;
  display: flex;
  gap: 8px;
  margin: 12px 0 14px;
}
.gi-analyser__consent label {
  font-size: 12.5px;
  color: rgba(245, 242, 233, 0.7);
  font-weight: 500;
}
.gi-analyser__consent input { margin-top: 3px; flex-shrink: 0; }
.gi-analyser__submit-row { margin-top: 2px; }
.gi-analyser__submit-row .btn { font-size: 16px; padding: 15px 22px; }
.gi-analyser__submit-row .btn:hover { box-shadow: 0 12px 32px rgba(231, 185, 76, 0.38); }

/* Restrained focus micro-interaction: a soft gold glow in addition to
   (never instead of) the existing border-color change, so focus stays
   at least as visible as before — see styles.css .input:focus. */
.gi-analyser .input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(231, 185, 76, 0.16);
}
.gi-analyser__microcopy {
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(245, 242, 233, 0.55);
}
.gi-analyser__status {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(245, 242, 233, 0.85);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 20px;
}
.gi-analyser__status--error { color: #F0A28C; font-weight: 600; }
.gi-analyser__status:empty { display: none; }

.gi-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(245, 242, 233, 0.25);
  border-top-color: var(--gold-500);
  animation: gi-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes gi-spin { to { transform: rotate(360deg); } }

/* ---------- results section (hidden until a real outcome exists) ---------- */

.gi-results {
  background: var(--bg-page);
  padding: 32px 0 8px;
  animation: gi-fade-in 0.4s ease;
}
@keyframes gi-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gi-dashboard {
  margin-top: 18px;
  display: grid;
  gap: 24px;
}

/* ---------- duplicate-domain banner (intentional, not an error) ---------- */

.gi-duplicate-banner {
  background: rgba(22, 179, 159, 0.1);
  border: 1px solid rgba(22, 179, 159, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.gi-duplicate-banner__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-500);
  color: var(--cream-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gi-duplicate-banner__icon .gi-icon { width: 19px; height: 19px; }
.gi-duplicate-banner__body { flex: 1 1 260px; }
.gi-duplicate-banner__heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 2px;
}
.gi-duplicate-banner__text {
  font-size: 14px;
  color: var(--ink-700);
  margin: 0;
}
.gi-duplicate-banner__cta { flex-shrink: 0; }

/* ---------- snapshot header (top of the dashboard) ---------- */

.gi-snapshot-summary {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(231, 185, 76, 0.12), transparent 60%),
    var(--navy-950);
  color: var(--cream-100);
  border-radius: 12px;
  border-left: 3px solid var(--gold-500);
  padding: 22px 26px;
  box-shadow: 0 18px 44px rgba(5, 6, 20, 0.28);
}
.gi-snapshot-summary__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(245, 242, 233, 0.55);
  margin-bottom: 10px;
}
.gi-snapshot-summary__line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gi-snapshot-summary__type {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
}
.gi-snapshot-summary__domain {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(245, 242, 233, 0.6);
}

/* ---------- result groups ("What we found" / "Your 3 next moves") ---------- */

.gi-result-group__heading {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 14px;
}

/* ---------- result cards (shared chrome) ---------- */

.gi-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 4px 18px rgba(18, 22, 63, 0.07);
}
.gi-card__heading {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 10px;
}
.gi-card__line { font-size: 15px; color: var(--ink-700); margin-bottom: 8px; }

.gi-icon { width: 20px; height: 20px; }

/* .chip (from styles.css) is styled for a dark hero background; result
   cards have a light background, so give chips inside them their own
   readable colors instead of the near-invisible light-on-light default. */
.gi-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.gi-chip-row .chip {
  cursor: default;
  color: rgba(245, 242, 233, 0.85);
  border-color: rgba(245, 242, 233, 0.25);
  background: transparent;
}
.gi-snapshot-summary .gi-chip-row .chip:hover { color: rgba(245, 242, 233, 0.85); border-color: rgba(245, 242, 233, 0.25); }

.gi-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.gi-badge--confirmed { background: rgba(22, 179, 159, 0.14); color: var(--teal-600); }
.gi-badge--strong-evidence { background: rgba(56, 63, 130, 0.12); color: var(--navy-700); }
.gi-badge--possible { background: rgba(231, 185, 76, 0.18); color: var(--gold-600); }
.gi-badge--unknown { background: var(--line); color: var(--ink-500); }
.gi-snapshot-summary .gi-badge--confirmed { background: rgba(22, 179, 159, 0.22); }
.gi-snapshot-summary .gi-badge--strong-evidence { background: rgba(255, 255, 255, 0.12); color: var(--cream-100); }
.gi-snapshot-summary .gi-badge--possible { background: rgba(231, 185, 76, 0.24); }
.gi-snapshot-summary .gi-badge--unknown { background: rgba(255, 255, 255, 0.14); color: rgba(245, 242, 233, 0.85); }

/* The illustrative preview console is also a dark surface — reuse the
   same light-on-dark badge treatment as the snapshot summary. */
.gi-preview .gi-badge--confirmed { background: rgba(22, 179, 159, 0.22); }
.gi-preview .gi-badge--strong-evidence { background: rgba(255, 255, 255, 0.12); color: var(--cream-100); }
.gi-preview .gi-badge--possible { background: rgba(231, 185, 76, 0.24); }
.gi-preview .gi-badge--unknown { background: rgba(255, 255, 255, 0.14); color: rgba(245, 242, 233, 0.85); }

/* ---------- ROW 1: Intelligence (Website / Competitor / Growth) ---------- */

.gi-intel-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .gi-intel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gi-intel-grid { grid-template-columns: repeat(3, 1fr); }
}
.gi-intel-card {
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gi-intel-card:hover { border-color: var(--navy-600); box-shadow: var(--shadow-sm); }
.gi-intel-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.gi-intel-card__head .gi-icon { color: var(--navy-700); flex-shrink: 0; }
.gi-intel-card__head .gi-card__heading { margin-bottom: 0; }
.gi-intel-card__empty { font-size: 14px; color: var(--ink-500); }
.gi-intel-card__competitors { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.gi-finding { display: grid; gap: 10px; }
/* Clamp the primary finding text so nothing displays as a wall of
   paragraph text by default (Phase 3.2 "Do not display long paragraphs
   by default") — the full text is still in the DOM, only its visible
   height is limited; deeper detail/sources sit behind the disclosure. */
.gi-finding__text {
  font-size: 15px;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gi-finding__meta { display: flex; gap: 8px; }
.gi-finding__evidence summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-700);
}
.gi-finding__evidence summary:hover { color: var(--navy-900); }
.gi-finding__sources { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.gi-finding__sources a { font-size: 13px; color: var(--navy-700); text-decoration: underline; word-break: break-all; }
.gi-finding__captured { margin-top: 6px; font-size: 12px; color: var(--ink-500); }
.gi-finding__evidence[open] summary ~ * { animation: gi-fade-in 0.25s ease; }

.gi-competitors__unavailable { font-size: 13.5px; color: var(--ink-500); }
.gi-competitors__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gi-competitors__item { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.gi-competitors__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gi-competitors__name a { text-decoration: underline; color: var(--navy-700); }
.gi-competitors__why { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-500); }

/* ---------- ROW 2: "Your 3 next moves" — the visual centerpiece ---------- */

.gi-result-group--moves { margin-top: 4px; }
.gi-moves-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .gi-moves-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gi-moves-grid { grid-template-columns: repeat(3, 1fr); }
}
.gi-actions__empty { color: var(--ink-500); font-size: 14px; padding: 10px; }

.gi-move-card {
  position: relative;
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.gi-move-card:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.gi-move-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--gold-600);
  background: var(--navy-900);
  color: var(--gold-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 4px;
}
.gi-move-card__title { font-size: 16.5px; margin: 0; }
.gi-move-card__outcome { color: var(--ink-700); font-size: 14.5px; margin: 0; }
.gi-move-card .gi-badge { align-self: flex-start; margin-top: 2px; }
.gi-actions__evidence { margin-top: 8px; }
.gi-actions__evidence summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-700);
}
.gi-actions__evidence summary:hover { color: var(--navy-900); }
.gi-actions__evidence[open] summary ~ * { animation: gi-fade-in 0.25s ease; }
.gi-actions__why { color: var(--ink-500); font-size: 13.5px; margin: 8px 0 6px; }

.gi-partial-notice {
  background: rgba(231, 185, 76, 0.14);
  border: 1px solid rgba(231, 185, 76, 0.4);
  color: var(--gold-600);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

/* ---------- ROW 3: Premium Intelligence panel ---------- */

.gi-card--locked {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 100% -10%, rgba(231, 185, 76, 0.14), transparent 60%),
    radial-gradient(70% 100% at -10% 120%, rgba(56, 63, 130, 0.4), transparent 65%),
    var(--navy-950);
  border-color: var(--navy-950);
  color: var(--cream-100);
  padding: 24px 24px 20px;
  box-shadow: 0 24px 56px rgba(5, 6, 20, 0.32);
}
.gi-card--locked > * { position: relative; z-index: 1; }
.gi-premium-panel__head .gi-card__heading { color: var(--cream-100); }
.gi-premium-panel__head .gi-card__line { color: rgba(245, 242, 233, 0.65); margin-bottom: 0; }

.gi-premium-groups {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .gi-premium-groups { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.gi-premium-group {
  background: rgba(245, 242, 233, 0.055);
  border: 1px solid rgba(245, 242, 233, 0.13);
  border-radius: 10px;
  padding: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.gi-premium-group__name {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-300);
  margin-bottom: 10px;
}
.gi-premium-group__items { display: grid; gap: 8px; }
.gi-locked-card {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: rgba(10, 12, 36, 0.45);
  border: 1px solid rgba(245, 242, 233, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  color: rgba(245, 242, 233, 0.9);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.gi-locked-card:hover {
  border-color: var(--gold-500);
  background: rgba(231, 185, 76, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(231, 185, 76, 0.14);
}
.gi-locked-card .gi-icon { color: var(--gold-300); flex-shrink: 0; width: 16px; height: 16px; }
.gi-locked-card__label { font-weight: 600; font-size: 13.5px; }
.gi-locked-cta { margin-top: 20px; }

/* ---------- ROW 2.5: genuine opportunities (Product / Source-Market / B2B) ---------- */

.gi-opportunity-card__body { font-size: 13.5px; color: var(--ink-500); margin: -4px 0 0; }

.gi-opportunity-cta {
  margin-top: 16px;
  padding: 20px 22px 18px;
}
.gi-opportunity-cta__teaser {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-300);
  margin-bottom: 10px;
}
.gi-opportunity-cta__teaser .gi-icon { width: 15px; height: 15px; flex-shrink: 0; }
.gi-opportunity-cta__line {
  font-size: 14px;
  color: rgba(245, 242, 233, 0.75);
  margin: 0 0 14px;
  max-width: 56ch;
}
.gi-opportunity-cta__btn { width: auto; }

/* ---------- concise value explanation ---------- */

.gi-value-grid {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .gi-value-grid { grid-template-columns: repeat(3, 1fr); }
}
.gi-value-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.gi-value-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--navy-900);
  color: var(--cream-100);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}
.gi-value-card h3 { font-size: 17px; margin-bottom: 7px; }
.gi-value-card p { font-size: 14.5px; color: var(--ink-700); }

/* Restyled for the #how section's strong dark/navy treatment
   (.gi-section--dark): translucent-on-navy panels with gold-accented
   step numbers instead of white boxes, so the 3 steps read as a
   professional process, not generic cards. */
.gi-section--dark .gi-value-card {
  background: rgba(245, 242, 233, 0.055);
  border-color: rgba(245, 242, 233, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.gi-section--dark .gi-value-card:hover {
  border-color: rgba(231, 185, 76, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(5, 6, 20, 0.3);
}
.gi-section--dark .gi-value-card__num {
  background: rgba(231, 185, 76, 0.16);
  color: var(--gold-300);
}
.gi-section--dark .gi-value-card h3 { color: var(--cream-100); }
.gi-section--dark .gi-value-card p { color: rgba(245, 242, 233, 0.7); }

/* ---------- product areas: four core opportunity categories ----------
   4 equal cards (Competitors / Tours / Markets / Partners) on a simple
   even track. Previously a 7-card bento grid with feature/capstone
   tiles (see git history) — reduced to 4 even cards for the
   Competitors+Tours+Markets+Partners positioning, so the
   --feature/--capstone span rules and nth-child overrides that grid
   needed no longer apply. Mobile/tablet fall back to a simple
   1/2-column stack — no spans, clean collapse. */

.gi-areas-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .gi-areas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gi-areas-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.gi-area-card {
  display: flex;
  flex-direction: column;
  /* Without this, flex's default align-items: stretch would make the
     small .gi-area-card__num badge stretch to the full card width — it
     must stay content-sized. The heading/paragraph live in their own
     .gi-area-card__body wrapper (width: 100%, set below) rather than
     relying on stretch, so the layout doesn't depend on flex defaults. */
  align-items: flex-start;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(18, 22, 63, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.gi-area-card:hover { border-color: var(--gold-500); box-shadow: 0 10px 28px rgba(18, 22, 63, 0.12); transform: translateY(-2px); }
.gi-area-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(18, 22, 63, 0.08);
  color: var(--navy-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.gi-area-card__body { width: 100%; }
.gi-area-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.gi-area-card p { font-size: 13.5px; color: var(--ink-500); }

/* Feature tile (card 1, "Sales Opportunities") — the primary revenue
   category, promoted to a large dark glass tile at desktop widths. */
.gi-area-card--feature {
  position: relative;
  overflow: hidden;
  justify-content: center;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(231, 185, 76, 0.16), transparent 60%),
    var(--navy-950);
  border-color: var(--navy-950);
  box-shadow: 0 20px 48px rgba(5, 6, 20, 0.3);
}
.gi-area-card--feature > * { position: relative; z-index: 1; }
.gi-area-card--feature .gi-area-card__num {
  background: rgba(231, 185, 76, 0.18);
  color: var(--gold-300);
}
.gi-area-card--feature h3 { color: var(--cream-100); font-size: 19px; }
.gi-area-card--feature p { color: rgba(245, 242, 233, 0.72); font-size: 14.5px; max-width: 32ch; }
.gi-area-card--feature:hover { border-color: var(--gold-500); }

/* Capstone tile (card 7, "Action Center") — closes the grid as a wide
   gold-accented banner, the visual hand-off into "take action". Row
   layout: badge on the left, heading+paragraph stacked in the body
   column to its right. */
.gi-area-card--capstone {
  position: relative;
  overflow: hidden;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background:
    radial-gradient(50% 160% at 100% 50%, rgba(231, 185, 76, 0.14), transparent 65%),
    var(--navy-950);
  border-color: var(--gold-500);
  border-width: 1.5px;
}
.gi-area-card--capstone > * { position: relative; z-index: 1; }
.gi-area-card--capstone .gi-area-card__num {
  background: rgba(231, 185, 76, 0.2);
  color: var(--gold-300);
  flex-shrink: 0;
  margin-bottom: 0;
}
.gi-area-card--capstone .gi-area-card__body { width: auto; flex: 1 1 auto; }
.gi-area-card--capstone h3 { color: var(--cream-100); margin-bottom: 2px; }
.gi-area-card--capstone p { color: rgba(245, 242, 233, 0.72); }
.gi-area-card--capstone:hover { box-shadow: var(--shadow-gold); }

/* ---------- illustrative example: small compact preview, deliberately
   NOT a full dashboard clone, so it can never be mistaken for a real
   result. Hidden outright once a real result exists (see
   hideMarketingSections() in growth-analyser.js). ---------- */

.gi-example { padding-top: 26px; padding-bottom: 26px; }

/* Asymmetric two-column composition — a narrow intro column beside the
   wide intelligence-console preview, so the strongest demonstration of
   the product gets the most screen space (spec item C). Mobile stacks
   to a single column. */
.gi-example__layout {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .gi-example__layout {
    grid-template-columns: minmax(240px, 320px) 1fr;
    align-items: start;
    gap: 40px;
  }
  .gi-example__intro { padding-top: 6px; }
}
.gi-example-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(231, 185, 76, 0.16);
  color: var(--gold-600);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.gi-example__heading { font-size: clamp(19px, 3vw, 24px); }

/* Intelligence-console treatment: the illustrative preview moves onto a
   dark glass surface (same navy-950 + restrained glow system used across
   the page) so it reads as a compact report panel — not another white
   card — and visually anchors the "strongest demonstration" section. */
.gi-preview {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background:
    radial-gradient(70% 120% at 100% -10%, rgba(231, 185, 76, 0.12), transparent 60%),
    radial-gradient(80% 130% at -10% 115%, rgba(56, 63, 130, 0.38), transparent 65%),
    var(--navy-950);
  border: 1px solid rgba(245, 242, 233, 0.12);
  border-radius: 16px;
  padding: 22px 24px 24px;
  box-shadow: 0 28px 64px rgba(5, 6, 20, 0.32);
}
.gi-preview > * { position: relative; z-index: 1; }
/* Strong header + a clear rule underneath, so the panel reads as a
   compact intelligence/report panel rather than a generic card — see
   spec item 4 "Illustrative Growth Snapshot". */
.gi-preview__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 242, 233, 0.14);
}
.gi-preview__type { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--cream-100); }
/* Website / Competitor / Growth — a small bento row: each category gets
   its own glass tile with a distinct restrained accent colour (fixed
   DOM order in renderIllustrativePreview), for clear separation between
   Website Intelligence / Competitor Intelligence / Growth Opportunity. */
.gi-preview__rows { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 640px) {
  .gi-preview__rows { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
.gi-preview__row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: rgba(245, 242, 233, 0.9);
  font-weight: 600;
  background: rgba(245, 242, 233, 0.055);
  border: 1px solid rgba(245, 242, 233, 0.12);
  border-left: 3px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.gi-preview__row:hover { transform: translateY(-1px); background: rgba(245, 242, 233, 0.09); }
/* Website / Competitor / Growth — a distinct restrained accent per
   category. */
.gi-preview__row:nth-child(1) { border-left-color: var(--teal-500); }
.gi-preview__row:nth-child(2) { border-left-color: var(--navy-600); }
.gi-preview__row:nth-child(3) { border-left-color: var(--gold-500); }
.gi-preview__row .gi-icon { width: 15px; height: 15px; color: var(--gold-300); flex-shrink: 0; }
/* Recommended actions — its own labeled panel, visually distinct from
   the three intelligence tiles above, closing the console with the
   "what to do next" beat. */
.gi-preview__moves {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px 14px 4px;
  border-top: 1px solid rgba(245, 242, 233, 0.14);
}
@media (min-width: 640px) {
  .gi-preview__moves { flex-direction: row; gap: 16px; padding: 16px 16px 4px; }
  .gi-preview__move { flex: 1 1 0; }
}
.gi-preview__move {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(245, 242, 233, 0.82);
  padding-left: 14px;
  border-left: 2px solid rgba(231, 185, 76, 0.4);
}
.gi-preview__cta { width: 100%; justify-content: center; }
@media (min-width: 640px) {
  .gi-preview__cta { width: auto; }
}
/* Dark-glass context: .btn--ghost-dark is otherwise styled for a light
   card background (see the pricing section below) — inside the preview
   console it needs the light-on-dark treatment instead. */
.gi-preview .btn--ghost-dark {
  background: transparent;
  color: var(--cream-100);
  border: 1.5px solid rgba(245, 242, 233, 0.3);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.gi-preview .btn--ghost-dark:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
  transform: translateX(2px);
}

/* ---------- pricing ---------- */

/* Premium hierarchy through material, not just a border: Monitor and
   Revenue sit as clean light cards, while Grow — the recommended tier —
   is promoted to its own dark navy glass panel with a gold glow, so it
   visually outranks its neighbours rather than merely being outlined. */
.gi-pricing-grid {
  margin-top: 26px;
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .gi-pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: center; }
}
.gi-pricing-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(18, 22, 63, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(18, 22, 63, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.gi-pricing-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(18, 22, 63, 0.12); }
.gi-pricing-card--recommended {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% -10%, rgba(231, 185, 76, 0.16), transparent 60%),
    radial-gradient(90% 130% at -10% 115%, rgba(56, 63, 130, 0.4), transparent 65%),
    var(--navy-950);
  border: 1.5px solid var(--gold-500);
  box-shadow: 0 26px 60px rgba(5, 6, 20, 0.35), var(--shadow-gold);
  padding: 30px 24px;
}
@media (min-width: 900px) {
  /* Raised without a horizontal-risk transform: scale — a vertical-only
     negative margin lifts it above its neighbours (never affects
     document.scrollWidth, only vertical layout). */
  .gi-pricing-card--recommended { margin: -16px 0; z-index: 1; }
  .gi-pricing-card--recommended:hover { transform: translateY(-3px); }
}
.gi-pricing-card--recommended > * { position: relative; z-index: 1; }
.gi-pricing-card__tag {
  position: absolute;
  top: -12px; left: 20px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.gi-pricing-card__name { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.gi-pricing-card--recommended .gi-pricing-card__name { color: var(--cream-100); }
.gi-pricing-card__price { font-size: 30px; font-weight: 700; color: var(--navy-900); }
.gi-pricing-card__price span { font-size: 14px; font-weight: 500; color: var(--ink-500); }
.gi-pricing-card--recommended .gi-pricing-card__price { color: var(--cream-100); }
.gi-pricing-card--recommended .gi-pricing-card__price span { color: rgba(245, 242, 233, 0.6); }
.gi-pricing-card__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.gi-pricing-card__features li { font-size: 14px; color: var(--ink-700); padding-left: 20px; position: relative; }
.gi-pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-600);
  font-weight: 700;
}
.gi-pricing-card--recommended .gi-pricing-card__features li { color: rgba(245, 242, 233, 0.85); }
.gi-pricing-card--recommended .gi-pricing-card__features li::before { color: var(--gold-300); }

/* .btn--ghost-dark has no rule of its own in styles.css (it previously
   relied on an inline style) — define it properly here for the light
   pricing cards; see .gi-preview .btn--ghost-dark above for the dark-
   surface variant used inside the intelligence-console preview. */
.gi-pricing-card .btn--ghost-dark {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid rgba(18, 22, 63, 0.16);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.gi-pricing-card .btn--ghost-dark:hover {
  border-color: var(--gold-500);
  background: rgba(231, 185, 76, 0.08);
  transform: translateY(-1px);
}

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

.gi-faq { margin-top: 22px; display: grid; gap: 10px; }
.gi-faq details {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  transition: border-color 0.15s ease;
}
.gi-faq details:hover { border-color: var(--navy-600); }
.gi-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-900);
}
.gi-faq p { margin-top: 10px; font-size: 14.5px; color: var(--ink-700); }

/* ---------- lead form ---------- */

.gi-lead-section {
  background: var(--navy-900);
  padding: 44px 0;
  border-top: 1px solid rgba(231, 185, 76, 0.14);
}
/* Previously inline styles on the kicker/lede — moved here so the
   dark-surface colour treatment lives with the rest of the design
   system instead of per-element style attributes. */
.gi-lead-section .gi-section__kicker { color: var(--gold-300); }
.gi-lead-section .gi-section__lede { color: rgba(245, 242, 233, 0.75); }
.gi-lead-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  background: rgba(245, 242, 233, 0.045);
  border: 1px solid rgba(245, 242, 233, 0.1);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
@media (min-width: 720px) {
  .gi-lead-grid { grid-template-columns: repeat(2, 1fr); }
  .gi-field--full { grid-column: 1 / -1; }
}
.gi-field { display: grid; gap: 6px; }

/* Equal-specificity `.gi-field` vs. the UA `[hidden]` rule means source
   order decides, and this stylesheet loads after the UA sheet — without
   this, toggling `hidden` on a `.gi-field` (e.g. #giLeadDomainField,
   revealed only when a visitor's domain can't be auto-derived — see
   growth-analyser.js's openLeadSection) would silently stay visually
   `display: grid` instead of actually hiding. */
.gi-field[hidden] { display: none; }
.gi-field label { font-size: 13.5px; font-weight: 600; color: rgba(245, 242, 233, 0.85); }
.gi-field--checkbox { flex-direction: row; align-items: center; display: flex; gap: 8px; }
.gi-field--checkbox label { font-weight: 500; font-size: 13.5px; }
.gi-lead-errors { color: #F0A28C; font-size: 13.5px; min-height: 18px; }
.gi-lead-status { color: var(--teal-500); font-size: 14px; font-weight: 600; min-height: 18px; }
.gi-lead-submit-row { margin-top: 6px; }

/* ---------- large screens: give the wider .gi-shell room to breathe
   without leaving the old excessive edge whitespace ---------- */

@media (min-width: 1024px) {
  .gi-hero { padding: 52px 0 56px; }
  .gi-section { padding: 56px 0; }
  .gi-example { padding-top: 44px; padding-bottom: 44px; }
  .gi-card { padding: 22px 24px; }
  .gi-card--locked { padding: 26px 26px 22px; }
}

/* ---------- reduced motion (defense in depth — styles.css already
   zeroes all transition/animation durations globally) ---------- */
@media (prefers-reduced-motion: reduce) {
  .gi-results { animation: none; }
  .gi-finding__evidence[open] summary ~ *,
  .gi-actions__evidence[open] summary ~ * { animation: none; }
  .gi-move-card:hover,
  .gi-area-card:hover,
  .gi-area-card--feature:hover,
  .gi-area-card--capstone:hover,
  .gi-pricing-card:hover,
  .gi-pricing-card--recommended:hover,
  .gi-locked-card:hover,
  .gi-preview__row:hover,
  .gi-preview .btn--ghost-dark:hover,
  .gi-section--dark .gi-value-card:hover { transform: none; }
}
