/* Arcadia Frequencies v7_34 — Artful Layout System
   Purpose: refine desktop and mobile reader-flow, Human doctrine stacking,
   Human Command Interface design, and premium public-page visual rhythm.
   No Worker, routing, redirect, header, payment, scheduling, or intake behavior changes. */

:root {
  --artful-gold-soft: rgba(234, 184, 93, .18);
  --artful-gold-line: rgba(234, 184, 93, .34);
  --artful-blue-soft: rgba(72, 132, 207, .16);
  --artful-card-deep: rgba(5, 18, 35, .76);
}

:where(.hero-copy, .executive-copy-card, .session-value-card, .checklist-card, .contact-card, .product-mark-card) {
  text-wrap: pretty;
}

:where(h1, h2, h3, .hero-tagline-line, .line-stack > span) {
  text-wrap: balance;
}

/* Hero: make the emotional destination land under the first line. */
.hero-tagline-lockup.hero-tagline-two-line {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(.25rem, .55vw, .48rem) !important;
  width: 100% !important;
  text-align: center !important;
  margin-top: clamp(.9rem, 1.4vw, 1.35rem) !important;
  margin-bottom: clamp(1rem, 1.5vw, 1.4rem) !important;
}

.hero-tagline-lockup.hero-tagline-two-line .hero-tagline-line {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  line-height: 1.05 !important;
}

.hero-tagline-lockup.hero-tagline-two-line .hero-tagline-line-main {
  max-width: min(980px, 100%) !important;
  margin-inline: auto !important;
}

.hero-tagline-lockup.hero-tagline-two-line .hero-tagline-line-heart {
  max-width: min(620px, 100%) !important;
  margin-inline: auto !important;
  font-weight: 880 !important;
  letter-spacing: .016em !important;
  color: var(--accent-2);
  text-shadow: var(--gold-glow);
}

/* Core doctrine: always center the second line under the first. */
.doctrine-stack,
.command-doctrine-stack,
.session-doctrine-stack,
.service-doctrine-stack {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  gap: .18rem !important;
  text-align: center !important;
  max-width: 100%;
}

.doctrine-stack span,
.command-doctrine-stack span,
.session-doctrine-stack span,
.service-doctrine-stack span,
.doctrine-stack strong,
.doctrine-stack > span {
  display: block !important;
  text-align: center !important;
  line-height: 1.2 !important;
  width: 100%;
}

.command-doctrine-stack span:first-child,
.session-doctrine-stack span:first-child,
.service-doctrine-stack span:first-child {
  color: var(--text);
}

.command-doctrine-stack span:last-child,
.session-doctrine-stack span:last-child,
.service-doctrine-stack span:last-child {
  color: var(--accent-2);
}

.human-command-principle.doctrine-stack {
  place-items: center !important;
  text-align: center !important;
  width: fit-content !important;
  min-width: min(360px, 100%);
  max-width: min(520px, 100%) !important;
  padding: .9rem 1.2rem !important;
  margin-top: 1.15rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border: 1px solid var(--artful-gold-line) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(234,184,93,.18), transparent 42%),
    linear-gradient(145deg, rgba(6,22,40,.64), rgba(4,14,27,.46)) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.human-command-principle.doctrine-stack span {
  font-weight: 820;
  font-size: clamp(.98rem, 1.14vw, 1.16rem);
}

.human-command-principle.doctrine-stack span:last-child {
  font-size: clamp(1.12rem, 1.55vw, 1.44rem);
}

/* Human Command Interface: artful decision surface, not awkward buttons. */
.artful-command-section .section-center {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.artful-command-section .section-intro {
  margin-inline: auto;
  max-width: 780px;
}

.human-command-artboard {
  position: relative;
  isolation: isolate;
  margin-top: clamp(1.35rem, 2vw, 2.2rem);
  padding: clamp(1.35rem, 2.6vw, 2.8rem) !important;
  border-radius: clamp(24px, 2.8vw, 36px) !important;
  overflow: hidden;
}

.human-command-artboard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 10%, rgba(234, 184, 93, .16), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(72, 132, 207, .18), transparent 32%),
    linear-gradient(145deg, rgba(5,18,35,.86), rgba(9,28,51,.62));
  opacity: .98;
}

.human-command-artboard .command-doctrine-stack {
  margin-inline: auto;
  width: fit-content;
  max-width: 100%;
  padding: .85rem 1.15rem;
  border: 1px solid var(--artful-gold-line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 42px rgba(0,0,0,.18);
}

.human-command-artboard .command-doctrine-stack span {
  font-weight: 850;
  font-size: clamp(1.02rem, 1.25vw, 1.28rem);
  letter-spacing: .01em;
}

.human-decision-flow {
  --chip-min-height: 62px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.78rem, 1.2vw, 1.05rem);
  margin: clamp(1.2rem, 2vw, 1.75rem) auto;
  max-width: 940px;
}

.human-decision-flow span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: var(--chip-min-height);
  padding: .78rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(234, 184, 93, .24);
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  color: var(--accent-2);
  font-weight: 820;
  letter-spacing: .025em;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 26px rgba(0,0,0,.12);
}

.human-decision-flow span::before {
  content: "";
  position: absolute;
  top: .52rem;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: rgba(234, 184, 93, .46);
}

.human-decision-flow span:last-child {
  grid-column: 1 / -1;
  min-height: 68px;
  color: var(--text);
  border-color: rgba(168, 182, 255, .30);
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 182, 255, .18), transparent 55%),
    linear-gradient(145deg, rgba(6, 20, 39, .86), rgba(9, 28, 51, .68));
}

.human-command-support-copy {
  display: grid;
  gap: .25rem;
  justify-items: center;
  text-align: center;
  margin: .2rem auto clamp(1rem, 1.6vw, 1.5rem);
  max-width: 760px;
}

.human-command-support-copy p {
  margin: 0;
  color: var(--muted);
}

.service-doctrine-stack {
  width: fit-content;
  max-width: min(680px, 100%);
  margin-inline: auto;
  padding-top: clamp(.9rem, 1.3vw, 1.2rem);
  border-top: 1px solid rgba(234, 184, 93, .2);
}

.service-doctrine-stack span {
  font-weight: 780;
  font-size: clamp(1rem, 1.05vw, 1.18rem);
}

.session-doctrine-stack {
  width: fit-content;
  max-width: min(680px, 100%);
  margin: .95rem auto 1.2rem;
  padding: .8rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(234, 184, 93, .22);
  background: rgba(255,255,255,.035);
}

.session-doctrine-stack span {
  font-weight: 800;
}

.compact-doctrine {
  width: fit-content;
  max-width: 100%;
  margin: 1rem auto 0;
  padding: .75rem .95rem;
  border-radius: 16px;
  border: 1px solid rgba(234, 184, 93, .22);
  background: rgba(255,255,255,.035);
}

.doctrine-stack-compact {
  gap: .12rem !important;
  margin: .7rem 0;
  justify-items: start !important;
  text-align: left !important;
}

.doctrine-stack-compact strong,
.doctrine-stack-compact span {
  text-align: left !important;
}

/* Artful Desktop Experience Agent: monitors 24-inch+ screens and prevents sparse/accidental layout. */
@media (min-width: 1200px) {
  .hero.section {
    padding-top: clamp(4.6rem, 6vw, 7.1rem);
    padding-bottom: clamp(4rem, 5.6vw, 6.4rem);
  }

  .hero-copy {
    max-width: 1120px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-wide-header h1 {
    margin-bottom: .4rem;
  }

  .hero-tagline-lockup.hero-tagline-two-line .hero-tagline-line-main,
  .hero-tagline-lockup.hero-tagline-two-line .hero-tagline-line-heart {
    white-space: nowrap;
  }

  .hero-wide-header .hero-subline {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .button-row {
    justify-content: center;
  }

  .human-command-artboard {
    max-width: 1080px;
    margin-inline: auto;
  }

  #human-command-interface h2 {
    margin-inline: auto;
  }
}

/* Mobile Experience Agent: simpler rhythm, less density, no cramped words. */
@media (max-width: 760px) {
  .hero-tagline-lockup.hero-tagline-two-line {
    gap: .22rem !important;
  }

  .hero-tagline-lockup.hero-tagline-two-line .hero-tagline-line {
    line-height: 1.12 !important;
  }

  .human-command-principle.doctrine-stack {
    width: 100% !important;
    max-width: 100% !important;
    padding: .86rem .92rem !important;
  }

  .human-command-artboard {
    padding: 1.05rem !important;
    border-radius: 22px !important;
  }

  .human-command-artboard .command-doctrine-stack,
  .service-doctrine-stack,
  .compact-doctrine,
  .session-doctrine-stack {
    width: 100%;
  }

  .human-decision-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  .human-decision-flow span {
    min-height: 50px;
    border-radius: 15px;
    padding: .68rem .72rem;
    font-size: .92rem;
  }

  .human-decision-flow span:last-child {
    grid-column: 1 / -1;
  }

  .doctrine-stack-compact {
    justify-items: center !important;
    text-align: center !important;
  }

  .doctrine-stack-compact strong,
  .doctrine-stack-compact span {
    text-align: center !important;
  }
}
