/* ThinqShift, shared base: reset, nav, footer, buttons, section primitives.
   Page-specific styles live in styles/<page>.css. Tokens in styles/tokens.css.
   Structurally mirrors Thinqee's base.css (same component vocabulary) so the
   two sites share an underlying system: see SHARED-PATTERNS.md. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(136,39,171,0.35); color: var(--white); }
:focus-visible { outline: 2px solid var(--purple-200); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber-soft);
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 44px); height: 68px;
  background: rgba(18,8,24,0.86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.15rem; color: var(--white); letter-spacing: -0.02em; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; display: block; filter: drop-shadow(0 0 10px rgba(136,39,171,0.5)); }
.nav-links { display: flex; gap: 28px; font-size: 0.84rem; color: var(--muted); }
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle, .nav-toggle-label { display: none; }

.btn-ghost { border: 1px solid var(--border2); color: var(--text); padding: 8px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 500; transition: border-color .2s, background .2s; }
.btn-ghost:hover { border-color: var(--purple-100); background: rgba(136,39,171,0.08); }
.btn-outline { border: 1px solid var(--purple-200); color: var(--purple-50); padding: 9px 20px; border-radius: 100px; font-size: 0.82rem; transition: border-color .2s, background .2s; }
.btn-outline:hover { border-color: var(--purple-100); background: rgba(136,39,171,0.08); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple-200), var(--purple-400));
  color: #fff; font-weight: 500; padding: 12px 26px; border-radius: 100px; font-size: 0.9rem;
  box-shadow: 0 4px 18px rgba(136,39,171,0.35); transition: transform .15s, box-shadow .2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(136,39,171,0.44); }
.btn-large { padding: 13px 28px; font-size: 0.95rem; }

@media (max-width: 940px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(18,8,24,0.98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0; max-height: 0; overflow: hidden;
    transition: max-height .3s ease; font-size: 0.95rem;
  }
  .nav-links a { padding: 14px 28px; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-toggle:checked ~ .nav-links { max-height: 70vh; }
  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; order: 3;
  }
  .nav-toggle-label span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ─── SECTION PRIMITIVES ─── */
.section { padding: clamp(52px, 6vw, 84px) 0; }
.section-tight { padding: clamp(42px, 5vw, 64px) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--white); line-height: 1.2; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.lede { color: var(--muted); font-size: 1.03rem; line-height: 1.8; }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); padding: 60px 0 34px; background: rgba(10,4,16,0.6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-promise { color: var(--muted); font-size: 0.85rem; line-height: 1.65; max-width: 300px; }
.footer-promise strong { color: var(--lilac); font-weight: 600; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 0.88rem; color: var(--text); opacity: 0.78; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; }
.footer-col .footer-static { font-size: 0.88rem; color: var(--text); opacity: 0.4; cursor: default; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ─── SHARED LAYOUT PATTERNS ─── */

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.text-link { display: inline-flex; gap: 7px; align-items: center; color: var(--purple-100); font-weight: 600; font-size: 0.9rem; margin-top: 6px; }
.text-link:hover span { transform: translateX(3px); }
.text-link span { transition: transform .2s; }

/* Accent reveal: gradient text sweeps into full color once on load, a bright
   flash riding the leading edge. Orange, not purple: on a purple field,
   a purple-on-purple sweep reads as recessive instead of emphatic. Orange is
   also half of ThinqShift's own historical purple+orange pairing, so it
   reads as a second brand color threading through, not a foreign accent. */
.accent {
  background-image: linear-gradient(90deg,
    var(--orange-soft) 0%,
    var(--cream) 27.5%,
    var(--orange) 50%,
    var(--cream) 53%,
    var(--orange-deep) 58%,
    var(--orange-deep) 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: accent-reveal 1.6s cubic-bezier(.45,0,.25,1) .4s both;
}
@keyframes accent-reveal { to { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .accent { animation: none; background-position: 0% 0; } }

/* Simple page header for interior pages (no bg image, compare .hero on Home) */
.page-hero { padding: 152px 0 60px; background: radial-gradient(ellipse at 20% 0%, rgba(136,39,171,0.16), transparent 60%); }
.page-hero-inner { max-width: 740px; }
.page-hero .eyebrow { display: block; margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.18; margin-bottom: 20px; color: var(--white); }
.page-hero .lede { max-width: 620px; margin-bottom: 14px; }
.page-hero .lede:last-of-type { margin-bottom: 0; }
@media (max-width: 640px) { .page-hero { padding: 128px 0 44px; } }

/* Single-column long-form copy */
.prose { max-width: 720px; }
.prose h2 { margin-bottom: 16px; }
.prose .lede { margin-bottom: 14px; }
.prose .lede:last-child { margin-bottom: 0; }
.prose .lede strong { color: var(--text); font-weight: 600; }

/* ─── SPLIT SECTIONS ─── */
.split { border-top: 1px solid var(--border); }
.split-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.split-grid.reverse .split-visual { order: -1; }
.split-copy .eyebrow { display: block; margin-bottom: 14px; }
.split-copy h2 { margin-bottom: 18px; }
.split-copy .lede { margin-bottom: 14px; font-size: 1rem; }
.split-copy .lede strong { color: var(--text); font-weight: 600; }
.split-copy .lede em { color: var(--lilac); font-style: italic; }
.split-visual { display: flex; justify-content: center; align-self: stretch; align-items: center; }
@media (max-width: 820px) {
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-visual { order: -1; }
}

/* ─── FABULOUS TRIFECTA (venn diagram, shared by Home + Framework) ─── */
.venn-wrap { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.venn-stage { position: relative; display: inline-block; width: min(460px, 100%); }
.venn-diagram { display: block; width: 100%; height: auto; }

.venn-panel {
  position: relative; margin-top: 22px; min-height: 72px;
  display: grid; align-items: center; justify-items: center;
  background: var(--card-solid); border: 1px solid var(--border2); border-radius: var(--radius-sm);
  padding: 16px 22px; box-shadow: var(--shadow);
  text-align: center;
}
.venn-panel-statement { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.venn-panel-lead {
  font: 700 0.72rem 'Inter', system-ui, sans-serif; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber-soft);
}
.venn-panel-quote { color: var(--text); font-size: 0.92rem; line-height: 1.55; max-width: 46ch; }
@media (prefers-reduced-motion: no-preference) {
  .venn-panel-statement.venn-anim-in { animation: venn-statement-in .5s ease both; }
  .venn-panel-statement.venn-anim-out { animation: venn-statement-out .45s ease both; }
  .venn-panel-statement.venn-anim-in .venn-panel-lead,
  .venn-panel-statement.venn-anim-in .venn-panel-quote { animation: venn-glow-pulse .6s ease-out both; }
}
@keyframes venn-statement-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes venn-statement-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }
@keyframes venn-glow-pulse {
  0% { text-shadow: 0 0 0 rgba(136,39,171,0); }
  45% { text-shadow: 0 0 14px rgba(136,39,171,0.7); }
  100% { text-shadow: 0 0 0 rgba(136,39,171,0); }
}
@media (max-width: 480px) { .venn-panel-quote { max-width: 32ch; font-size: 0.88rem; } }

/* ─── PILLAR / STAT PROOF CARD ─── */
.pillar-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(136,39,171,0.16);
}
.pillar-icon svg { width: 24px; height: 24px; }
.proof-card {
  width: 100%; max-width: 340px; margin: 0 auto;
  background: var(--card-solid); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow), var(--shadow-glow);
  text-align: center;
}
.proof-number {
  font-family: var(--font-display); font-weight: 700; color: var(--white);
  font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1;
  background: linear-gradient(120deg, var(--orange-soft), var(--cream) 55%, var(--orange));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.proof-card p { color: var(--text); font-size: 0.92rem; line-height: 1.6; }
.proof-cite { display: block; margin-top: 14px; color: var(--muted); font-size: 0.76rem; }

/* ─── CHAT / DIALOGUE CARD (used sparingly: ThinqShift is human-delivered, not an app) ─── */
.chat-card {
  width: 100%; max-width: 400px;
  background: var(--card-solid); border: 1px solid var(--border2);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-glow);
}
.chat-top {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted); font-weight: 500;
}
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple-200); box-shadow: 0 0 8px var(--purple-200); }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-body .bubble { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; }
.chat-body .bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--purple-200), var(--purple-400)); color: #fff; border-bottom-right-radius: 4px; }
.chat-body .bubble.ai { align-self: flex-start; background: var(--card); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }

/* ─── TRUST / DISCRETION STRIP ─── */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(34,0,63,0.4); }
.trust-inner { padding-block: 30px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.trust-icon { width: 40px; height: 40px; flex-shrink: 0; }
.trust-copy { flex: 1; min-width: 240px; }
.trust-inner h4 { font-size: 1.2rem; margin-bottom: 6px; }
.trust-inner p { color: var(--muted); font-size: 0.9rem; max-width: 620px; line-height: 1.6; }
.trust-link { color: var(--lilac); font-size: 0.85rem; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--border2); padding-bottom: 3px; margin-left: auto; }

/* ─── FEATURE / VALUE CARD GRID ─── */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.value-card h3 { color: var(--amber-soft); font-size: 1.05rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

/* Highlighted quote / callout block, left-rule accent */
.callout {
  border-left: 3px solid var(--purple-200); background: var(--card);
  border-radius: var(--radius-sm); padding: 26px 28px; max-width: 680px;
}
.callout h2, .callout h3 { margin-bottom: 12px; }

/* ─── PROGRAM CARD GRID (ShiftUp! / ThinqDay / ReWire entry points) ─── */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, border-color .2s, box-shadow .25s;
}
.program-card:hover { transform: translateY(-4px); border-color: var(--border2); box-shadow: 0 14px 44px rgba(136,39,171,0.16); }
.program-card.featured { background: linear-gradient(165deg, rgba(136,39,171,0.18), rgba(136,39,171,0.04)); border-color: var(--border2); }
.program-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--purple-200), var(--purple-400)); margin-bottom: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 14px rgba(136,39,171,0.35); transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.program-mark svg { width: 18px; height: 18px; }
.program-card:hover .program-mark { transform: scale(1.12) rotate(-6deg); box-shadow: 0 0 22px rgba(136,39,171,0.55); }
.program-card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.program-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; flex: 1; }
@media (max-width: 900px) { .program-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .program-grid { grid-template-columns: 1fr; } }

/* ─── TAG ROW (small pill labels: Non-Negotiables/4Ds teaser, FabWisdom angles, etc.) ─── */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-row span {
  font-size: 0.78rem; font-weight: 600; color: var(--lilac);
  border: 1px solid var(--border2); border-radius: 100px; padding: 7px 16px;
  background: rgba(136,39,171,0.08);
}
.tag-row.center { justify-content: center; }

/* ─── CLOSING CTA ─── */
.cta { text-align: center; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(53,0,105,0.4)); }
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 14px; }
.cta-inner .lede { margin-bottom: 30px; }
.cta .hero-actions { justify-content: center; margin-top: 0; }

/* ─── scroll reveal (progressive) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }

  /* Stagger: cards inside a grid fade in a beat apart instead of all at once.
     Scoped to the grid classes that hold individually-revealed cards. */
  .tracks-grid > .reveal:nth-child(2), .program-grid > .reveal:nth-child(2), .value-grid > .reveal:nth-child(2), .team-grid > .reveal:nth-child(2), .dna-grid > .reveal:nth-child(2), .quadrant-grid > .reveal:nth-child(2) { transition-delay: .08s; }
  .tracks-grid > .reveal:nth-child(3), .program-grid > .reveal:nth-child(3), .value-grid > .reveal:nth-child(3), .team-grid > .reveal:nth-child(3), .dna-grid > .reveal:nth-child(3), .quadrant-grid > .reveal:nth-child(3) { transition-delay: .16s; }
  .program-grid > .reveal:nth-child(4), .value-grid > .reveal:nth-child(4), .team-grid > .reveal:nth-child(4), .dna-grid > .reveal:nth-child(4), .quadrant-grid > .reveal:nth-child(4) { transition-delay: .24s; }
  .value-grid > .reveal:nth-child(5), .team-grid > .reveal:nth-child(5) { transition-delay: .32s; }
  .value-grid > .reveal:nth-child(6), .team-grid > .reveal:nth-child(6) { transition-delay: .4s; }
  .team-grid > .reveal:nth-child(7) { transition-delay: .48s; }
  .team-grid > .reveal:nth-child(8) { transition-delay: .56s; }
  .team-grid > .reveal:nth-child(9) { transition-delay: .64s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
