/* ===========================================================
   1. Design Tokens / Root Variables
   =========================================================== */

:root {
  --brand: #6429B7;
  --bg: #FBFAF8;
  --ink: #1A1A1A;
  --muted: #777;

  --pill: #F5F4F8;
  --pill-hover: #EBE6F7;

  --card: #FFFFFF;
  --border: #E8E2F9;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);

  --sticky-h: 64px;        /* compact header height */
  --sticky-gap: 48px;      /* breathing room below header */

  /* Extended tokens for premium AA results */
  --brand-ink: #3F2A7E;
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.04);
  --radius-outer: 12px;
  --radius-inner: 8px;
  --radius-pill: 999px;
  --gutter: 20px;
  --gutter-lg: 28px;
  --maxw: 980px;
  --accent: rgba(100, 41, 183, 0.15);
}

/* ===========================================================
   2. Global Reset & Base Typography
   =========================================================== */

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  max-width: 1180px;
  margin: 0 auto;
}

/* ===========================================================
   3. Global Brand / Header / Navigation
   =========================================================== */

/* --- Brand Wordmark Optimization --- */
.brand {
  text-decoration: none;
}

/* Primary brand styling (base view) */
.brand {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 42px);
  letter-spacing: -0.4px;
  color: var(--brand);
}

.brand, .brand .dot {
  color: #6429B7;
}

.brand .dot {
  margin-left: -1.5px;        /* pull the period closer to the 'e' */
  letter-spacing: -0.2px;     /* tighten internal spacing of .ai */
  display: inline-block;      /* ensures margin works cleanly */
}

.dot { color: var(--brand); }

/* ---------- Header ---------- */
.header {
  max-width: 940px;
  margin: 56px auto 12px;    /* tighter top & less bottom gap */
  padding: 0 20px 0 48px;    /* only left pad header */
  text-align: left;
}

/* Header-specific brand sizing (desktop) */
.brand {
  font-size: 40px;
  color: var(--brand);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}


.subtitle {
  color: #444;
  margin-top: 8px;
  margin-bottom: 24px; /* adds rhythm before stepper */
  font-size: 16px;
  line-height: 1.4;
}

/* ---------- Top Nav (About / Use Case Generator / Agent Architect) ---------- */
.logo-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-nav .nav-link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 6px;
  transition: 0.18s ease;
}

.top-nav .nav-link:hover {
  color: var(--brand);
  opacity: 0.8;
}

.nav-link.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-link.disabled:hover {
  opacity: 0.45; /* no hover change for disabled link */
}

/* Premium active nav style */
.nav-link.active {
  position: relative;
  color: var(--brand);    /* Purple */
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background-color: var(--brand);
  border-radius: 2px;
  opacity: 0.9;
}

/* Unified Premium Navigation — Apple/Stripe polish */
.header,
.gu-header {
  border-radius: 14px;
  position: relative;
}

.header::before,
.gu-header::before {
  content: "";
  position: absolute;
  inset: -16px 0 auto 0;
  height: 48px;
  background: linear-gradient(90deg, #6429B7 0%, #A074FF 100%);
  opacity: 0.05;
  filter: blur(20px);
  z-index: -1;
  border-radius: 18px;
}

/* ---------- Layout Shell (Unified with Agent Architect) ---------- */
.main {
  max-width: var(--maxw);       /* matches gu-wrap */
  margin: 0 auto;
  padding: 24px 20px;           /* same padding as AA */
  box-sizing: border-box;
}

/* Make stepper + question align perfectly with brand baseline */
.main .stepper,
.main section.step-pane {
  padding-left: 0;
  margin-left: 0;
}

/* ---------- Use Case Generator: Premium White Card Wrapper ---------- */
.ucg-pane {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(15,23,42,0.08);
  border: 1px solid rgba(100, 41, 183, 0.05);
  padding: 32px 28px 40px;
  margin-top: 20px;
}



/* ===========================================================
   4. About Page Styles
   =========================================================== */

.about-container {
  max-width: 760px;
  margin: 56px auto;
  padding: 0 24px;
  font-size: 16px;
  line-height: 1.6;
}

.about-container h2 {
  font-size: 26px;
  margin-bottom: 12px;
  font-weight: 700;
}

/* About Page Mobile Fix (Left-align text) */
@media (max-width: 600px) {
  .about-container,
  .about-container p,
  .about-container ul,
  .about-container li {
    text-align: left !important;
  }
}

.about-container hr {
  border: none;
  border-top: 1px solid rgba(100, 41, 183, 0.12); /* subtle GoodUse.ai purple */
  margin: 32px 0; /* clean vertical rhythm */
}

.about-container {
  padding-bottom: 64px; /* or 80px if you want even more breathing room */
}

/* ===========================================================
   5. Use Case Generator — Stepper, Questions, Pills, Buttons
   =========================================================== */

/* ---------- Stepper ---------- */
.stepper {
  display: flex;
  gap: 10px;
  align-items: center;
  letter-spacing: 0.1px;
  margin-top: 4px;           /* tighter spacing below subtitle */
  margin-bottom: 28px;       /* reduce vertical gap */
  flex-wrap: wrap;
  justify-content: flex-start;
  font-size: 12.5px;
}

/* Center stepper alignment override */
.main .stepper {
  justify-content: center !important;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 100%;
}

.main .stepper .step {
  justify-content: center;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F4EFFD;
  border: 1px solid var(--border);
  color: #5930A3;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0.7;
  transition: 0.2s ease;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E8DBFF;
  color: #40237E;
  font-weight: 700;
}

.step.is-active {
  opacity: 1;
  box-shadow: 0 4px 12px rgba(100, 41, 183, 0.1);
  background: #E9E0FF;
  transform: translateY(-1px);
}

/* ---------- Question & Instructions ---------- */
section.step-pane {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px; /* remove left bias */
  box-sizing: border-box;
  text-align: center;
}

section.step-pane .question,
section.step-pane .instruction {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.question {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  text-align: left;
}

.instruction {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 24px; /* tighter visual rhythm */
  text-align: left;
  max-width: 700px;
}

.subtle-header {
  font-size: 15px;
  color: var(--muted);
  margin: 10px 0 16px;
  font-weight: 500;
  text-align: left;
}

/* ---------- Pills ---------- */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  row-gap: 16px; /* more vertical space between rows */
  column-gap: 12px;
  justify-content: center;
  margin: 8px auto 28px;
  max-width: 880px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pill {
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--pill);
  border: 1px solid #E6E6E6;
  font-size: 14px;
  cursor: pointer;
  transition: 0.18s ease;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--ink);
  min-width: 160px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.02);
}

.pill:hover {
  background: var(--pill-hover);
  transform: translateY(-1px);
}

.pill.selected {
  background: var(--brand);
  color: #FFF;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hint {
  font-size: 12px;
  color: #666;
  font-weight: 400;
  margin-top: 3px;
}

.pill.selected .hint {
  color: #FFF;
  opacity: 0.9;
}

/* ---------- Not Sure Block ---------- */
.not-sure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 1rem;
  width: 100%;
}

.pill.ghost {
  background: none;
  border: 1px dashed #C7B8E9;
  color: #5D4CA4;
}

.examples {
  max-width: 520px;
  margin: 1rem auto 0;
  font-size: 14px;
  line-height: 1.45;
  color: #444;
  background: #F9F7FE;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: left;
  align-self: center;
}

.hidden { display: none; }

/* ---------- Buttons ---------- */
.btn {
  background: var(--brand);
  color: #FFF;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow: var(--shadow);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:hover:not(:disabled) {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.btn.ghost {
  background: #EFE9FF;
  color: #3F2A7E;
  box-shadow: none;
  border: 1px solid var(--border);
}

.btn.link {
  background: #FFF;
  color: #3F2A7E;
  border: 1px solid var(--border);
}

.nav-row {
  display: flex;
  gap: 10px;
  justify-content: center; /* centered for visual balance */
  margin-top: 16px;
}

/* ---------- Step Panes Visibility ---------- */
.step-pane {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.step-pane.is-visible {
  display: block;
  opacity: 1;
}

/* ===========================================================
   6. Global Card / Result Styles (Shared Components)
   =========================================================== */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card.appear {
  animation: rise 0.35s ease forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17.5px;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: -0.3px;  /* subtle Apple-like refinement */
  line-height: 1.35;
}

/* Hover refinement for cards */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(100, 41, 183, 0.08);
}

/* Meta + tagline */
.meta {
  font-size: 13px;
  color: #5B4E7A;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
  opacity: 0.8;
}

.tagline {
  display: block;
  font-weight: 400;
  font-style: italic;
  color: rgba(26, 26, 26, 0.75);
  font-size: 15px;
  line-height: 1.45;
  margin-top: 2px;
  margin-bottom: 6px;
  margin-left: 0;
  padding-left: 1px; /* slight optical tweak to align with h3 */
  letter-spacing: -0.2px;
  opacity: 0.9;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.card:hover .tagline {
  color: #5B4E7A;
  opacity: 1;
}

/* Impact / Why text blocks */
.impact {
  font-size: 14.5px;
  margin: 10px 0 6px;
  line-height: 1.55;
}

.impact strong {
  color: #2B1D62;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13.5px;
  font-weight: 600;
}

.why {
  font-size: 14.5px;
  color: #433F58;
  margin-top: 6px;
  line-height: 1.55;
}

.why strong {
  color: #2B1D62;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13.5px;
  font-weight: 600;
}

/* How it works toggle within cards */
.plan {
  display: none;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  opacity: 0;
  transition: opacity 0.25s ease, max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  max-height: 0;
  overflow: hidden;
}

.plan.show {
  display: block;
  opacity: 1;
  max-height: 500px; /* enough space for text */
}

.plan-toggle {
  cursor: pointer;
  font-weight: 600;
  color: #1A1A1A;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  user-select: none;
  transition: opacity 0.2s ease;
}

.plan-toggle:hover { opacity: 0.8; }

.plan-toggle .caret {
  transition: transform 0.2s ease;
}

.plan-toggle.open .caret {
  transform: rotate(90deg);
}

/* CTA rows under results */
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
}

.next-step {
  margin-top: 10px;
  font-style: italic;
  color: #444;
  opacity: 0.9;
  border-left: 3px solid #6429B7;
  padding-left: 10px;
  font-size: 13px;
}

/* ===========================================================
   7. Use Case Generator — Results Layout & Sticky Header
   =========================================================== */

/* Give the results screen a bottom buffer without touching other rows */
section.step-pane#step-4 { 
  padding-bottom: 96px !important; 
}

/* Results pane layout */
.step-pane.results-pane {
  text-align: left; /* ensures entire results step aligns left */
}

.results {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* ensures all cards match width */
  justify-content: flex-start;
  width: 100%;
  max-width: 880px; /* perfect readable width */
  margin: 0 auto; /* centers the column */
  text-align: left;
  gap: 14px; /* consistent spacing between cards */
  padding: 8px 12px; /* subtle breathing room */
}

.results .card {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

/* Let the sticky header span edge-to-edge on results */
body.results-pane {
  max-width: none !important;
  margin: 0 !important;
  overflow-x: hidden;
}

/* Compact Sticky Header (Results View — Edge-to-Edge & Correct Spacing) */
body.results-pane .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;                 /* full viewport width */
  margin: 0;
  background: rgba(251,250,248,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 12px 40px 10px;      /* horizontal padding only */
  z-index: 100;
  animation: fadeDown 0.35s ease forwards;
  height: var(--sticky-h);
  min-height: var(--sticky-h);
  box-sizing: border-box;
}

/* Header brand in results compact mode */
body.results-pane .brand {
  font-size: 22px;
  color: var(--brand);
  margin: 0;
  line-height: 1.1;
}

body.results-pane .brand::after {
  content: "AI Use Case Results";
  display: block;
  font-size: 12.5px;
  color: #555;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-top: 2px;
  opacity: 0.9;
}

body.results-pane.compact .subtitle { display: none; }

/* push the whole page content down below the sticky header */
body.results-pane .main {
  padding-top: calc(var(--sticky-h) + 72px) !important; /* start lower so sticky header is visible */
}

/* Full-Width Sticky Header Fix */
body.results-pane .header {
  width: 100vw !important;
  max-width: none !important;
  left: 0;
  right: 0;
  margin: 0;
  padding: 12px 48px 10px;
  box-sizing: border-box;
  background: rgba(251,250,248,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

/* Compact state (scroll down) */
body.results-pane.compact .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  padding: 12px 48px 10px;
  background: rgba(251,250,248,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: var(--sticky-h);
  z-index: 100;
}

body.results-pane.compact .brand {
  font-size: 22px;
  line-height: 1.1;
}

body.results-pane.compact .brand::after {
  content: "AI Use Case Results";
  display: block;
  font-size: 12.5px;
  color: #555;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-top: 2px;
  opacity: 0.9;
}

/* Restore default header when not compact */
body.results-pane:not(.compact) .header {
  position: relative;
  width: auto;
  max-width: 940px;
  margin: 56px auto 12px;
  padding: 0 20px 0 48px;
  background: transparent;
  border: none;
  backdrop-filter: none;
  height: auto;
  z-index: 1;
}

/* Reset spacing when back to full header */
body.results-pane:not(.compact) .main {
  padding-top: 0 !important;
}

body.results-pane:not(.compact) .brand {
  font-size: 40px;
  line-height: 1.15;
}

body.results-pane:not(.compact) .brand::after {
  content: none;
}

/* ===========================================================
   8. Spinner (Global)
   =========================================================== */

#spinner svg {
  height: 16px;
  width: 16px;
  vertical-align: middle;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===========================================================
   9. Mobile Responsive Styles (Global + UCG)
   =========================================================== */

/* --- Mobile (<= 600px) base tweaks --- */
@media (max-width: 600px) {

  /* Global mobile alignment */
  body, .main, section.step-pane {
    padding: 0 16px !important;
    text-align: center;
  }

  /* Header */
  .header {
    text-align: center !important;
    padding-left: 0;
    padding-right: 0;
    margin-top: 40px;
    margin-bottom: 12px;
  }

  .brand {
    font-size: 30px;
    margin-bottom: 2px;
    text-align: center;
  }

  .subtitle {
    text-align: center !important;
    font-size: 13.5px;
    margin-bottom: 16px;
  }

  /* Results screen header centering */
  body.results-pane .header {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }

  body.results-pane .brand,
  body.results-pane .subtitle {
    margin: 0 auto !important;
    text-align: center !important;
  }

  /* Stepper */
  .stepper {
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
  }

  /* Pill grid — good on iPhone + Chrome desktop preview */
  .pill-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
    column-gap: 10px;
    max-width: 480px;
    margin: 0 auto 24px;
  }

  /* Large phones & small tablets (2-column pills) */
  .pill {
    flex: 0 1 calc(48% - 10px);
    width: calc(48% - 10px);
    min-width: 0;
    max-width: none;
    padding: 12px 10px;
    font-size: 13.5px;
    border-radius: 999px;
    white-space: normal;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .instruction, .question {
    font-size: 15.5px;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  /* Next + Back full-width buttons, Next shown first */
  .nav-row, .cta-row {
    flex-direction: column-reverse; /* flips order on mobile */
    gap: 10px;
    margin-top: 18px;
    width: 100%;
  }

  .nav-row .btn,
  .cta-row .btn {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    font-size: 14px;
    padding: 14px 18px;
  }
}

/* iPhone and smallest screens: 1-column pills cleanly */
@media (max-width: 415px) {
  .pill {
    flex: 1 1 100%;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* --- Mobile Navigation Polish — GoodUse.ai  (Inspired by Stripe / Linear) --- */
@media (max-width: 700px) {

  /* Tighten header */
  .header {
    padding: 24px 0 10px 0;
    text-align: center;
  }

  /* Brand stacks nicely */
  .logo-area {
    display: block;
    text-align: center;
    margin-bottom: 12px;
  }

  .brand {
    font-size: 32px;
    display: inline-block;
    margin-bottom: 8px;
  }

  /* Nav becomes centered row */
  .top-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .nav-link {
    font-size: 14.5px;
    padding: 4px 0;
  }

  /* Active underline stays clean */
  .nav-link.active::after {
    bottom: -2px;
  }

  /* Disabled version slightly lighter */
  .nav-link.disabled {
    opacity: 0.4 !important;
    pointer-events: none;
  }
}

/* Mobile Compact Sticky Header Patch
   Hide nav links but keep brand + "AI Use Case Results"
*/
@media (max-width: 700px) {
  /* Hide About / Agent Architect / Use Case Generator */
  body.results-pane.compact .top-nav {
    display: none !important;
  }

  /* Ensure the logo-area stays centered and clean */
  body.results-pane.compact .logo-area {
    display: block !important;
    text-align: center !important;
    margin-bottom: 0 !important;
  }
}


/* ============================================================
   Agent Architect — Premium Builder Cards
   (Step Pane = soft white card w/ Apple/Stripe polish)
   ============================================================ */

.aa-builder main.gu-wrap {
  max-width: 980px;
}

.aa-builder .step-pane,
.aa-step-pane {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  padding: 28px 26px 24px;
  margin-top: 18px;
  border: 1px solid rgba(100, 41, 183, 0.05);
}
/* ===========================================================
   10. Agent Architect — Wizard-Specific Tweaks
   =========================================================== */

/* Scope small adjustments under .aa-step-pane
   so the Use Case Generator stays unchanged. */

.aa-step-pane .question {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.aa-step-pane .instruction {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.aa-step-pane .pill-group {
  max-width: 880px;
  margin-top: 12px;
}

/* Slightly wider pills for dense labels */
.aa-step-pane .pill {
  min-width: 180px;
}

/* Premium Type + Rhythm for AA Builder */
.aa-step-pane .question {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.aa-step-pane .instruction {
  font-size: 16px;
  color: #5A556B;
  margin-bottom: 26px;
  line-height: 1.5;
}

/* Add breathing room on desktop */
.aa-builder .step-pane {
  padding-top: 32px;
  padding-bottom: 32px;
}

/* Slight tighten for the stepper under title */
.header + .stepper {
  margin-top: 18px;
}

/* Status line under final step */
.aa-status {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Loading row alignment */
.aa-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 16px 0;
}

/* Apple-style spinner */
.aa-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.55);
  border-radius: 50%;
  animation: aa-spin 0.8s linear infinite;
}

@keyframes aa-spin {
  to { transform: rotate(360deg); }
}

/* Loading text */
.aa-loading-text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

/* Animated dots */
.dots {
  display: inline-block;
  width: 1.2em; /* reserves space = no shifting */
  text-align: left;
}

.dots::after {
  content: "";
  animation: dots 1.4s steps(4, end) infinite;
}

@keyframes dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

/* Mobile polish */
@media (max-width: 600px) {
  .aa-step-pane .question,
  .aa-step-pane .instruction {
    text-align: center;
  }
}

/* ============================================================
   11 — Agent Architect (Premium Results Blueprint)
   ============================================================ */

/* Header w/ subtle brand halo */
.gu-header {
  max-width: var(--maxw);
  margin: 24px auto 10px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.gu-header::before {
  content: "";
  position: absolute;
  inset: -18px 0 auto 0;
  height: 44px;
  z-index: -1;
  background: linear-gradient(90deg, #6429B7 0%, #A074FF 100%);
  opacity: 0.06;
  filter: blur(18px);
  border-radius: 20px;
}

.gu-brand {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--brand);
  text-decoration: none;
}

.gu-brand-dot {
  color: var(--brand);
}

.gu-nav {
  display: flex;
  gap: 20px;
}

.gu-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
}

.gu-nav a.active {
  color: var(--brand); 
  background: rgba(100, 41, 183, 0.08);
  color: #342158;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

.gu-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.aa-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.aa-pill {
  background: #f6f7f8;
  border: 1px solid #e5e6e8;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #444;
  font-weight: 500;
  white-space: nowrap;
}

/* Remove the old separators */
.aa-summary-bar .sep {
  display: none;
}

.gu-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--brand);
  margin: 8px 0 20px; /* breathing room above stepper */
}

.gu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-outer);
  box-shadow: var(--shadow), var(--shadow-soft);
  overflow: hidden;
}

/* HERO */
.gu-hero {
  background: #FCFBFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 28px 26px 20px;
}


/* Larger whitespace between sections */
.gu-intro,
.gu-sections,
.gu-impl-grid {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Make everything feel more 'Apple spec sheet' */
.gu-card {
  border-radius: 20px;
  padding-bottom: 0;
}


.gu-subhead {
  font-size: 18px;
  opacity: 0.85;
}

.gu-agent-name {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.2px;
  color: #1A1A1A;
  margin-bottom: 8px;
  line-height: 1.25;
}

.gu-subhead {
  font-size: 17px;
  color: #2E2E2E;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 6px;
}

.gu-quote {
  font-size: 15.5px;
  color: #3A3460;
  line-height: 1.55;
  padding-left: 12px;
  border-left: 3px solid rgba(100, 41, 183, 0.45);
  font-weight: 500;
}

/* INTRO (Goals + Flow) */
.gu-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gutter-lg);
  padding: 18px 22px 8px;
  position: relative;
}

.gu-intro > .gu-block:nth-child(2) {
  border-left: 1px solid #F2F2F2;
  padding-left: var(--gutter);
}

.gu-block h4 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.2px;
  font-weight: 600;
  position: relative;
  padding-left: 10px;
}

.gu-block h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.gu-list {
  margin: 0;
  padding: 0 0 0 18px;
  line-height: 1.55;
  font-size: 14px;
}



/* ===========================================================
   Agent Flow — Purple Pills + Micro Icons + Clean Step Numbers
   =========================================================== */

/* No vertical bar anymore */
.aa-flow {
  position: relative;
  padding-left: 0;
}

.aa-flow::before {
  content: none !important;
}

/* Vertical stack */
.gu-flow-vertical {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

/* Step row */
.gu-step-node {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Step number (clean, minimal label — NO circle) */
.gu-step-index {
  min-width: 20px;

  /* Remove the circle */
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  /* Typography */
  font-size: 13px;
  font-weight: 600;
  color: #A398D9;  /* subtle lavender */
  text-align: right;

  margin-top: 8px;
  opacity: 0.9;
  transition: color 0.18s ease;
}

/* Micro icon */
.gu-node-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(100, 41, 183, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--brand-ink);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-top: 2px;
}

/* Purple-card pill */
.gu-node {
  background: #F7F4FF;                     /* << same soft lavender as older version */
  border: 1px solid #E5DAFF;               /* light purple border */
  padding: 12px 18px;
  border-radius: 18px;                     /* rounder bubble */
  box-shadow: 0 3px 10px rgba(100, 41, 183, 0.08);
  flex: 1;
  font-weight: 700;
  font-size: 14px;
  color: #3B2F66;
}

/* Subline */
.gu-node-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #534E79;
  line-height: 1.45;
  opacity: 0.9;
  max-width: 360px;
  font-weight: 400;
}

/* Hover depth */
.gu-step-node:hover .gu-node {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(100, 41, 183, 0.12);
  transition: 0.18s ease;
}

.gu-step-node:hover .gu-node-icon {
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(100, 41, 183, 0.25);
  transition: 0.18s ease;
}

/* Hover state: ONLY darken the number, stay minimal */
.gu-step-node:hover .gu-step-index {
  color: var(--brand);
  opacity: 1;
}

/* SECTION GRID */
.gu-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter-lg);
  padding: 10px 22px 20px;
  background: #FCFBFE;
}

.gu-section {
  background: #FFF;
  border: 1px dashed #EDE7FB;
  border-radius: var(--radius-inner);
  padding: 16px 20px;
  position: relative;
}

.gu-section h5 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: #3B3656;
  border-left: 2px solid rgba(100, 41, 183, 0.15);
  padding-left: 8px;
  text-transform: uppercase;
}

.gu-section h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.gu-io {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gu-kv {
  background: #FAF9FF;
  border: 1px solid #EEE6FA;
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 74px;
  font-size: 14px;
}

.gu-kv strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.gu-ordered {
  margin: 0;
  padding: 0 0 0 18px;
  line-height: 1.55;
  font-size: 14px;
}

/* Table */
.gu-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.gu-table th,
.gu-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #EEE6FA;
  text-align: left;
}

.gu-table th {
  background: #F9F6FF;
  font-size: 13px;
  letter-spacing: 0.2px;
}

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

/* Prompt panel */
.gu-prompt-panel {
  background: #F8F6FF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}

/* details/summary */
.gu-details {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0;
  margin: 0;
}

.gu-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
}

/* pill for prompt toggle */
.gu-pill {
  background: rgba(100, 41, 183, 0.08);
  border: 1px solid rgba(100, 41, 183, 0.15);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gu-pill:hover {
  background: rgba(100, 41, 183, 0.12);
  transition: background 0.2s ease;
}

.gu-chevron {
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

details[open] .gu-chevron {
  transform: rotate(180deg);
}

/* Code wrapper */
.gu-code-wrapper {
  background-image: linear-gradient(#fafafa 1px, transparent 1px),
                    linear-gradient(90deg, #fafafa 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: #FAFAFA;
  border: 1px solid #EEE;
  border-radius: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  overflow-x: auto;
}

.gu-code {
  background: none;
  border: none;
  padding: 0;
  font-family: Menlo, Monaco, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #1A1A1A;
  white-space: pre-wrap;
  margin: 0;
}

/* Fade animation */
details[open] .gu-code-wrapper {
  animation: guFadeInSlide 0.3s ease;
}

@keyframes guFadeInSlide {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Implementation grid */
.gu-impl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter-lg);
  padding: 6px 22px 16px;
  background: #FCFBFE;
}

/* CTAs */
.gu-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 16px 22px;
  border-top: 1px solid #EEE6FA;
  background: #FCFBFF;
}

.gu-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: var(--shadow);
  line-height: 1;
  font-size: 14px;
}

.gu-btn.primary {
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
}

.gu-utils {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gu-btn.ghost {
  background: #fff;
  color: var(--brand-ink);
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 10px 12px;
  font-weight: 600;
}

@media print {
  body {
    display: none !important;
  }
}

/* =============================== */
/*  TOAST: Copy Confirmation UI    */
/* =============================== */
.gu-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 10px 16px;
  background: #42C27A; /* green success */
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;

  /* FIX: escape all card stacking contexts */
  z-index: 2147483647; 
}

.gu-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive for AA premium results */
@media (max-width: 860px) {
  .gu-intro {
    grid-template-columns: 1fr;
  }
  .gu-intro > .gu-block:nth-child(2) {
    border-left: none;
    padding-left: 0;
  }
  .gu-sections {
    grid-template-columns: 1fr;
  }
  .gu-io {
    grid-template-columns: 1fr;
  }
  .gu-impl-grid {
    grid-template-columns: 1fr;
  }
  .gu-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .gu-header {
    margin-top: 18px;
  }
  .gu-brand {
    font-size: 30px;
  }
  .gu-card {
    border-radius: 14px;
  }
  .gu-agent-name {
    font-size: 20px;
  }
}

/* ============================================================
   GOODUSE.AI — PREMIUM SINGLE-COLUMN RESULTS LAYOUT
   Apple/Stripe Spec Sheet Style
   ============================================================ */

/* 1) PAGE WRAPPER — full-width container that centers content */
.aa-single-col {
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.aa-single-col .gu-card {
  max-width: 980px !important;          /* true premium width */
  width: 100%;
  margin: 32px auto 48px !important;
  padding: 48px 48px 64px !important;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(100, 41, 183, 0.06);
}

/* ============================================================
   2) INTRO SECTION — single column instead of 2 columns
   ============================================================ */

.aa-results-premium .gu-intro {
  display: block !important;
  padding: 0 0 32px;
}

.aa-results-premium .gu-intro .gu-block {
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-left: none !important;
}


/* ============================================================
   3) ALL SUBSEQUENT SECTIONS — linear column flow
   ============================================================ */

.aa-results-premium .gu-sections,
.aa-results-premium .gu-impl-grid {
  display: block !important;
  padding: 0;
}

.aa-results-premium .gu-section {
  margin-bottom: 48px !important;
  padding: 24px 28px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px dashed #EDE7FB;
}

/* Titles breathe more */
.aa-results-premium .gu-section h5 {
  margin-bottom: 14px;
}


/* ============================================================
   4) DATA GRID (Inputs/Outputs, I/O sections)
   ============================================================ */

.aa-results-premium .gu-io {
  display: block !important;
}

.aa-results-premium .gu-kv {
  margin-bottom: 24px;
}


/* ============================================================
   5) IMPLEMENTATION PATH A/B — stacked premium blocks
   ============================================================ */

.aa-results-premium .gu-impl-grid > div {
  margin-bottom: 48px !important;
}


/* ============================================================
   6) FOOTER ACTIONS — full width but centered buttons
   ============================================================ */

.aa-results-premium .gu-actions {
  padding: 32px 0 0;
  border-top: 1px solid #EEE6FA;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* ============================================================
   7) SPACING TOKENS — universal premium rhythm
   ============================================================ */

.aa-results-premium h2,
.aa-results-premium h3,
.aa-results-premium h4 {
  margin-top: 32px !important;
  margin-bottom: 12px !important;
}

.aa-results-premium p,
.aa-results-premium ul,
.aa-results-premium ol {
  margin-bottom: 18px !important;
}


/* ============================================================
   GOODUSE.AI — AGENT FLOW DESIGN SYSTEM v2
   Apple / Stripe Spec Sheet Style
   ============================================================ */

/* Parent container stays the same */
.gu-flow-vertical {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

/* Each step row */
.gu-step-node {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding-right: 4px; /* optical balance */
}

/* Step number (clean, aligned, more premium) */
.gu-step-index {
  min-width: 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: #A7A0D6;
  padding-top: 4px;
  line-height: 1.0;
}

/* Icon (slightly larger + centered) */
.gu-node-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(100, 41, 183, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--brand-ink);
  box-shadow: 0 2px 5px rgba(100, 41, 183, 0.12);
  margin-top: 1px;
}

/* MAIN PILL — full width, tighter spacing, premium */
.gu-node {
  flex: 1; /* 🟣 THIS FIXES THE EMPTY SPACE */
  background: linear-gradient(
    to bottom right,
    #F8F5FF 0%,
    #F3EEFF 100%
  );
  border: 1px solid rgba(100,41,183,0.18);
  padding: 16px 22px 18px;
  border-radius: 20px;
  box-shadow: 0 5px 16px rgba(100,41,183,0.10);
  font-size: 15px;
  font-weight: 650;
  color: #372C63;
  line-height: 1.35;
  max-width: 100%;
}

/* Subline — wider max width + better rhythm */
.gu-node-sub {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #504A74;
  line-height: 1.55;

  /* 🟣 THIS FIXES THE OVERLY NARROW COLUMN */
  max-width: 660px;
}

/* Hover refinement */
.gu-step-node:hover .gu-node {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(100, 41, 183, 0.15);
  transition: 0.18s ease;
}

.gu-step-node:hover .gu-node-icon {
  border-color: var(--brand);
  box-shadow: 0 4px 10px rgba(100, 41, 183, 0.25);
}

.gu-step-node:hover .gu-step-index {
  color: var(--brand);
  opacity: 1;
}

/* Mobile: full bleed clean layout */
@media (max-width: 600px) {
  .gu-step-node {
    align-items: flex-start;
  }
  .gu-node {
    padding: 14px 18px;
  }
  .gu-node-sub {
    max-width: 100%;
  }
}


/* ============================================================
   8) RESPONSIVE RULES
   ============================================================ */

@media (max-width: 980px) {
  .aa-single-col .gu-card {
    padding: 32px 24px 48px !important;
    margin: 24px auto 40px !important;
  }
}

@media (max-width: 600px) {
  .aa-results-premium h2,
  .aa-results-premium h3,
  .aa-results-premium h4 {
    margin-top: 24px !important;
  }

  .aa-results-premium .gu-section {
    padding: 20px 18px;
  }
}

/* ============================================================
   AGENT ARCHITECT — FINAL HEADER + TOP SPACING FIX
   ============================================================ */

body.aa-results-premium .gu-header {
  margin-top: 20px !important;
  margin-bottom: 0 !important;
  padding-bottom: 4px !important;
}

body.aa-results-premium .gu-wrap {
  padding-top: 8px !important; /* was 24px */
}

body.aa-results-premium .gu-eyebrow {
  margin-top: 0 !important;    /* was adding space */
  margin-bottom: 8px !important;
}

body.aa-results-premium .stepper {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

/* ============================================================
   PREMIUM RESULTS — FINAL VERTICAL SPACING TUNING (v1.0)
   ============================================================ */

/* Reduce spacing directly under Agent Flow */
body.aa-results-premium .gu-intro {
  padding-bottom: 12px !important;
}

body.aa-results-premium .gu-intro .gu-block:last-child {
  margin-bottom: 16px !important;
}

/* Normalize spacing above ALL major sections */
body.aa-results-premium .gu-sections .gu-section {
  margin-top: 28px !important;
  margin-bottom: 36px !important;
}

/* First section shouldn't float too far down */
body.aa-results-premium .gu-sections .gu-section:first-child {
  margin-top: 12px !important;
}

/* ======================================================
   GOODUSE NAV — PERFECT CENTERED PILL LAYOUT
   (Fixes spacing + alignment on all three pages)
   ====================================================== */

.gu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
}

/* NEW: Center the nav area */
.gu-nav {
  display: flex;
  align-items: center;
  gap: 24px;               /* equal spacing between items */
  justify-content: center; /* THIS is what centers it */
}

/* Nav links (ensures centered pills look perfect) */
.gu-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  opacity: 0.85;
  transition: background 0.18s ease, opacity 0.18s ease;
}

.gu-nav a:hover {
  opacity: 1;
}

.gu-nav a.active {
  background: rgba(100, 41, 183, 0.12);
  color: var(--brand);
  opacity: 1;
}


/* ============================================================
   AGENT ARCHITECT RESULTS — MOBILE LEFT ALIGN (CLEAN VERSION)
   ============================================================ */

@media (max-width: 600px) {

  /* Keep the hero centered — it looks intentional */
  body.aa-results-premium .gu-hero {
    text-align: center !important;
  }

  /* Everything else becomes left aligned */
  body.aa-results-premium .gu-card,
  body.aa-results-premium .gu-card *,
  body.aa-results-premium .gu-intro,
  body.aa-results-premium .gu-intro *,
  body.aa-results-premium .gu-sections,
  body.aa-results-premium .gu-sections *,
  body.aa-results-premium .gu-impl-grid,
  body.aa-results-premium .gu-impl-grid *,
  body.aa-results-premium .gu-actions,
  body.aa-results-premium .gu-actions *,
  body.aa-results-premium .gu-list,
  body.aa-results-premium .gu-list *,
  body.aa-results-premium .gu-kv,
  body.aa-results-premium .gu-kv *,
  body.aa-results-premium .gu-ordered,
  body.aa-results-premium .gu-ordered *,
  body.aa-results-premium .gu-table th,
  body.aa-results-premium .gu-table td {
    text-align: left !important;
  }

  /* Ensure lists indent properly */
  body.aa-results-premium ul,
  body.aa-results-premium ol {
    margin-left: 18px !important;
  }
}

/* ============================================================
   GOODUSE.AI — ULTRA-LIGHT FOOTER (Apple/Stripe Aesthetic)
   ============================================================ */

.gu-footer {
  width: 100%;
  padding: 28px 0 36px;
  text-align: center;
  background: transparent;
  font-size: 13px;
  color: rgba(26, 26, 26, 0.55);
  margin-top: 40px; /* breathing room above footer */
}

.gu-footer-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}

.gu-footer-powered strong {
  font-weight: 700;
  color: var(--brand);
}

.gu-footer-link {
  text-decoration: none;
  color: rgba(26, 26, 26, 0.65);
  font-weight: 500;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.gu-footer-link strong {
  color: var(--brand);
  font-weight: 700;
}

.gu-footer-dot {
  color: rgba(26, 26, 26, 0.35);
  font-size: 14px;
}

/* Hover state */
.gu-footer-link:hover {
  opacity: 1;
  color: var(--brand);
}

/* Mobile formatting */
@media (max-width: 600px) {
  .gu-footer {
    padding: 24px 0 28px;
    font-size: 12.5px;
  }

  .gu-footer-inner {
    flex-direction: column;
    gap: 4px;
  }

  .gu-footer-dot {
    display: none;
  }
}

.gu-share-inline {
  margin-top: 28px;
  padding-top: 22px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.gu-share-inline a {
  font-size: 14px;
  color: #6429B7;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.gu-share-inline a:hover {
  opacity: 0.9;
}

/* ===========================================================
   FINAL OVERRIDES — MUST COME LAST
   =========================================================== */

/* Eyebrow alignment + spacing */
.gu-eyebrow {
  color: var(--brand) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  margin-left: 0 !important;
  margin-top: 4px !important;
  margin-bottom: 10px !important;
}

/* Reduce space under header for all tools */
.main,
.gu-wrap {
  padding-top: 8px !important;
}

/* Center all steppers */
.stepper {
  margin: 0 auto 18px auto !important;
  text-align: center !important;
  justify-content: center !important;
}

.stepper .step {
  display: inline-flex !important;
  justify-content: center !important;
}

/* Standardize question header */
.question {
  font-size: 28px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin-top: 8px !important;
  margin-bottom: 12px !important;
}

/* Instruction consistency */
.instruction {
  margin-top: -4px !important;
  margin-bottom: 20px !important;
  font-size: 16px !important;
  opacity: 0.75 !important;
  text-align: center !important;
}

/* ==========================================================
   UNIVERSAL EYEBROW + WRAPPER ALIGNMENT FIX (FINAL)
   ========================================================== */

/* Remove ANY residual left-padding from headers */
.header,
.gu-header {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Remove layout indentation from both tools */
body .main,
body .gu-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 940px !important;
}

/* Apply top spacing fix to BOTH header patterns */
.header + .main,
.header + .gu-wrap,
.gu-header + .main,
.gu-header + .gu-wrap {
  margin-top: -10px !important;
}

/* Eyebrow spacing */
.gu-eyebrow {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

/* ==========================================
   COLLAPSE HEADER HEIGHT (FINAL FIX)
   ========================================== */
.gu-header {
  padding: 18px 0 !important;     /* was much taller */
  height: auto !important;         /* prevent fixed height */
  min-height: 0 !important;        /* collapse breathing room */
}

.gu-header .gu-nav {
  margin-top: 0 !important;        /* pulls nav down tighter */
}

/* ==========================================================
   GOODUSE.AI — MOBILE NAV + PREMIUM RHYTHM (FINAL + CORRECTED)
   ========================================================== */

@media (max-width: 600px) {

  /* ==========================================
     1) TRUE HEADER FIX — matches your actual HTML
     ========================================== */
  .gu-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 20px !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* Brand text */
  .gu-brand {
    font-size: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    display: block !important;
  }

  /* Nav container */
  .gu-nav {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 0 16px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  /* Nav links */
  .gu-nav a {
    font-size: 15px !important;
    padding: 4px 6px !important;
    position: relative !important;
  }

  /* Remove underline — pills are now the active state */
  .gu-nav a.active::after {
    display: none !important;
    content: none !important;
  }

  /* ==========================================
     2) FIX WIDTH COLLAPSE
     ========================================== */
  .main,
  .gu-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* ==========================================
     3) PREMIUM CARD SPACING
     ========================================== */
  .ucg-pane,
  .aa-step-pane,
  section.step-pane {
    padding: 28px 20px 32px 20px !important;
    border-radius: 18px !important;
    margin-top: 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ==========================================
     4) STEPPER
     ========================================== */
  .stepper {
    justify-content: center !important;
    margin-top: 10px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* ==========================================
     5) QUESTION + INSTRUCTION SPACING
     ========================================== */
  .question {
    margin-top: 6px !important;
    margin-bottom: 18px !important;
    text-align: center !important;
  }

  .instruction {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    font-size: 16px !important;
    text-align: center !important;
    opacity: 0.75 !important;
  }

  /* ==========================================
     6) BUTTON AREA
     ========================================== */
  .nav-row {
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    width: 100% !important;
  }

  .nav-row .btn {
    padding: 14px 18px !important;
    width: 100% !important;
  }
}

/* ==========================================================
   GOODUSE.AI — UCG FINAL MOBILE FIX
   (Single Card + Correct Spacing for ALL Steps)
   ========================================================== */

@media (max-width: 600px) {

  /* 1) Remove underline from UCG nav (legacy) */
  .top-nav .nav-link.active::after {
    display: none !important;
    content: none !important;
  }

  /* 2) SECTION = the ONE REAL card
        Works for ALL steps (1–4) because structure is identical */
  .ucg-wrap section.step-pane {
    width: 100% !important;
    max-width: 100% !important;
    padding: 28px 20px 32px !important;
    margin: 16px auto 0 !important;   /* smaller gap under stepper */
    border-radius: 18px !important;
    background: #fff !important;       /* <-- only ONE card background */
    box-sizing: border-box !important;
  }

  /* 3) KILL the inner card — remove double-white */
  .ucg-wrap .ucg-pane {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* 4) Stepper spacing (UCG only) */
  .ucg-wrap .stepper {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
  }

  /* 5) Tighten question top spacing */
  .ucg-wrap section.step-pane .question {
    margin-top: 0 !important;
  }
}

/* ==========================================================
   GOODUSE.AI — UCG SPACING OVERRIDE (FINAL + GUARANTEED)
   ========================================================== */

@media (max-width: 600px) {

  /* Override 1: section.step-pane (UCG ONLY) */
  body .main #step-1.step-pane,
  body .main #step-2.step-pane,
  body .main #step-3.step-pane,
  body .main #step-4.step-pane {
    margin-top: 5px !important;
  }

  /* Override 2: inner pane — prevent adding its own top margin */
  body .main #step-1 .ucg-pane,
  body .main #step-2 .ucg-pane,
  body .main #step-3 .ucg-pane,
  body .main #step-4 .ucg-pane {
    margin-top: 0 !important;
  }
}

/* ==========================================================
   UCG — MATCH AGENT ARCHITECT CARD WIDTH ON MOBILE + DESKTOP
   ========================================================== */

.ucg-wrap section.step-pane {
  max-width: 980px !important;   /* identical to AA builder */
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ucg-wrap .ucg-pane {
  max-width: 100% !important;     /* let outer container define width */
  width: 100% !important;
}


