/* ============================================
   PRANA IQ Components
   ============================================ */

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--font-bold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-blue);
  color: white;
  padding: 15px 32px;
  font-size: 15px;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--color-blue-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue-lg);
}

.btn-secondary {
  background: var(--color-bg-white);
  color: var(--color-text);
  padding: 15px 32px;
  font-size: 15px;
  font-weight: var(--font-semibold);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-mist);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--color-blue);
  padding: var(--space-2) var(--space-3);
  font-weight: var(--font-semibold);
}

.btn-ghost:hover {
  background: var(--color-mist);
}

.btn-sm {
  padding: 10px 24px;
  font-size: var(--text-base);
}

.btn-lg {
  padding: 18px 40px;
  font-size: var(--text-lg);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ============ NAVIGATION ============ */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--page-padding);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: var(--z-sticky);
}

.nav-sticky {
  position: sticky;
  top: 0;
  background: rgba(250, 251, 253, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-mark {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: var(--font-bold);
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.logo-text span {
  color: var(--color-blue);
  font-weight: var(--font-extrabold);
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  transition: color var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a.active {
  color: var(--color-blue);
}

.nav-cta {
  background: var(--color-blue);
  border: none;
  color: white;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(27, 77, 255, 0.2);
  text-decoration: none;
}

/* 2026-09-14: each route lives in the bar on desktop or in the menu on mobile, never in
   both. Trust is a menu item below the breakpoint; booking is the bar button above it.
   Both items stay in the DOM on all 16 pages so the nav block hashes identically. */
.nav-trust {
  display: none;
}

.nav-cta:hover {
  background: var(--color-blue-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27, 77, 255, 0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: all var(--transition-base);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* Below 768 the bar carries a lockup and a menu toggle, and the trust route moves into
     the menu. Three controls do not fit: lockup 134.97 + CTA 169.77 + toggle 40 = 344.74px
     against 305px of content at a 353px viewport, so the bar overflowed by 39.74px. Hidden,
     not shrunk. */
  .nav-trust {
    display: block;
  }

  .nav-cta {
    display: none;
  }

}

/* ============ CARDS ============ */

.card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-8) var(--space-6);
  transition: all 0.35s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-border-blue);
}

.card-accent {
  position: relative;
  overflow: hidden;
}

.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-orange));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.35s;
}

.card-accent:hover::before {
  opacity: 1;
}

.card-dark {
  background: var(--color-navy);
  border: none;
  color: var(--color-text-on-dark);
}

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--color-mist);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.card-icon-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-blue);
}

/* ============ SECTION HEADER ============ */

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.section-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  letter-spacing: var(--tracking-wide);
  background: var(--color-mist);
  padding: var(--space-1) 10px;
  border-radius: 6px;
  font-weight: var(--font-medium);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 38px);
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  margin-left: var(--space-4);
}

/* ============ TAG / BADGE ============ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
}

.tag-dot {
  width: 8px;
  height: 8px;
  background: var(--color-blue);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 0 3px var(--color-mist);
}

.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-mist);
  color: var(--color-blue);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.badge-orange {
  background: var(--color-orange-pale);
  color: var(--color-orange);
}

.badge-teal {
  background: var(--color-teal-pale);
  color: var(--color-teal);
}

/* ============ FOOTER ============ */

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-10) var(--page-padding) var(--space-16);
  border-top: 1px solid var(--color-border);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 280px;
}

.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.footer-col h4 {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.footer-col a:hover {
  color: var(--color-blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-light);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-medium);
}

.footer-sanskrit {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-blue);
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ============ FAQ ACCORDION ============ */

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-6) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question h3 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-navy);
  padding-right: var(--space-4);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-6);
}

.faq-answer p {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
}

/* ============ FORMS ============ */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-md);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px var(--color-mist);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ============ PROCESS TIMELINE ============ */

.process-timeline {
  display: flex;
  gap: var(--space-4);
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 30px);
  right: calc(-50% + 30px);
  height: 2px;
  background: var(--color-border);
}

.process-step:last-child::after {
  display: none;
}

.process-number {
  width: 48px;
  height: 48px;
  background: var(--color-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin: 0 auto var(--space-4);
  position: relative;
  z-index: 1;
}

.process-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.process-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

@media (max-width: 768px) {
  .process-timeline {
    flex-direction: column;
    gap: var(--space-8);
  }

  .process-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    text-align: left;
    column-gap: var(--space-4);
    row-gap: var(--space-1);
  }

  .process-step::after {
    top: 48px;
    left: 23px;
    right: auto;
    width: 2px;
    height: calc(100% + var(--space-8));
  }

  .process-number {
    grid-row: 1 / 3;
    flex-shrink: 0;
    margin: 0;
  }

  .process-title {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  .process-desc {
    grid-column: 2;
    grid-row: 2;
  }
}

/* ============ CTA SECTION ============ */

.cta-section {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(27, 77, 255, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 115, 74, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-tight);
}

.cta-section h2 em {
  font-style: italic;
  color: var(--color-sky);
}

.cta-section p {
  font-size: var(--text-lg);
  color: var(--color-text-on-dark-muted);
  max-width: 500px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

/* 2026-09-14: hierarchy inside the navy band. Both buttons used to render white, primary
   filled and secondary white with a pale border, so the band had almost no hierarchy: the
   only difference was a 1px border. Primary keeps the white fill; secondary becomes an
   outline in white on the navy. These are CONTEXT overrides scoped to .cta-section, not the
   base .btn-primary and .btn-secondary definitions, which also carry the contact form
   submit, both Skill Builder waitlist buttons, the 404 button, the free tool CTA and five
   "See Our Process" links, and are deliberately untouched. */
.cta-section .btn-primary {
  background: white;
  color: var(--color-navy);
}

.cta-section .btn-primary:hover {
  background: var(--color-bg);
}

.cta-section .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: white;
}

.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
  color: white;
}

@media (max-width: 768px) {
  .cta-section {
    padding: var(--space-10) var(--space-6);
  }
}

/* ============ TESTIMONIAL ============ */

.testimonial {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-8);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-navy);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--color-mist);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  color: var(--color-blue);
}

.testimonial-info h4 {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-navy);
}

.testimonial-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Phase 3: secondary nav link and lander notes */
.nav-links .nav-secondary { color: var(--color-blue); font-weight: var(--font-semibold); }
/* Booking is the bar button above the breakpoint, so the menu item hides there. Mirror of
   .nav-trust, which hides below it. Neither route is ever shown twice. */
.nav-book { display: none; }
@media (max-width: 768px) { .nav-book { display: block; } }

/* 2026-09-07 homepage port from Claude Design (Phase 3.2) */

/* Shared section spacing (used across pages) */
.section {
  margin-bottom: var(--section-gap);
}

.footer-tagline {
  color: var(--color-blue);
  font-weight: var(--font-semibold);
  margin-top: var(--space-2);
}

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-16);
  padding-bottom: var(--space-20);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-mist) 100%);
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -220px;
  right: -160px;
  width: min(60vw, 640px);
  height: min(60vw, 640px);
  background: radial-gradient(circle, var(--color-blue-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: var(--space-5) 0 var(--space-5);
  color: var(--color-navy);
}

.home-hero h1 em {
  font-style: italic;
  color: var(--color-blue);
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.cta-content .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.hero-formula {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.hero-formula .formula-line1 {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-navy);
}

.hero-formula .formula-line2 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.hero-visual {
  position: relative;
  container-type: inline-size;
}

.hero-visual mission-control {
  display: block;
  width: 100%;
}

/* Homepage and Platform share this host so Mission Control is the same
   width and height at a given viewport. Not a smaller homepage teaser. */
.mc-embed {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: var(--max-width-wide);
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}
.mc-embed mission-control {
  display: block;
  width: 100%;
  height: auto;
}

/* Product loop */
.loop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .loop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .loop-grid {
    grid-template-columns: 1fr;
  }
}

.loop-step {
  padding-top: var(--space-4);
  border-top: 2px solid var(--color-border);
}

.loop-number {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-blue);
  margin-bottom: var(--space-3);
}

.loop-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.loop-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* App proof panel */
.app-panel {
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-10);
}

@media (max-width: 768px) {
  .app-panel {
    padding: var(--space-10) var(--space-6);
  }
}

.app-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-sky);
  margin-bottom: var(--space-3);
}

.app-panel h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--color-text-on-dark);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.app-support {
  font-size: var(--text-md);
  color: var(--color-text-on-dark-muted);
  max-width: var(--max-width-narrow);
  line-height: 1.6;
  margin-bottom: var(--space-10);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.trust-card h3 {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-2);
}

.trust-card p {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  line-height: 1.6;
}

/* Agent example card */
.agent-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

.example-badge {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 4px 10px;
  background: var(--color-mist);
  color: var(--color-blue);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.agent-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.agent-card-head h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-navy);
}

.agent-card-desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.agent-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.agent-tool-pill {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 5px 12px;
}

.agent-alias {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.app-panel-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.app-panel-caption {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-on-dark);
}

.app-panel .btn-primary {
  background: var(--color-bg-white);
  color: var(--color-navy);
}

.app-panel .btn-primary:hover {
  background: var(--color-mist);
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}

.how-step {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.how-number {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--color-blue);
}

.how-number-warm {
  color: var(--color-orange);
}

.how-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-navy);
}

.how-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Results */
.examples-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy);
  margin-bottom: var(--space-6);
}

/* Short examples */
.examples-line {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.examples-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  align-items: center;
}

.examples-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-blue);
}

.examples-row a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.examples-row a.examples-more {
  color: var(--color-navy);
  font-weight: var(--font-semibold);
}

/* FAQ container spacing */
.home-faq {
  max-width: 720px;
}

/* 2026-09-07 hero fit pass (Phase 3.2): Design composition, copy centered on top, demo at full content width below */
.home-hero .hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
}
.home-hero .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  gap: var(--space-6);
}
.home-hero .hero-copy > * { margin: 0; }
.home-hero h1 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
}
.home-hero .hero-sub {
  max-width: var(--max-width-hero-sub);
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
}
.home-hero .hero-actions { justify-content: center; }
.home-hero .hero-formula { align-self: center; }
/* 2026-09-14 mobile pass: this rule used to set aspect-ratio: 1100 / 660, a SECOND height
   authority alongside .mc's own aspect-ratio inside the shadow root. The two agreed only
   because both said 1100/660; the moment the component picks a different ratio for narrow
   screens they disagree and the host reserves the wrong height. The component is now the
   single height authority and the wrapper sizes to its content. */
.home-hero .hero-visual {
  width: 100%;
  max-width: var(--max-width-wide);
  min-width: 0;
  margin: 0 auto;
}
/* 2026-09-07 width fix (Phase 3.2): the hero carried .page-section, whose 1280px --max-width (base.css) capped the demo row at 1120px.
   The hero section now spans the page; the copy band keeps its 900px cap and the demo row uses --max-width-wide (1440px). */
.home-hero.page-section {
  max-width: none;
}
.home-hero .hero-visual mission-control {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .home-hero .hero-grid { gap: var(--space-8); }
}

/* 2026-09-07 spacing pass (Phase 3.2): hero to product gap, section title never crowded by the rule line */
.home-hero { padding-bottom: clamp(64px, 8vw, 112px); }
.home-hero + .section { padding-top: clamp(64px, 8vw, 120px); }
.section-header { flex-wrap: wrap; row-gap: var(--space-3); }
.section-title { flex: 0 1 auto; white-space: normal; line-height: 1.2; }
.section-line { min-width: 64px; }

/* 2026-09-07 global width pass: navy bands (closing CTA on every page, homepage app panel) run edge to edge;
   their content stays on the readable column (--max-width minus page padding). The wrapper section drops its cap. */
.page-section:has(> .cta-section),
.page-section:has(> .app-panel) {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.page-section > .cta-section,
.page-section > .app-panel {
  border-radius: 0;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}
.page-section > .cta-section > .cta-content,
.page-section > .app-panel > * {
  max-width: calc(var(--max-width) - 2 * var(--page-padding));
  margin-left: auto;
  margin-right: auto;
}

/* 2026-09-07 skill builder (Phase 3.3) */

/* Page hero, scoped to the builder page since no shared rule exists yet in this file or base.css */
/* 2026-09-14: vertical only; the old 0 zeroed out .page-section's horizontal padding. */
.builder-page .page-hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-10);
}

.builder-page .page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-tight);
}


.builder-page .page-hero-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}

.builder-page .page-hero-note a {
  color: var(--color-blue);
  font-weight: var(--font-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tier 1 intro: badges and lead line */
.builder-intro { margin-bottom: var(--space-8); }
.builder-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
}
.builder-badges li {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-blue);
  background: var(--color-mist);
  border: 1px solid var(--color-border-blue);
  border-radius: var(--radius-full);
  padding: 6px 12px;
}
.builder-lead {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 640px;
}

/* Color rows. Each row is a fieldset so the legend names the group. */
.color-group,
.color-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.color-fieldset {
  margin-bottom: var(--space-4);
}

.color-group > legend,
.color-fieldset > legend {
  padding: 0;
}

.color-legend {
  display: block;
  width: 100%;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.color-fieldset .color-row {
  margin-bottom: 0;
}

.color-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.color-row > * {
  min-width: 0;
}

@media (max-width: 640px) {
  .color-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "swatch hex remove"
      "role role usage"
      "note note note";
    row-gap: var(--space-2);
  }

  .color-row .color-swatch { grid-area: swatch; }
  .color-row .color-hex { grid-area: hex; }
  .color-row .color-role { grid-area: role; }
  .color-row .color-usage { grid-area: usage; }
  .color-row .color-note { grid-area: note; }
  .color-row .color-row-remove { grid-area: remove; }
}

.color-swatch {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: transparent;
}

.builder-add-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

/* Select styling to match .form-input */
.form-select {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-md);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-select:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px var(--color-mist);
}

.form-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 2026-09-14: the opt-in sat flush against the submit button (measured gap 0px). */
.form-checkbox-group {
  display: flex;
  margin-top: var(--space-6);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* 2026-09-14: 3px left the box 2.3px above the first line's optical centre; 4px measures closer. */
.form-checkbox-label input {
  margin-top: var(--space-1);
}

.build-progress {
  display: block;
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--color-navy);
  color: var(--color-bg-white);
  border-radius: var(--radius-lg);
}

.build-progress[hidden] {
  display: none;
}

.build-progress-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.build-progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--build-progress, 12%);
  background: var(--color-bg-white);
  transition: width 0.4s ease;
}

.build-progress-title {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
}

.build-progress-copy {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.build-progress.is-error {
  background: var(--color-bg-white);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}



.skill-use-cards a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.skill-use-cards a.card:hover {
  border-color: var(--color-accent, var(--color-navy));
}

.help-steps {
  list-style: none;
  counter-reset: help-step;
  display: grid;
  gap: var(--space-4);
  max-width: 720px;
  margin: var(--space-6) 0 0;
  padding: 0;
}

.help-steps li {
  counter-increment: help-step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.help-steps li::before {
  content: counter(help-step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--color-navy);
  color: var(--color-bg-white);
  font-weight: 700;
}

.help-steps p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.help-steps,
.help-steps li,
.help-steps code {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.builder-privacy {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 720px;
  margin-top: var(--space-4);
}

/* What you get cards */
.builder-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .builder-cards {
    grid-template-columns: 1fr;
  }
}

.builder-cards .card {
  background: var(--color-bg-white);
}

.builder-cards .card h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.builder-cards .card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Tier 2, dark by design */
/* Tier 2, dark: a Mist band with a coming-soon badge so it reads as a separate, not-yet-live tool */
.builder-soon {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-bg-white);
  background: var(--color-navy);
  border-radius: var(--radius-full);
  padding: 6px 12px;
}
.builder-dark-band {
  background: var(--color-mist);
  border: 1px solid var(--color-border-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
}
.builder-dark-band form {
  max-width: 640px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
}
.builder-dark-copy {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 640px;
  margin-bottom: var(--space-8);
}
@media (max-width: 768px) {
  .builder-dark-band { padding: var(--space-6); }
}

form[data-enabled="false"] input:disabled,
form[data-enabled="false"] select:disabled,
form[data-enabled="false"] button:disabled,
form[data-enabled="false"] .form-checkbox-label input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skill-result-pre {
  max-height: 480px;
  overflow: auto;
  padding: var(--space-6);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-navy);
  white-space: pre-wrap;
  word-break: break-word;
}

.skill-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

#skillResult {
  scroll-margin-top: 96px;
}

.skill-use-cards {
  margin-top: var(--space-6);
}

.skill-use-cards .card .btn {
  margin-top: var(--space-4);
}

.builder-fallback details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  padding: var(--space-5) var(--space-6);
}

.builder-fallback summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-navy);
  font-size: var(--text-md);
}

.builder-fallback .builder-lead {
  margin-top: var(--space-4);
}

.builder-fallback form {
  margin-top: var(--space-6);
}

/* 2026-09-07 homepage free-tools band (Phase 3.3) */
.tools-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-10) var(--space-12);
  background: var(--color-mist);
  border: 1px solid var(--color-border-blue);
  border-radius: var(--radius-lg);
}
.tools-band .tools-copy { min-width: 0; max-width: 720px; }
.tools-kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-3);
}
.tools-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}
.tools-text {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}
.tools-band .btn { flex: none; white-space: normal; }
@media (max-width: 768px) {
  .tools-band { flex-direction: column; align-items: flex-start; padding: var(--space-8) var(--space-6); }
  .tools-band .btn { white-space: normal; }
}

/* ============ LAYOUT SYSTEM (2026-09-19) ============
   One layout system, the homepage as reference. Three shared rules:
   1. .page-hero: the spec hero for subpages. H1 and sub-paragraph centred on a
      900px column (the homepage value, lives here only), sub-paragraph on the hero measure token.
      Unscoped since the last commit of the pass (2026-09-19): every page that carries .page-hero
      has been converted, so the rule applies sitewide with no page-level hero rules left.
   2. .prose: standalone prose on the reading measure, centred on the band, text left-aligned.
   3. .heading-accent em: the accent word treatment (the homepage hero "brain"). */
.page-hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
  text-align: center;
}

.page-hero > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* the Mission Control host keeps the band; :not() would outrank the p rule below */
.page-hero > .mc-embed {
  max-width: none;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.page-hero p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: var(--max-width-hero-sub);
  margin-left: auto;
  margin-right: auto;
}

.page-hero .hero-actions {
  justify-content: center;
}

.prose {
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
}

.heading-accent em {
  font-style: italic;
  color: var(--color-blue);
}

/* section header on a navy panel: title and rule in the on-dark tones, pill unchanged */
.name-section .section-title,
.app-panel .section-title {
  color: var(--color-text-on-dark);
}

.name-section .section-line,
.app-panel .section-line {
  background: rgba(240, 242, 247, 0.2);
}
